/* ============================================================
   HALO narrative — climax "Halo in action" code-scan scene
   ============================================================ */

.scan-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(18px, 2vw, 30px);
  align-items: stretch;
}
@media (max-width: 980px) { .scan-wrap { grid-template-columns: 1fr; } }

/* ---- code editor pane ---- */
.editor {
  border-radius: 12px;
  overflow: hidden;
  background: #061320;
  border: 1px solid rgba(163,214,214,0.16);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  font-family: var(--font-mono);
}
.editor .bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #081c2d;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.editor .bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.editor .bar .dot.r { background: #ff6b5b; } .editor .bar .dot.y { background: #ffc857; } .editor .bar .dot.g { background: #2bcb7a; }
.editor .bar .path { margin-left: 10px; color: var(--ink-3); font-size: clamp(12px,1.1vw,15px); letter-spacing: 0.02em; }
.editor pre {
  margin: 0; padding: 18px 20px;
  font-size: clamp(12px, 1.05vw, 15.5px); line-height: 1.85;
  color: #cfe3ef; overflow-x: auto;
}
.editor .ln { display: block; white-space: pre; }
.editor .ln .g { color: #5b7488; }      /* gutter / comment */
.editor .ln .k { color: #6fb6f0; }       /* keyword */
.editor .ln .s { color: #8fe0b4; }       /* string */
.editor .ln .p { color: #e6c879; }       /* prop */
.editor .ln.flag {
  background: rgba(255,139,111,0.14);
  box-shadow: inset 3px 0 0 #ff8b6f;
  border-radius: 2px;
}
.editor .ln.flag2 {
  background: rgba(255,200,87,0.12);
  box-shadow: inset 3px 0 0 #ffc857;
}

/* ---- Halo review pane ---- */
.review {
  display: flex; flex-direction: column;
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(20,58,89,0.5), rgba(8,28,45,0.42));
  border: 1px solid var(--gold-line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.42), inset 0 0 90px rgba(75,156,211,0.06);
  overflow: hidden;
}
.review .rhead {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(230,200,121,0.2);
  background: rgba(8,28,45,0.4);
}
.review .rhead .mk {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(230,200,121,0.1);
  border: 1px solid var(--gold-line);
}
.review .rhead .mk svg { width: 26px; height: 26px; }
.review .rhead .who { font-family: var(--font-display); font-size: clamp(20px,2vw,28px); color: var(--ink); line-height: 1.05; }
.review .rhead .sub { font-family: var(--font-mono); font-size: clamp(11px,1vw,13px); color: var(--aqua); letter-spacing: 0.04em; }

.scan-bar {
  height: 3px; background: rgba(255,255,255,0.08); position: relative; overflow: hidden;
}
.scan-bar > i {
  display: block; height: 100%; width: 0;
  background: var(--halo-grad);
  transition: width 4.2s linear;
}
.scan-status {
  padding: 10px 22px; font-family: var(--font-mono);
  font-size: clamp(11px,1vw,13px); letter-spacing: 0.06em; color: var(--ink-3);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.findings { display: flex; flex-direction: column; padding: 6px 0; }
.finding {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  opacity: 0; transform: translateX(22px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.finding.show { opacity: 1; transform: none; }
.finding .sev {
  align-self: start;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.sev.high { color: #ff8b6f; background: rgba(255,139,111,0.14); border: 1px solid rgba(255,139,111,0.4); }
.sev.med  { color: #ffc857; background: rgba(255,200,87,0.12); border: 1px solid rgba(255,200,87,0.38); }
.sev.low  { color: #6fb6f0; background: rgba(75,156,211,0.14); border: 1px solid rgba(75,156,211,0.4); }
.sev.mem  { color: #c79bdc; background: rgba(123,75,148,0.18); border: 1px solid rgba(123,75,148,0.5); }
.finding .fbody .rule { font-family: var(--font-mono); font-size: clamp(12px,1.05vw,14px); color: var(--aqua); letter-spacing: 0.02em; }
.finding .fbody .msg { font-family: var(--font-body); font-weight: 300; font-size: clamp(14px,1.2vw,18px); color: var(--ink); line-height: 1.4; margin-top: 4px; }
.finding .fbody .meta { font-family: var(--font-mono); font-size: clamp(11px,0.95vw,13px); color: var(--ink-3); margin-top: 5px; }

.scan-summary {
  margin-top: auto;
  padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(43,203,122,0.07);
  border-top: 1px solid rgba(230,200,121,0.22);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out) 0.1s, transform 0.6s var(--ease-spring) 0.1s;
}
.scan-summary.show { opacity: 1; transform: none; }
.scan-summary .spark { color: var(--gold); font-size: 22px; }
.scan-summary .txt { font-family: var(--font-display); font-size: clamp(18px,1.9vw,26px); color: var(--ink); line-height: 1.2; }
.scan-summary .txt em { font-style: italic; color: var(--aqua); }

/* ============================================================
   WHAT HALO RECOMMENDS · CLI + chat
   ============================================================ */
.recommends-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2vw, 30px);
  align-items: start;
}
@media (max-width: 980px) { .recommends-wrap { grid-template-columns: 1fr; } }
.rec-col { display: flex; flex-direction: column; gap: 14px; }
.rec-tag {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--aqua);
}
.rec-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(230,200,121,0.7); }

.editor .ln .cm { color: #8aa0b2; }
.editor .ln .aq { color: #7fd1c9; }

.chat {
  display: flex; flex-direction: column; gap: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(20,58,89,0.4), rgba(8,28,45,0.34));
  border: 1px solid rgba(163,214,214,0.16);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(8,28,45,0.55);
  border-bottom: 1px solid rgba(230,200,121,0.18);
}
.chat-avatar {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 9px; background: rgba(230,200,121,0.1);
  border: 1px solid var(--gold-line); display: grid; place-items: center;
}
.chat-avatar svg { width: 21px; height: 21px; }
.chat-head-meta { display: flex; flex-direction: column; gap: 1px; }
.chat-head-name { font-family: var(--font-display); font-size: 22px; color: var(--ink); line-height: 1.1; white-space: nowrap; }
.chat-head-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3);
}
.chat-head-status i { width: 7px; height: 7px; border-radius: 50%; background: #5fe0a0; box-shadow: 0 0 8px rgba(95,224,160,0.8); }
.chat-log {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(20px, 2.2vw, 28px);
}
.bubble { font-family: var(--font-body); font-weight: 300; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.5; }
.bubble.user {
  align-self: flex-end; max-width: 88%;
  background: rgba(75,156,211,0.16); border: 1px solid rgba(75,156,211,0.35);
  color: var(--ink); padding: 14px 18px; border-radius: 16px 16px 4px 16px;
}
.bubble.halo { align-self: flex-start; display: flex; gap: 14px; max-width: 97%; }
.bubble.halo .avatar {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px; background: rgba(230,200,121,0.1);
  border: 1px solid var(--gold-line); display: grid; place-items: center;
}
.bubble.halo .avatar svg { width: 24px; height: 24px; }
.bubble.halo .bubble-body {
  background: rgba(8,28,45,0.5); border: 1px solid var(--gold-line);
  color: var(--ink-2); padding: 16px 20px; border-radius: 16px 16px 16px 4px;
}
.bubble.halo .bubble-body strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   CONSOLIDATED DEMO TABS (Halo in Action)
   ============================================================ */
.demo { width: 100%; }
.demo-rail {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: clamp(18px, 2.4vh, 28px);
}
.demo-tab {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(14px, 1.25vw, 17px);
  color: var(--ink-2);
  background: rgba(8,28,45,0.4);
  border: 1px solid rgba(163,214,214,0.16);
  border-radius: var(--radius-full, 999px);
  padding: 10px 20px; cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.demo-tab i { font-size: 1.2em; color: var(--ink-3); transition: color .2s ease; }
.demo-tab:hover { color: var(--ink); border-color: rgba(163,214,214,0.3); }
.demo-tab.active {
  color: var(--abyss, #081C2D);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 500;
}
.demo-tab.active i { color: var(--abyss, #081C2D); }
.demo-panel[hidden] { display: none; }
.demo-panel {
  animation: demo-fade .35s ease both;
}
@keyframes demo-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .demo-panel { animation: none; } }

/* ============================================================
   QUIET LINK (Human Science → Foundation)
   ============================================================ */
.quiet-link {
  align-self: flex-start;
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--aqua); text-decoration: none;
  border-bottom: 1px solid rgba(163,214,214,0.3);
  padding-bottom: 3px; margin-top: clamp(8px, 1.5vh, 18px);
  transition: color .2s ease, border-color .2s ease;
}
.quiet-link:hover { color: var(--ink); border-color: var(--aqua); }

/* inline text link */
.text-link {
  color: var(--aqua); text-decoration: none;
  border-bottom: 1px solid rgba(163,214,214,0.45);
  transition: color .2s ease, border-color .2s ease;
}
.text-link:hover { color: var(--ink); border-color: var(--aqua); }

/* ============================================================
   TRACTION (live-dashboard readout + arc gauge)
   ============================================================ */
.traction-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.gauge-wrap {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.gauge { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.gauge-track { fill: none; stroke: rgba(163,214,214,0.14); stroke-width: 9; }
.gauge-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 603.2;
  stroke-dashoffset: 603.2;
  filter: drop-shadow(0 0 10px rgba(230,200,121,0.55));
  transition: stroke-dashoffset 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gauge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.gauge-num {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(54px, 7.5vw, 96px); line-height: 1; color: var(--gold);
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.gauge-label {
  font-size: clamp(11px, 1vw, 14px); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 10px;
}
.traction-stats { gap: clamp(14px, 2vh, 22px); }
.tstat {
  display: flex; align-items: baseline; gap: clamp(16px, 2vw, 26px);
  padding: clamp(20px, 2.4vw, 30px) clamp(22px, 2.8vw, 36px);
  border: 1px solid rgba(163,214,214,0.16);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(20,58,89,0.4), rgba(8,28,45,0.34));
  box-shadow: 0 16px 50px rgba(0,0,0,0.3);
}
.tstat-num {
  font-family: var(--font-display); font-weight: 400; flex-shrink: 0;
  font-size: clamp(38px, 4.4vw, 60px); line-height: 1; color: var(--ink);
  min-width: 2.6ch;
}
.tstat-label {
  font-size: clamp(11px, 1vw, 14px); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); line-height: 1.4;
}
@media (max-width: 860px) {
  .traction-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vh, 48px); }
  .gauge-wrap { width: min(72vw, 320px); }
}

/* ============================================================
   EMAIL CAPTURE CTA
   ============================================================ */
.cta-capture {
  width: 100%; max-width: 600px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  padding: clamp(24px,2.8vh,34px) clamp(28px,4vw,52px);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--gold-line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}
.cta-capture-label {
  color: var(--gold); letter-spacing: 0.22em; font-size: 11px;
  text-transform: uppercase; margin-bottom: 4px;
}
.cta-capture .lede { max-width: 42ch; }
.cta-capture-form {
  display: flex; gap: 10px; width: 100%; max-width: 440px;
  margin-top: 4px;
}
.cta-capture-form input {
  flex: 1; min-width: 0;
  font-family: var(--font-body); font-size: clamp(15px, 1.3vw, 17px);
  color: var(--ink);
  background: rgba(8,28,45,0.6);
  border: 1px solid rgba(163,214,214,0.22);
  border-radius: var(--radius-full, 999px);
  padding: 13px 20px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cta-capture-form input::placeholder { color: var(--ink-3); }
.cta-capture-form input:focus {
  outline: none; border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(163,214,214,0.18);
}
.cta-capture-form button {
  flex-shrink: 0;
  font-family: var(--font-body); font-weight: 600; font-size: clamp(15px, 1.3vw, 17px);
  color: var(--abyss, #081C2D);
  background: var(--gold);
  border: none; border-radius: var(--radius-full, 999px);
  padding: 13px 26px; cursor: pointer;
  transition: opacity .2s ease, background .2s ease;
}
.cta-capture-form button:hover { background: #f0d488; }
.cta-capture-form button:active { opacity: 0.92; }
@media (max-width: 560px) {
  .cta-capture-form { flex-direction: column; }
}

/* ============================================================
   GITHUB PR SHOWCASE (Human Science)
   ============================================================ */
.gh-pr {
  margin: clamp(28px, 4vh, 48px) auto 0;
  max-width: 920px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(163,214,214,0.18);
  background: linear-gradient(165deg, rgba(20,58,89,0.4), rgba(8,28,45,0.5));
  box-shadow: 0 34px 90px rgba(0,0,0,0.46);
}
.gh-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  background: rgba(8,28,45,0.65);
  border-bottom: 1px solid rgba(230,200,121,0.16);
  font-family: var(--font-mono); font-size: clamp(12px,1.1vw,14px); color: var(--ink-3);
}
.gh-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(163,214,214,0.25); }
.gh-dot:nth-child(1) { background: #E0816F; }
.gh-dot:nth-child(2) { background: var(--gold); }
.gh-dot:nth-child(3) { background: #5fe0a0; }
.gh-repo { margin-left: 10px; color: var(--ink-2); }
.gh-branch { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--aqua); }
.gh-body { padding: clamp(18px, 2.4vw, 28px); }
.gh-comment { display: flex; gap: 14px; }
.gh-avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px; background: rgba(230,200,121,0.1);
  border: 1px solid var(--gold-line); display: grid; place-items: center;
}
.gh-avatar svg { width: 24px; height: 24px; }
.gh-comment-main { flex: 1; min-width: 0; }
.gh-comment-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-body); font-size: clamp(15px,1.3vw,18px); color: var(--ink-2); margin-bottom: 14px;
}
.gh-comment-head strong { color: var(--ink); font-weight: 600; }
.gh-bot {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid rgba(163,214,214,0.25); border-radius: var(--radius-full, 999px); padding: 2px 8px;
}
.gh-action { color: var(--ink-3); }
.gh-card {
  border: 1px solid rgba(163,214,214,0.16);
  border-radius: 10px; overflow: hidden;
  background: rgba(8,28,45,0.4);
}
.gh-finding-top {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid rgba(163,214,214,0.12);
}
.gh-sev {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line);
  border-radius: var(--radius-full, 999px); padding: 3px 12px;
}
.gh-file { font-family: var(--font-mono); font-size: clamp(13px,1.15vw,15px); color: var(--aqua); }
.gh-finding-text {
  margin: 0; padding: 16px 18px 0;
  font-family: var(--font-body); font-weight: 300; font-size: clamp(15px,1.3vw,18px);
  line-height: 1.5; color: var(--ink-2);
}
.gh-rule {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px 16px;
  font-family: var(--font-mono); font-size: clamp(12px,1.05vw,14px); color: var(--ink-3);
}
.gh-rule i { color: var(--gold); }
.gh-suggestion { border-top: 1px solid rgba(163,214,214,0.12); padding: 16px 18px; }
.gh-suggestion-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 10px;
}
.gh-diff {
  margin: 0; font-family: var(--font-mono); font-size: clamp(12.5px,1.15vw,15px); line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}
.gh-diff .gh-rm { color: #E0816F; display: block; }
.gh-diff .gh-add { color: #7fe0a8; display: block; }

@media (max-width: 640px) {
  .gh-branch { display: none; }
  .gh-comment { flex-direction: column; gap: 12px; }
}
