/* ============================================================
   Orbital L0G — dark terminal aesthetic
   Phosphor green CRT, scanlines, grid. No "Formulary" anywhere.
   ============================================================ */
body.terminal {
  background: var(--terminal-bg);
  color: #D7DBD2;
}
body.terminal ::selection { background: var(--phosphor); color: #04210d; }

/* CRT grid + scanline backdrop */
.crt {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(61,255,110,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,255,110,0.045) 1px, transparent 1px);
  background-size: 30px 30px;
}
.crt::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,0.16) 2px 3px);
  mix-blend-mode: multiply;
}
.terminal main, .terminal .site-header, .terminal .term-footer { position: relative; z-index: 1; }

/* shared utility colours on dark */
.terminal .eyebrow { color: var(--phosphor); }
.terminal .eyebrow::before { background: var(--phosphor-dim); }
.terminal .btn--primary { background: var(--phosphor); color: #04210d; }
.terminal .btn--primary:hover { background: #6dff92; }
.terminal .btn--ghost { color: var(--phosphor); border-color: rgba(61,255,110,0.35); }
.terminal .btn--ghost:hover { border-color: var(--phosphor); }

/* ---------- Terminal hero ---------- */
.term-hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.term-window {
  border: 1px solid rgba(61,255,110,0.28); border-radius: 14px;
  background: rgba(7,12,9,0.7); overflow: hidden;
  box-shadow: 0 0 80px -30px rgba(61,255,110,0.4);
}
.term-bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid rgba(61,255,110,0.2);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--phosphor-soft);
}
.term-bar .dots { display: flex; gap: 0.4rem; }
.term-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(61,255,110,0.3); }
.term-bar .dots i:first-child { background: var(--rose); }
.term-bar .path { margin-left: auto; }
.term-body { padding: clamp(1.8rem, 4vw, 3.2rem); font-family: var(--mono); }
.term-hero h1 {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.2rem); color: var(--phosphor);
  letter-spacing: -0.01em; line-height: 1.04;
  text-shadow: 0 0 22px rgba(61,255,110,0.45);
}
.term-hero .auth { color: var(--phosphor-soft); letter-spacing: 0.22em; font-size: 0.8rem; margin-top: 0.8rem; }
.term-hero .boot { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.86rem; color: rgba(215,219,210,0.78); }
.term-hero .boot span { color: var(--phosphor); }
.term-hero .lead { margin-top: 1.8rem; font-family: var(--sans); font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(215,219,210,0.82); max-width: 56ch; }
.term-hero .actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.cursor { display: inline-block; width: 0.6em; height: 1.05em; background: var(--phosphor); vertical-align: -0.15em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Section heads (dark) ---------- */
.term-section { padding-block: clamp(3rem, 6vw, 5rem); }
.term-section .head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.term-section .head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #ECEFE9; margin-top: 0.9rem; }
.term-section .head p { margin-top: 1rem; color: rgba(215,219,210,0.66); font-size: 1.08rem; }

/* ---------- Feature manifest (from app) ---------- */
.manifest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.manifest-item {
  border: 1px solid rgba(61,255,110,0.2); border-radius: 12px;
  background: rgba(11,17,13,0.6); padding: 1.5rem 1.6rem;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.manifest-item:hover { border-color: rgba(61,255,110,0.55); background: rgba(11,17,13,0.9); transform: translateY(-3px); }
.manifest-item .row { display: flex; align-items: center; gap: 0.8rem; }
.manifest-item .ico { color: var(--phosphor); flex-shrink: 0; }
.manifest-item h3 { font-family: var(--mono); font-size: 1.02rem; letter-spacing: 0.04em; color: var(--phosphor); font-weight: 700; }
.manifest-item p { margin-top: 0.7rem; font-family: var(--mono); font-size: 0.84rem; line-height: 1.7; color: rgba(215,219,210,0.66); }

/* ---------- Mission / privacy panels ---------- */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.panel {
  border: 1px solid rgba(61,255,110,0.18); border-radius: 12px;
  padding: 1.7rem; background: rgba(11,17,13,0.5);
}
.panel .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--phosphor-soft); text-transform: uppercase; }
.panel h3 { color: #ECEFE9; font-size: 1.2rem; margin-top: 0.7rem; }
.panel p { margin-top: 0.7rem; color: rgba(215,219,210,0.66); font-size: 0.96rem; }

/* ---------- Spec list ---------- */
.spec { border-top: 1px solid rgba(61,255,110,0.16); }
.spec-row {
  display: grid; grid-template-columns: 0.4fr 1fr; gap: 1.5rem;
  padding: 1.3rem 0; border-bottom: 1px solid rgba(61,255,110,0.16);
  align-items: baseline;
}
.spec-row dt { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--phosphor); text-transform: uppercase; }
.spec-row dd { color: rgba(215,219,210,0.8); }

/* ---------- Device showcase on dark ---------- */
.term-showcase { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.term-showcase .device {
  position: relative; justify-self: center;
  width: min(300px, 74vw); aspect-ratio: 9/19.2;
  background: #0c100d; border-radius: 42px; padding: 11px;
  box-shadow: 0 0 90px -30px rgba(61,255,110,0.5), inset 0 0 0 1.5px rgba(61,255,110,0.18);
}
.term-showcase .device-screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--terminal-bg); }
.term-showcase .shot-ph {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.9rem; text-align: center; padding: 1.5rem; color: var(--phosphor-soft); font-family: var(--mono);
  background: radial-gradient(circle at 50% 36%, rgba(61,255,110,0.12), transparent 60%), var(--terminal-bg);
}
.term-showcase .shot-ph .icon { width: 40px; height: 40px; border: 1.5px solid var(--phosphor-soft); border-radius: 9px; display: grid; place-items: center; color: var(--phosphor); }
.term-showcase .shot-ph .label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.term-showcase .shot-ph .sub { font-size: 0.64rem; color: rgba(61,255,110,0.4); }

/* ---------- CTA ---------- */
.term-cta {
  border: 1px solid rgba(61,255,110,0.3); border-radius: 16px;
  background: rgba(11,17,13,0.7); padding: clamp(2.2rem, 5vw, 3.6rem); text-align: center;
  box-shadow: 0 0 90px -40px rgba(61,255,110,0.5);
}
.term-cta h2 { font-family: var(--mono); color: var(--phosphor); font-size: clamp(1.6rem, 4vw, 2.6rem); text-shadow: 0 0 22px rgba(61,255,110,0.4); }
.term-cta p { margin-top: 1rem; color: rgba(215,219,210,0.75); max-width: 46ch; margin-inline: auto; }
.term-cta .price { font-family: var(--mono); font-size: 0.9rem; letter-spacing: 0.1em; color: var(--phosphor-soft); margin-top: 1.4rem; }
.term-cta .btn { margin-top: 1rem; }

/* ---------- Dark footer ---------- */
.term-footer { background: #040705; border-top: 1px solid rgba(61,255,110,0.16); color: rgba(215,219,210,0.6); padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem; }
.term-footer .footer-grid { border-color: rgba(61,255,110,0.14); }
.term-footer .footer-brand .brand { color: #ECEFE9; }
.term-footer .footer-brand .brand b { color: var(--phosphor); }
.term-footer .footer-col h4 { color: var(--phosphor-soft); }
.term-footer a { color: rgba(215,219,210,0.6); }
.term-footer a:hover { color: var(--phosphor); }
.term-footer .footer-bottom { color: rgba(215,219,210,0.4); border: 0; }

/* ---------- Entity evolution track ---------- */
.evo-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.evo-node {
  border: 1px solid rgba(61,255,110,0.2); border-radius: 12px;
  background: rgba(11,17,13,0.5); padding: 1.7rem 1.1rem; text-align: center;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.evo-node:hover { border-color: rgba(61,255,110,0.55); background: rgba(11,17,13,0.85); transform: translateY(-3px); }
.evo-lock {
  width: 56px; height: 56px; margin: 0 auto 1.1rem; border-radius: 50%;
  display: grid; place-items: center; color: var(--phosphor);
  border: 1px solid rgba(61,255,110,0.3); background: rgba(61,255,110,0.06);
  box-shadow: 0 0 26px rgba(61,255,110,0.18);
}
.evo-node .stage { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--phosphor-soft); }
.evo-node .day { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--phosphor); margin-top: 0.3rem; text-shadow: 0 0 16px rgba(61,255,110,0.4); }
.evo-redact {
  height: 10px; width: 64%; margin: 0.85rem auto 0; border-radius: 3px;
  background: repeating-linear-gradient(90deg, rgba(61,255,110,0.38) 0 9px, transparent 9px 13px);
}
.evo-node .desc { color: rgba(215,219,210,0.62); font-size: 0.82rem; margin-top: 0.6rem; line-height: 1.5; }
@media (max-width: 860px) { .evo-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .evo-track { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .manifest, .panels { grid-template-columns: 1fr; }
  .term-showcase { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: 0.4rem; }
}
