/* ========================================
   Skymil Automations — Landing Page CSS
   Full Scroll-Driven Automation System
   ======================================== */

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

:root {
    --bg: #050a18;
    --bg2: #0b1220;
    --card: #0f172a;
    --card-border: #1e293b;
    --text: #e5e7eb;
    --text-dim: #94a3b8;
    --accent: #22c55e;
    --accent-glow: rgba(34, 197, 94, 0.15);
    --amber: #FBBF24;
    --amber-glow: rgba(251, 191, 36, 0.2);
    --danger: #ef4444;
    --cyan: #06b6d4;
    --indigo: #818CF8;
    --radius: 16px;
    --radius-lg: 22px;
    --pill: 999px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --max-w: 1180px;
    --nav-h: 64px;
    --ambient-glow: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Global ambient background glow driven by JS */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--ambient-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transition: background 0.8s;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    z-index: 200;
    transition: width 0.05s linear;
    border-radius: 0 2px 2px 0;
}

/* ─── BACKGROUND EFFECTS ─── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(34, 197, 94, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: -2;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

.bg-orb-1 {
    width: 700px;
    height: 700px;
    background: rgba(34, 197, 94, 0.06);
    top: -300px;
    right: -250px;
    animation: orbDrift 25s ease-in-out infinite;
}

.bg-orb-2 {
    width: 550px;
    height: 550px;
    background: rgba(6, 182, 212, 0.04);
    bottom: -200px;
    left: -200px;
    animation: orbDrift 30s ease-in-out infinite reverse;
}

@keyframes orbDrift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-25px, 20px) scale(0.97);
    }
}

/* ═══════════════════════════
   FLOATING PARTICLES
   ═══════════════════════════ */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    --particle-color: var(--accent);
}

.particle {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    background: var(--particle-color);
    opacity: 0;
    will-change: transform;
    animation: particleRise linear infinite;
    transition: background 1s;
}

@keyframes particleRise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    5% {
        opacity: 0.2;
    }

    50% {
        transform: translateY(-50vh) translateX(20px);
        opacity: 0.15;
    }

    95% {
        opacity: 0.05;
    }

    100% {
        transform: translateY(-110vh) translateX(-10px);
        opacity: 0;
    }
}

/* ═══════════════════════════
   AUTOMATION HUD (right side)
   ═══════════════════════════ */
.auto-hud {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px;
    min-width: 150px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
}

.auto-hud.visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.hud-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 6px;
}

.hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    font-size: 11px;
    opacity: 0.4;
    transition: opacity 0.3s;
    border-left: 2px solid transparent;
    padding-left: 8px;
    margin-left: -2px;
}

.hud-item.active {
    opacity: 1;
    border-left-color: var(--accent);
}

.hud-icon {
    font-size: 13px;
}

.hud-label {
    flex: 1;
    color: var(--text-dim);
    font-weight: 600;
}

.hud-val {
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    transition: color 0.3s;
}

.hud-item.active .hud-val {
    color: var(--accent);
}

/* ═══════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════ */
.toast-stack {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    padding: 12px 18px;
    min-width: 240px;
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s;
    opacity: 0;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-body {
    display: flex;
    flex-direction: column;
}

.toast-body strong {
    font-size: 13px;
    font-weight: 800;
}

.toast-body span {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 1px;
}

/* ═══════════════════════════════════
   SECTION AUTOMATION FX (overlays)
   ═══════════════════════════════════ */
.auto-section {
    position: relative;
    overflow: hidden;
}

.fx-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.auto-section.fx-active>.fx-overlay {
    opacity: 1;
}

/* ─── FX 1: LIGHTS (features) — warm amber flood ─── */
.fx-lights {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(251, 191, 36, 0.10) 0%, transparent 50%),
        linear-gradient(180deg, rgba(251, 191, 36, 0.04) 0%, transparent 30%, transparent 70%, rgba(251, 191, 36, 0.04) 100%);
}

.features.fx-active {
    box-shadow: inset 0 0 200px rgba(251, 191, 36, 0.06);
    transition: box-shadow 0.3s;
}

.features.fx-active .section-badge {
    background: rgba(251, 191, 36, 0.15);
    color: var(--amber);
    border-color: rgba(251, 191, 36, 0.3);
    transition: all 0.3s;
}

.features.fx-active .section-title {
    text-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
    transition: text-shadow 0.3s;
}

.features.fx-active .feature-card {
    border-color: rgba(251, 191, 36, 0.2);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.04);
}

.features.fx-active .feature-card::before {
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

/* ─── FX 2: SECURITY (how-it-works) — green scan ─── */
.fx-security {
    background:
        linear-gradient(180deg, rgba(34, 197, 94, 0.03) 0%, transparent 20%, transparent 80%, rgba(34, 197, 94, 0.03) 100%);
}

.fx-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
    box-shadow: 0 0 20px var(--accent), 0 0 60px rgba(34, 197, 94, 0.3);
    top: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.how-it-works.fx-active .fx-scan-line {
    opacity: 1;
    animation: scanDown 3.5s ease-in-out infinite;
}

@keyframes scanDown {
    0% {
        top: 0%;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0%;
    }
}

.how-it-works.fx-active {
    box-shadow: inset 0 0 150px rgba(34, 197, 94, 0.03);
    transition: box-shadow 0.3s;
}

.how-it-works.fx-active .section-badge {
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.3);
    transition: box-shadow 0.3s;
}

.how-it-works.fx-active .step-num {
    animation: stepGlow 2s ease-in-out infinite;
}

@keyframes stepGlow {

    0%,
    100% {
        box-shadow: 0 0 24px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 48px rgba(34, 197, 94, 0.4);
    }
}

.how-it-works.fx-active .steps>.step:nth-child(1) .step-num {
    animation-delay: 0s;
}

.how-it-works.fx-active .steps>.step:nth-child(3) .step-num {
    animation-delay: 0.4s;
}

.how-it-works.fx-active .steps>.step:nth-child(5) .step-num {
    animation-delay: 0.8s;
}

/* ─── FX 3: ENERGY (pricing) — electric cyan ─── */
.fx-energy {
    background:
        repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 119px,
            rgba(6, 182, 212, 0.03) 119px,
            rgba(6, 182, 212, 0.03) 120px);
}

.fx-energy::before,
.fx-energy::after {
    content: "";
    position: absolute;
    top: 0;
    width: 1px;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(6, 182, 212, 0.6), transparent);
    filter: blur(1px);
    opacity: 0;
    transition: opacity 0.3s;
}

.fx-energy::before {
    left: 25%;
}

.fx-energy::after {
    left: 75%;
}

.pricing.fx-active .fx-energy::before {
    opacity: 1;
    animation: energyStream 4s linear infinite;
}

.pricing.fx-active .fx-energy::after {
    opacity: 1;
    animation: energyStream 4s linear infinite 2s;
}

@keyframes energyStream {
    0% {
        top: -40%;
    }

    100% {
        top: 100%;
    }
}

.pricing.fx-active {
    box-shadow: inset 0 0 150px rgba(6, 182, 212, 0.03);
    transition: box-shadow 0.3s;
}

.pricing.fx-active .section-badge {
    background: rgba(6, 182, 212, 0.12);
    color: var(--cyan);
    border-color: rgba(6, 182, 212, 0.3);
    transition: all 0.3s;
}

.pricing.fx-active .price-card.popular {
    border-color: var(--cyan);
    box-shadow: 0 0 60px rgba(6, 182, 212, 0.2), 0 0 120px rgba(6, 182, 212, 0.08);
}

.pricing.fx-active .price-card {
    border-color: rgba(6, 182, 212, 0.15);
}

/* ─── FX 4: NIGHT SCENE (FAQ) — starfield ─── */
.fx-night {
    background: radial-gradient(ellipse at top center, rgba(10, 15, 35, 0) 0%, rgba(3, 5, 15, 0.5) 100%);
}

.fx-night::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 15%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 25% 35%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 40% 10%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 55% 25%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 70% 45%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 85% 15%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 15% 60%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 50% 70%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 65% 55%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 80% 75%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 95% 40%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 5% 90%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 20% 95%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 45% 88%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 60% 78%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 75% 92%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 90% 60%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 35% 5%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 88% 88%, rgba(255, 255, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 1s;
}

.faq.fx-active .fx-night::after {
    opacity: 1;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.faq.fx-active {
    box-shadow: inset 0 0 200px rgba(99, 102, 241, 0.03);
    transition: box-shadow 0.3s;
}

.faq.fx-active .section-badge {
    background: rgba(99, 102, 241, 0.12);
    color: var(--indigo);
    border-color: rgba(99, 102, 241, 0.3);
    transition: all 0.3s;
}

.faq.fx-active .faq-item {
    border-color: rgba(99, 102, 241, 0.15);
}

.faq.fx-active .faq-item[open] {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.06);
}

/* ─── FX 5: AURORA (CTA) — multi-color gradient ─── */
.fx-aurora {
    background: linear-gradient(135deg,
            rgba(34, 197, 94, 0.08),
            rgba(6, 182, 212, 0.08),
            rgba(251, 191, 36, 0.06),
            rgba(99, 102, 241, 0.06),
            rgba(34, 197, 94, 0.08));
    background-size: 400% 400%;
}

.cta-section.fx-active .fx-aurora {
    animation: auroraShift 8s ease infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cta-section.fx-active .cta-card {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 80px rgba(34, 197, 94, 0.08), 0 0 40px rgba(6, 182, 212, 0.06);
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--pill);
    padding: 10px 22px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-glow {
    box-shadow: 0 0 20px var(--accent-glow), 0 0 60px rgba(34, 197, 94, 0.08);
}

.btn-outline {
    border-color: var(--card-border);
    color: var(--text);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-ghost {
    color: var(--text-dim);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--text);
}

.btn-lg {
    padding: 14px 30px;
    font-size: 15px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ─── NAV ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(5, 10, 24, 0.6);
    border-bottom: 1px solid transparent;
    transition: all 0.35s;
}

.nav.scrolled {
    background: rgba(11, 18, 32, 0.92);
    border-bottom-color: var(--card-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 900;
}


/* ── Skymil Automations brand lockup ── */
:root { --brand-blue: #3b74ff; }
[data-theme="light"] { --brand-blue: #1a56f0; }
.brand-icon {
    height: 32px;
    width: auto;
    flex-shrink: 0;
    color: var(--text);
}
.brand-icon .brand-trace { stroke: var(--brand-blue); }
.brand-text {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
/* letter-spacing adds trailing space after the last letter; offset it so the word centres */
.brand-name {
    font-family: "Michroma", var(--font);
    font-weight: 400;
    letter-spacing: 1.5px;
    margin-right: -1.5px;
}
.brand-mil { color: var(--brand-blue); }
/* "— AUTOMATIONS —" under SKYMIL, as in the logo */
.brand-sub {
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    font-family: "Montserrat", var(--font);
    font-size: 0.42em;
    font-weight: 500;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--text-dim);
}
.brand-sub::before,
.brand-sub::after {
    content: "";
    flex: 1;
    min-width: 8px;
    height: 1px;
    background: var(--brand-blue);
}

.brand-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.25s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.8;
    margin-right: 6px;
}

.nav-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: dotPulse 2s ease-in-out infinite;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ─── HERO ─── */
.hero {
    position: relative;
    padding: 140px 0 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: var(--pill);
    background: var(--accent-glow);
    color: var(--accent);
    margin-bottom: 24px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hero-title {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 34px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    margin-bottom: 52px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 44px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 600;
    margin-top: 2px;
}

/* ─── HERO DASHBOARD FLOAT ─── */
.hero-visual {
    display: flex;
    justify-content: center;
}

.dash-float {
    width: 320px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.35),
        0 0 80px var(--accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: dashBob 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes dashBob {

    0%,
    100% {
        transform: translateY(0) rotate(0.5deg);
    }

    50% {
        transform: translateY(-14px) rotate(-0.5deg);
    }
}

.dash-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--card-border);
}

.dash-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: dotPulse 2s ease-in-out infinite;
}

.dash-title {
    font-size: 13px;
    font-weight: 800;
    flex: 1;
}

.dash-time {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.dash-devices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.dash-dev {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 10px 12px;
    transition: border-color 0.3s;
}

.dd-icon {
    font-size: 16px;
}

.dd-name {
    flex: 1;
    font-size: 12px;
    font-weight: 700;
}

.dd-toggle {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    position: relative;
    transition: background 0.4s;
    cursor: default;
}

.dd-toggle::after {
    content: "";
    position: absolute;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dd-toggle.on {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.dd-toggle.on::after {
    left: 19px;
}

.dd-toggle.off {
    background: var(--card-border);
}

.dd-toggle.off::after {
    left: 3px;
}

.dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 50px;
    padding: 8px 4px 0;
    border-top: 1px solid var(--card-border);
}

.dc-bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(to top, var(--accent), var(--cyan));
    border-radius: 4px 4px 0 0;
    opacity: 0.6;
    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── SCROLL HINT ─── */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.5s;
    z-index: 2;
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    animation: arrowBounce 1.6s ease-in-out infinite;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 1;
    }

    50% {
        transform: rotate(45deg) translate(4px, 4px);
        opacity: 0.4;
    }
}

/* ─── SECTION HEADERS ─── */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 16px;
    border-radius: var(--pill);
    background: var(--accent-glow);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    transition: all 0.4s;
}

.section-title {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
    transition: text-shadow 0.4s;
}

.section-desc {
    font-size: 16px;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto;
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.reveal:nth-child(1) {
    transition-delay: 0s;
}

.feature-card.reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.feature-card.reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.feature-card.reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.feature-card.reveal:nth-child(5) {
    transition-delay: 0.32s;
}

.feature-card.reveal:nth-child(6) {
    transition-delay: 0.40s;
}

.feature-card.reveal:nth-child(7) {
    transition-delay: 0.48s;
}

.feature-card.reveal:nth-child(8) {
    transition-delay: 0.56s;
}

.feature-card.reveal:nth-child(9) {
    transition-delay: 0.64s;
}

.price-card.reveal:nth-child(1) {
    transition-delay: 0s;
}

.price-card.reveal:nth-child(2) {
    transition-delay: 0.12s;
}

.price-card.reveal:nth-child(3) {
    transition-delay: 0.24s;
}

/* ═══════════════════════════════
   FEATURES
   ═══════════════════════════════ */
.features {
    padding: 120px 0;
    position: relative;
    z-index: 2;
    transition: box-shadow 0.3s;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card.revealed::before {
    width: 100%;
}

.feature-card:hover {
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ═══════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════ */
.how-it-works {
    padding: 120px 0;
    background: rgba(11, 18, 32, 0.8);
    position: relative;
    z-index: 2;
    transition: box-shadow 0.3s;
}

.how-it-works::before,
.how-it-works::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
    z-index: 1;
}

.how-it-works::before {
    top: 0;
}

.how-it-works::after {
    bottom: 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 280px;
    padding: 0 20px;
}

.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-size: 22px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 24px var(--accent-glow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover .step-num {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.3);
}

.step h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.65;
}

.step-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--card-border), var(--accent), var(--card-border));
    margin-top: 28px;
    flex-shrink: 0;
    opacity: 0.5;
}

/* ═══════════════════════════════
   PRICING
   ═══════════════════════════════ */
.pricing {
    padding: 120px 0;
    position: relative;
    z-index: 2;
    transition: box-shadow 0.3s;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 960px;
    margin: 0 auto;
}

.price-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: all 0.3s;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.price-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 50px var(--accent-glow);
    transition: all 0.4s;
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: var(--pill);
}

.price-tier {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.price-amount {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.currency {
    font-size: 22px;
    font-weight: 700;
    vertical-align: top;
    margin-right: 2px;
}

.period {
    font-size: 16px;
    color: var(--text-dim);
    font-weight: 600;
}

.price-features {
    margin-bottom: 28px;
}

.price-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--card-border);
}

.price-features li:last-child {
    border-bottom: none;
}

/* ═══════════════════════════════
   FAQ
   ═══════════════════════════════ */
.faq {
    padding: 120px 0;
    background: rgba(11, 18, 32, 0.8);
    position: relative;
    z-index: 2;
    transition: box-shadow 0.5s;
}

.faq::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
    z-index: 1;
}

.faq-list {
    max-width: 680px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item[open] {
    border-color: rgba(34, 197, 94, 0.3);
}

.faq-item summary {
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s;
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-item summary::after {
    content: "+";
    font-size: 20px;
    color: var(--text-dim);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: "−";
    color: var(--accent);
}

.faq-item p {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ═══════════════════════════════
   QUOTE BUILDER
   ═══════════════════════════════ */
.quote-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.quote-card {
    max-width: 680px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(11, 18, 32, 0.9));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

/* Steps indicator */
.quote-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}

.quote-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
    transition: all 0.3s;
    flex-shrink: 0;
}

.quote-step-dot.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.quote-step-dot.done {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.quote-step-line {
    width: 48px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Fields */
.quote-step h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.quote-hint {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.quote-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.quote-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quote-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
}

.quote-field input,
.quote-field select,
.quote-field textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.2s;
    color-scheme: dark; /* render native <select> dropdown dark, not white-on-white */
}

/* Ensure the dropdown option list is readable in all browsers */
.quote-field select option {
    background: #1a1f2e;
    color: #fff;
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.quote-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkbox chips */
.quote-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quote-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
}

.quote-chip:has(input:checked) {
    background: rgba(34, 197, 94, 0.12);
    border-color: var(--accent);
    color: var(--accent);
}

.quote-chip input {
    display: none;
}

.quote-chip-single {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.quote-chip-single input {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

/* Navigation */
.quote-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

/* Success */
.quote-success {
    text-align: center;
    padding: 40px 0;
}

.quote-success-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.quote-success h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.quote-success p {
    color: var(--text-dim);
    font-size: 15px;
}

/* ═══════════════════════════════
   CTA
   ═══════════════════════════════ */
.cta-section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.cta-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(11, 18, 32, 0.9));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 72px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.cta-card::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 12px;
    position: relative;
}

.cta-card p {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 30px;
    position: relative;
}

.cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    position: relative;
    flex-wrap: wrap;
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.footer {
    padding: 64px 0 0;
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand .brand-text {
    font-size: 20px;
}

.footer-tagline {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 13px;
    color: var(--text-dim);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 48px;
    padding: 20px 0;
    border-top: 1px solid var(--card-border);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-line {
        width: 2px;
        height: 40px;
        background: linear-gradient(to bottom, var(--card-border), var(--accent), var(--card-border));
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        gap: 40px;
    }

    /* HUD: smaller on tablet */
    .auto-hud {
        right: 10px;
        min-width: 130px;
        padding: 10px;
        font-size: 10px;
    }

    .toast-stack {
        left: 12px;
        bottom: 12px;
    }

    .toast {
        min-width: 200px;
        padding: 10px 14px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(11, 18, 32, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--card-border);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-live {
        display: none;
    }
}

@media (max-width: 600px) {
    .nav-actions .btn-ghost {
        display: none;
    }

    .nav-actions .btn-primary {
        padding: 8px 16px;
        font-size: 12px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .cta-card h2 {
        font-size: 26px;
    }

    /* Quote form responsive */
    .quote-card {
        padding: 24px 18px;
    }

    .quote-row {
        grid-template-columns: 1fr;
    }

    /* HUD: hide on mobile (toasts still show) */
    .auto-hud {
        display: none;
    }

    .toast-stack {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .toast {
        min-width: unset;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-num {
        font-size: 20px;
    }

    .section-title {
        font-size: 24px;
    }
}
