/* =========================================================================
   ANVIL CO - PREMIUM SAAS BENTO ARCHITECTURE
   ========================================================================= */

:root {
    /* ── Shared Constants ── */
    --font-sans: 'Geist', -apple-system, sans-serif;
    --font-mono: 'Geist Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-smooth: 0.6s var(--ease-out-expo);

    /* ── Light Theme (Default) ── */
    --bg-deep: #FAFAFA;
    --bg-surface: #F0F0F0;
    --bg-elevated: #FFFFFF;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(232, 75, 48, 0.3);
    --lava: #E84B30;
    --lava-rgb: 232, 75, 48;
    --lava-bright: #D43E25;
    --lava-dim: rgba(232, 75, 48, 0.08);
    --text-pure: #0A0A0A;
    --text-muted: #52525B;
    --text-dim: #A1A1AA;
    --frosted: rgba(0, 0, 0, 0.03);
    --frosted-hover: rgba(0, 0, 0, 0.05);
    --navbar-grad: rgba(250, 250, 250, 0.85);
    --navbar-border: rgba(0, 0, 0, 0.04);
    --modal-shadow: 0 40px 80px rgba(0,0,0,0.12), 0 0 0 1px rgba(232,75,48,0.08) inset;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --noise-blend: multiply;
}

[data-theme="dark"] {
    --bg-deep: #000000;
    --bg-surface: #070707;
    --bg-elevated: #0f0f0f;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 85, 0, 0.3);
    --lava: #FF5500;
    --lava-rgb: 255, 85, 0;
    --lava-bright: #FF7733;
    --lava-dim: rgba(255, 85, 0, 0.15);
    --text-pure: #FFFFFF;
    --text-muted: #A1A1AA;
    --text-dim: #52525B;
    --frosted: rgba(255, 255, 255, 0.02);
    --frosted-hover: rgba(255, 255, 255, 0.05);
    --navbar-grad: rgba(0, 0, 0, 0.8);
    --navbar-border: rgba(255, 255, 255, 0.03);
    --modal-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,85,0,0.1) inset;
    --card-shadow: none;
    --noise-blend: overlay;
}

/* ─────────────────────────────────────────────────────────────────
   RESET & FOUNDATION
   ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    background: var(--bg-deep);
    color: var(--text-pure);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    cursor: none; /* Hide default cursor for custom physics */
    scroll-behavior: auto; /* Handled by custom JS scroll */
}

body {
    overflow-x: hidden;
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* CSS Film Grain Overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    mix-blend-mode: var(--noise-blend);
}

/* ─────────────────────────────────────────────────────────────────
   CUSTOM PHYSICS CURSOR
   ───────────────────────────────────────────────────────────────── */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--lava);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid var(--border-hover);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s linear, width 0.3s, height 0.3s, border-color 0.3s;
}
body.hovering .cursor {
    width: 0; height: 0;
}
body.hovering .cursor-follower {
    width: 60px; height: 60px;
    background: rgba(var(--lava-rgb), 0.1);
    border-color: var(--lava);
    backdrop-filter: blur(2px);
}

/* ─────────────────────────────────────────────────────────────────
   TYPOGRAPHY & UTILS
   ───────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.03em; }
.lava-text { color: var(--lava); }
.lava-glow-text {
    color: var(--lava);
    text-shadow: 0 0 40px rgba(var(--lava-rgb), 0.5), 0 0 80px rgba(var(--lava-rgb), 0.3);
}

.container { margin: 0 auto; max-width: 1280px; padding: 0 24px; }
.section-padding { padding: 100px 0; }

/* ─────────────────────────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: 80px; z-index: 100;
    background: linear-gradient(to bottom, var(--navbar-grad), transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--navbar-border);
    display: flex; align-items: center;
}
.nav-inner {
    width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.nav-links { display: none; }
@media(min-width: 768px) {
    .nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
    .nav-links a:hover { color: var(--text-pure); }
}
.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-link-subtle { font-size: 13px; font-family: var(--font-mono); color: var(--text-dim); text-decoration: none; }
.nav-link-subtle:hover { color: var(--lava); }

/* Theme Toggle */
.theme-toggle-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-subtle);
    background: var(--frosted); color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: var(--transition-fast);
}
.theme-toggle-btn:hover { border-color: var(--border-hover); color: var(--text-pure); }
.theme-toggle-btn svg { width: 18px; height: 18px; }

/* ─────────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────────── */
.btn-primary, .btn-primary-large {
    background: var(--lava);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-weight: 600;
    cursor: none;
    text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(var(--lava-rgb), 0.2);
    transition: var(--transition-fast);
}
.btn-primary { height: 40px; padding: 0 20px; font-size: 14px; }
.btn-primary-large { height: 56px; padding: 0 32px; font-size: 16px; }
.btn-primary:hover, .btn-primary-large:hover {
    background: var(--lava-bright);
    box-shadow: 0 0 30px rgba(var(--lava-rgb), 0.4);
    transform: scale(1.02);
}

.btn-ghost-large {
    background: transparent;
    color: var(--text-pure);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-weight: 600; cursor: none;
    height: 56px; padding: 0 32px; font-size: 16px;
    transition: var(--transition-fast);
}
.btn-ghost-large:hover { border-color: var(--border-hover); background: var(--frosted); }

.btn-ghost {
    background: transparent;
    color: var(--text-pure);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-weight: 600; cursor: none;
    height: 40px; padding: 0 20px; font-size: 14px;
    transition: var(--transition-fast);
}
.btn-ghost:hover { border-color: var(--border-hover); background: var(--frosted); }

/* ─────────────────────────────────────────────────────────────────
   HERO SECTION (Asymmetric)
   ───────────────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex; align-items: center;
    padding-top: 80px; overflow: hidden;
}
.hero-spline-container {
    position: absolute;
    top: 0; right: 0; bottom: 0; width: 60%;
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}
.ambient-lava-glow {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(var(--lava-rgb), 0.15) 0%, transparent 70%);
    z-index: 1; pointer-events: none;
}
spline-viewer { width: 100%; height: 100%; z-index: 2; position: relative; }
spline-viewer::part(logo) { display: none !important; opacity: 0; visibility: hidden; }

/* Spline needs a dark container even in light mode */
:root .hero-spline-container { background: radial-gradient(circle at center, rgba(0,0,0,0.03) 0%, transparent 70%); }
[data-theme="dark"] .hero-spline-container { background: none; }

.hero-content {
    position: relative; z-index: 10;
    width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media(min-width: 1024px) {
    .hero-grid { grid-template-columns: 6fr 4fr; } /* Asymmetric text heavy left */
}
.hero-text-col { max-width: 700px; }

.system-status {
    display: inline-flex; align-items: center; gap: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 100px; padding: 6px 16px; margin-bottom: 40px;
    background: var(--frosted-hover); backdrop-filter: blur(4px);
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lava); box-shadow: 0 0 10px var(--lava); animation: pulse 2s infinite; }
.status-text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-muted); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.massive-headline {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95; letter-spacing: -0.04em;
    margin-bottom: 32px;
}
.hero-subheadline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted); line-height: 1.6;
    margin-bottom: 48px; max-width: 560px;
}
.hero-ctas { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-metrics { display: flex; gap: 32px; }
.metric { display: flex; flex-direction: column; }
.metric-val { font-size: 24px; font-weight: 800; color: var(--text-pure); }
.metric-label { font-size: 12px; font-family: var(--font-mono); color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

/* ─────────────────────────────────────────────────────────────────
   BENTO GRID SYSTEM
   ───────────────────────────────────────────────────────────────── */
.section-header { margin-bottom: 80px; max-width: 700px; }
.section-header.center { margin: 0 auto 80px; text-align: center; }
.section-title { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.03em; margin-bottom: 24px; }
.section-desc { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    grid-auto-rows: 320px;
}
@media(min-width: 768px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(3, 1fr); }
    .span-2 { grid-column: span 2; }
    .row-span-2 { grid-row: span 2; }
}

.bento-card {
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    position: relative; overflow: hidden;
    /* transition transform so returning to 0deg is smooth, but we leave it somewhat snappy for mousemove */
    transition: transform 0.2s ease-out, border-color var(--transition-fast);
    transform-style: preserve-3d;
}
.bento-card { box-shadow: var(--card-shadow); }
.bento-card:hover { border-color: var(--border-hover); }

.card-glow::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top left, rgba(var(--lava-rgb), 0.1), transparent 50%);
    pointer-events: none;
}
.card-dark { background: var(--bg-elevated); }

.bento-inner { padding: 40px; height: 100%; display: flex; flex-direction: column; position: relative; z-index: 2; }
.bento-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.bento-icon { font-size: 24px; display: flex; align-items: center; }
.bento-icon svg { width: 24px; height: 24px; stroke: var(--lava); fill: none; stroke-width: 2; }
.bento-inner h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.bento-inner p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

.flex-center { justify-content: center; align-items: center; text-align: center; }
.stat-huge { font-size: 5rem !important; color: var(--lava); line-height: 1; margin-bottom: 8px; text-shadow: 0 0 40px rgba(var(--lava-rgb), 0.4); }
.stat-label { font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem !important; }

/* Bento Abstracts */
.bento-visual { flex: 1; position: relative; margin-top: 32px; min-height: 120px; }
.voice-wave { position: absolute; bottom: 0; width: 100%; height: 2px; background: var(--lava); opacity: 0.2; transform-origin: left; animation: wave 2s ease-in-out infinite alternate; }
.voice-wave.delay-1 { bottom: 12px; animation-delay: 0.2s; opacity: 0.5; }
.voice-wave.delay-2 { bottom: 24px; animation-delay: 0.4s; opacity: 0.8; }
@keyframes wave { 0% { transform: scaleX(0.2); } 100% { transform: scaleX(0.9); } }

.geo-visual { display: flex; align-items: center; justify-content: center; height: 100%; }
.geo-ring { width: 120px; height: 120px; border: 1px dashed var(--border-hover); border-radius: 50%; animation: spin 10s linear infinite; position: absolute; }
.geo-core { width: 40px; height: 40px; background: var(--lava); border-radius: 50%; box-shadow: 0 0 30px var(--lava); }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ─────────────────────────────────────────────────────────────────
   PRICING
   ───────────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1280px; margin: 0 auto; }
@media(min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }

.pricing-card {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 48px; background: var(--bg-surface);
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    transition: transform 0.2s ease-out, border-color var(--transition-fast);
    transform-style: preserve-3d;
    box-shadow: var(--card-shadow);
}
.pricing-card.highlighted { border-color: var(--lava); background: var(--bg-elevated); }
.pricing-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(var(--lava-rgb), 0.08), transparent 50%); pointer-events: none; }
.featured-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--lava); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; padding: 6px 16px; border-radius: 100px; }

.pricing-top { margin-bottom: 40px; }
.pricing-top h4 { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 16px; }
.price { font-size: 3.5rem; font-weight: 900; line-height: 1; letter-spacing: -0.04em; margin-bottom: 16px; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0; }
.pricing-top p { color: var(--text-dim); }

.pricing-features { list-style: none; margin-bottom: 48px; flex: 1; }
.pricing-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 0.95rem; }
.pricing-features li::before { content: '→'; color: var(--lava); font-family: var(--font-mono); }
.w-100 { width: 100%; }

/* ─────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border-subtle); padding: 80px 0; margin-top: 80px; }
.footer-grid { display: flex; flex-direction: column; gap: 40px; justify-content: space-between; align-items: flex-start; }
@media(min-width: 768px) { .footer-grid { flex-direction: row; align-items: center; } }
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 8px; }
.footer-links { display: flex; gap: 24px; font-size: 0.9rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-pure); }

/* ─────────────────────────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────────────────────────── */
/* GSAP handles .reveal-up now — CSS fallback kept for no-JS */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); transition-delay: var(--delay, 0s); }
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* GSAP-driven elements start hidden (GSAP animates them in) */
.hero-section .system-status,
.hero-section .massive-headline,
.hero-section .hero-subheadline,
.hero-section .hero-ctas,
.hero-section .scroll-indicator { opacity: 0; }

/* Lava glow text base for GSAP shimmer */
.lava-glow-text { text-shadow: 0 0 20px rgba(232,75,48,0.3), 0 0 40px rgba(232,75,48,0.15); }

/* ─────────────────────────────────────────────────────────────────
   GLOBAL MODAL SYSTEM
   ───────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-window {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    padding: 40px;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s var(--ease-out-expo), opacity 0.4s ease;
    box-shadow: var(--modal-shadow);
    opacity: 0;
}
.modal-overlay.active .modal-window {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 24px; right: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: none;
    transition: color 0.2s;
    line-height: 1;
}
.modal-close-btn:hover { color: var(--text-pure); }

.modal-header { margin-bottom: 32px; }
.modal-title { font-size: 1.5rem; font-weight: 800; color: var(--text-pure); margin-bottom: 8px; }
.modal-desc { color: var(--text-muted); font-size: 0.95rem; }

/* Modal Form Controls */
.modal-form-group { margin-bottom: 24px; }
.modal-label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 8px; }
.modal-input, .modal-select {
    width: 100%;
    background: var(--frosted);
    border: 1px solid var(--border-subtle);
    color: var(--text-pure);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}
.modal-input:focus, .modal-select:focus {
    border-color: var(--lava); background: var(--frosted-hover);
}
.modal-select { appearance: none; cursor: none; }

/* Toggle Switch */
.toggle-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--frosted); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); margin-bottom: 16px; }
.toggle-info strong { display: block; font-size: 14px; color: var(--text-pure); }
.toggle-info span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.toggle-switch {
    width: 44px; height: 24px; background: var(--frosted-hover); border-radius: 100px; position: relative; cursor: none; transition: background 0.3s;
}
.toggle-switch.active { background: var(--lava); }
.toggle-slider {
    position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-switch.active .toggle-slider { transform: translateX(20px); }

/* Plugin Marketplace Grid */
.plugin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.plugin-card {
    border: 1px solid var(--border-subtle); padding: 20px; border-radius: var(--radius-sm); background: var(--frosted); text-align: center; transition: border-color 0.2s; cursor: none;
}
.plugin-card:hover { border-color: var(--lava); background: var(--lava-dim); }
.plugin-card .icon { font-size: 24px; margin-bottom: 12px; color: var(--lava); }
.plugin-card .name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.plugin-card .status { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Free Dashboard CTA */
.free-cta-section { padding: 0 0 40px; }
.free-cta-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
    padding: 28px 36px;
}
.free-cta-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }
.free-cta-text strong { color: var(--text-pure); }

/* Add-ons Strip */
.addons-strip { padding: 32px 0 16px; text-align: center; }
.addons-inner {
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
    padding: 20px 32px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
    font-size: 0.9rem; color: var(--text-muted);
}
.addons-label { color: var(--text-dim); font-size: 0.85rem; margin-right: 4px; }
.addon-item strong { color: var(--text-pure); font-weight: 600; }
.addon-sep { color: var(--text-dim); }
.addon-sep::after { content: '\00b7'; }
.addons-footnote {
    font-size: 0.75rem; color: var(--text-dim); font-style: italic; margin-top: 12px;
}

@media (max-width: 768px) {
    .free-cta-bar { flex-direction: column; text-align: center; padding: 24px; }
    .addons-inner { flex-direction: column; gap: 8px; }
    .addon-sep { display: none; }
}

/* ─────────────────────────────────────────────────────────────────
   ACCENT THEME SWITCHER — swaps --accent independently of dark/light
   ───────────────────────────────────────────────────────────────── */
:root {
  --accent: #FF5500;
  --accent-rgb: 255, 85, 0;
  --accent-dim: rgba(255, 85, 0, 0.15);
  --accent-hover: rgba(255, 85, 0, 0.3);
}
[data-accent="gold"]     { --accent: #C8A96E; --accent-rgb: 200,169,110; --accent-dim: rgba(200,169,110,0.15); --accent-hover: rgba(200,169,110,0.3); }
[data-accent="electric"] { --accent: #00F5FF; --accent-rgb: 0,245,255;   --accent-dim: rgba(0,245,255,0.15);   --accent-hover: rgba(0,245,255,0.3); }
[data-accent="emerald"]  { --accent: #10B981; --accent-rgb: 16,185,129;  --accent-dim: rgba(16,185,129,0.15);  --accent-hover: rgba(16,185,129,0.3); }
[data-accent="violet"]   { --accent: #8B5CF6; --accent-rgb: 139,92,246;  --accent-dim: rgba(139,92,246,0.15);  --accent-hover: rgba(139,92,246,0.3); }

/* Theme switcher widget */
.theme-switcher { display: flex; align-items: center; gap: 6px; }
.theme-swatch {
  width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.15s, border-color 0.15s;
}
.theme-swatch:hover { transform: scale(1.2); }
.theme-swatch.active { border-color: var(--text-pure); transform: scale(1.1); }
.theme-swatch[data-accent="lava"]     { background: #FF5500; }
.theme-swatch[data-accent="gold"]     { background: #C8A96E; }
.theme-swatch[data-accent="electric"] { background: #00F5FF; }
.theme-swatch[data-accent="emerald"]  { background: #10B981; }
.theme-swatch[data-accent="violet"]   { background: #8B5CF6; }

/* New page-specific utility classes using --accent */
.accent-text  { color: var(--accent); }
.accent-bg    { background: var(--accent); }
.accent-border { border-color: var(--accent); }
.accent-glow  { box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3); }

/* Buttons using accent */
.btn-accent {
  background: var(--accent); color: #000; font-weight: 700;
  padding: 14px 28px; border-radius: var(--radius-md); border: none;
  font-size: 15px; cursor: pointer; display: inline-flex; align-items: center;
  gap: 8px; text-decoration: none; transition: var(--transition-fast);
  font-family: var(--font-sans);
}
.btn-accent:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--text-muted); font-weight: 500;
  padding: 14px 24px; border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle); font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  transition: var(--transition-fast); font-family: var(--font-sans);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* UGC video slot */
.ugc-video-slot {
  aspect-ratio: 9/16; max-width: 320px; border-radius: 20px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  overflow: hidden; position: relative;
}
.ugc-video-slot video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* ── UGC Carousel ── */
.ugc-carousel-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.9s ease;
}
.ugc-carousel-img.active { opacity: 1; }
.ugc-video-slot .video-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: var(--text-dim); font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.ugc-caption {
  position: absolute; bottom: 16px; left: 12px; right: 12px;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-weight: 700; font-size: 13px; line-height: 1.4;
}
