/* ========================================
   Melancholy AI — Landing Page Styles
   Black & White Theme
   ======================================== */

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-dark: #0a0a0a;
    --text-primary: #0a0a0a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --accent: #0a0a0a;
    --accent-light: #333333;
    --border-color: #e0e0e0;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes scrollDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(8px);
        opacity: 0;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Scroll-triggered animations */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s ease;
    background: rgba(250, 250, 250, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    z-index: 10;
}

.logo-icon {
    font-size: 1.4rem;
    color: var(--text-primary);
}

.logo-ai {
    font-weight: 800;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--text-primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-nav:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-nav.logged-in {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-nav svg {
    flex-shrink: 0;
    vertical-align: middle;
}

.user-menu-wrapper {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1001;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    color: #e53e3e;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
    border-radius: var(--radius-xs);
}

.user-dropdown-item:hover {
    background: rgba(229, 62, 62, 0.08);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 60px;
    background-color: var(--bg-primary);
}

.hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Soft, fluid, 3D soundwave-like colors for light theme */
    background: radial-gradient(circle at 15% 50%, rgba(180, 210, 255, 0.5), transparent 60%),
        radial-gradient(circle at 85% 30%, rgba(240, 200, 255, 0.5), transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(190, 240, 230, 0.5), transparent 60%),
        linear-gradient(135deg, #f0f4f8 0%, #ffffff 50%, #e2e8f0 100%);
    background-size: 200% 200%;
    animation: heroGradientAnim 20s ease-in-out infinite alternate;
    pointer-events: none;
    filter: blur(24px);
    /* Extra blur for the 3D depth feel */
}



@keyframes heroGradientAnim {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 50% 100%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 250, 0.2);
    z-index: 1;
    pointer-events: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}



.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(10, 10, 10, 0.05);
    border: 1px solid rgba(10, 10, 10, 0.1);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-primary);
    animation: pulse 2s ease infinite;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text-primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    animation: fadeIn 1.5s ease-out 0.5s both;
}

.scroll-indicator span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 3px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 1.5s ease infinite;
}

/* ========================================
   Section Header
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    padding: 4px 14px;
    background: rgba(10, 10, 10, 0.06);
    border-radius: 100px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   Statement Sections (Full-width typewriter)
   ======================================== */
.statement-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.statement-section:nth-child(even) {
    background: var(--bg-primary);
}

.statement-content {
    max-width: 900px;
    text-align: center;
}

.statement-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text-primary);
    min-height: 1.3em;
}

/* Typewriter cursor */
.statement-text::after {
    content: '|';
    color: var(--text-primary);
    animation: blink 0.8s step-end infinite;
    font-weight: 300;
    margin-left: 4px;
}

.statement-text.done::after {
    display: none;
}

.statement-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-top: 24px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.statement-sub.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 120px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--text-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(10, 10, 10, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--text-primary);
    color: #fff;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    padding: 80px 0;
    background: var(--bg-dark);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.stat-suffix {
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* ========================================
   Models Section
   ======================================== */
.models-section {
    padding: 120px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.models-showcase {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.model-provider-group {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: var(--transition);
}

.model-provider-group:hover {
    box-shadow: var(--card-shadow);
}

.model-provider-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.model-provider-title img {
    border-radius: 4px;
    flex-shrink: 0;
}

.model-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.model-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    transition: var(--transition);
}

.model-chip:hover {
    border-color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.model-chip-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Inter', monospace;
}

.model-chip-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.model-chip-badge.premium {
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    color: #fff;
}

.model-chip-badge.free {
    background: #10b981;
    color: #fff;
}

@media (max-width: 768px) {
    .model-provider-group {
        padding: 20px;
    }

    .model-chip {
        padding: 8px 12px;
        gap: 8px;
    }

    .model-chip-name {
        font-size: 0.78rem;
    }
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px 32px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.pricing-card.popular {
    border: 2px solid var(--text-primary);
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular:hover {
    transform: scale(1.04) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: #fff;
    padding: 4px 20px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-price {
    margin: 28px 0;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-currency {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 4px;
}

.pricing-features {
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg {
    color: var(--text-primary);
    flex-shrink: 0;
}

.pricing-features li.disabled {
    opacity: 0.4;
}

.pricing-features li.disabled svg {
    color: var(--text-muted);
}

.btn-pricing {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
}

.btn-pricing:hover {
    border-color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
}

.btn-pricing-popular {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

.btn-pricing-popular:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

/* ========================================
   Privacy Section
   ======================================== */
.privacy {
    padding: 120px 0;
    background: var(--bg-primary);
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.privacy-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
}

.privacy-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.privacy-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.privacy-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.privacy-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.about-content {
    max-width: 720px;
}

.about-text .section-tag {
    margin-bottom: 16px;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-highlights {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.highlight {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highlight-number {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.highlight-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: 120px 0;
    background: var(--bg-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 40px;
}

.cta .btn-primary {
    background: #fff;
    color: var(--text-primary);
}

.cta .btn-primary:hover {
    background: #e0e0e0;
    color: var(--text-primary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    padding: 4px;
}

.footer-social a:hover {
    color: #fff;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {

    .features-grid,
    .difference-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .about-highlights {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   Modal Styles
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(255, 255, 255, 0.85);
    /* Glassmorphism base */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: calc(var(--radius) * 1.5);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 56px 48px;
    position: relative;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    /* Inner highlight */
}



.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-primary);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: var(--text-primary);
    color: var(--bg-secondary);
    border-color: var(--text-primary);
}

.modal h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
    padding-right: 40px;
    letter-spacing: -0.02em;
}

.modal-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.modal-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 8px;
}

.modal-body p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 4px;
}

.modal-body strong {
    color: var(--text-primary);
}

/* Modal scrollbar */
.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .modal {
        padding: 32px 24px;
        max-height: 85vh;
    }

    .modal h2 {
        font-size: 1.3rem;
    }
}

/* ========================================
   Auth Form Styles
   ======================================== */
.auth-modal {
    max-width: 440px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    padding: 16px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: calc(var(--radius-sm) * 1.2);
    font-size: 0.95rem;
    font-family: var(--font);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}



.form-group input:focus {
    border-color: rgba(0, 0, 0, 0.3);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04), inset 0 1px 2px rgba(0, 0, 0, 0.01);
    transform: translateY(-1px);
}



.form-group input::placeholder {
    color: var(--text-muted);
}

.btn-auth {
    padding: 16px;
    background: linear-gradient(135deg, #1f2937 0%, #000000 100%);
    color: #ffffff;
    border: none;
    border-radius: calc(var(--radius-sm) * 1.2);
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}



.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}



.btn-auth:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-error {
    color: #dc3545;
    font-size: 0.85rem;
    display: none;
    padding: 10px 14px;
    background: #fff5f5;
    border-radius: var(--radius-xs);
    border: 1px solid #fecaca;
}

.auth-error.show {
    display: block;
}

.auth-switch {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 20px;
}

.auth-link {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-link:hover {
    opacity: 0.7;
}