/* ==========================================================================
   AeroStudy AI — site stylesheet
   One file, no build step. Edit tokens below to re-skin the whole site.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:        #06090e;
  --bg-2:      #0a0f17;
  --surface:   #0f1620;
  --surface-2: #141d29;
  --line:      rgba(146, 172, 202, 0.14);
  --line-soft: rgba(146, 172, 202, 0.08);

  /* Ink */
  --text:   #e8eef6;
  --text-2: #b9c6d6;
  --muted:  #8695a9;

  /* Signal */
  --accent:    #5aa9ff;
  --accent-ink:#0a1826;
  --caution:   #ffc247;
  --good:      #4ed6a1;

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Metrics */
  --wrap: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --nav-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Faint sectional-chart grid, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 620px at 72% -12%, rgba(90, 169, 255, 0.13), transparent 70%),
    radial-gradient(900px 520px at 8% 4%, rgba(255, 194, 71, 0.055), transparent 72%),
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 72px 100%,
    var(--bg);
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(90, 169, 255, 0.28); }

/* --------------------------------------------------------- layout helpers */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

section { padding-block: 84px; }
section.tight { padding-block: 56px; }
.band { border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--bg-2), transparent 60%); }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

/* ----------------------------------------------------------------- typography */

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; letter-spacing: -0.022em; font-weight: 650; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.65rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.3rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.012em; }
p  { margin: 0 0 1.05em; color: var(--text-2); }

.lede { font-size: clamp(1.07rem, 1.9vw, 1.3rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.xs { font-size: 0.82rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.eyebrow.caution { color: var(--caution); }

.section-head { max-width: 70ch; margin-bottom: 44px; }

/* -------------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(6, 9, 14, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; gap: 26px; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 650; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand span b { font-weight: 650; }
.brand span i { font-style: normal; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 3px; }

.lang {
  display: inline-flex; font-family: var(--mono); font-size: 0.76rem;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang a { padding: 5px 11px; color: var(--muted); letter-spacing: 0.06em; }
.lang a:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.lang a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

.nav-toggle {
  margin-left: auto; display: none;
  background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 7px 11px; font: inherit; font-size: 0.9rem; cursor: pointer;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 10px;
  font-size: 0.97rem; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #7bbaff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(146, 172, 202, 0.34); background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ----------------------------------------------------------------- badges */

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.02);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.live { color: var(--good); border-color: rgba(78, 214, 161, 0.3); }
.badge.soon { color: var(--caution); border-color: rgba(255, 194, 71, 0.3); }
.badge.ent  { color: var(--accent); border-color: rgba(90, 169, 255, 0.3); }

/* ------------------------------------------------------------------- hero */

.hero { padding-block: clamp(56px, 9vw, 104px) 72px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-note {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: 0.87rem; color: var(--muted); max-width: 54ch;
}

/* readout panel: an instrument-style card built from text only */
.readout {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.readout-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 17px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em;
}
.readout-body { padding: 20px 17px; }
.readout-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed var(--line-soft);
}
.readout-row:last-child { border-bottom: 0; padding-bottom: 0; }
.readout-row dt { font-size: 0.86rem; color: var(--muted); }
.readout-row dd { margin: 0; font-family: var(--mono); font-size: 0.97rem; color: var(--text); text-align: right; }
.readout-row dd small { display: block; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.06em; margin-top: 3px; }
.readout dl { margin: 0; }
.verdict {
  margin: 18px 0 0; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 194, 71, 0.28); background: rgba(255, 194, 71, 0.07);
  font-size: 0.9rem; color: var(--text);
}
.verdict strong { color: var(--caution); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 4px; }

/* ------------------------------------------------------------------ stats */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-2); padding: 24px 22px; }
.stat b { display: block; font-family: var(--mono); font-size: clamp(1.45rem, 3vw, 1.95rem); font-weight: 500; letter-spacing: -0.02em; }
.stat span { font-size: 0.85rem; color: var(--muted); }

/* ------------------------------------------------------------------ cards */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 29, 41, 0.85), rgba(15, 22, 32, 0.6));
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin-bottom: 2px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }
.card .card-foot { margin-top: auto; padding-top: 16px; font-size: 0.92rem; font-weight: 600; }
.card-link { transition: border-color 0.15s ease, transform 0.15s ease; }
.card-link:hover { border-color: rgba(90, 169, 255, 0.4); transform: translateY(-2px); text-decoration: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }

.num {
  font-family: var(--mono); font-size: 0.78rem; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 6px;
}

/* principle list */
.rules { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.rule { background: var(--bg-2); padding: 24px 24px; display: grid; grid-template-columns: 56px 1fr; gap: 10px 18px; align-items: start; }
.rule .rule-n { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); padding-top: 4px; letter-spacing: 0.08em; }
.rule h3 { margin: 0 0 6px; }
.rule p { margin: 0; font-size: 0.96rem; }

/* feature list with ticks */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 0.98rem; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 0.6em;
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--accent); opacity: 0.9;
}
.ticks.caution li::before { background: var(--caution); }

/* definition rows (specs) */
.specs { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 26px; font-size: 0.95rem; }
.specs dt { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.specs dd { margin: 0; color: var(--text-2); }

/* quote / disclaimer callout */
.note {
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(90, 169, 255, 0.07), transparent 70%);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem; color: var(--text-2);
}
.note.caution { border-left-color: var(--caution); background: linear-gradient(90deg, rgba(255, 194, 71, 0.08), transparent 70%); }
.note strong { color: var(--text); }
.note p:last-child { margin-bottom: 0; }

/* split feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split.reverse > :first-child { order: 2; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; min-width: 520px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
th { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); font-weight: 500; }
td { color: var(--text-2); }
tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------- cta */

.cta {
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(90, 169, 255, 0.14), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: clamp(30px, 5vw, 54px);
}
.cta h2 { margin-bottom: 14px; }
.cta p { max-width: 58ch; }

/* ------------------------------------------------------------------ form */

form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: 0.8rem; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 0.97rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 13px; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(90, 169, 255, 0.16); }
textarea { min-height: 128px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-status { font-size: 0.9rem; min-height: 1.2em; color: var(--good); }
.form-status[data-state="error"] { color: var(--caution); }

/* ------------------------------------------------------------------ posts */

.post-list { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.post {
  background: var(--bg-2); padding: 26px 24px; display: grid; gap: 7px;
  transition: background 0.15s ease;
}
.post:hover { background: var(--surface); text-decoration: none; }
.post time { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--muted); }
.post h3 { margin: 0; color: var(--text); }
.post p { margin: 0; font-size: 0.95rem; }

/* prose pages (support, privacy, posts) */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--text-2); }
.prose li { margin-bottom: 0.5em; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2.6em 0; }

/* ----------------------------------------------------------------- footer */

footer.site {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding-block: 56px 36px;
  margin-top: 40px;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.foot-col h4 { font-family: var(--mono); font-size: 0.73rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--text-2); font-size: 0.93rem; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between;
  font-size: 0.82rem; color: var(--muted);
}
.disclaimer { max-width: 72ch; font-size: 0.82rem; color: var(--muted); margin-top: 18px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding-block: 60px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .rule { grid-template-columns: 1fr; gap: 8px; }
  .rule .rule-n { padding-top: 0; }

  .nav-toggle { display: inline-block; }
  .nav .wrap { flex-wrap: wrap; gap: 14px; }
  .nav-links {
    display: none; order: 3; width: 100%; margin: 0 0 16px;
    flex-direction: column; align-items: flex-start; gap: 16px;
  }
  .nav[data-open="true"] { height: auto; padding-block: 12px; }
  .nav[data-open="true"] .nav-links { display: flex; }
  .nav[data-open="true"] { position: static; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  body::before, .nav, footer.site { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Home page — flight scene, glass panels, HUD
   ========================================================================== */

#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; display: block; opacity: 0; }
.scene-ready #scene { opacity: 1; }
.scene-ready body.home::before { display: none; }
.no-scene #scene { display: none; }

.scene-veil {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 9, 14, 0.72) 0, rgba(6, 9, 14, 0) 16%, rgba(6, 9, 14, 0) 78%, rgba(6, 9, 14, 0.55) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(4, 6, 10, 0.55) 100%);
}

body.home .nav { background: rgba(6, 9, 14, 0.45); }
body.home section { padding-block: 0; }
body.home footer.site { margin-top: 0; background: rgba(8, 12, 18, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* hero */
.hero-full {
  min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center; position: relative;
}
.hero-full .hero-copy { max-width: 600px; padding-block: 60px 110px; }
.hero-full h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero-full h1 em {
  font-style: normal;
  background: linear-gradient(92deg, #8cc6ff 0%, #5aa9ff 45%, #ffc98a 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-full .lede { text-shadow: 0 1px 18px rgba(4, 7, 12, 0.9); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; color: var(--text-2);
  border: 1px solid var(--line); background: rgba(10, 16, 24, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.scroll-cue {
  position: absolute; left: 22px; bottom: 30px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i { display: block; width: 1px; height: 38px; background: linear-gradient(180deg, var(--accent), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(0.35); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }

/* glass panels */
.stage { padding-block: 9vh; }
.glass {
  border: 1px solid rgba(146, 172, 202, 0.16); border-radius: 22px;
  background: linear-gradient(180deg, rgba(13, 20, 30, 0.74), rgba(8, 13, 20, 0.66));
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: clamp(26px, 4.4vw, 54px);
}
.glass .section-head { margin-bottom: 34px; }
.glass .card { background: linear-gradient(180deg, rgba(24, 34, 48, 0.72), rgba(14, 21, 31, 0.55)); }
.glass.half { max-width: 620px; }
.glass.half.right { margin-left: auto; }

/* open air between panels: the aircraft is the content here */
.gap { min-height: 62vh; display: flex; align-items: center; }
.gap .wrap { display: flex; }
.gap-copy { max-width: 430px; }
.gap-copy.right { margin-left: auto; text-align: right; }
.gap-copy .eyebrow { margin-bottom: 10px; }
.gap-copy p.big {
  font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.16; letter-spacing: -0.025em; font-weight: 600;
  color: var(--text); margin: 0; text-shadow: 0 2px 30px rgba(3, 6, 10, 0.95);
}

/* product tiles */
.tile {
  position: relative; display: flex; flex-direction: column; gap: 9px;
  padding: 24px 22px; border-radius: 16px; color: inherit;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 34, 48, 0.72), rgba(14, 21, 31, 0.5));
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  overflow: hidden;
}
.tile::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 169, 255, 0.7), transparent);
  opacity: 0; transition: opacity 0.2s ease;
}
.tile:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(90, 169, 255, 0.42); }
.tile:hover::after { opacity: 1; }
.tile h3 { margin: 0; font-size: 1.12rem; }
.tile p { margin: 0; font-size: 0.93rem; color: var(--text-2); }
.tile .tile-foot { margin-top: auto; padding-top: 14px; font-size: 0.88rem; font-weight: 600; color: var(--accent); }
.tile-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 6px;
  background: rgba(90, 169, 255, 0.1); border: 1px solid rgba(90, 169, 255, 0.26); color: var(--accent);
}
.tile-icon svg { width: 22px; height: 22px; }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.grid-5 { grid-template-columns: repeat(6, 1fr); }
.grid-5 > * { grid-column: span 2; }
.grid-5 > *:nth-child(4), .grid-5 > *:nth-child(5) { grid-column: span 3; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.kpi { padding: 4px 22px; border-left: 1px solid var(--line-soft); }
.kpi:first-child { border-left: 0; padding-left: 0; }
.kpi b { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.03em; color: var(--text); }
.kpi span { font-size: 0.84rem; color: var(--muted); }

/* HUD */
.hud {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: none; align-items: stretch; gap: 12px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--muted);
  pointer-events: none; text-transform: uppercase;
}
.scene-ready .hud { display: flex; }
.hud-rail { width: 2px; border-radius: 2px; background: rgba(146, 172, 202, 0.16); position: relative; overflow: hidden; }
.hud-rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent), var(--caution)); transform-origin: top; transform: scaleY(0); }
.hud-data { display: grid; gap: 14px; text-align: right; padding-block: 4px; }
.hud-data b { display: block; font-weight: 500; font-size: 0.86rem; letter-spacing: 0.04em; color: var(--text); margin-top: 3px; }
.hud-data b.phase { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.12em; }

@media (max-width: 1000px) {
  .grid-5 > *, .grid-5 > *:nth-child(4), .grid-5 > *:nth-child(5) { grid-column: span 3; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .kpi:nth-child(3) { border-left: 0; padding-left: 0; }
  .hud { right: 10px; }
}
@media (max-width: 760px) {
  .hero-full { align-items: flex-end; }
  .hero-full .hero-copy { padding-block: 44vh 70px; }
  .scroll-cue { display: none; }
  .stage { padding-block: 6vh; }
  .gap { min-height: 52vh; align-items: flex-end; padding-bottom: 6vh; }
  .gap-copy, .gap-copy.right { text-align: left; margin-left: 0; }
  .grid-5 > *, .grid-5 > *:nth-child(4), .grid-5 > *:nth-child(5) { grid-column: span 6; }
  .glass { border-radius: 18px; background: linear-gradient(180deg, rgba(11, 17, 26, 0.86), rgba(8, 13, 20, 0.8)); }
  .hud-data { display: none; }
  .hud { right: 6px; height: 120px; }
  .kpi { padding-inline: 14px; }
}
