/* ========================================
    Aifing - Styles
    ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --success: #10b981;
    --warning: #f59e0b;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
    max-width: 100vw;
}

/* Light Theme */
:root[data-theme='light'] {
    --dark-bg: #f8fafc;
    --dark-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
}

[data-theme='light'] nav {
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(15,23,42,0.12);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Navigation */
nav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.logo-img {
    width: 140px;
    /* height: 64px; */
    object-fit: contain;
    display: block;
}

.logo:hover {
    opacity: 0.85;
}   
nav div span {
        font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    margin-right: 440px;

}
                                                        

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-button {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 200%;
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s, background-position 0.5s, text-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cta-button::before {
    content: '+';
    margin-right: 6px;
    font-size: 1.2em;
    font-weight: 700;
}

.cta-button:hover {
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5),
                0 0 20px rgba(236, 72, 153, 0.3);
    animation-play-state: paused;
    background-position: 100% 50%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4),
                 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Navbar Submit Tool button — pill glass with gradient border */
.nav-links .cta-button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.nav-links .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(99, 102, 241, 0.2);
        padding: 2rem 0;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(99, 102, 241, 0.1);
        padding-left: 2.5rem;
    }

    .nav-links .cta-button {
        margin: 1rem 2rem;
        text-align: center;
        padding: 0.8rem 1.5rem;
        border-bottom: none;
    }

    .nav-links .cta-button:hover {
        padding-left: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 320px;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(99, 102, 241, 0.2);
        padding: 2rem 0;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 1.2rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(99, 102, 241, 0.1);
        padding-left: 2.5rem;
    }

    .nav-links .cta-button {
        margin: 1rem 2rem;
        text-align: center;
        padding: 0.8rem 1.5rem;
        border-bottom: none;
    }

    .nav-links .cta-button:hover {
        padding-left: 1.5rem;
    }
}

/* Hero Section */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(99,102,241,0.08) 0px, rgba(99,102,241,0.08) 1px, transparent 1px, transparent 24px),
        repeating-linear-gradient(90deg, rgba(99,102,241,0.07) 0px, rgba(99,102,241,0.07) 1px, transparent 1px, transparent 24px);
    mask-image: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.9), transparent 60%);
    animation: gridFloat 22s linear infinite;
    opacity: 0.35;
    pointer-events: none;
}

@keyframes gridFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.25;
    pointer-events: none;
}

.hero::before {
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, #8b5cf6, transparent 60%);
}

.hero::after {
    bottom: -140px;
    right: -140px;
    background: radial-gradient(circle, #ec4899, transparent 60%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar */
.search-container {
    max-width: 900px;
    margin: 0 auto 4rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sort-select {
    min-width: 170px;
    padding: 1rem 1rem;
    background: var(--dark-card);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.search-bar {
    flex: 1;
    padding: 1rem 1.25rem;
    background: var(--dark-card);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 14px;
    font-size: 1.05rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-bar:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.search-button {
    background: var(--gradient);
    border: none;
    padding: 0.95rem 1.6rem;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

.clear-button {
    background: rgba(239, 68, 68, 0.8);
    border: none;
    padding: 0.95rem 1.2rem;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.clear-button:hover {
    background: rgba(239, 68, 68, 1);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
}

/* Trusted By */
.trusted {
    padding-top: 0;
}

.trusted-inner {
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.10),
        rgba(255,255,255,0.05)
    );
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    box-shadow: 0 8px 32px rgba(2, 6, 23, 0.35);
}

.trusted-label {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    position: relative;
}

/* Scrolling track for brand logos */
.trusted-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: trusted-scroll 40s linear infinite;
    will-change: transform;
}

.trusted-logos:hover .trusted-track {
    animation-play-state: paused;
}

@keyframes trusted-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.trusted-logos img {
    height: 28px;
    opacity: 1;
    filter: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.trusted-logos img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Slim CTA */
.cta-slim-card {
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(236,72,153,0.15));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
}

.cta-slim-card h3 {
    margin-bottom: 0.25rem;
}

.cta-slim-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.2);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tool-count {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.3rem 1rem;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* Placeholder category card */
.category-card.coming-soon {
    pointer-events: none;
    cursor: default;
    opacity: 0.9;
}

.category-card.coming-soon p {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.6rem;
}

@media (max-width: 640px) {
    .category-card.coming-soon { display: none; }
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tool-card {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.2);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.28);
    border-color: var(--primary-color);
}

.tool-card::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, #8b5cf6 60%, transparent 70%);
    opacity: 0.35;
}

/* Trending ribbon */
.ribbon {
    position: absolute;
    top: 14px;
    left: -10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.ribbon::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    border-width: 6px 6px 0 0;
    border-style: solid;
    border-color: #4f46e5 transparent transparent transparent;
}

.free-badge {
    position: absolute;
    top: 14px;
    right: -10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.free-badge::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    border-width: 6px 0 0 6px;
    border-style: solid;
    border-color: #047857 transparent transparent transparent;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    color: transparent;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.tool-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.tool-tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.tool-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.pricing-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-free {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.pricing-freemium {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.pricing-paid {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

.tool-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.tool-link:hover {
    gap: 0.8rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.2);
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.25);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 0.8rem;
}

/* Newsletter Section */
.newsletter {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin: 4rem 0;
}

.newsletter h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--dark-bg);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-input:focus {
    border-color: var(--primary-color);
}

.newsletter-button {
    padding: 1rem 2.5rem;
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
    font-size: 1rem;
}

.newsletter-button:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--dark-card);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    text-align: center;
    color: var(--text-secondary);
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--dark-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--dark-bg);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
}

.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.submit-button:hover {
    transform: translateY(-3px);
}

/* Tool Detail Page */
.tool-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.tool-detail-header {
    text-align: center;
    margin-bottom: 4rem;
}

.tool-detail-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: var(--gradient);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.tool-detail-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-detail-tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.tool-detail-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.detail-section {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.detail-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.features-list,
.pros-cons-list {
    list-style: none;
}

.features-list li,
.pros-cons-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.pros-cons-list.pros li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.pros-cons-list.cons li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pricing-tier {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.pricing-tier h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.pricing-tier .price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-tier ul {
    list-style: none;
}

.pricing-tier ul li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

/* Blog Post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.blog-post-header {
    margin-bottom: 3rem;
}

.blog-post-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-post-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.blog-post-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
    }

    /* Hero Section */
    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Search Bar */
    .search-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .search-bar,
    .search-button,
    .clear-button {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    /* Container */
    .container {
        padding: 2rem 1rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-top: -1.5rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    /* Grids */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .trusted-logos {
        gap: 0;
    }

    .cta-slim-card {
        padding: 1.4rem;
    }

    /* Category Card */
    .category-card {
        padding: 2rem 1.5rem;
    }

    .category-icon {
        width: 56px;
        height: 56px;
    }

    .category-card h3 {
        font-size: 1.3rem;
    }

    /* Tool Card */
    .tool-card {
        padding: 1.5rem;
    }

    .tool-logo {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .tool-info h3 {
        font-size: 1.2rem;
    }

    .tool-tagline {
        font-size: 0.85rem;
    }

    .tool-description {
        font-size: 0.9rem;
    }

    /* Blog Card */
    .blog-card {
        flex-direction: column;
    }

    .blog-thumb {
        width: 100%;
        height: 200px;
        border-radius: 12px 12px 0 0;
    }

    /* Newsletter */
    .newsletter {
        padding: 2rem 1.5rem;
    }

    .newsletter h2 {
        font-size: 1.8rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form input {
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-bottom {
        padding: 1.5rem 1rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-button-large {
        width: 100%;
        max-width: 300px;
    }

    /* Tool Detail */
    .tool-detail-hero h1 {
        font-size: 2rem;
    }

    .tool-detail-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .tool-detail-actions a,
    .tool-detail-actions button {
        width: 100%;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Navigation */
    .nav-container {
        padding: 0 1.5rem;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    /* Search Bar */
    .search-container {
        max-width: 700px;
        padding: 0 1.5rem;
    }

    .trusted-logos {
        gap: 0;
    }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .trusted-track {
        animation: none;
    }
}

    /* Container */
    .container {
        padding: 3rem 1.5rem;
    }

    /* Grids */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-secondary {
    background: var(--dark-card);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
}
