/* components.css — Site header and shared building blocks: eyebrows, headings, buttons, sections, cards, reveal.
   Load order matters: base → components → sections → responsive → animations. */

/* ---------- header ---------- */
.site-header { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 5vw; border-bottom: 1px solid var(--line); background: rgba(10, 17, 29, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--accent-bright); color: var(--ink); font-size: 15px; font-weight: 800; }
.brand-name { font-size: 19px; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.7vw, 40px); margin-left: auto; margin-right: 3vw; color: var(--soft); font-size: 13px; font-weight: 700; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover, .footer-links a:hover { color: var(--accent-bright); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; transition: color .2s ease; }
.text-link .ic { color: var(--accent-bright); font-size: 15px; transition: transform .2s ease; }
.text-link:hover { color: var(--accent-bright); }
.text-link:hover .ic { transform: translate(2px, -2px); }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; margin: 5px 0; background: var(--text); }

/* ---------- shared ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .14em; font: 500 11px var(--mono); color: var(--soft); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(198, 215, 255, .14); flex: none; }
.eyebrow-number { color: var(--warm); }
em { font-style: normal; color: var(--accent-bright); }
h1 { font-size: clamp(44px, 5.5vw, 84px); line-height: 1; letter-spacing: -.07em; font-weight: 800; margin: 28px 0 24px; }
h2 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -.065em; font-weight: 800; margin: 24px 0 0; }
h3 { letter-spacing: -.04em; }

.button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent-bright); color: var(--ink); box-shadow: 0 12px 28px rgba(167, 188, 231, .2); }
.button-primary:hover { background: #fff; }
.button-quiet { border-color: var(--line-strong); background: rgba(255, 255, 255, .05); color: var(--text); }
.button-quiet:hover { border-color: var(--accent-bright); }

.section { padding: 118px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 6vw; align-items: end; }
.split h2 { max-width: 760px; }
.intro-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; color: var(--soft); font-size: 15px; line-height: 1.7; }
.intro-aside small { color: var(--muted); font: 500 11px var(--mono); letter-spacing: .05em; line-height: 1.6; }
.aside-line { width: 44px; height: 1px; background: var(--accent); }

.card { background: linear-gradient(180deg, rgba(23, 38, 64, .72), rgba(18, 30, 49, .72)); border: 1px solid var(--line); border-radius: 22px; transition: transform .25s ease, border-color .25s ease; }
.card:hover { border-color: var(--line-strong); }
.card-index, .module-index { font: 500 11px var(--mono); color: var(--muted); letter-spacing: .08em; }
.icon-tile { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; background: rgba(167, 188, 231, .12); border: 1px solid var(--line); color: var(--accent-bright); flex: none; }
.icon-tile .ic { font-size: 22px; stroke-width: 1.7; vertical-align: baseline; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; } .delay-2 { transition-delay: .22s; } .delay-3 { transition-delay: .32s; }

.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(143, 211, 176, .18); flex: none; }
.avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-bright); color: var(--ink); font: 700 9px var(--sans); }
.avatar-light { background: #dfe8ff; }
