:root {
  --bg: #0B0F14;
  --bg-2: #0E141B;
  --surface: #121821;
  --line: #1E2733;
  --line-2: #263241;
  --line-3: #3A4757;
  --text: #E6EAF0;
  --text-2: #B4BEC9;
  --muted: #9AA6B2;
  --accent: #0097B2;
  --radius: 12px;
  --max: 1200px;
  --pad: 32px;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 80px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.main-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; }
.main-nav a:hover { color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-3); }
.lang-switch { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.lang-switch button {
  min-width: 44px; height: 44px; border: 0; background: transparent; color: var(--text-2);
  font: 600 14px var(--font-body); cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }

.search-panel { padding-bottom: 16px; }
.search-panel[hidden] { display: none; }
.search-panel label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.search-panel input {
  width: 100%; height: 48px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 8px; color: var(--text); font: 16px var(--font-body);
}
.search-results { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.search-results a {
  display: block; padding: 10px 14px; border-radius: 8px; background: var(--surface); text-decoration: none;
}
.search-results a:hover { background: #18202B; }
.search-results .r-title { font-weight: 600; }
.search-results .r-text { display: block; font-size: 14px; color: var(--muted); }
.search-empty { font-size: 14px; color: var(--muted); margin: 8px 0 0; }

/* Shared */
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; }
.h2 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1.15; letter-spacing: -0.01em; }
.lede { margin: 0; color: var(--text-2); }
.section { padding-top: 112px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 720px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { color: var(--bg); filter: brightness(1.1); }
.btn-ghost { border: 1px solid var(--line-3); color: var(--text); }
.btn-link { padding: 0 16px; text-decoration: underline; text-underline-offset: 4px; }
.grid-bg {
  background-color: var(--bg-2);
  background-image: linear-gradient(#1B2430 1px, transparent 1px), linear-gradient(90deg, #1B2430 1px, transparent 1px);
  background-size: 40px 40px;
}
.mono { font-family: var(--font-mono); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 80px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 60px; line-height: 1.05; letter-spacing: -0.02em; }
.hero .lede { font-size: 19px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-visual { flex: 1 1 440px; min-width: 0; }
.visual-box {
  position: relative; height: 440px; border: 1px solid var(--line-2); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; overflow: hidden;
}
.visual-box p { margin: 0; font-family: var(--font-mono); font-size: 14px; color: var(--muted); text-align: center; padding: 0 24px; }
.visual-status {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.visual-status b { color: var(--text); font-weight: 500; }

/* Facts */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.facts-row { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.fact { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.fact-value { font-family: var(--font-head); font-weight: 700; font-size: 36px; line-height: 1.1; }
.fact-label { font-size: 14px; color: var(--muted); }

/* Vehicle */
.vehicle { display: flex; flex-wrap: wrap; gap: 56px; }
.vehicle-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.vehicle-specs { flex: 1 1 520px; min-width: 0; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.specs div { padding: 20px 24px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.specs div:nth-child(2n) { border-right: 0; }
.specs div:nth-last-child(-n+2) { border-bottom: 0; }
.specs dt { font-size: 13px; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-family: var(--font-mono); font-size: 15px; }

/* Roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px 24px; }
.roadmap li { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--line-2); }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.step-title { font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.25; }
.step-text { font-size: 14px; color: var(--muted); line-height: 1.5; }
.step-date { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.unit-card {
  flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
}
.unit-card h3 { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 24px; }
.unit-card p { margin: 0; color: var(--text-2); }
.unit-card .unit-lead { margin-top: 8px; font-size: 14px; color: var(--muted); }

.log-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.log-head .section-head { margin-bottom: 0; }
.log-card { flex: 1 1 300px; min-width: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.log-media { height: 180px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.log-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.log-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.log-body h3 { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.3; }
.log-body p { margin: 0; font-size: 15px; color: var(--text-2); }

/* Sponsor */
.sponsor-box { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.sponsor-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sponsor-copy .h2 { font-size: 36px; }
.sponsor-copy .hero-actions { margin-top: 8px; }
.logo-slots { flex: 1 1 400px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.logo-slot { height: 96px; border: 1px dashed var(--line-3); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* Join */
.join-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.join-card {
  flex: 1 1 220px; min-width: 0; min-height: 120px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius);
  text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; background: var(--bg-2);
}
.join-card:hover { border-color: var(--accent); }
.join-card .jt { font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.join-card .jc { font-size: 14px; font-weight: 600; }

/* Footer */
.site-footer { margin-top: 112px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-row { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-top: 64px; padding-bottom: 40px; }
.footer-about { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.wordmark { font-family: "Source Sans 3", var(--font-body); font-weight: 700; font-size: 28px; line-height: 1; }
.wordmark span { color: var(--accent); }
.footer-about p { margin: 0; font-size: 14px; color: var(--muted); max-width: 360px; }
.contacts { flex: 2 1 480px; display: flex; flex-wrap: wrap; gap: 32px; }
.contact { flex: 1 1 160px; display: flex; flex-direction: column; gap: 6px; }
.contact-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.contact a { font-size: 15px; text-underline-offset: 4px; padding: 6px 0; overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Phone */
@media (max-width: 720px) {
  :root { --pad: 20px; }
  html { scroll-padding-top: 160px; }
  .brand img { height: 56px; }
  .main-nav { order: 3; width: 100%; flex-wrap: nowrap; gap: 0 20px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); width: calc(100% + var(--pad) * 2); }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; }
  .hero { padding-top: 56px; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 17px; }
  .visual-box { height: 300px; }
  .h2 { font-size: 30px; }
  .section { padding-top: 80px; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs div { border-right: 0; }
  .specs div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .specs div:last-child { border-bottom: 0; }
  .sponsor-box { padding: 28px; }
  .sponsor-copy .h2 { font-size: 28px; }
  .site-footer { margin-top: 80px; }
}
