/* ================= CONNEX — homepage styles ================= */

/* ============ HERO ============ */
.hero { padding: 64px 0 96px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 0.94fr 1.06fr; gap: 56px; align-items: center; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--soft-blue); border: 1px solid #DBEAFE; color: var(--accent); font-size: 12.5px; font-weight: 600; padding: 5px 13px; border-radius: 999px; }
.hero-pill::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(38px, 4.2vw, 56px); line-height: 1.06; font-weight: 600; letter-spacing: -0.032em; margin-top: 22px; text-wrap: balance; }
.hero h1 em { font-style: italic; }
.hero-sub { margin-top: 20px; font-size: 17.5px; line-height: 1.6; color: var(--slate); max-width: 50ch; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 13px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.hero-trust { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; color: var(--muted); display: flex; gap: 8px 20px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hero-trust span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #C7D4E2; }

/* ---- hero stage / cockpit ---- */
.hero-stage { position: relative; min-height: 540px; }

.raw-card { position: absolute; top: 0; left: 0; width: 264px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; transform: rotate(-2.5deg); box-shadow: 0 8px 24px rgba(7,17,31,0.07); z-index: 1; }
.raw-card .rc-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }
.raw-card p { font-size: 12.5px; color: #475569; line-height: 1.5; margin-top: 6px; }
.raw-card .rc-flag { font-family: var(--font-mono); font-size: 10.5px; color: var(--amber); margin-top: 8px; }
.raw-card .rc-extract { position: absolute; right: 10px; top: 10px; font-family: var(--font-mono); font-size: 9.5px; color: var(--accent); letter-spacing: 0.1em; }

.cockpit { position: relative; margin-left: 92px; margin-top: 64px; width: min(480px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-float); overflow: hidden; z-index: 2; }
.ck-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); }
.ck-dots { display: flex; gap: 6px; }
.ck-dots i { width: 9px; height: 9px; border-radius: 50%; background: #E6ECF2; }
.ck-tabs { display: flex; gap: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.ck-tabs b { background: #F2F6FA; color: var(--navy); font-weight: 500; padding: 4px 10px; border-radius: 6px; }
.ck-tabs span { padding: 4px 10px; }
.ck-id { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.ck-body { padding: 18px 20px 20px; }
.ck-vrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck-badge { background: var(--soft-green); color: var(--green); border: 1px solid #BBF7D0; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.ck-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ck-score { text-align: right; }
.ck-score b { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.ck-score small { display: block; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); letter-spacing: 0.12em; margin-top: 3px; }
.ck-rows { margin-top: 14px; }
.ck-row { display: grid; grid-template-columns: 128px 1fr 40px; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid #F1F5F9; }
.ck-row label { color: var(--muted); font-size: 12.5px; }
.ck-row data { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12.5px; }
.ck-bar2 { height: 4px; background: #F1F5F9; border-radius: 2px; overflow: hidden; }
.ck-bar2 i { display: block; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: left; }
.ck-bar2 i.warn { background: var(--amber); }
.ck-flags { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 7px; }
.ck-next { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--soft-blue); border: 1px solid #DBEAFE; border-radius: 8px; padding: 10px 14px; font-size: 12.5px; font-weight: 500; color: var(--accent-deep); }
.ck-next span { font-family: var(--font-mono); font-size: 10.5px; white-space: nowrap; }

.ck-route { margin-left: 92px; margin-top: 14px; width: min(480px, 100%); display: flex; align-items: center; gap: 10px; }
.route-line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #C7D4E2 0 6px, transparent 6px 12px); position: relative; overflow: hidden; }
.route-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; font-family: var(--font-mono); font-size: 11px; color: var(--green); box-shadow: 0 2px 6px rgba(7,17,31,0.05); white-space: nowrap; }

/* ---- hero animation sequence (plays only with .play) ---- */
html.anim-on .hero-stage.armed .raw-card { opacity: 0; }
html.anim-on .hero-stage.armed .cockpit { opacity: 0; }
html.anim-on .hero-stage.armed .ck-route { opacity: 0; }

.hero-stage.play .raw-card { animation: rawIn 0.55s cubic-bezier(0.2,0.8,0.2,1) 0.1s both; }
.hero-stage.play .rc-extract { animation: blink 0.9s steps(2) 0.8s 2 both; }
.hero-stage.play .cockpit { animation: ckIn 0.6s cubic-bezier(0.2,0.8,0.2,1) 0.55s both; }
.hero-stage.play .ck-row { animation: rowIn 0.4s ease both; }
.hero-stage.play .ck-row:nth-child(1) { animation-delay: 1.05s; }
.hero-stage.play .ck-row:nth-child(2) { animation-delay: 1.2s; }
.hero-stage.play .ck-row:nth-child(3) { animation-delay: 1.35s; }
.hero-stage.play .ck-row:nth-child(4) { animation-delay: 1.5s; }
.hero-stage.play .ck-bar2 i { animation: barFill 0.7s cubic-bezier(0.2,0.8,0.2,1) both; animation-delay: inherit; }
.hero-stage.play .ck-row:nth-child(1) .ck-bar2 i { animation-delay: 1.5s; }
.hero-stage.play .ck-row:nth-child(2) .ck-bar2 i { animation-delay: 1.65s; }
.hero-stage.play .ck-row:nth-child(3) .ck-bar2 i { animation-delay: 1.8s; }
.hero-stage.play .ck-row:nth-child(4) .ck-bar2 i { animation-delay: 1.95s; }
.hero-stage.play .ck-flags .chip { animation: chipPop 0.35s cubic-bezier(0.2,0.8,0.2,1) both; }
.hero-stage.play .ck-flags .chip:nth-child(1) { animation-delay: 2.5s; }
.hero-stage.play .ck-flags .chip:nth-child(2) { animation-delay: 2.62s; }
.hero-stage.play .ck-flags .chip:nth-child(3) { animation-delay: 2.74s; }
.hero-stage.play .ck-flags .chip:nth-child(4) { animation-delay: 2.86s; }
.hero-stage.play .ck-badge { animation: stampIn 0.45s cubic-bezier(0.34,1.56,0.64,1) 3.2s both; }
.hero-stage.play .ck-next { animation: rowIn 0.4s ease 3.5s both; }
.hero-stage.play .ck-route { animation: rowIn 0.4s ease 3.8s both; }
.hero-stage.play .route-chip { animation: chipPop 0.35s cubic-bezier(0.2,0.8,0.2,1) both; }
.hero-stage.play .route-chip:nth-of-type(1) { animation-delay: 4.0s; }
.hero-stage.play .route-chip:nth-of-type(2) { animation-delay: 4.15s; }
.hero-stage.play .cockpit::after { content: ''; position: absolute; inset: 0; border-radius: 14px; border: 2px solid var(--accent); opacity: 0; pointer-events: none; animation: lockPulse 0.8s ease 4.35s both; }

@keyframes rawIn { from { opacity: 0; transform: rotate(-2.5deg) translate(-28px, -10px); } to { opacity: 1; transform: rotate(-2.5deg); } }
@keyframes ckIn { from { opacity: 0; transform: translateY(26px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes barFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes chipPop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes stampIn { from { opacity: 0; transform: scale(1.25); } to { opacity: 1; transform: none; } }
@keyframes blink { from { opacity: 0; } to { opacity: 1; } }
@keyframes lockPulse { 0% { opacity: 0; } 25% { opacity: 0.55; } 100% { opacity: 0; } }

/* ============ PROBLEM / FUNNEL ============ */
.problem-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; margin-top: 8px; align-items: start; }
.funnel { margin-top: 10px; }
.funnel-row { display: grid; grid-template-columns: 48px 158px 1fr; gap: 14px; align-items: center; padding: 9px 0; }
.funnel-row data { font-family: var(--font-mono); font-size: 15px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.funnel-row .funnel-label { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel-track { position: relative; height: 26px; }
.funnel-bar { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: #E2E8F0; min-width: 8px; transition: width 0.9s cubic-bezier(0.2,0.8,0.2,1); }
.funnel-row.fr-in .funnel-bar { background: #CBD5E1; }
.funnel-row.fr-mid .funnel-bar { background: #E2E8F0; }
.funnel-row.fr-key .funnel-bar { background: var(--accent); }
.funnel-row.fr-key data, .funnel-row.fr-key .funnel-label { color: var(--accent-deep); font-weight: 600; }
.funnel-row.fr-end .funnel-bar { background: var(--green); }
.funnel-row.fr-end data, .funnel-row.fr-end .funnel-label { color: var(--green); font-weight: 600; }
html.anim-on .funnel:not(.in) .funnel-bar { width: 8px !important; }
.funnel-note { margin-top: 18px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; }
.problem-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 36px; }
.pstat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.pstat small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.pstat b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pstat span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* ============ BEFORE / AFTER ============ */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; position: relative; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.ba-col { padding: 32px; }
.ba-col.before { background: #FBFBFC; border-right: 1px solid var(--border); }
.ba-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ba-head h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.ba-head .ba-stat { font-family: var(--font-mono); font-size: 11px; color: var(--red); }
.ba-col.after .ba-head .ba-stat { color: var(--green); }
.ba-desc { font-size: 14px; color: var(--muted); line-height: 1.55; min-height: 66px; }
.ba-mess { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.mess-item { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; font-size: 12.5px; color: #475569; }
.mess-item .mi-meta { font-family: var(--font-mono); font-size: 10px; color: var(--faint); display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.mess-item .mi-meta em { font-style: normal; color: var(--amber); }
.mess-item:nth-child(2) { transform: rotate(-0.6deg); }
.mess-item:nth-child(3) { transform: rotate(0.5deg); }
.ba-mini { margin-top: 18px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ba-mini-head { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.ba-mini-body { padding: 14px; }
.ba-arrow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; background: var(--navy); color: #fff; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; padding: 9px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(7,17,31,0.25); white-space: nowrap; }

/* ============ HOW IT WORKS ============ */
.flow-rail { margin-top: 48px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px 28px; display: flex; align-items: center; gap: 14px; overflow-x: auto; }
.flow-group { display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; }
.flow-node { font-family: var(--font-mono); font-size: 11px; color: var(--slate); background: #F8FAFC; border: 1px solid var(--border); border-radius: 6px; padding: 6px 11px; white-space: nowrap; }
.flow-node.core { background: var(--navy); color: #E5EAF3; border-color: var(--navy); }
.flow-node.out { color: var(--green); background: var(--soft-green); border-color: #BBF7D0; }
.flow-link { flex: 1 0 36px; height: 2px; min-width: 36px; background: repeating-linear-gradient(90deg, #C7D4E2 0 6px, transparent 6px 12px); background-size: 12px 2px; position: relative; }
html.anim-on .flow-rail.in .flow-link { animation: dashMarch 1.2s linear infinite; }
@keyframes dashMarch { to { background-position: 12px 0; } }
.flow-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.layer-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.layer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); border-color: #C7D2DD; }
.layer-card .lc-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.layer-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin-top: 10px; }
.layer-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 8px; flex: 1; }
.layer-card .lc-out { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: 11px; color: var(--slate); }
.layer-card .lc-out b { color: var(--navy); font-weight: 600; }

/* ============ SAMPLE BRIEF ============ */
.brief-wrap { margin-top: 48px; display: flex; justify-content: center; }
.brief { width: min(920px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-float); overflow: hidden; }
.brief-head { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.brief-head b { color: var(--navy); font-weight: 600; }
.brief-head .bh-actions { margin-left: auto; display: flex; gap: 8px; }
.bh-btn { font-family: var(--font-mono); font-size: 10.5px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 6px; color: var(--slate); background: #FAFBFC; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.bh-btn:hover { border-color: var(--accent); color: var(--accent); }
.brief-main { display: grid; grid-template-columns: 1.5fr 1fr; }
.brief-left { padding: 26px 28px; border-right: 1px solid var(--border-soft); }
.brief-right { padding: 26px 24px; background: #FBFCFD; }
.brief-verdict { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.brief-summary { margin-top: 18px; font-size: 14px; color: var(--slate); line-height: 1.6; }
.brief-summary b { font-weight: 600; color: var(--navy); }
.brief-scores { margin-top: 20px; }
.brief-scores .ck-row { grid-template-columns: 160px 1fr 44px; }
.brief-list { margin-top: 20px; border-top: 1px solid var(--border-soft); }
.brief-li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; color: var(--slate); align-items: baseline; }
.brief-li i { font-style: normal; flex-shrink: 0; width: 8px; height: 8px; border-radius: 2px; position: relative; top: 1px; }
.brief-li.ok i { background: var(--green); }
.brief-li.warn i { background: var(--amber); }
.brief-li.risk i { background: var(--red); }
.brief-li.act i { background: var(--accent); }
.brief-li b { font-weight: 600; color: var(--navy); }
.fact-list { display: flex; flex-direction: column; }
.fact { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; }
.fact label { color: var(--muted); }
.fact span { font-family: var(--font-mono); font-size: 11.5px; color: var(--navy); text-align: right; }
.fact span.ok { color: var(--green); }
/* audit trail */
.audit { margin-top: 22px; }
.audit h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 8px; }
.audit-row { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 7px; background: var(--surface); overflow: hidden; }
.audit-row button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 13px; font-family: var(--font-mono); font-size: 11px; color: var(--slate); text-align: left; }
.audit-row button .au-time { color: var(--faint); margin-left: auto; }
.audit-row button .au-caret { color: var(--faint); transition: transform 0.2s; }
.audit-row.open button .au-caret { transform: rotate(90deg); }
.audit-row .au-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.audit-detail { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.audit-row.open .audit-detail { max-height: 120px; }
.audit-detail p { padding: 0 13px 11px 30px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.audit-detail p b { color: var(--navy); font-weight: 600; }
/* payload */
.payload { background: var(--panel); padding: 20px 24px; border-top: 1px solid var(--border); }
.payload-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: #64748B; margin-bottom: 10px; }
.payload pre { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: #CBD5E1; overflow-x: auto; }
.payload .k { color: #7DACF8; }
.payload .s { color: #6EE7A0; }
.payload .n { color: #FBD38D; }
.brief-foot { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; align-items: center; }
.brief-foot em { font-style: italic; }

/* ============ SERVICES OVERVIEW ============ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.svc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); border-color: #C7D2DD; }
.svc-card .sc-num { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.1em; }
.svc-card h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.015em; margin-top: 12px; }
.svc-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 7px; flex: 1; }
.svc-out { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--slate); background: #F8FAFC; border: 1px solid var(--border-soft); border-radius: 6px; padding: 8px 11px; }
.svc-out b { color: var(--navy); font-weight: 600; }
.svc-link { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--accent); display: inline-flex; gap: 7px; align-items: center; }
.svc-link .arr { transition: transform 0.18s; }
.svc-card:hover .svc-link .arr { transform: translateX(3px); }

/* ============ USE CASES ============ */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.uc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.uc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.uc-card h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.uc-prob { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 8px; min-height: 60px; }
.uc-meta { margin-top: 14px; border-top: 1px solid var(--border-soft); }
.uc-meta div { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 12px; }
.uc-meta label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); width: 64px; flex-shrink: 0; position: relative; top: 2px; }
.uc-meta span { color: var(--slate); line-height: 1.45; }
.uc-meta span b { font-weight: 600; color: var(--navy); }

/* ============ CALCULATOR ============ */
.calc { margin-top: 48px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); display: grid; grid-template-columns: 1fr 1.1fr; }
.calc-inputs { padding: 32px; border-right: 1px solid var(--border-soft); }
.calc-inputs h3, .calc-out h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.cin { margin-top: 22px; }
.cin-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cin-head label { font-size: 13.5px; font-weight: 500; color: var(--slate); }
.cin-head output { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cin input[type=range] { width: 100%; margin-top: 10px; appearance: none; -webkit-appearance: none; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), #E2E8F0 var(--fill, 50%)); outline: none; }
.cin input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(7,17,31,0.18); cursor: grab; transition: transform 0.12s; }
.cin input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.cin input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: grab; }
.calc-out { padding: 32px; background: #FBFCFD; }
.cout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.cout { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.cout small { display: block; font-size: 12px; color: var(--muted); }
.cout b { display: block; font-size: 27px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; transition: color 0.2s; }
.cout b em { font-style: normal; font-size: 15px; color: var(--faint); font-weight: 500; }
.cout.hot b { color: var(--red); }
.cout.good b { color: var(--green); }
.cprior { margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.cprior-head { display: flex; justify-content: space-between; align-items: baseline; }
.cprior-head small { font-size: 12px; color: var(--muted); }
.cprior-head b { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.cprior-bar { margin-top: 12px; height: 6px; border-radius: 3px; background: #EDF1F5; overflow: hidden; }
.cprior-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.45s cubic-bezier(0.2,0.8,0.2,1), background 0.3s; }
.cprior-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.calc-foot { grid-column: 1 / -1; padding: 16px 32px; border-top: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

/* ============ PILOT TIMELINE ============ */
.timeline { margin-top: 56px; position: relative; }
.tl-track { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--border); }
.tl-fill { position: absolute; left: 0; top: 7px; height: 2px; background: var(--accent); width: 100%; transform-origin: left; }
html.anim-on .timeline .tl-fill { transform: scaleX(0); transition: transform 1.4s cubic-bezier(0.2,0.8,0.2,1) 0.2s; }
html.anim-on .timeline.in .tl-fill { transform: scaleX(1); }
.tl-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.tl-step { position: relative; padding-top: 28px; }
.tl-step::before { content: ''; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.tl-step.terminal::before { background: var(--accent); }
.tl-step small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase; }
.tl-step h4 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; margin-top: 5px; line-height: 1.3; }
.tl-step p { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 5px; }
.tl-banner { margin-top: 40px; display: flex; align-items: center; gap: 16px; background: var(--soft-green); border: 1px solid #BBF7D0; border-radius: 10px; padding: 16px 22px; font-size: 14px; color: #166534; flex-wrap: wrap; }
.tl-banner b { font-weight: 600; }
.tl-banner .chip { margin-left: auto; }

/* ============ GOVERNANCE ============ */
.gov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.gov-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.gov-card .gc-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--faint); }
.gov-card h3 { font-size: 14.5px; font-weight: 600; margin-top: 10px; letter-spacing: -0.01em; line-height: 1.3; }
.gov-card p { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 6px; }

/* ============ INTEGRATION MAP ============ */
.imap { margin-top: 48px; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px; box-shadow: var(--shadow-card); }
.imap-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.imap-svg path { fill: none; stroke: #C7D4E2; stroke-width: 1.5; stroke-dasharray: 5 6; }
html.anim-on .imap.in .imap-svg path { animation: dashFlow 1.6s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -22; } }
.imap-cols { position: relative; display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 56px; align-items: center; }
.imap-col-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.imap-nodes { display: flex; flex-direction: column; gap: 12px; }
.inode { background: #F8FAFC; border: 1px solid var(--border); border-radius: 8px; padding: 11px 15px; font-size: 13px; font-weight: 500; color: var(--slate); display: flex; align-items: center; gap: 9px; }
.inode i { font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--faint); }
.inode.out { background: var(--surface); }
.inode.out b { font-family: var(--font-mono); font-size: 10px; color: var(--green); margin-left: auto; font-weight: 500; }
.imap-core { background: var(--panel); border-radius: 12px; padding: 24px; color: #E5EAF3; box-shadow: 0 16px 40px -12px rgba(3,7,18,0.4); }
.imap-core .imap-col-label { color: #64748B; }
.imap-core-nodes { display: flex; flex-direction: column; gap: 10px; }
.cnode { background: rgba(148,163,184,0.08); border: 1px solid rgba(148,163,184,0.18); border-radius: 8px; padding: 12px 15px; }
.cnode b { display: block; font-size: 13.5px; font-weight: 600; color: #F8FAFC; }
.cnode span { display: block; font-family: var(--font-mono); font-size: 10.5px; color: #7DACF8; margin-top: 3px; }
.cnode-arrow { text-align: center; color: #475569; font-size: 12px; line-height: 1; }

/* ============ FOUNDER ============ */
.founder-grid { display: grid; grid-template-columns: 360px 1fr; gap: 64px; margin-top: 48px; align-items: start; }
.founder-photo { position: relative; }
.founder-photo image-slot { width: 100%; height: 430px; }
.founder-photo .fp-cap { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }
.founder-quote { font-size: 22px; line-height: 1.45; font-weight: 500; letter-spacing: -0.015em; color: var(--navy); max-width: 30ch; text-wrap: pretty; }
.founder-quote em { font-style: italic; }
.founder-note { margin-top: 22px; font-size: 15px; color: var(--slate); line-height: 1.65; max-width: 58ch; text-align: justify; hyphens: auto; }
.founder-note + .founder-note { margin-top: 14px; }
.founder-sig { margin-top: 22px; font-size: 14px; color: var(--muted); }
.founder-sig b { color: var(--navy); font-weight: 600; }
.creds { margin-top: 32px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.cred { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.cred label { color: var(--muted); }
.cred span { font-family: var(--font-mono); font-size: 11.5px; color: var(--navy); text-align: right; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1060px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-stage { min-height: 0; }
  .cockpit, .ck-route { margin-left: 64px; }
  .layers { grid-template-columns: 1fr 1fr; }
  .svc-grid, .uc-grid { grid-template-columns: 1fr 1fr; }
  .gov-grid { grid-template-columns: 1fr 1fr; }
  .tl-steps { grid-template-columns: repeat(4, 1fr); gap: 24px 12px; }
  .tl-track, .tl-fill { display: none; }
  .tl-step::before { width: 13px; height: 13px; }
  .tl-step { padding-top: 24px; }
}
@media (max-width: 860px) {
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-col.before { border-right: none; border-bottom: 1px solid var(--border); }
  .ba-arrow { top: auto; }
  .brief-main { grid-template-columns: 1fr; }
  .brief-left { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .calc { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .imap-cols { grid-template-columns: 1fr; gap: 28px; }
  .imap-svg { display: none; }
  .founder-grid { grid-template-columns: 1fr; gap: 36px; }
  .founder-photo image-slot { height: 360px; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 64px; }
  .raw-card { position: relative; transform: rotate(-1.5deg); width: min(264px, 90%); }
  .cockpit, .ck-route { margin-left: 0; }
  .cockpit { margin-top: 18px; }
  .layers, .svc-grid, .uc-grid, .gov-grid, .cout-grid, .creds, .problem-stats { grid-template-columns: 1fr; }
  .tl-steps { grid-template-columns: 1fr 1fr; }
  .funnel-row { grid-template-columns: 40px 1fr; }
  .funnel-row .funnel-label { grid-column: 2; }
  .funnel-row .funnel-track { grid-column: 1 / -1; }
  .imap { padding: 24px; }
  .uc-prob, .ba-desc { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stage.play *, .hero-stage.play::after, .hero-stage.play .cockpit::after { animation: none !important; }
  html.anim-on .hero-stage.armed .raw-card, html.anim-on .hero-stage.armed .cockpit, html.anim-on .hero-stage.armed .ck-route { opacity: 1; }
  html.anim-on .funnel:not(.in) .funnel-bar { width: auto !important; }
  .flow-link, .imap-svg path { animation: none !important; }
}
