/* ============================================================
   AIR Client — design tokens
   Derived from the AIR wordmark: brushed-steel letterforms over
   a deep navy, circuit-board backdrop, with a two-tone blue
   wave as the only accent color.

   --navy        #0A0E1A   base background
   --navy-2      #10192C   raised panel
   --navy-3      #172236   hairline borders / hover
   --steel       #E9EEF5   primary text (near-white, cool)
   --steel-dim   #8FA0B8   secondary text
   --wave-light  #5BC8F5   accent, bright
   --wave-deep   #1E5FA8   accent, deep
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --navy: #0A0E1A;
  --navy-2: #10192C;
  --navy-3: #172236;
  --steel: #E9EEF5;
  --steel-dim: #8FA0B8;
  --wave-light: #5BC8F5;
  --wave-deep: #1E5FA8;
  --line: rgba(233, 238, 245, 0.1);
  --radius: 16px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--steel);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wave-light);
}

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--wave-light);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* faint circuit-grid backdrop, echoing the banner art */
body {
  background-image:
    linear-gradient(rgba(233,238,245,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233,238,245,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: center top;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 26, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand img { height: 28px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  color: var(--steel-dim);
}
.nav-links a:hover { color: var(--steel); }
.nav .cta {
  background: linear-gradient(135deg, var(--wave-deep), var(--wave-light));
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
}
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; background: var(--navy-2); flex-direction: column; align-items: flex-start; padding: 24px 28px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; background: none; border: 1px solid var(--line); color: var(--steel); width: 40px; height: 40px; border-radius: 8px; font-size: 1.1rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(91,200,245,0.16), transparent 70%);
  pointer-events: none;
}
.hero-mark { width: 96px; margin: 0 auto 28px; }
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  margin-bottom: 20px;
}
.hero h1 .hl {
  background: linear-gradient(100deg, var(--wave-light), var(--wave-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: var(--steel-dim);
  font-size: 1.1rem;
  max-width: 50ch;
  margin: 0 auto 34px;
}
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--wave-deep), var(--wave-light));
  color: white;
  box-shadow: 0 12px 30px -10px rgba(91, 200, 245, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(91, 200, 245, 0.55); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--steel);
}
.btn-ghost:hover { border-color: var(--wave-light); }
.hero-note { margin-top: 20px; font-size: 0.82rem; color: var(--steel-dim); }

/* ---------- section shell ---------- */
section { padding: 90px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-top: 12px; }
.section-head p { color: var(--steel-dim); margin-top: 14px; font-size: 1.02rem; }

/* ---------- features (sourced from the app's own sections) ---------- */
.features { border-top: 1px solid var(--line); background: var(--navy-2); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--navy-2);
  padding: 32px 26px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background .2s ease;
}
.feature:hover { background: var(--navy-3); }
.feature .ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--navy-3);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--wave-light);
}
.feature .ico img { width: 20px; height: 20px; filter: invert(66%) sepia(45%) saturate(1000%) hue-rotate(165deg) brightness(1.05); }
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { font-size: 0.9rem; color: var(--steel-dim); margin: 0; }

@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-2), var(--navy-3));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.cta-band p { color: var(--steel-dim); max-width: 46ch; margin: 0 auto 30px; }

/* ---------- footer ---------- */
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.foot-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-bottom: 16px;
}
.foot-col a, .foot-col p { display: block; color: var(--steel-dim); font-size: 0.92rem; margin-bottom: 10px; }
.foot-col a:hover { color: var(--steel); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.82rem;
  color: var(--steel-dim);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Docs pages (Terms / Privacy) — same shell, article layout
   ============================================================ */
.docs-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.docs-hero .eyebrow { color: var(--wave-light); }
.docs-hero h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-top: 14px; }
.docs-hero p { color: var(--steel-dim); margin-top: 14px; }

.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 56px 0 100px;
  align-items: start;
}
.doc-nav {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--navy-2);
}
.doc-nav h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin: 0 0 12px;
}
.doc-nav a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 0.88rem; color: var(--steel-dim); }
.doc-nav a:hover { background: rgba(91,200,245,0.08); color: var(--steel); }
.doc-nav a.current { background: rgba(91,200,245,0.12); color: var(--wave-light); font-weight: 600; }

.doc-content h2 { font-size: 1.4rem; margin-top: 44px; margin-bottom: 14px; }
.doc-content h2:first-child { margin-top: 0; }
.doc-content p { margin: 0 0 14px; color: var(--steel-dim); }
.doc-content ul { margin: 0 0 14px; padding-left: 20px; color: var(--steel-dim); }
.doc-content li { margin-bottom: 8px; }
.doc-content .updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--steel-dim);
  margin-bottom: 32px;
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.fill {
  background: rgba(255, 194, 75, 0.14);
  border: 1px solid rgba(255, 194, 75, 0.35);
  color: #FFC24B;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
}
.doc-content a.inline-link { color: var(--wave-light); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 820px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; }
}
