* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #9747FF;
    --primary-coral: #FF7070;
    --button-orange: #FF6347;
    --background-color: #ffffff;
    --text-color: #2d3436;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Navigation Bar */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-buttons .login {
    color: var(--text-color);
    text-decoration: none;
}

.nav-buttons .get-started {
    background: #000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
}

/* Background Styling */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(151, 71, 255, 0.25) 0%,
        rgba(255, 112, 112, 0.2) 50%,
        transparent 70%);
    top: -20%;
    right: -10%;
    filter: blur(60px);
    mix-blend-mode: soft-light;
    animation: float 15s ease-in-out infinite;
}

.gradient-sphere.secondary {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center,
        rgba(255, 112, 112, 0.25) 0%,
        rgba(151, 71, 255, 0.2) 50%,
        transparent 70%);
    top: auto;
    right: auto;
    bottom: -10%;
    left: -5%;
    animation: float 20s ease-in-out infinite reverse;
}

.main-header {
    text-align: center;
    padding: 4rem 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.main-logo {
    max-width: 240px;
    height: auto;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.main-title .highlight {
    background: linear-gradient(
        270deg,
        var(--primary-purple),
        var(--primary-coral),
        var(--button-orange),
        var(--primary-purple)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 6s ease infinite;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-filter button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    background-color: white;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    position: relative;
}

.category-filter button.active {
    background: var(--button-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 99, 71, 0.4);
}

.category-filter button.active::before,
.category-filter button.active::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

/* Create multiple sparkles using pseudo-elements */
.category-filter button.active::before {
    width: 8px;
    height: 8px;
    top: -8px;
    right: 30%;
    animation-delay: 0s;
}

.category-filter button.active::after {
    width: 6px;
    height: 6px;
    bottom: -6px;
    left: 30%;
    animation-delay: 0.3s;
}

/* Add more sparkles using generated content */
.category-filter button.active span {
    position: relative;
}

.category-filter button.active span::before,
.category-filter button.active span::after {
    content: '✦';
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    pointer-events: none;
}

.category-filter button.active span::before {
    top: -20px;
    left: 0;
    animation: sparkle 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.category-filter button.active span::after {
    bottom: -20px;
    right: 0;
    animation: sparkle 3s ease-in-out infinite;
    animation-delay: 0.8s;
}

.tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category-section {
    margin-bottom: 4rem;
}

.category-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-thumbnail {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, rgba(151, 71, 255, 0.1), rgba(255, 112, 112, 0.1));
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.tool-thumbnail img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-thumbnail {
    background: linear-gradient(135deg, rgba(151, 71, 255, 0.2), rgba(255, 112, 112, 0.2));
}

.tool-card:hover .tool-thumbnail img {
    transform: scale(1.1);
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.tool-card p {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .category-filter button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tools-container {
        padding: 0 1rem;
    }
}

.dark-footer {
    background-color: #1A1A1A;
    color: #ffffff;
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.brand-column {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 0.875rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .brand-column {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
    }

    .footer-tagline {
        max-width: 500px;
        margin: 1rem auto 0;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dark-footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-column {
        text-align: center;
    }

    .footer-bottom {
        margin-top: 2rem;
    }
}

/* Legal Pages Styling */
.legal-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'SF Pro Display', sans-serif;
    color: #333;
    line-height: 1.6;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 600;
}

.last-updated {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 500;
}

.legal-section h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 20px 0 15px;
    font-weight: 500;
}

.legal-section p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.legal-section address {
    font-style: normal;
    line-height: 1.8;
    margin-top: 15px;
    font-size: 1.1rem;
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 15px;
        margin: 20px auto;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .legal-section p,
    .legal-section li,
    .legal-section address {
        font-size: 1rem;
    }
}

/* Category-specific gradients */
/* Starting Category - Purple Shades */
.starting-gradient-1 {
    background: linear-gradient(135deg, rgba(151, 71, 255, 0.15), rgba(186, 85, 255, 0.25));
}
.starting-gradient-2 {
    background: linear-gradient(135deg, rgba(166, 85, 255, 0.15), rgba(201, 99, 255, 0.25));
}
.starting-gradient-3 {
    background: linear-gradient(135deg, rgba(136, 56, 240, 0.15), rgba(171, 70, 245, 0.25));
}

/* Accounting Category - Blue Shades */
.accounting-gradient-1 {
    background: linear-gradient(135deg, rgba(41, 128, 255, 0.15), rgba(85, 160, 255, 0.25));
}
.accounting-gradient-2 {
    background: linear-gradient(135deg, rgba(56, 143, 255, 0.15), rgba(100, 175, 255, 0.25));
}
.accounting-gradient-3 {
    background: linear-gradient(135deg, rgba(71, 158, 255, 0.15), rgba(115, 185, 255, 0.25));
}
.accounting-gradient-4 {
    background: linear-gradient(135deg, rgba(86, 173, 255, 0.15), rgba(130, 195, 255, 0.25));
}

/* Marketing Category - Orange Shades */
.marketing-gradient-1 {
    background: linear-gradient(135deg, rgba(255, 128, 71, 0.15), rgba(255, 160, 85, 0.25));
}
.marketing-gradient-2 {
    background: linear-gradient(135deg, rgba(255, 143, 56, 0.15), rgba(255, 175, 100, 0.25));
}
.marketing-gradient-3 {
    background: linear-gradient(135deg, rgba(255, 113, 41, 0.15), rgba(255, 145, 70, 0.25));
}

/* Legal Category - Green Shades */
.legal-gradient-1 {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.15), rgba(85, 230, 140, 0.25));
}
.legal-gradient-2 {
    background: linear-gradient(135deg, rgba(61, 228, 130, 0.15), rgba(100, 245, 155, 0.25));
}
.legal-gradient-3 {
    background: linear-gradient(135deg, rgba(31, 198, 100, 0.15), rgba(70, 215, 125, 0.25));
}
.legal-gradient-4 {
    background: linear-gradient(135deg, rgba(16, 183, 85, 0.15), rgba(55, 200, 110, 0.25));
}

/* Forms Category - Teal Shades */
.forms-gradient-1 {
    background: linear-gradient(135deg, rgba(41, 204, 186, 0.15), rgba(85, 230, 215, 0.25));
}
.forms-gradient-2 {
    background: linear-gradient(135deg, rgba(56, 219, 201, 0.15), rgba(100, 245, 230, 0.25));
}
.forms-gradient-3 {
    background: linear-gradient(135deg, rgba(26, 189, 171, 0.15), rgba(70, 215, 200, 0.25));
}
.forms-gradient-4 {
    background: linear-gradient(135deg, rgba(11, 174, 156, 0.15), rgba(55, 200, 185, 0.25));
}
.forms-gradient-5 {
    background: linear-gradient(135deg, rgba(0, 159, 141, 0.15), rgba(40, 185, 170, 0.25));
}

/* Hover effects for all gradients */
.tool-card:hover .tool-thumbnail {
    background: linear-gradient(135deg, 
        var(--gradient-start, rgba(151, 71, 255, 0.3)), 
        var(--gradient-end, rgba(255, 112, 112, 0.4)));
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.starting-gradient-1:hover, .starting-gradient-2:hover, .starting-gradient-3:hover {
    --gradient-start: rgba(151, 71, 255, 0.25);
    --gradient-end: rgba(186, 85, 255, 0.35);
}

.accounting-gradient-1:hover, .accounting-gradient-2:hover, .accounting-gradient-3:hover, .accounting-gradient-4:hover {
    --gradient-start: rgba(41, 128, 255, 0.25);
    --gradient-end: rgba(85, 160, 255, 0.35);
}

.marketing-gradient-1:hover, .marketing-gradient-2:hover, .marketing-gradient-3:hover {
    --gradient-start: rgba(255, 128, 71, 0.25);
    --gradient-end: rgba(255, 160, 85, 0.35);
}

.legal-gradient-1:hover, .legal-gradient-2:hover, .legal-gradient-3:hover, .legal-gradient-4:hover {
    --gradient-start: rgba(46, 213, 115, 0.25);
    --gradient-end: rgba(85, 230, 140, 0.35);
}

.forms-gradient-1:hover, .forms-gradient-2:hover, .forms-gradient-3:hover, .forms-gradient-4:hover, .forms-gradient-5:hover {
    --gradient-start: rgba(41, 204, 186, 0.25);
    --gradient-end: rgba(85, 230, 215, 0.35);
}
.seo-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Add styles for tool card links */
.tool-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.tool-card a:hover {
    text-decoration: none;
}

.tool-card a:focus {
    outline: none;
}

.tool-card a:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}