/**
 * Zlvox - Global Stylesheet
 * Architecture: Dark Neo-Brutalist + Glassmorphism (Premium Industry Touch)
 * Aesthetic: High contrast, thick borders, solid vivid shadows, tactile press effects.
 * Performance: Hardware-accelerated animations (opacity/transform only).
 */

:root {
    /* Color Palette - Gumroad / SV Premium Dark */
    --bg-dark: #0a0a0f;
    /* Warm near-black with subtle blue undertone */
    --surface-dark: #111118;
    /* Elevated surface with blue tint */
    --surface-glass: rgba(17, 17, 24, 0.75);
    --border-color: #1e1e2e;
    /* Soft muted border */
    --border-loud: #e0e0e6;
    /* Slightly off-white — less harsh */
    --text-primary: #f8fafc;
    --text-muted: #a1a1aa;

    /* Vivid Accents */
    --accent-yellow: #ccff00;
    /* Neon Yellow */
    --accent-purple: #b026ff;
    /* Neon Purple */

    /* Typography */
    /* Sora font prioritized for premium geometric look */
    --font-sans: 'Sora', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

    /* Shared values */
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 100px;

    /* Clean modern shadows */
    --shadow-solid-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-solid-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-solid-lg: 0 8px 32px rgba(120, 40, 200, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   ULTRA-PREMIUM LIGHT MODE — Professional Warm-White Palette
   Background: Clean linen white with sophisticated warm undertone
   Feel: Linear / Stripe / Notion premium light aesthetic
   ═══════════════════════════════════════════════════════════════════ */
:root[data-theme="light"] {
    /* Ultra-professional warm backgrounds */
    --bg-dark:       #f7f6f3;          /* Warm linen white — not cold/sterile */
    --surface-dark:  #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.92);

    /* Borders */
    --border-color:  #e4e2dc;
    --border-loud:   #1a1a2e;          /* Deep navy-ink for neo-brutalist borders */

    /* Text */
    --text-primary:  #111118;          /* Near-black with slight warmth */
    --text-muted:    #6b6b80;

    /* Refined + subtle shadows */
    --shadow-solid-sm: 0 2px 10px rgba(0, 0, 0, 0.07);
    --shadow-solid-md: 0 4px 20px rgba(0, 0, 0, 0.10);
    --shadow-solid-lg: 0 8px 36px rgba(100, 30, 180, 0.08);

    /* Accents stay vivid but adjusted for light */
    --accent-yellow: #b8e600;          /* Slightly richer lime on white */
    --accent-purple: #9333ea;          /* Deep purple — reads well on white */
}

/* ── Premium Light Mode Body Background ──────────────────────────── */
html[data-theme="light"] body {
    background-color: var(--bg-dark);
    /* Subtle warm gradient — whisper of depth, not flat */
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(147, 51, 234, 0.04), transparent),
        radial-gradient(ellipse 50% 40% at 85% 40%, rgba(59, 130, 246, 0.03), transparent),
        radial-gradient(ellipse 60% 50% at 15% 70%, rgba(147, 51, 234, 0.025), transparent);
}

/* Grain stays, but slightly stronger for premium texture on white */
html[data-theme="light"] body::before {
    opacity: 0.025;
}

/* ── Light Mode Nav Container Fix — REMOVED ──────────────────────── */
/* Header CSS is now fully managed by header.php inline <style>.
   This rule was removed to prevent conflict with header.php v4.0 */

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    overflow-x: clip; /* 'clip' instead of 'hidden' — doesn't break stacking context */
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: clip; /* 'clip' instead of 'hidden' — doesn't break dropdown stacking */
    /* Premium SV-style ambient glow background */
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 80, 255, 0.12), transparent),
        radial-gradient(ellipse 50% 40% at 80% 50%, rgba(100, 180, 255, 0.05), transparent),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(176, 38, 255, 0.06), transparent);
    background-attachment: fixed;
    position: relative;
}

/* Subtle film-grain texture overlay — Gumroad/Stripe style */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Ensure main content stacks above grain */
body>* {
    position: relative;
    z-index: 1;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.text-accent-yellow {
    color: var(--accent-yellow);
}

.text-accent-purple {
    color: var(--accent-purple);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =============================================
   HEADER — All header CSS is in header.php
   This section intentionally left minimal.
   header.php <style> block is the source of
   truth for all navbar/header styling.
   ============================================= */
/* nav-hidden DISABLED — navbar always stays visible */
.site-header.nav-hidden {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* .nav-container styles are in header.php — removed from here to prevent conflicts */

/* ── Logo, Nav Links, Mega Menu, Hamburger ──
   All these styles are now managed exclusively
   in header.php inline <style> block (v4.0).
   Removed from style.css to prevent conflicts.
   ─────────────────────────────────────────── */

/* nav-btn-outline kept for index.php 'View All Utilities' link inside content areas */
.nav-btn-outline {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--border-loud);
    border-radius: var(--radius-pill);
    box-shadow: 2px 2px 0 var(--border-loud);
    transition: all 0.15s ease !important;
}

.nav-btn-outline:hover {
    transform: translateY(-4px) translateX(-4px);
    box-shadow: 6px 6px 0 var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--bg-dark);
    background: var(--accent-yellow);
}

.nav-btn-outline:active {
    transform: translateY(2px) translateX(2px);
    box-shadow: 0 0 0 transparent;
}



/* -------------------------------------
   Hero Section
   ------------------------------------- */
.hero-section {
    padding: 8rem 1.5rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Premium centered accent glow behind hero content */
.hero-section::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 38, 255, 0.15), rgba(120, 80, 255, 0.05) 50%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}

/* ── Light Mode Hero ── */
html[data-theme="light"] .hero-section::before {
    background: radial-gradient(circle, rgba(147, 51, 234, 0.06), rgba(100, 60, 200, 0.02) 50%, transparent 70%);
}

.hero-container {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-pill-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--surface-dark);
    border: 2px solid var(--border-loud);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-solid-sm);
    color: var(--accent-yellow);
}

html[data-theme="light"] .hero-pill-badge {
    background: #ffffff;
    border-color: #1a1a2e;
    color: var(--accent-purple);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hero-headline {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 6px 6px 0 var(--accent-purple);
    line-height: 1;
}

/* Light mode: softer text-shadow */
html[data-theme="light"] .hero-headline {
    text-shadow: 4px 4px 0 rgba(147, 51, 234, 0.25);
}

.hero-subheadline {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* -------------------------------------
   Standardized Tool Headers
   ------------------------------------- */
.tool-header-section {
    padding: 10rem 1.5rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-glitch-text {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -6px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.hero-glitch-text span {
    display: block;
}

.hero-glitch-text .h-outline {
    color: rgba(255, 255, 255, 0.15);
    -webkit-text-stroke: 2.5px var(--text-primary);
    text-shadow: 0 0 40px rgba(176, 38, 255, 0.2);
}

html[data-theme="light"] .hero-glitch-text .h-outline {
    color: transparent;
    -webkit-text-stroke: 2.5px rgba(17, 17, 24, 0.35);
    text-shadow: none;
}

/* Mobile: make outline text fully readable */
@media (max-width: 768px) {
    .hero-glitch-text {
        font-size: clamp(2.2rem, 9vw, 4rem);
        letter-spacing: -3px;
        line-height: 0.85;
    }

    .hero-glitch-text .h-outline {
        color: rgba(255, 255, 255, 0.3);
        -webkit-text-stroke: 2px var(--text-primary);
    }

    .tool-header-section {
        padding: 8rem 1rem 4rem;
    }
}

@media (max-width: 480px) {
    .hero-glitch-text {
        font-size: clamp(1.8rem, 8vw, 3rem);
        letter-spacing: -2px;
    }

    .hero-glitch-text .h-outline {
        color: rgba(255, 255, 255, 0.4);
        -webkit-text-stroke: 1.5px var(--text-primary);
    }

    .tool-header-section {
        padding: 7rem 0.8rem 3rem;
    }
}

.header-deco {
    position: absolute;
    border: 4px solid var(--text-primary);
    opacity: 0.1;
    z-index: 0;
}

.deco-1 {
    top: 15%;
    right: 5%;
    width: 100px;
    height: 100px;
    transform: rotate(45deg);
}

.deco-2 {
    bottom: 10%;
    left: 10%;
    width: 80px;
    height: 80px;
    transform: rotate(-15deg);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tactical Buttons (Gumroad/Neo-Brutalist Feel) */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    border: 3px solid var(--border-loud);
    border-radius: var(--radius-lg);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    box-shadow: var(--shadow-solid-lg);
}

.btn-primary:hover {
    transform: translateY(-4px) translateX(-4px);
    box-shadow: 12px 12px 0px var(--accent-purple);
}

.btn-primary:active {
    transform: translateY(4px) translateX(4px);
    box-shadow: 0px 0px 0px transparent;
}

.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-primary);
    box-shadow: var(--shadow-solid-md);
}

.btn-secondary:hover {
    transform: translateY(-2px) translateX(-2px);
    box-shadow: 6px 6px 0px var(--text-primary);
}

.btn-secondary:active {
    transform: translateY(4px) translateX(4px);
    box-shadow: 0px 0px 0px transparent;
}

html[data-theme="light"] .btn-secondary {
    background: #ffffff;
    border-color: #1a1a2e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
html[data-theme="light"] .btn-secondary:hover {
    box-shadow: 5px 5px 0 #1a1a2e;
}

/* Trusted By Banner */
.trusted-banner {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px dashed var(--border-color);
}

.trusted-text {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(100%);
}

.trusted-logos span {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -1px;
}

/* -------------------------------------
   Tools Section
   ------------------------------------- */
.tools-section {
    padding: 8rem 0;
    background: var(--surface-dark);
    border-top: 1px solid var(--border-color);
}

/* Light mode tools section */
html[data-theme="light"] .tools-section {
    background: #ffffff;
    border-top: 1px solid #e4e2dc;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    display: inline-block;
    line-height: 1;
    text-shadow: 3px 3px 0 var(--accent-purple);
}

html[data-theme="light"] .section-title {
    text-shadow: 2px 2px 0 rgba(147, 51, 234, 0.2);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 3rem;
}

/* Cards - Premium Neo-Brutalist + Glass */
.tool-card {
    position: relative;
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 3px solid var(--border-loud);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-solid-lg);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
    will-change: transform, box-shadow;
}

.tool-card:hover {
    transform: translateY(-8px) translateX(-4px);
    box-shadow: 12px 12px 0 var(--accent-yellow);
    border-color: var(--accent-yellow);
}

/* Light mode cards */
html[data-theme="light"] .tool-card {
    background: #ffffff;
    border: 2px solid #d6d4ce;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}
html[data-theme="light"] .tool-card:hover {
    box-shadow: 8px 8px 0 var(--accent-yellow);
    border-color: var(--accent-yellow);
}

/* New Premium Card Styling from UI Reference */
.tool-card-premium:hover {
    transform: translateY(-6px) translateX(-4px);
    box-shadow: 10px 10px 0 var(--accent-purple) !important;
}

.tool-card-premium a:hover {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -16px;
    right: 24px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    border: 3px solid var(--border-loud);
    border-radius: var(--radius-pill);
    z-index: 10;
    box-shadow: var(--shadow-solid-sm);
}

.badge-hot {
    background: var(--accent-purple);
    color: var(--text-primary);
}

.badge-free {
    background: var(--accent-yellow);
    color: var(--bg-dark);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-dark);
    border: 3px solid var(--border-loud);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent-yellow);
    box-shadow: var(--shadow-solid-sm);
}

.tool-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html[data-theme="light"] .card-icon {
    background: #f0eeed;
    border-color: #d6d4ce;
}

.card-content {
    flex-grow: 1;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.card-link {
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform, opacity;
    background: var(--accent-purple);
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--border-loud);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-solid-sm);
    align-self: flex-start;
}

.tool-card:hover .card-link {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    transform: translateX(4px);
}

html[data-theme="light"] .card-link {
    color: #ffffff;
    border-color: #1a1a2e;
}
html[data-theme="light"] .tool-card:hover .card-link {
    color: #111118;
}

/* -------------------------------------
   Brand Philosophy Bento Grid 
   ------------------------------------- */
.philosophy-section {
    padding: 6rem 1.5rem;
    position: relative;
    background: linear-gradient(to bottom, var(--bg-dark), rgba(17, 17, 24, 0.4));
}

html[data-theme="light"] .philosophy-section {
    background: linear-gradient(to bottom, #f7f6f3, rgba(240, 238, 234, 0.6));
}

.badge-subtle {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

html[data-theme="light"] .badge-subtle {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.align-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.align-center .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    background: var(--surface-dark);
    border: 2px solid var(--border-loud);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Light mode bento cards */
html[data-theme="light"] .bento-card {
    background: #ffffff;
    border: 2px solid #d6d4ce;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
html[data-theme="light"] .bento-card:hover {
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}

.bg-speed:hover {
    box-shadow: 0 10px 40px rgba(204, 255, 0, 0.1);
}

.bg-privacy:hover {
    box-shadow: 0 10px 40px rgba(176, 38, 255, 0.1);
}

.bg-aesthetic:hover {
    box-shadow: 0 10px 40px rgba(255, 68, 68, 0.1);
}

.bento-large {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

html[data-theme="light"] .bento-icon {
    background: #f0eeed;
    border: 2px solid #d6d4ce;
}

.bento-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.bento-card p strong {
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-tall,
    .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* -------------------------------------
   Metrics Ecosystem Section
   ------------------------------------- */
.metrics-section {
    padding: 4rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--surface-dark);
}

html[data-theme="light"] .metrics-section {
    background: #f0eeed;
    border-top: 1px solid #e4e2dc;
    border-bottom: 1px solid #e4e2dc;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--text-primary);
}

.metric-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1.5rem;
    }
}

/* -------------------------------------
   Final CTA Section
   ------------------------------------- */
.final-cta-section {
    padding: 6rem 1.5rem;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.08), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

html[data-theme="light"] .final-cta-section::before {
    background: radial-gradient(circle, rgba(147, 51, 234, 0.05), transparent 70%);
}

.cta-box {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.9), rgba(10, 10, 15, 0.95));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 4rem 2.5rem;
    text-align: center;
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(204, 255, 0, 0.1) inset, 0 20px 40px rgba(204, 255, 0, 0.05);
}

html[data-theme="light"] .cta-box {
    background: linear-gradient(145deg, #ffffff, #faf9f7);
    border: 1px solid #d6d4ce;
    border-top: 2px solid rgba(147, 51, 234, 0.2);
    box-shadow: 0 8px 36px rgba(0,0,0,0.08), 0 0 0 1px rgba(147, 51, 234, 0.06) inset;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--text-primary);
}

.cta-box p {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-box .cta-actions {
    display: flex;
    justify-content: center;
}

.btn-massive {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: var(--radius-pill);
    background: var(--accent-yellow);
    color: var(--bg-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(204, 255, 0, 0.3);
}

.btn-massive:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 255, 0, 0.4);
    background: #e6ff00;
    /* Slightly brighter yellow on hover */
}

/* =============================================
   FOOTER — 4-column Gumroad-style layout
   ============================================= */
.main-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-dark);
    padding: 5rem 0 0;
}

html[data-theme="light"] .main-footer {
    background: #f0eeed;
    border-top: 1px solid #d6d4ce;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Top columns ─────────────────────────── */
.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

/* ── Brand col ───────────────────────────── */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.footer-logo-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transform: rotate(-3deg);
}

.footer-logo-icon svg {
    position: relative;
    z-index: 2;
    display: block;
}

.footer-logo-shadow {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: var(--accent-purple);
    border-radius: 5px;
    z-index: 1;
}

.footer-logo-text {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.footer-logo-text .logo-accent {
    color: var(--accent-purple);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 500;
}

/* Status pill */
.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: #00e87a;
    text-decoration: none;
    width: fit-content;
    transition: background 0.18s ease;
    letter-spacing: 0.02em;
}

.footer-status-pill:hover {
    background: rgba(0, 255, 136, 0.14);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00e87a;
    display: inline-block;
    flex-shrink: 0;
    animation: pulseDot 2.5s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 232, 122, 0.5);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(0, 232, 122, 0);
    }
}

/* Newsletter */
.footer-newsletter {
    margin-top: 0.5rem;
}

.newsletter-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.newsletter-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    max-width: 300px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form:focus-within {
    border-color: rgba(176, 38, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(176, 38, 255, 0.1);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.65rem 0.9rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    outline: none;
    min-width: 0;
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.newsletter-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-purple);
    border: none;
    cursor: pointer;
    color: #fff;
    transition: background 0.18s ease;
    border-radius: 0;
}

.newsletter-btn:hover {
    background: #9318e0;
}

.newsletter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-msg {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

.newsletter-msg.success {
    color: #00e87a;
}

.newsletter-msg.error {
    color: #ff4d6d;
}

/* ── Link columns ────────────────────────── */
.footer-links-col .footer-col-heading {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-link-list li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-link-list li a:hover {
    color: var(--text-primary);
}

/* ── Social links ────────────────────────── */
.footer-social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-social-link:hover {
    color: var(--text-primary);
}

/* ── Divider ──────────────────────────────── */
.footer-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

/* ── Bottom bar ───────────────────────────── */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
}

.footer-copyright {
    font-size: 0.825rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-legal-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-legal-nav a {
    font-size: 0.825rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s ease;
}

.footer-legal-nav a:hover {
    color: var(--text-primary);
}

.footer-legal-nav span {
    color: var(--border-color);
    font-size: 0.9rem;
}


/* =============================================
   RESPONSIVE — Mobile-first breakpoints
   ============================================= */

/* Tablet/Mobile: collapse desktop nav, show hamburger + mobile drawer */
@media (max-width: 900px) {
    .main-nav {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    .nav-cta-btn {
        display: none !important;
    }

    .nav-container {
        overflow: visible;
        gap: 0.5rem;
    }

    /* Footer: 2 columns on tablet */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .main-footer {
        padding: 3rem 0 0;
    }

    .footer-brand-col {
        gap: 0.8rem;
    }

    .footer-tagline {
        font-size: 0.85rem;
    }

    .footer-col-heading {
        margin-bottom: 1rem !important;
    }

    .footer-link-list li a,
    .footer-social-link {
        font-size: 0.85rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1.2rem 0;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }

    .footer-legal-nav a {
        font-size: 0.75rem;
    }
}

/* Mobile (max 640px) */
@media (max-width: 640px) {

    /* Footer: full-width single column */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .main-footer {
        padding: 2.5rem 0 0;
    }

    .footer-inner {
        padding: 0 1.2rem;
    }

    .footer-brand-col {
        gap: 0.75rem;
    }

    .footer-logo-text {
        font-size: 1rem;
    }

    .footer-tagline {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .footer-status-pill {
        font-size: 0.72rem;
        padding: 0.3rem 0.7rem;
    }

    .newsletter-label {
        font-size: 0.75rem;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .footer-links-col .footer-col-heading {
        font-size: 0.7rem;
        margin-bottom: 0.9rem;
    }

    .footer-link-list {
        gap: 0.5rem;
    }

    .footer-link-list li a {
        font-size: 0.82rem;
    }

    .footer-social-list {
        gap: 0.5rem;
    }

    .footer-social-link {
        font-size: 0.82rem;
    }

    .footer-social-link svg {
        width: 16px;
        height: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0 1.5rem;
    }

    .footer-copyright {
        font-size: 0.72rem;
    }

    .footer-legal-nav {
        gap: 0.5rem;
    }

    .footer-legal-nav a {
        font-size: 0.72rem;
    }

    .footer-legal-nav span {
        font-size: 0.6rem;
    }

    /* Hero & sections */
    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .hero-section {
        padding: 5rem 1rem 3rem;
        min-height: auto;
    }

    .hero-headline {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        margin-bottom: 1rem;
    }

    .hero-subheadline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-pill-badge {
        margin-bottom: 1.5rem;
    }

    .tools-section {
        padding: 4rem 0;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .tool-card {
        padding: 1.5rem !important;
    }

    .tool-card-premium {
        padding: 1.5rem !important;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
}