/* STAR HEALTH // Hackathon Site Design System */
/* Uras AKAS | urasakas.com */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg: #07090d;
  --bg-deep: #050608;
  --panel: rgba(14, 17, 22, .78);
  --panel-solid: #0c1016;
  --panel-lift: rgba(14, 29, 48, .55);
  --line: rgba(180, 194, 208, .16);
  --line-soft: rgba(180, 194, 208, .08);
  --line-mint: rgba(156, 195, 216, .34);
  --text: #dce8f5;
  --text-dim: #a5b7c8;
  --muted: #8295aa;
  --faint: #62798e;
  --mint: #9cc3d8;
  --mint-hot: #b9dcec;
  --mint-wash: rgba(156, 195, 216, .08);
  --amber: #d9b06a;
  --amber-wash: rgba(217, 176, 106, .08);
  --red: #e26d6d;
  --red-wash: rgba(226, 109, 109, .08);
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Space Grotesk', Manrope, system-ui, sans-serif;
  --body: Manrope, Inter, system-ui, sans-serif;
  --shell: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
/* Atmospheric depth: nebula radials + coordinate grid, no flat black */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 12% -8%, rgba(40, 68, 92, .30), transparent 58%),
    radial-gradient(ellipse 60% 46% at 92% 6%, rgba(28, 52, 76, .24), transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 118%, rgba(20, 40, 62, .30), transparent 62%),
    linear-gradient(168deg, #050608 0%, #0b0e14 54%, #07090d 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(178, 192, 206, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 192, 206, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 88%);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: rgba(156, 195, 216, .28); }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ── Type primitives ────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--mint);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--mint), transparent);
}
.eyebrow.plain::before { display: none; }
.mono { font-family: var(--mono); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
h2.section-title { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 16px; }
h2.section-title em { font-style: normal; color: var(--mint); }
.lead { font-size: clamp(16px, 1.5vw, 18px); color: var(--text-dim); max-width: 66ch; }
.section-head { max-width: 780px; margin-bottom: 48px; }

/* ── HUD bracket decoration ─────────────────────────────── */
.hud { position: relative; }
.hud::before, .hud::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--line-mint); border-style: solid;
}
.hud::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.hud::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ── Top bar ────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(105deg, rgba(9, 11, 15, .95), rgba(7, 9, 13, .88));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .06);
}
.topbar-inner {
  max-width: var(--shell); margin: 0 auto; padding: 0 28px;
  height: 64px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--mint); border: 1px solid var(--line-mint);
  background: linear-gradient(145deg, rgba(156, 195, 216, .16), rgba(156, 195, 216, .02));
  box-shadow: 0 0 24px rgba(156, 195, 216, .10);
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 0 100%);
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .13em; }
.brand-name span { display: block; font-family: var(--mono); font-weight: 400; font-size: 8.5px; letter-spacing: .16em; color: var(--faint); margin-top: 1px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 9px 13px;
  border: 1px solid transparent; transition: .18s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.nav a.active {
  color: var(--mint); border-color: var(--line-mint);
  background: var(--mint-wash); box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}
.topbar-cta {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bg) !important; background: var(--mint); padding: 10px 16px !important;
  border: 1px solid var(--mint) !important; text-decoration: none; flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: .18s var(--ease);
}
.topbar-cta:hover { background: var(--mint-hot); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero-orbit {
  position: absolute; left: 74%; top: 34%; width: 640px; height: 640px;
  border: 1px solid rgba(156, 195, 216, .10); border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none;
  animation: orbit 60s linear infinite;
}
.hero-orbit.two { width: 860px; height: 860px; border-style: dashed; animation-direction: reverse; animation-duration: 90s; }
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(44px, 7vw, 82px); letter-spacing: -.03em; margin: 20px 0 22px;
  text-wrap: balance;
}
.hero h1 .mint { color: var(--mint); }
.hero h1 .thin { font-weight: 300; color: var(--text-dim); }
.hero-sub { font-size: clamp(15px, 1.6vw, 18.5px); color: var(--text-dim); max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 15px 26px; text-decoration: none; transition: .2s var(--ease);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .025); color: var(--text);
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { transform: translateY(-2px); border-color: var(--line-mint); color: var(--mint); }
.btn-primary {
  color: var(--bg); background: var(--mint); border-color: var(--mint);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
}
.btn-primary:hover { background: var(--mint-hot); color: var(--bg); box-shadow: 0 10px 34px rgba(156, 195, 216, .22); }
.btn-ghost { background: transparent; }

/* Hero telemetry card */
.telemetry-card {
  background: linear-gradient(140deg, rgba(14, 29, 48, .8), rgba(7, 16, 29, .84));
  border: 1px solid var(--line); padding: 22px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .3);
  backdrop-filter: blur(16px);
}
.telemetry-card .card-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px;
}
.beacon { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); }
.beacon::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: beacon 1.8s infinite;
}
@keyframes beacon { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.tele-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
}
.tele-row:last-of-type { border-bottom: 0; }
.tele-row span { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.tele-row strong { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--text); }
.tele-row strong.ok { color: var(--mint); }
.tele-row strong.warn { color: var(--amber); }

.tele-verdict {
  margin-top: 16px; padding: 13px 15px; text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  border: 1px solid var(--line-mint); background: var(--mint-wash); color: var(--mint);
}
.tele-verdict.warn { border-color: rgba(217, 176, 106, .4); background: var(--amber-wash); color: var(--amber); }

/* ── Stat strip ─────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); background: rgba(10, 13, 18, .6);
  backdrop-filter: blur(10px); margin-top: 64px;
}
.stat { padding: 24px 26px; border-right: 1px solid var(--line-soft); position: relative; }
.stat:last-child { border-right: 0; }
.stat strong {
  display: block; font-family: var(--mono); font-weight: 500;
  font-size: clamp(26px, 3vw, 36px); color: var(--mint); letter-spacing: -.02em; line-height: 1;
}
.stat span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); margin-top: 9px; }

/* ── Sections ───────────────────────────────────────────── */
section { position: relative; z-index: 1; }
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section.divider { border-top: 1px solid var(--line-soft); }

/* Problem cards */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.problem-card {
  background: var(--panel); border: 1px solid var(--line); padding: 26px 24px;
  backdrop-filter: blur(14px); box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  transition: .25s var(--ease);
}
.problem-card:hover { transform: translateY(-4px); border-color: var(--line-mint); }
.problem-num {
  font-family: var(--mono); font-size: 34px; color: var(--mint); letter-spacing: -.03em;
  line-height: 1; margin-bottom: 14px; display: block;
}
.problem-num.amber { color: var(--amber); }
.problem-card h3 { font-size: 17px; margin-bottom: 9px; letter-spacing: 0; }
.problem-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.65; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.step { padding: 30px 26px; border-right: 1px solid var(--line-soft); position: relative; background: rgba(10, 13, 18, .5); }
.step:last-child { border-right: 0; }
.step-index { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--faint); }
.step h3 { font-size: 16.5px; margin: 12px 0 10px; }
.step p { font-size: 13.5px; color: var(--text-dim); }
.step::after {
  content: ""; position: absolute; top: 0; left: 26px; width: 46px; height: 1px;
  background: linear-gradient(90deg, var(--mint), transparent); opacity: .7;
}

/* Module preview grid */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module-card {
  display: block; text-decoration: none; position: relative;
  background: var(--panel); border: 1px solid var(--line); padding: 24px 22px 22px;
  backdrop-filter: blur(12px); transition: .25s var(--ease); overflow: hidden;
}
.module-card::after {
  content: ""; position: absolute; right: 0; top: 0; width: 16px; height: 16px;
  border-top: 1px solid rgba(156, 195, 216, .3); border-right: 1px solid rgba(156, 195, 216, .3);
  opacity: 0; transition: .25s var(--ease);
}
.module-card:hover { transform: translateY(-4px); border-color: var(--line-mint); background: rgba(14, 24, 38, .8); }
.module-card:hover::after { opacity: 1; }
.module-icon {
  width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 16px;
  border: 1px solid var(--line-mint); background: var(--mint-wash); color: var(--mint);
  clip-path: polygon(0 0, 76% 0, 100% 24%, 100% 100%, 0 100%);
}
.module-icon svg { width: 18px; height: 18px; }
.module-card h3 { font-size: 15.5px; letter-spacing: 0; margin-bottom: 8px; }
.module-card p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.module-tag {
  display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--line-soft); padding: 3px 8px;
}

/* Feature split rows */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px; align-items: center; }
.split + .split { margin-top: 76px; }
.split.flip .split-media { order: 2; }
.split h3 { font-size: clamp(24px, 3vw, 32px); margin: 14px 0 16px; }
.split p { color: var(--text-dim); font-size: 15.5px; }
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text-dim); align-items: flex-start; }
.checklist svg { width: 16px; height: 16px; color: var(--mint); flex-shrink: 0; margin-top: 4px; }

/* Mock visual panel */
.mock {
  background: linear-gradient(140deg, rgba(14, 29, 48, .78), rgba(7, 16, 29, .82));
  border: 1px solid var(--line); padding: 20px; backdrop-filter: blur(16px);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .3);
}
.mock-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); padding-bottom: 13px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px;
}
.gauge-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.gauge-mini { text-align: center; }
.gauge-ring {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto; position: relative;
  display: grid; place-items: center;
  background: conic-gradient(var(--mint) var(--v), rgba(130, 155, 180, .13) 0);
}
.gauge-ring::before {
  content: ""; position: absolute; inset: 6px; background: #0c192a;
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 50%;
}
.gauge-ring.amber { background: conic-gradient(var(--amber) var(--v), rgba(130, 155, 180, .13) 0); }
.gauge-ring.red { background: conic-gradient(var(--red) var(--v), rgba(130, 155, 180, .13) 0); }
.gauge-ring span { position: relative; font-family: var(--mono); font-size: 15px; color: #e2edf7; }
.gauge-mini label { display: block; font-family: var(--mono); font-size: 8.5px; color: var(--muted); margin-top: 9px; letter-spacing: .06em; }

/* Rule / diagnosis cards */
.rule-list { display: grid; gap: 12px; }
.rule-card { border: 1px solid var(--line); padding: 16px 18px; background: rgba(10, 14, 20, .6); }
.rule-card.critical { border-color: rgba(226, 109, 109, .38); background: var(--red-wash); }
.rule-card.caution { border-color: rgba(217, 176, 106, .32); background: var(--amber-wash); }
.rule-card header { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; flex-wrap: wrap; }
.rule-id {
  font-family: var(--mono); font-size: 9.5px; color: var(--mint);
  border: 1px solid var(--line-mint); padding: 2px 7px; letter-spacing: .08em;
}
.rule-card.critical .rule-id { color: var(--red); border-color: rgba(226, 109, 109, .45); }
.rule-card.caution .rule-id { color: var(--amber); border-color: rgba(217, 176, 106, .4); }
.rule-card header strong { font-size: 14px; flex: 1; }
.sev { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); }
.sev.critical { color: var(--red); border-color: rgba(226, 109, 109, .45); }
.sev.caution { color: var(--amber); border-color: rgba(217, 176, 106, .4); }
.sev.nominal { color: var(--mint); border-color: var(--line-mint); }
.rule-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.rule-trigger {
  display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px;
  font-family: var(--mono); font-size: 9.5px; color: var(--mint);
}
.rule-trigger code { background: var(--mint-wash); border: 1px solid rgba(156, 195, 216, .2); padding: 3px 8px; }
.rule-foot { font-family: var(--mono); font-size: 8.5px; color: var(--faint); margin-top: 11px; letter-spacing: .06em; }

/* Latency comparator */
.latency { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lat-card { border: 1px solid var(--line); padding: 24px 22px; background: rgba(10, 13, 18, .6); text-align: center; position: relative; }
.lat-card.ours { border-color: var(--line-mint); background: var(--mint-wash); box-shadow: 0 0 40px rgba(156, 195, 216, .07) inset; }
.lat-card .lat-where { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.lat-card .lat-time { font-family: var(--mono); font-size: clamp(26px, 3.4vw, 40px); color: var(--text-dim); margin: 12px 0 6px; letter-spacing: -.02em; }
.lat-card.ours .lat-time { color: var(--mint); }
.lat-card .lat-note { font-size: 12.5px; color: var(--muted); }
.lat-card .lat-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; background: var(--mint); color: var(--bg); padding: 3px 10px; white-space: nowrap; }

/* CTA band */
.cta-band {
  border: 1px solid var(--line); padding: clamp(38px, 6vw, 66px) clamp(26px, 5vw, 60px);
  background:
    radial-gradient(ellipse 70% 120% at 84% 50%, rgba(156, 195, 216, .10), transparent 62%),
    linear-gradient(140deg, rgba(14, 29, 48, .7), rgba(7, 16, 29, .8));
  backdrop-filter: blur(16px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(156, 195, 216, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(156, 195, 216, .05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(28px, 4.4vw, 48px); margin: 16px 0 14px; }
.cta-band p { color: var(--text-dim); max-width: 60ch; margin: 0 auto; font-size: 15.5px; }
.cta-band .hero-actions { justify-content: center; }

/* ── Page header (inner pages) ──────────────────────────── */
.page-head { padding: 72px 0 52px; border-bottom: 1px solid var(--line-soft); position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(38px, 5.6vw, 64px); margin: 16px 0 18px; letter-spacing: -.03em; }
.page-head h1 .mint { color: var(--mint); }
.breadcrumb { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); display: flex; gap: 9px; align-items: center; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb span { color: var(--line-mint); }

/* ── Modules page ───────────────────────────────────────── */
.module-detail { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 26px; padding: 38px 0; border-bottom: 1px solid var(--line-soft); }
.module-detail:last-child { border-bottom: 0; }
.module-detail .idx {
  font-family: var(--mono); font-size: 11px; color: var(--mint); letter-spacing: .1em;
  padding-top: 6px; border-top: 1px solid var(--line-mint); height: fit-content;
}
.module-detail h2 { font-size: clamp(21px, 2.6vw, 27px); margin-bottom: 12px; }
.module-detail .desc { color: var(--text-dim); font-size: 15.5px; max-width: 74ch; }
.feature-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feature-points li {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; color: var(--muted);
  border: 1px solid var(--line-soft); padding: 5px 11px; background: rgba(255, 255, 255, .018);
}
.feature-points li.hot { color: var(--mint); border-color: var(--line-mint); background: var(--mint-wash); }

/* ── Tech page ──────────────────────────────────────────── */
.arch-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.arch-node { border: 1px solid var(--line); background: rgba(10, 13, 18, .6); padding: 22px 20px; position: relative; }
.arch-node .n-label { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.arch-node h3 { font-size: 16px; margin: 10px 0 10px; }
.arch-node p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.arch-node .stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.arch-node .stack span { font-family: var(--mono); font-size: 9px; color: var(--mint); border: 1px solid rgba(156, 195, 216, .22); padding: 3px 8px; background: var(--mint-wash); }
.arch-node.span2 { grid-column: span 2; }

.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: rgba(10, 13, 18, .55); }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 14px; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); font-weight: 400; width: 220px; background: rgba(255, 255, 255, .02);
}
.spec-table td { color: var(--text-dim); }
.spec-table td strong { color: var(--text); font-weight: 600; }
.spec-table code { font-family: var(--mono); font-size: 12.5px; color: var(--mint); background: var(--mint-wash); padding: 2px 7px; border: 1px solid rgba(156, 195, 216, .18); }

.callout {
  border-left: 2px solid var(--mint); background: var(--mint-wash);
  padding: 18px 22px; margin-top: 26px; font-size: 14.5px; color: var(--text-dim);
}
.callout.warn { border-left-color: var(--amber); background: var(--amber-wash); color: #d8b47e; }
.callout strong { color: var(--text); }
.callout.warn strong { color: var(--amber); }

/* ── Demo page ──────────────────────────────────────────── */
.scenario-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.scenario {
  border: 1px solid var(--line); background: var(--panel); padding: 24px 22px;
  backdrop-filter: blur(12px); transition: .25s var(--ease); position: relative;
}
.scenario:hover { border-color: var(--line-mint); transform: translateY(-3px); }
.scenario .sc-num { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--faint); }
.scenario h3 { font-size: 16.5px; margin: 11px 0 10px; letter-spacing: 0; }
.scenario p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.scenario .sc-effect {
  margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 9.5px; color: var(--mint); letter-spacing: .05em;
  display: flex; gap: 8px; align-items: flex-start;
}
.scenario .sc-effect svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; }
.scenario.nominal .sc-effect { color: var(--muted); }

.timeline-demo { border: 1px solid var(--line); background: rgba(10, 13, 18, .6); }
.tl-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: baseline; padding: 15px 22px; border-bottom: 1px solid var(--line-soft); }
.tl-row:last-child { border-bottom: 0; }
.tl-row .tl-t { font-family: var(--mono); font-size: 11px; color: var(--mint); letter-spacing: .06em; }
.tl-row .tl-d { font-size: 14px; color: var(--text-dim); }
.tl-row .tl-d strong { color: var(--text); }
.tl-row .tl-s { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.tl-row.warn .tl-t { color: var(--amber); }
.tl-row.crit .tl-t { color: var(--red); }

/* ── About page ─────────────────────────────────────────── */
.prose { max-width: 760px; }
.prose p { color: var(--text-dim); font-size: 16px; margin-bottom: 20px; line-height: 1.75; }
.prose p strong { color: var(--text); }
.prose h3 { font-size: 24px; margin: 40px 0 16px; }
.prose blockquote {
  border-left: 2px solid var(--mint); padding: 6px 0 6px 24px; margin: 28px 0;
  font-family: var(--display); font-size: 19px; line-height: 1.5; color: var(--text);
}
.author-card {
  display: flex; gap: 22px; align-items: center; border: 1px solid var(--line);
  background: var(--panel); padding: 26px; backdrop-filter: blur(12px); margin-top: 34px;
}
.author-avatar {
  width: 74px; height: 74px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--mint);
  border: 1px solid var(--line-mint); background: var(--mint-wash);
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 0 100%);
}
.author-card h3 { font-size: 19px; margin-bottom: 5px; }
.author-card .role { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.author-card p { font-size: 14px; color: var(--text-dim); }
.author-card a { color: var(--mint); text-decoration: none; font-family: var(--mono); font-size: 12.5px; }
.author-card a:hover { text-decoration: underline; }

.disclaimer-box {
  border: 1px solid rgba(217, 176, 106, .32); background: var(--amber-wash);
  padding: 24px 26px; margin-top: 44px;
}
.disclaimer-box h3 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 13px; font-weight: 400; display: flex; align-items: center; gap: 9px;
}
.disclaimer-box h3 svg { width: 15px; height: 15px; }
.disclaimer-box p { font-size: 13.5px; color: #d8b47e; line-height: 1.7; margin-bottom: 10px; }
.disclaimer-box p:last-child { margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────────── */
footer.site-foot {
  position: relative; z-index: 1; margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 10, 14, .7), rgba(5, 6, 8, .95));
  padding: 52px 0 30px;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 38px; border-bottom: 1px solid var(--line-soft); }
.foot-brand p { font-size: 13.5px; color: var(--muted); margin-top: 15px; max-width: 40ch; line-height: 1.65; }
.foot-col h4 { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-bottom: 15px; }
.foot-col a { display: block; font-size: 13.5px; color: var(--text-dim); text-decoration: none; padding: 5px 0; transition: .15s; }
.foot-col a:hover { color: var(--mint); }
.foot-legal {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 24px; font-family: var(--mono); font-size: 10px; letter-spacing: .07em; color: var(--faint);
}
.foot-legal .warn-text { color: var(--amber); }

/* ── Reveal animation ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid, .split, .foot-grid { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .stats, .problem-grid, .steps, .module-grid, .arch-flow, .latency { grid-template-columns: repeat(2, 1fr); }
  .arch-node.span2 { grid-column: span 2; }
  .stat:nth-child(2) { border-right: 0; }
  .step { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .step:last-child { border-bottom: 0; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(7, 9, 13, .98); border-bottom: 1px solid var(--line); padding: 14px 20px 20px;
    backdrop-filter: blur(16px);
  }
  .nav-toggle {
    display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto;
    border: 1px solid var(--line); color: var(--mint);
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .topbar-cta { display: none; }
}
@media (max-width: 640px) {
  .shell, .topbar-inner { padding: 0 18px; }
  .stats, .problem-grid, .steps, .module-grid, .arch-flow, .latency, .scenario-grid { grid-template-columns: 1fr; }
  .arch-node.span2 { grid-column: span 1; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .stat:last-child { border-bottom: 0; }
  .gauge-strip { grid-template-columns: repeat(3, 1fr); }
  .module-detail { grid-template-columns: 1fr; gap: 14px; }
  .module-detail .idx { border-top: 0; padding-top: 0; }
  .spec-table th { width: auto; display: block; border-bottom: 0; padding-bottom: 4px; }
  .spec-table td { display: block; padding-top: 4px; }
  .tl-row { grid-template-columns: 1fr; gap: 5px; }
  .author-card { flex-direction: column; align-items: flex-start; }
  .foot-legal { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Language switch ────────────────────────────────────── */
.lang-switch {
  display: flex; gap: 3px; margin-left: 0; flex-shrink: 0;
  border: 1px solid var(--line); padding: 3px;
  background: rgba(255, 255, 255, .02);
}
.lang-btn {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  color: var(--muted); padding: 5px 9px; border: 1px solid transparent;
  text-transform: uppercase; transition: .18s var(--ease);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.on {
  color: var(--mint); border-color: var(--line-mint);
  background: var(--mint-wash); box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}
@media (max-width: 980px) { .lang-switch { margin-left: 0; padding: 2px; } }

/* Uras AKAS | urasakas.com */
