/* =====================================================================
   GWINFIL — public site design system (index, about, services, contact)
   Deep navy + gold, serif display headings, glass surfaces.
   ===================================================================== */

:root {
    --ink: #0A0F2C;
    --ink-2: #121A47;
    --ink-3: #1B2563;
    --royal: #3949AB;
    --gold: #C9A227;
    --gold-2: #E8C766;
    --gold-3: #F6E7B0;
    --ivory: #FBF8F1;
    --paper: #FFFFFF;
    --text: #1B2036;
    --muted: #5B6178;
    --line: rgba(10, 15, 44, 0.08);
    --line-dark: rgba(255, 255, 255, 0.12);

    /* the five dominant brain types (logo colours) */
    --t-it: #8E44AD;
    --t-lc: #3949AB;
    --t-pr: #E53935;
    --t-pc: #2E9E4F;
    --t-al: #F39C12;

    --radius: 20px;
    --radius-lg: 28px;
    --shadow: 0 10px 30px rgba(10, 15, 44, 0.08);
    --shadow-lg: 0 30px 60px rgba(10, 15, 44, 0.18);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--ivory);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold-2); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 80px 0; }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: #fff; }
.text-center { text-align: center; }

/* ---------- Typography ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.text-center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

.display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.h-xl { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
.h-lg { font-size: clamp(2rem, 3.6vw, 3rem); }
.h-md { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.text-center .lead { margin-left: auto; margin-right: auto; }
.bg-ink .lead, .hero .lead, .page-hero .lead, .auth-side .lead, .cta .lead { color: rgba(255, 255, 255, 0.75); }
.gold { color: var(--gold-2); }
.gold-text {
    background: linear-gradient(120deg, var(--gold-2), var(--gold) 45%, var(--gold-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-head { margin-bottom: 60px; }
.section-head .lead { margin-top: 16px; }
.divider { width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); margin: 22px 0 0; }
.text-center .divider { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s, border-color .35s;
    font-family: inherit;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: var(--ink);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.35);
}
.btn-gold:hover { box-shadow: 0 16px 40px rgba(201, 162, 39, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.25); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(10, 15, 44, 0.2); }
.btn-outline:hover { border-color: var(--gold); color: var(--ink); }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    transition: background .4s var(--ease), box-shadow .4s, padding .4s;
    padding: 18px 0;
}
.nav.scrolled {
    background: rgba(10, 15, 44, 0.86);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-logo {
    width: 46px; height: 46px; border-radius: 14px; background: #fff;
    display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.brand-logo img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1; }
.brand-sub { display: block; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); margin-top: 4px; font-family: var(--font-body); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
    position: relative; padding: 10px 14px; font-size: 0.93rem; font-weight: 600;
    color: rgba(255, 255, 255, 0.78); border-radius: 999px; transition: color .3s;
}
.nav-links a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 11px 22px; font-size: 0.88rem; }
.nav-login { color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 0.93rem; padding: 10px 12px; }
.nav-login:hover { color: var(--gold-2); }
.nav-toggle {
    display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08);
    color: #fff; font-size: 1.15rem; cursor: pointer;
}

/* mobile drawer */
.drawer {
    position: fixed; inset: 0; z-index: 1100; pointer-events: none;
}
.drawer-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 25, 0.6); opacity: 0; transition: opacity .35s; }
.drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
    background: var(--ink); color: #fff; padding: 26px; transform: translateX(100%);
    transition: transform .45s var(--ease); display: flex; flex-direction: column; gap: 6px;
    border-left: 1px solid var(--line-dark);
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-dark); background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; }
.drawer a.drawer-link { padding: 14px 6px; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--line-dark); color: rgba(255, 255, 255, 0.85); }
.drawer a.drawer-link.active { color: var(--gold-2); }
.drawer .btn { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: radial-gradient(1200px 600px at 85% 20%, rgba(57, 73, 171, 0.55), transparent 60%),
                radial-gradient(900px 500px at 10% 90%, rgba(201, 162, 39, 0.18), transparent 60%),
                linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #0D1440 100%);
    color: #fff; overflow: hidden; padding: 140px 0 90px;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000, transparent 85%);
    pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-dark);
    font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); margin-bottom: 26px;
}
.hero-badge i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); font-size: 0.8rem; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line-dark); flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 2.3rem; color: var(--gold-2); line-height: 1; }
.hero-stat span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 520px; margin-left: auto; width: 100%; }
.fp-orb {
    position: absolute; inset: 6%; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(232, 199, 102, 0.22), rgba(57, 73, 171, 0.12) 55%, transparent 70%);
    border: 1px solid rgba(232, 199, 102, 0.25);
    box-shadow: inset 0 0 80px rgba(57, 73, 171, 0.35), 0 0 120px rgba(57, 73, 171, 0.35);
}
.fp-svg { position: absolute; inset: 16%; width: 68%; height: 68%; }
.fp-svg path { fill: none; stroke: url(#fpGold); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fp-scan {
    position: absolute; left: 14%; right: 14%; height: 2px; top: 20%;
    background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
    box-shadow: 0 0 18px var(--gold-2); animation: scan 3.6s ease-in-out infinite; opacity: 0.85;
}
@keyframes scan { 0%, 100% { top: 20%; } 50% { top: 78%; } }
.ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.12); animation: spin 40s linear infinite; }
.ring.r1 { inset: 0; }
.ring.r2 { inset: -6%; animation-duration: 70s; animation-direction: reverse; border-style: solid; border-color: rgba(232, 199, 102, 0.12); }
@keyframes spin { to { transform: rotate(360deg); } }
.float-card {
    position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-radius: 16px; background: rgba(18, 26, 71, 0.72); border: 1px solid var(--line-dark);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-lg);
    animation: floaty 6s ease-in-out infinite; z-index: 3;
}
.float-card .fc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.float-card strong { display: block; font-size: 1rem; line-height: 1.1; }
.float-card span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.float-card.f1 { top: 6%; left: -6%; }
.float-card.f2 { top: 46%; right: -8%; animation-delay: -2s; }
.float-card.f3 { bottom: 4%; left: 4%; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; color: rgba(255, 255, 255, 0.5); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--gold-2), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* page hero (inner pages) */
.page-hero {
    position: relative; padding: 170px 0 100px; color: #fff; overflow: hidden;
    background: radial-gradient(900px 400px at 80% 0%, rgba(57, 73, 171, 0.6), transparent 60%),
                radial-gradient(700px 300px at 0% 100%, rgba(201, 162, 39, 0.16), transparent 60%),
                linear-gradient(160deg, var(--ink), var(--ink-2));
}
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 18px; }
.crumbs { display: flex; gap: 10px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold-2); }

/* ---------- Pillars strip ---------- */
.pillars { margin-top: -60px; position: relative; z-index: 5; }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.pillar { padding: 30px 26px; display: flex; gap: 16px; align-items: flex-start; border-right: 1px solid var(--line); transition: background .3s; }
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--ivory); }
.pillar-icon { flex: 0 0 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.2rem; color: var(--ink); background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); }
.pillar strong { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--ink); }
.pillar span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Cards ---------- */
.card {
    background: var(--paper); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line);
    box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
    position: relative;
}
.card.hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(201, 162, 39, 0.4); }
.card-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--ink-3), var(--royal)); margin-bottom: 22px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--ink); }
.card p { color: var(--muted); font-size: 0.95rem; }
.card-dark { background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: #fff; border-color: var(--line-dark); }
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255, 255, 255, 0.7); }
.card-featured { border: 1px solid rgba(201, 162, 39, 0.55); box-shadow: 0 30px 60px rgba(201, 162, 39, 0.16); }
.card-featured::before { content: "Unggulan"; position: absolute; top: 18px; right: 18px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }

.check-list li { display: flex; gap: 12px; padding: 7px 0; color: var(--muted); font-size: 0.95rem; }
.check-list li i { color: var(--gold); margin-top: 5px; font-size: 0.8rem; }
.card-dark .check-list li { color: rgba(255, 255, 255, 0.75); }

/* ---------- About / science ---------- */
.science-list { display: grid; gap: 14px; margin-top: 28px; }
.science-item { display: flex; gap: 16px; padding: 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .35s; }
.science-item:hover { transform: translateX(6px); border-color: rgba(201, 162, 39, 0.45); }
.science-item i { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ivory); color: var(--royal); }
.science-item strong { display: block; color: var(--ink); }
.science-item span { font-size: 0.88rem; color: var(--muted); }

.founder {
    position: relative; border-radius: var(--radius-lg); padding: 46px 40px; color: #fff; overflow: hidden;
    background: radial-gradient(500px 260px at 100% 0%, rgba(201, 162, 39, 0.28), transparent 60%), linear-gradient(160deg, var(--ink-3), var(--ink));
    box-shadow: var(--shadow-lg);
}
.founder::before { content: "\201C"; position: absolute; top: -40px; right: 24px; font-family: var(--font-display); font-size: 14rem; color: rgba(232, 199, 102, 0.12); line-height: 1; }
.founder-mark { width: 74px; height: 74px; border-radius: 22px; background: #fff; display: grid; place-items: center; margin-bottom: 24px; }
.founder-mark img { width: 50px; }
.founder h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 6px; }
.founder .role { color: var(--gold-2); font-weight: 600; font-size: 0.9rem; margin-bottom: 18px; display: block; }
.founder p { color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.verse { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: #fff; }
.verse small { display: block; margin-top: 6px; font-family: var(--font-body); font-style: normal; font-size: 0.8rem; color: var(--gold-2); letter-spacing: 0.08em; }

.four-things { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.thing { padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); position: relative; overflow: hidden; }
.thing .num { font-family: var(--font-display); font-size: 2.6rem; color: rgba(10, 15, 44, 0.07); position: absolute; top: 6px; right: 16px; line-height: 1; }
.thing h4 { font-size: 1.05rem; margin-bottom: 8px; color: var(--ink); }
.thing p { font-size: 0.88rem; color: var(--muted); }
.thing .tag { display: inline-block; margin-top: 12px; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ivory); color: var(--muted); }
.thing.highlight { background: linear-gradient(160deg, var(--ink-2), var(--ink)); border-color: rgba(201, 162, 39, 0.5); color: #fff; }
.thing.highlight h4 { color: var(--gold-2); }
.thing.highlight p { color: rgba(255, 255, 255, 0.72); }
.thing.highlight .tag { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); }
.thing.highlight .num { color: rgba(255, 255, 255, 0.08); }

/* ---------- Type explorer ---------- */
.explorer { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: stretch; }
.brain-panel {
    border-radius: var(--radius-lg); padding: 34px; background: linear-gradient(160deg, var(--ink-2), var(--ink));
    border: 1px solid var(--line-dark); box-shadow: var(--shadow-lg); color: #fff; display: flex; flex-direction: column;
}
.brain-panel h3 { font-size: 1.05rem; margin-bottom: 4px; }
.brain-panel .hint { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); margin-bottom: 18px; }
.brain-map { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 1.15; }
.brain-map svg { width: 100%; height: 100%; overflow: visible; }
.lobe { cursor: pointer; transition: transform .4s var(--ease), filter .4s, opacity .4s; transform-box: fill-box; transform-origin: center; outline: none; }
.lobe path, .lobe circle { transition: fill .4s, stroke .4s; }
.lobe:hover { transform: scale(1.03); filter: brightness(1.15); }
.lobe.dim { opacity: 0.35; }
.lobe.active { transform: scale(1.05); filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.25)); }
.lobe text { pointer-events: none; font-family: var(--font-body); font-weight: 800; fill: #fff; }
.lobe .sub { font-weight: 600; fill: rgba(255, 255, 255, 0.75); }
.lobe:focus-visible path, .lobe:focus-visible circle { stroke: #fff; stroke-width: 3; }
.brain-legend { display: flex; justify-content: space-between; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-top: 6px; }
.drive-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; padding: 6px; background: rgba(255, 255, 255, 0.06); border-radius: 16px; border: 1px solid var(--line-dark); }
.drive-btn { border: 0; background: transparent; color: rgba(255, 255, 255, 0.7); padding: 12px 8px; border-radius: 12px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 0.88rem; transition: background .3s, color .3s; line-height: 1.25; }
.drive-btn small { display: block; font-weight: 500; font-size: 0.7rem; opacity: 0.75; }
.drive-btn.active { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); }
.drive-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.type-detail { border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 38px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.type-detail::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--type-color, var(--gold)); transition: background .4s; }
.type-detail .eyebrow { display: flex; }
.type-code { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; color: var(--type-color, var(--ink)); line-height: 1; transition: color .4s; }
.type-name { font-size: 1.35rem; font-weight: 800; color: var(--ink); margin: 10px 0 4px; }
.type-brain { color: var(--muted); font-size: 0.92rem; display: flex; gap: 8px; align-items: center; }
.type-sections { display: grid; gap: 18px; margin-top: 24px; }
.type-sections h4 { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.type-sections p { color: var(--muted); font-size: 0.95rem; }
.type-swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.type-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 46px; }
.type-chip {
    border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-family: inherit;
    font-weight: 800; font-size: 0.85rem; padding: 10px 16px; border-radius: 999px; cursor: pointer;
    transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.type-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--chip-color); }
.type-chip.active { background: var(--chip-color); color: #fff; border-color: var(--chip-color); box-shadow: 0 10px 24px rgba(10, 15, 44, 0.2); }
.chip-note { text-align: center; margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.steps.in::before { transform: scaleX(1); }
.step { text-align: center; position: relative; }
.step-num {
    width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--ink);
    background: var(--paper); border: 2px solid var(--gold); box-shadow: 0 0 0 8px var(--ivory), var(--shadow); position: relative; z-index: 1;
    transition: background .4s, color .4s;
}
.step:hover .step-num { background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.bg-paper .step-num { box-shadow: 0 0 0 8px var(--paper), var(--shadow); }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--ink); }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Table ---------- */
.lux-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lux-table th { background: var(--ink); color: var(--gold-2); text-align: left; padding: 18px 22px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.lux-table td { padding: 18px 22px; border-top: 1px solid var(--line); color: var(--muted); }
.lux-table td:first-child { font-weight: 800; color: var(--ink); white-space: nowrap; }
.lux-table tr:hover td { background: var(--ivory); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; vertical-align: middle; }

/* ---------- Tags / chips ---------- */
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; color: var(--ink); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.pill i { color: var(--gold); }
.pill:hover { transform: translateY(-3px); border-color: rgba(201, 162, 39, 0.5); box-shadow: var(--shadow); }

.explain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.explain { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.explain:hover { border-color: rgba(201, 162, 39, 0.5); transform: translateY(-3px); }
.explain i { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ivory); color: var(--royal); }
.explain span { font-weight: 600; font-size: 0.9rem; color: var(--ink); line-height: 1.35; }

/* ---------- CTA ---------- */
.cta {
    position: relative; overflow: hidden; border-radius: 36px; padding: 80px 60px; text-align: center; color: #fff;
    background: radial-gradient(700px 300px at 50% 0%, rgba(201, 162, 39, 0.3), transparent 65%), linear-gradient(160deg, var(--ink-3), var(--ink));
    box-shadow: var(--shadow-lg);
}
.cta::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta .lead { margin: 18px auto 34px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 34px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row i { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(232, 199, 102, 0.12); color: var(--gold-2); }
.info-row strong { display: block; color: #fff; }
.info-row span, .info-row a { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; word-break: break-word; }
.info-row a:hover { color: var(--gold-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.85rem; color: var(--ink); }
.field label .req { color: #E53935; }
.input {
    width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(10, 15, 44, 0.14); background: var(--ivory);
    font-family: inherit; font-size: 0.95rem; color: var(--text); transition: border-color .3s, box-shadow .3s, background .3s;
}
.input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18); }
textarea.input { resize: vertical; min-height: 140px; }
.alert { padding: 16px 18px; border-radius: 14px; margin-bottom: 20px; font-size: 0.92rem; display: flex; gap: 12px; }
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert ul { padding-left: 18px; list-style: disc; }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item.open { border-color: rgba(201, 162, 39, 0.5); box-shadow: var(--shadow); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; background: none; border: 0; text-align: left; font-family: inherit; font-weight: 700; font-size: 1rem; color: var(--ink); cursor: pointer; }
.faq-q i { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); color: var(--gold); transition: transform .4s var(--ease), background .3s; }
.faq-item.open .faq-q i { transform: rotate(45deg); background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 26px 24px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 90px 0 30px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 50px; }
.footer .brand { margin-bottom: 20px; }
.footer p { font-size: 0.92rem; }
.footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px; }
.footer-links li { padding: 6px 0; }
.footer-links a { font-size: 0.92rem; transition: color .3s, padding .3s; }
.footer-links a:hover { color: var(--gold-2); padding-left: 4px; }
.footer-bottom { margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--gold-2); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

@media (max-width: 1100px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: grid; place-items: center; }
    .hero-grid, .split, .explorer, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 420px; margin: 20px auto 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-4, .explain-grid, .four-things { grid-template-columns: repeat(2, 1fr); }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .pillar:nth-child(2) { border-right: 0; }
    .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
    .section { padding: 80px 0; }
    .container { padding: 0 18px; }
    .hero { padding: 120px 0 70px; min-height: auto; }
    .scroll-cue { display: none; }
    .float-card.f1 { left: 0; } .float-card.f2 { right: 0; }
    .grid-2, .grid-3, .grid-4, .grid-5, .steps, .explain-grid, .four-things, .footer-grid, .form-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr 1fr; }
    .pillar { padding: 22px 18px; flex-direction: column; gap: 10px; }
    .pillar-icon { flex: 0 0 auto; width: 46px; height: 46px; }
    .steps::before { display: none; }
    .cta { padding: 60px 24px; border-radius: 26px; }
    .type-detail, .brain-panel { padding: 26px; }
    .type-code { font-size: 2.6rem; }
    .lux-table th, .lux-table td { padding: 14px; }
    .lux-table td:first-child { white-space: normal; }
    .page-hero { padding: 140px 0 80px; }
    .hero-stats { gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .fp-svg path { stroke-dashoffset: 0; }
}

/* =====================================================================
   Auth pages (login, register, forgot/reset password)
   ===================================================================== */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side {
    position: relative; overflow: hidden; color: #fff; padding: 48px 56px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(800px 420px at 90% 10%, rgba(57, 73, 171, 0.6), transparent 60%),
                radial-gradient(600px 300px at 0% 100%, rgba(201, 162, 39, 0.2), transparent 60%),
                linear-gradient(160deg, var(--ink), var(--ink-2));
}
.auth-side::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h1 { margin: 34px 0 16px; }
.auth-side .lead { margin-bottom: 30px; }
.auth-points { display: grid; gap: 14px; max-width: 460px; }
.auth-point { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); font-weight: 600; font-size: 0.95rem; }
.auth-point i { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); }
.auth-mini-fp { position: absolute !important; right: -80px; bottom: -80px; width: 380px; height: 380px; opacity: 0.18; z-index: 0 !important; pointer-events: none; }
.auth-mini-fp path { fill: none; stroke: var(--gold-2); stroke-width: 2; }
.auth-foot { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }
.auth-foot em { font-family: var(--font-display); color: var(--gold-2); }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: var(--ivory); }
.auth-card { width: 100%; max-width: 480px; }
.auth-card.wide { max-width: 600px; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--muted); margin-bottom: 28px; }
.auth-back:hover { color: var(--ink); }
.auth-card h2 { margin-bottom: 8px; color: var(--ink); }
.auth-card .sub { color: var(--muted); margin-bottom: 30px; }
.auth-form { display: grid; gap: 18px; }
.auth-form .form-grid { gap: 18px; }
.input-wrap { position: relative; }
.input-wrap > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9rem; }
.input-wrap .input { padding-left: 44px; }
.input-wrap .pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.input-wrap .pw-toggle:hover { color: var(--ink); background: rgba(10, 15, 44, 0.05); }
.input-wrap .input.has-toggle { padding-right: 50px; }
.form-meta { display: flex; justify-content: flex-end; font-size: 0.88rem; }
.form-meta a, .auth-switch a { color: var(--royal); font-weight: 700; }
.form-meta a:hover, .auth-switch a:hover { color: var(--gold); }
.auth-switch { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
.alert-info { background: #EEF2FF; color: #3730A3; border: 1px solid #C7D2FE; }

.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-option input { position: absolute; opacity: 0; pointer-events: none; }
.role-option label {
    display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; cursor: pointer;
    padding: 18px 12px; border-radius: 16px; border: 1px solid rgba(10, 15, 44, 0.14); background: #fff;
    font-weight: 700; color: var(--ink); transition: border-color .3s, box-shadow .3s, background .3s;
}
.role-option label i { font-size: 1.35rem; color: var(--muted); transition: color .3s; }
.role-option label small { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.role-option input:checked + label { border-color: var(--gold); background: #FFFCF2; box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.16); }
.role-option input:checked + label i { color: var(--gold); }
.role-option input:focus-visible + label { outline: 2px solid var(--royal); outline-offset: 2px; }
.conditional { display: none; }
.conditional.show { display: flex; }
.status-icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 22px; background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); color: var(--ink); }
.status-icon.error { background: #FEE2E2; color: #B91C1C; }

@media (max-width: 960px) {
    .auth { grid-template-columns: 1fr; }
    .auth-side { padding: 32px 22px 40px; }
    .auth-mini-fp { opacity: 0.07; }
    .auth-side .auth-points, .auth-side .auth-foot { display: none; }
    .auth-side h1 { margin: 22px 0 8px; font-size: 1.9rem; }
    .auth-side .lead { margin-bottom: 0; font-size: 0.98rem; }
    .auth-main { padding: 34px 18px 50px; }
    .role-picker { grid-template-columns: 1fr 1fr; }
}

/* ---------- Realistic brain map ---------- */
.brain-map .gyri { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 2.4; stroke-linecap: round; }
.brain-map .lobe-edge { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; }
.brain-map .lobe.active .lobe-edge { stroke: #fff; stroke-width: 2.5; }
.brain-map .lobe.active { filter: url(#glow); }
.brain-map .spark { fill: #fff; opacity: 0; }
.brain-map .lobe.active .spark { animation: spark 1.8s ease-in-out infinite; }
@keyframes spark { 0%, 100% { opacity: 0; r: 2; } 50% { opacity: 0.95; r: 4.5; } }
.brain-map .signal { fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 10; opacity: 0; transition: opacity .4s; pointer-events: none; }
.brain-map .signal.on { opacity: 0.9; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }

/* ---------- Drive (energy direction) visual ---------- */
.drive-viz { position: absolute; top: 26px; right: 26px; width: 96px; height: 96px; }
.drive-viz .dv-core { fill: var(--type-color, var(--gold)); transition: fill .4s; }
.drive-viz .dv-ring { fill: none; stroke: rgba(10, 15, 44, 0.15); stroke-width: 2; stroke-dasharray: 3 6; }
.drive-viz path { fill: none; stroke: var(--type-color, var(--gold)); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .3s, stroke .4s; }
.drive-viz.drive-I .dv-out, .drive-viz.drive-A .dv-out { opacity: 1; animation: outward 1.4s ease-in-out infinite; }
.drive-viz.drive-E .dv-in, .drive-viz.drive-A .dv-in { opacity: 1; animation: inward 1.4s ease-in-out infinite; }
@keyframes outward { 0%, 100% { transform: translateY(4px); } 50% { transform: translateY(-3px); } }
@keyframes inward { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
.drive-viz.drive-A .dv-in { opacity: 0.55; }
@media (max-width: 760px) { .drive-viz { width: 70px; height: 70px; top: 22px; right: 18px; } .type-detail .eyebrow { padding-right: 76px; } }

/* ---------- Scan walkthrough ---------- */
.scan-demo {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0; margin-bottom: 70px; border-radius: var(--radius-lg); overflow: hidden;
    background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line-dark);
}
.scan-stage { position: relative; padding: 40px 30px 24px; display: grid; place-items: center;
    background: radial-gradient(500px 260px at 50% 40%, rgba(57, 73, 171, 0.45), transparent 70%); }
.hands { width: 100%; max-width: 560px; }
.hands .hand { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.5; }
.hands .hand-label { fill: rgba(255, 255, 255, 0.5); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-body); }
.hands .tip ellipse { fill: rgba(255, 255, 255, 0.08); stroke: rgba(232, 199, 102, 0.45); stroke-width: 1.5; transition: fill .35s, stroke .35s; }
.hands .tip path { fill: none; stroke: rgba(232, 199, 102, 0.55); stroke-width: 1.4; stroke-linecap: round; }
.hands .tip.scanning ellipse { fill: rgba(232, 199, 102, 0.55); stroke: var(--gold-2); animation: tipPulse .5s ease-in-out infinite alternate; }
.hands .tip.done ellipse { fill: var(--gold); stroke: var(--gold-2); }
.hands .tip.done path { stroke: var(--ink); }
@keyframes tipPulse { from { filter: drop-shadow(0 0 0 rgba(232, 199, 102, 0)); } to { filter: drop-shadow(0 0 10px rgba(232, 199, 102, 0.9)); } }
.scan-panel { padding: 40px 36px; border-left: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 18px; }
.scan-panel h3 { color: #fff; }
.scan-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.scan-steps li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.03); opacity: 0.55; transition: opacity .4s, border-color .4s, background .4s; }
.scan-steps li i { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: var(--gold-2); transition: background .4s, color .4s; }
.scan-steps li strong { display: block; font-size: 0.95rem; }
.scan-steps li span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.scan-steps li.active { opacity: 1; border-color: rgba(232, 199, 102, 0.6); background: rgba(232, 199, 102, 0.08); }
.scan-steps li.active i { animation: tipPulse .6s ease-in-out infinite alternate; }
.scan-steps li.done { opacity: 1; }
.scan-steps li.done i { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); }
.scan-progress { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.scan-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .4s var(--ease); }
.scan-note { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }
@media (max-width: 1100px) { .scan-demo { grid-template-columns: 1fr; } .scan-panel { border-left: 0; border-top: 1px solid var(--line-dark); } }
@media (max-width: 760px) { .scan-stage { padding: 26px 12px 12px; } .scan-panel { padding: 28px 22px; } }

/* ---------- Triune brain ---------- */
.triune { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.triune-visual svg { width: 100%; max-width: 560px; display: block; margin: 0 auto; overflow: visible; }
.triune .layer { cursor: pointer; outline: none; transition: opacity .4s, filter .4s; }
.triune .layer-shape { stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; transition: stroke .3s; }
.triune .layer text { fill: #fff; font-family: var(--font-body); font-weight: 800; font-size: 20px; pointer-events: none; }
.triune .layer text.dark { fill: var(--ink); font-size: 15px; }
.triune .gyri { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.triune .layer.dim { opacity: 0.35; }
.triune .layer.active { filter: drop-shadow(0 0 18px rgba(232, 199, 102, 0.55)); }
.triune .layer.active .layer-shape { stroke: var(--gold-2); stroke-width: 3; }
.triune .layer:focus-visible .layer-shape { stroke: #fff; stroke-width: 3; }
.triune-info { position: relative; min-height: 240px; }
.layer-info { display: none; }
.layer-info.active { display: block; animation: swap .5s var(--ease); }
.layer-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.layer-info h3 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 10px; }
.layer-zone { font-size: 1.25rem; color: var(--gold-2); display: flex; align-items: center; gap: 12px; }
.layer-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.layer-pick button { border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.8); padding: 10px 18px; border-radius: 999px; font-family: inherit; font-weight: 700; cursor: pointer; transition: background .3s, color .3s; }
.layer-pick button.active { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); border-color: transparent; }
@media (max-width: 1100px) { .triune { grid-template-columns: 1fr; gap: 30px; } .triune-info { min-height: 0; text-align: center; } .layer-zone, .layer-pick { justify-content: center; } }
