/* Supercompute · Marketing UI kit — DIRECTION 03 "Terminal Dossier"
 * Approved from home-wireframes.html. Dark navy, brass-gold, mono everywhere.
 * CRT scanline lives behind a z-stack; interactive controls always above it.
 */

@import url('../../colors_and_type.css');

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--site-bg);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 14px; line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── CRT / scanline stack ─────────────────────────────
 * Three fixed layers behind the page:
 *   z:0 — page background + dot grid
 *   z:1 — scanline overlay (subtle)
 *   z:2 — page content (header, hero, sections)
 * All buttons + nav links live at z:3+ so they never get
 * eaten by the CRT effect.
 */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(0deg,  rgba(255,255,255,.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.030) 1px, transparent 1px);
  background-size: 56px 56px;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,.18) 0,
    rgba(0,0,0,.18) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply; opacity: .65;
}
/* Soft vignette so corners feel CRT-curved */
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center,
    transparent 55%,
    rgba(0,0,0,.55) 100%);
}

#root { position: relative; z-index: 2; }

/* ─── HUD frame ─────────────────────────────────────── */
.hud-corner {
  position: fixed; width: 32px; height: 32px;
  border: 2px solid var(--hud-yellow); z-index: 4; pointer-events: none;
}
.hud-corner.tl { top: 18px;    left: 18px;    border-right: none; border-bottom: none; }
.hud-corner.tr { top: 18px;    right: 18px;   border-left: none;  border-bottom: none; }
.hud-corner.bl { bottom: 18px; left: 18px;    border-right: none; border-top: none; }
.hud-corner.br { bottom: 18px; right: 18px;   border-left: none;  border-top: none; }

/* ─── TOP NAV ───────────────────────────────────────── */
.topnav {
  display: flex; align-items: center; gap: 32px;
  padding: 32px 72px;
  border-bottom: 1px solid rgba(244,236,216,.10);
  position: relative; z-index: 3;
}
.topnav-brand { display: flex; align-items: center; gap: 14px; }
.topnav-brand img {
  width: 40px; height: 40px; border-radius: 50%;
  filter: drop-shadow(0 0 16px rgba(255,184,0,.35));
}
.topnav-brand-mark {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 14px; letter-spacing: 3.5px; color: var(--gold-warm);
  text-transform: uppercase;
}
.topnav-brand-mark .dim { color: var(--mono-blue); opacity: .7; }
.topnav-links {
  display: flex; gap: 32px;
  margin-left: 16px;
}
.topnav-link {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--cream);
  text-decoration: none;
  cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}
.topnav-link:hover { border-bottom-color: var(--gold-warm); color: var(--gold-warm); }
.topnav-link.active { border-bottom-color: var(--gold-warm); color: var(--gold-warm); }
.topnav-link .slash { color: var(--mono-blue); opacity: .6; }

/* Primary command-style CTA in nav */
.cmd-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid var(--gold-warm);
  color: var(--gold-warm);
  font-family: var(--font-mono); font-weight: 700;
  font-size: 13px; letter-spacing: 1px;
  cursor: pointer; transition: all .15s;
  text-transform: lowercase;
  position: relative; z-index: 3;
}
.cmd-btn:hover { background: var(--gold-warm); color: #1a1303; }
.cmd-btn .prompt { color: var(--mono-blue); }
.cmd-btn.solid { background: var(--gold-warm); color: #1a1303; }
.cmd-btn.solid .prompt { color: rgba(26,19,3,.55); }
.cmd-btn.solid:hover { background: #e0b94a; }
.cmd-btn.ghost { color: var(--cream); border-color: rgba(244,236,216,.30); }
.cmd-btn.ghost:hover { border-color: var(--cream); background: rgba(244,236,216,.04); color: var(--cream); }

/* ─── SHARED PAGE LAYOUT ────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 72px; }
.section {
  padding: 96px 0;
  border-bottom: 1px solid rgba(244,236,216,.08);
  position: relative; z-index: 2;
}
.section:last-child { border-bottom: none; }

/* Generous mono prompt — used to head every section + hero */
.prompt-line {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--mono-blue);
  margin-bottom: 32px;
  letter-spacing: .5px;
}
.prompt-line .caret {
  width: 8px; height: 16px; background: var(--gold-warm);
  animation: blink-caret 1.1s steps(1) infinite;
}
@keyframes blink-caret { 50% { opacity: 0; } }
.prompt-line .cmd { color: var(--cream); font-weight: 500; }
.prompt-line .cmd .gold { color: var(--gold-warm); }

/* ─── HERO ──────────────────────────────────────────── */
.hero { padding: 80px 0 120px; }

.hero-output {
  font-family: var(--font-mono);
  display: grid; grid-template-columns: 140px 1fr;
  gap: 14px 28px;
  margin-bottom: 40px;
  font-size: 32px; line-height: 1.45;
  letter-spacing: -.2px;
}
.hero-output .k {
  color: var(--gold-warm); font-weight: 700;
  font-size: 14px; letter-spacing: 2px;
  text-transform: uppercase;
  padding-top: 14px;
}
.hero-output .v { color: var(--cream); font-weight: 500; }
.hero-output .v em { font-style: normal; color: var(--mono-blue); }

.hero-body {
  font-family: var(--font-mono); font-size: 16px; line-height: 1.85;
  color: var(--mono-blue);
  max-width: 640px;
  margin-bottom: 48px;
}
.hero-body strong { color: var(--cream); font-weight: 600; }

.hero-ctas {
  display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 56px;
}
.hero-ctas .cmd-btn { font-size: 14px; padding: 14px 22px; margin-left: 0; }

/* ─── DOSSIER SHEET (services, projects, etc.) ──────── */
.sheet {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(244,236,216,.10);
  padding: 28px 32px;
}
.sheet-row {
  display: grid; grid-template-columns: 32px 1fr auto;
  gap: 16px 24px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(244,236,216,.08);
  font-family: var(--font-mono);
}
.sheet-row:last-child { border-bottom: none; }
.sheet-row .num {
  color: var(--gold-warm); font-weight: 700; font-size: 14px;
}
.sheet-row .body {
  display: flex; flex-direction: column; gap: 4px;
}
.sheet-row .body .name {
  font-size: 16px; color: var(--cream); font-weight: 600;
  letter-spacing: .2px;
}
.sheet-row .body .desc {
  font-size: 13px; color: var(--mono-blue); line-height: 1.6;
}
.sheet-row .price {
  font-size: 16px; font-weight: 700; color: var(--gold-warm);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.sheet-row .price .unit { font-size: 12px; color: var(--mono-blue); margin-left: 4px; font-weight: 500; }

/* Project pair grid (2-col output) */
.proj-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(244,236,216,.10);
  border: 1px solid rgba(244,236,216,.10);
}
.proj-cell {
  background: var(--site-bg);
  padding: 24px 28px;
  font-family: var(--font-mono);
  display: flex; flex-direction: column; gap: 10px;
}
.proj-cell .head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--gold-warm); font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.proj-cell .head .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ADE80; box-shadow: 0 0 6px rgba(74,222,128,.5);
}
.proj-cell .head .dot.idle { background: var(--gold-warm); box-shadow: 0 0 6px rgba(201,163,58,.4); }
.proj-cell .title { font-size: 18px; color: var(--cream); font-weight: 600; }
.proj-cell .meta {
  font-size: 12px; color: var(--mono-blue); line-height: 1.6;
}
.proj-cell .meta strong { color: var(--cream); }
.proj-cell .link {
  font-size: 12px; color: var(--cream);
  border-bottom: 1px solid rgba(244,236,216,.20);
  align-self: flex-start; padding-bottom: 2px;
  margin-top: 6px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.proj-cell .link:hover { color: var(--gold-warm); border-bottom-color: var(--gold-warm); }

/* ─── FOUNDER STRIP ─────────────────────────────────── */
.founder {
  display: grid; grid-template-columns: 180px 1fr auto;
  gap: 40px; align-items: center;
  padding: 32px 40px;
  border: 1px solid rgba(244,236,216,.10);
  background: rgba(255,255,255,.02);
}
.founder-photo {
  width: 180px; height: 180px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,184,0,.20), transparent 60%),
    linear-gradient(135deg, #1a2235, #0a1330);
  border: 1px solid rgba(244,236,216,.15);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--mono-blue); letter-spacing: 1.5px;
}
.founder-photo .label { opacity: .5; }
.founder-meta { font-family: var(--font-mono); }
.founder-meta .name {
  font-size: 22px; color: var(--cream); font-weight: 600;
  margin-bottom: 6px; letter-spacing: .3px;
}
.founder-meta .role {
  font-size: 13px; color: var(--gold-warm); font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}
.founder-meta .bio {
  font-size: 14px; color: var(--mono-blue); line-height: 1.85; max-width: 540px;
}
.founder-meta .principles {
  display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap;
}
.founder-meta .principle {
  font-size: 11px; color: var(--cream);
  border-left: 2px solid var(--gold-warm); padding-left: 10px;
  letter-spacing: .5px;
}

/* ─── NEWSDESK / SCHOOL ROWS ────────────────────────── */
.feed-row {
  display: grid; grid-template-columns: 100px 1fr auto;
  gap: 24px; align-items: center;
  padding: 22px 0;
  border-bottom: 1px dashed rgba(244,236,216,.08);
  font-family: var(--font-mono);
}
.feed-row:last-child { border-bottom: none; }
.feed-row .cat {
  font-size: 11px; color: var(--gold-warm); font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.feed-row .title {
  font-size: 16px; color: var(--cream); font-weight: 500;
  line-height: 1.5;
}
.feed-row .title:hover { color: var(--gold-warm); cursor: pointer; }
.feed-row .meta {
  font-size: 12px; color: var(--mono-blue);
  text-align: right;
}

/* ─── FOOTER ────────────────────────────────────────── */
.footer {
  padding: 56px 72px 96px;
  border-top: 1px solid rgba(244,236,216,.08);
  position: relative; z-index: 2;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
}
.footer-brand-block { display: flex; flex-direction: column; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 50%; }
.footer-brand .mark {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 13px; letter-spacing: 3px; color: var(--gold-warm);
  text-transform: uppercase;
}
.footer-tag {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  color: var(--mono-blue); max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-warm); margin-bottom: 18px;
}
.footer-col a {
  display: block; font-family: var(--font-mono); font-size: 14px;
  color: var(--cream); text-decoration: none; padding: 5px 0;
  opacity: .75; transition: opacity .15s, color .15s;
}
.footer-col a:hover { opacity: 1; color: var(--gold-warm); }

.footer-bottom {
  max-width: 1200px; margin: 56px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(244,236,216,.08);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--mono-blue); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom .right { color: var(--gold-warm); }

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 980px) {
  .topnav { padding: 24px 32px; flex-wrap: wrap; gap: 16px; }
  .topnav-links { margin-left: 0; gap: 20px; order: 3; width: 100%; padding-top: 12px; border-top: 1px solid rgba(244,236,216,.10); }
  .cmd-btn { margin-left: auto; }
  .wrap { padding: 0 32px; }
  .section { padding: 64px 0; }
  .hero-output { grid-template-columns: 1fr; gap: 4px 0; font-size: 24px; }
  .hero-output .k { padding-top: 18px; }
  .proj-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .founder-photo { width: 100%; height: 220px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .feed-row { grid-template-columns: 1fr; gap: 6px; }
  .feed-row .meta { text-align: left; }
}
