/* =============================================
   MAIN.CSS — Base Variables, Reset, Utilities
   ============================================= */

:root {
    /* ── Colors ── */
    --bg-primary:     #090c13;
    --bg-secondary:   #0d1220;
    --bg-panel:       #101624;
    --bg-glass:       rgba(13, 18, 32, 0.88);

    --accent:         #F5B800;
    --accent-hover:   #FFD000;
    --accent-dim:     rgba(245, 184, 0, 0.12);
    --accent-border:  rgba(245, 184, 0, 0.28);

    --text-primary:   #FFFFFF;
    --text-secondary: #8A9BB8;
    --text-muted:     #3F4D63;

    --border-subtle:  rgba(255, 255, 255, 0.06);
    --border-mid:     rgba(255, 255, 255, 0.12);

    /* ── Typography ── */
    --font-display: 'Geist', 'Arial Narrow', sans-serif;
    --font-body:    'Barlow', 'Arial', sans-serif;
    --font-ui:      'Inter', 'Segoe UI', sans-serif;

    /* ── Layout ── */
    --header-h:   72px;
    --container:  1320px;

    /* ── Transitions ── */
    --t-fast:  150ms ease;
    --t-mid:   260ms ease;
    --t-slow:  420ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
}
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select { font-family: inherit; }

/* ── Container ── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Subtle grid background (reusable) ── */
.grid-bg {
    background-image:
        linear-gradient(rgba(245, 184, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 184, 0, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
}

/* ── Visually hidden (accessibility) ── */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar              { width: 6px; }
::-webkit-scrollbar-track        { background: var(--bg-primary); }
::-webkit-scrollbar-thumb        { background: rgba(245,184,0,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: rgba(245,184,0,0.5); }

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ══════════════════════════════════════════════
   SCANNER LINE — fiber-optic section divider
   ══════════════════════════════════════════════ */
.scanner-line {
    position: relative;
    height: 1px;
    background: rgba(10, 13, 22, 0.98);
    overflow: visible;
    pointer-events: none;
    z-index: 5;
}

.scanner-line::before {
    content: '';
    position: absolute;
    top: -3px;
    width: 5px;
    height: 7px;
    border-radius: 50%;
    background: #F5B800;
    box-shadow:
        0 0 5px 1px rgba(245, 184, 0, 0.35),
        0 0 14px 3px rgba(245, 184, 0, 0.09);
    animation: scanner-dot 7s ease-in-out infinite alternate;
    will-change: left;
}

@keyframes scanner-dot {
    from { left: 4%; }
    to   { left: calc(96% - 5px); }
}

@media (prefers-reduced-motion: reduce) {
    .scanner-line::before { animation: none; left: 50%; }
}
