:root {
    --navy:     #0d1a3e;
    --cyan:     #38bdf8;
    --cyan-dim: rgba(56,189,248,0.12);
    --acid:     #4ade80;
    --red:      #f87171;
    --ice:      #bae6fd;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: #04091a;
    overflow-x: hidden;
    font-family: 'DM Sans', 'Sarabun', system-ui, sans-serif;
}

/* Navy grid pattern */
.grid-bg {
    background-image:
        linear-gradient(rgba(56,189,248,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,189,248,0.03) 1px, transparent 1px);
    background-size: 72px 72px;
}

/* Horizontal cyan divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(56,189,248,0.2) 25%, rgba(56,189,248,0.2) 75%, transparent 100%);
}

/* Card */
.card {
    background: rgba(13,26,62,0.45);
    border: 1px solid rgba(56,189,248,0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    background: rgba(13,26,62,0.7);
    border-color: rgba(56,189,248,0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(2,6,15,0.6), 0 0 0 1px rgba(56,189,248,0.06), inset 0 1px 0 rgba(56,189,248,0.06);
}

/* Ghost section number */
.ghost-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(7rem, 22vw, 20rem);
    line-height: 0.85;
    color: rgba(56,189,248,0.025);
    pointer-events: none;
    user-select: none;
    position: absolute;
    letter-spacing: -0.02em;
}

/* Section label */
.label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
}

/* Number badge */
.num-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cyan);
    background: rgba(56,189,248,0.08);
    border: 1px solid rgba(56,189,248,0.2);
    min-width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

/* DO row */
.do-row {
    border-left: 2px solid rgba(74,222,128,0.4);
    background: rgba(74,222,128,0.04);
    transition: background 0.2s, border-color 0.2s;
}
.do-row:hover { background: rgba(74,222,128,0.08); border-left-color: var(--acid); }

/* DON'T row */
.dont-row {
    border-left: 2px solid rgba(248,113,113,0.35);
    background: rgba(248,113,113,0.04);
    transition: background 0.2s, border-color 0.2s;
}
.dont-row:hover { background: rgba(248,113,113,0.08); border-left-color: var(--red); }

/* Decision row */
.decision-row {
    background: rgba(13,26,62,0.4);
    border: 1px solid rgba(56,189,248,0.08);
    transition: background 0.2s, border-color 0.2s;
}
.decision-row:hover { background: rgba(13,26,62,0.65); border-color: rgba(56,189,248,0.2); }

/* Compare card (top cyan line) */
.compare-card {
    background: rgba(13,26,62,0.45);
    border: 1px solid rgba(56,189,248,0.1);
    border-top: 2px solid var(--cyan);
    transition: background 0.2s, transform 0.2s;
}
.compare-card:hover { background: rgba(13,26,62,0.7); transform: translateY(-3px); }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Nav */
.nav-glass {
    background: rgba(4,9,26,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56,189,248,0.08);
}

/* Status dot pulse */
.dot-green {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
    animation: pulseGreen 2.2s ease-in-out infinite;
}
@keyframes pulseGreen {
    0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
    50% { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

/* Scan line for hero */
.scanline {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(56,189,248,0.4) 30%, rgba(56,189,248,0.75) 50%, rgba(56,189,248,0.4) 70%, transparent 100%);
    animation: scanDown 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes scanDown {
    0%   { top: -1px; opacity: 0; }
    4%   { opacity: 1; }
    96%  { opacity: 0.6; }
    100% { top: 100%; opacity: 0; }
}

/* Hero stat bar */
.stat-divider { width: 1px; height: 36px; background: rgba(56,189,248,0.2); }

/* Cyan callout border */
.callout-cyan {
    border-left: 3px solid var(--cyan);
    background: rgba(56,189,248,0.05);
}
.callout-red {
    border-left: 3px solid var(--red);
    background: rgba(248,113,113,0.05);
}

/* Final card */
.final-card {
    background: rgba(13,26,62,0.5);
    border: 1px solid rgba(56,189,248,0.18);
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #04091a; }
::-webkit-scrollbar-thumb { background: rgba(56,189,248,0.2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56,189,248,0.45); }

/* Canvas */
#particles { position: fixed; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:1; }

/* Hero glow pulse */
@keyframes glowPulse {
    0%,100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.glow-pulse { animation: glowPulse 4s ease-in-out infinite; }

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; }
    .scanline, .dot-green { animation: none; }
}

/* Thai subtext utility */
.th-sub {
    font-family: 'Sarabun', sans-serif;
    font-size: 0.68rem;
    color: rgba(148,163,184,0.45);
    margin-top: 0.2rem;
    display: block;
}
