/* OverHorizon AI Systems — site styles. Vanilla, no build, no external dependencies. */

:root {
  --bg: #0a0e14;          /* page — near-black navy */
  --bg-1: #11151c;        /* cards / sections */
  --bg-2: #1e2533;        /* raised panels */
  --navy: #1b2a4c;        /* brand deep navy */
  --line: #1b2433;
  --line-soft: rgba(130, 170, 255, 0.10);
  --ink: #d6deeb;         /* primary text */
  --text: #d6deeb;        /* body text */
  --muted: #9ca3af;       /* muted text */
  --dim: #6b7280;         /* dimmest text */
  --amber: #ffd166;       /* accent gold — primary CTA / highlights */
  --blue: #82aaff;        /* accent blue — links */
  --blue-soft: #9ecbff;   /* accent blue — hover / lighter links */
  --radius: 14px;
  --max: 1080px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-soft); text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Atmospheric glow behind the top of the page */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(820px 460px at 78% -8%, rgba(130, 170, 255, 0.10), transparent 60%),
    radial-gradient(680px 420px at 12% 4%, rgba(255, 209, 102, 0.06), transparent 55%);
}
.page { position: relative; z-index: 1; }

/* Eyebrow / mono labels */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-badge {
  width: 38px; height: 38px; border-radius: 9px; display: block;
  border: 1px solid var(--line-soft);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: 0.01em; color: var(--ink); }
.brand-sub {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--dim); text-transform: uppercase; margin-top: 3px;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .nav-cta {
  color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: 13px;
}
.nav .nav-cta:hover { border-color: var(--blue); color: #fff; }
@media (max-width: 680px) {
  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: 15px; font-weight: 600; border-radius: 10px;
  padding: 13px 20px; 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(--amber); color: #0a0e14; }
.btn-primary:hover { background: #ffdb85; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; }
.hero h1 .soft { color: var(--blue); }
.hero .sub { font-size: clamp(16px, 1.9vw, 19px); color: var(--text); margin: 22px 0 30px; max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 20px; letter-spacing: 0.04em; }

/* Radar visual */
.scope-wrap { display: flex; justify-content: center; }
.scope { width: 100%; max-width: 420px; aspect-ratio: 1; }
.scope .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.scope .ring.glow { stroke: rgba(130, 170, 255, 0.28); }
.scope .cross { stroke: var(--line); stroke-width: 1; }
.scope .sweep-grad { color: var(--blue); }
.scope .sweep { transform-origin: 200px 200px; animation: sweep 7s linear infinite; }
.scope .center { fill: var(--blue); }
.scope .center-ring { fill: none; stroke: var(--blue); stroke-width: 1.5; opacity: 0.5; }
.scope .plane { fill: var(--amber); }
.scope .blip { fill: var(--amber); opacity: 0; animation: blip 7s linear infinite; }
.scope .blip.b2 { animation-delay: 2.4s; }
.scope .blip.b3 { animation-delay: 4.7s; }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes blip { 0%, 8% { opacity: 0.95; } 55% { opacity: 0; } 100% { opacity: 0; } }

/* ---------- Generic section ---------- */
section { padding: 64px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.divider { border: none; border-top: 1px solid var(--line); margin: 0; opacity: 0.7; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-1), rgba(13,18,26,0.4)); border-radius: var(--radius); padding: 26px 24px; }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--amber); letter-spacing: 0.1em; }
.step h3 { font-size: 18px; margin: 14px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature {
  display: flex; gap: 16px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.feature:hover { border-color: var(--line-soft); transform: translateY(-2px); }
.feature .ic {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(130, 170, 255, 0.08); border: 1px solid var(--line-soft); color: var(--blue);
}
.feature h3 { font-size: 16px; margin: 2px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* CTA band */
.cta-band {
  border: 1px solid var(--line); border-radius: 20px;
  background:
    radial-gradient(600px 220px at 80% 0%, rgba(255, 209, 102, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 48px 40px; text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 32px); }
.cta-band p { color: var(--muted); max-width: 34em; margin: 14px auto 26px; }

/* Access: web-app primary button + official store badges */
.also-on { color: var(--dim); font-size: 13px; letter-spacing: 0.02em; margin: 22px 0 0; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 12px; }
.cta-band .store-badges { justify-content: center; }
.store-badge { display: inline-flex; align-items: center; }
.store-badge:hover { text-decoration: none; }
.store-badge img { height: 56px; width: auto; display: block; }
/* Apple "coming soon" — the App Store badge look, muted since it isn't out yet */
.app-store-soon {
  box-sizing: border-box; height: 50px; gap: 10px; padding: 0 18px;
  background: #000; border: 1px solid #33384a; border-radius: 9px;
  color: #fff; cursor: default; opacity: 0.6;
}
.app-store-soon .as-apple { width: 23px; height: 23px; flex: none; }
.app-store-soon .as-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.app-store-soon .as-text small { font-size: 10px; letter-spacing: 0.02em; }
.app-store-soon .as-text strong { font-size: 17px; font-weight: 600; }
.cta-foot { color: var(--muted); font-size: 14px; margin: 22px 0 0; }
.cta-foot a { color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 28px; padding: 36px 0; color: var(--dim); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 22px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-badge { width: 28px; height: 28px; border-radius: 7px; display: block; border: 1px solid var(--line-soft); }
.footer-copy { display: inline-flex; flex-direction: column; line-height: 1.4; }
.footer-copy strong { color: var(--muted); font-weight: 600; }
.footer-grid nav { display: flex; flex-wrap: wrap; }
.footer-grid nav a { color: var(--muted); margin-left: 22px; }
.footer-grid nav a:first-child { margin-left: 0; }
.footer-grid nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 680px) {
  .footer-grid nav a { margin-left: 0; margin-right: 18px; }
}

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 72px; }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 36px); }
.legal .updated { font-family: var(--mono); color: var(--dim); font-size: 13px; margin: 8px 0 36px; letter-spacing: 0.04em; }
.legal h2 { font-size: 19px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.note {
  background: var(--bg-1); border: 1px solid var(--line); border-left: 3px solid var(--amber);
  border-radius: 10px; padding: 14px 18px; color: var(--dim); font-size: 13px; margin: 26px 0;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .scope-wrap { order: -1; }
  .scope { max-width: 320px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scope .sweep, .scope .blip { animation: none; }
  .scope .blip { opacity: 0.9; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .feature:hover { transform: none; }
}
