/*
  Stargate landing page — Swiss minimalist theme.
  Mirrors the desktop app's "paper / graphite" palette, Inter type,
  monospace eyebrow labels, hairline borders and tabular numerals.
  Hand-authored (no build step) so the page stays static and fast.
*/

:root {
  /* paper / graphite — light theme (matches app `input.css`) */
  --paper-50: #fafafa;
  --paper-100: #f4f4f4;
  --paper-200: #e8e8e8;
  --graphite-300: #d4d4d4;
  --graphite-400: #8a8a8a;
  --graphite-500: #737373;
  --graphite-600: #525252;
  --graphite-800: #2b2b2b;
  --graphite-900: #171717;
  --ink: #0a0a0a;

  --bg: var(--paper-50);
  --surface: #ffffff;
  --hairline: var(--paper-200);
  --hairline-strong: var(--graphite-300);
  --text: var(--graphite-800);
  --text-strong: var(--graphite-900);
  --text-muted: var(--graphite-400);
  --text-faint: var(--graphite-500);
  --accent: var(--graphite-900);
  --accent-contrast: #ffffff;

  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;

  --maxw: 1080px;
}

:root[data-theme='dark'] {
  /* inverted ink surfaces (matches app `.dark`) */
  --paper-50: #0a0a0a;
  --paper-100: #141414;
  --paper-200: #262626;
  --graphite-300: #404040;
  --graphite-400: #8a8a8a;
  --graphite-500: #a3a3a3;
  --graphite-600: #d4d4d4;
  --graphite-800: #e5e5e5;
  --graphite-900: #f5f5f5;
  --ink: #fafafa;

  --bg: #0a0a0a;
  --surface: #141414;
  --hairline: #262626;
  --hairline-strong: #404040;
  --text: #d4d4d4;
  --text-strong: #f5f5f5;
  --text-muted: #8a8a8a;
  --text-faint: #a3a3a3;
  --accent: #fafafa;
  --accent-contrast: #0a0a0a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

a { color: inherit; text-decoration: none; }

/* eyebrow / mono label — the app's signature */
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.mono { font-family: var(--mono); }

h1, h2, h3 { color: var(--text-strong); letter-spacing: -0.02em; font-weight: 600; line-height: 1.15; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-strong); }
.brand .glyph { width: 26px; height: 26px; display: grid; place-items: center; color: var(--text-strong); }
.brand .glyph svg { width: 26px; height: 26px; }
.brand span { font-size: 16px; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; color: var(--text-faint); transition: color .15s; }
.nav a:hover { color: var(--text-strong); }

.icon-btn {
  width: 34px; height: 34px; border: 1px solid var(--hairline); border-radius: 8px;
  background: transparent; color: var(--text-faint); cursor: pointer;
  display: grid; place-items: center; transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text-strong); border-color: var(--hairline-strong); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 500; line-height: 1;
  padding: 12px 20px; border-radius: 9px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 82%, var(--bg)); }
.btn-ghost { background: transparent; color: var(--text-strong); border-color: var(--hairline-strong); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }

/* ---------- hero ---------- */
.hero { padding: 92px 0 64px; }
.hero .eyebrow { display: block; margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); max-width: 16ch; }
.hero p.lede {
  font-size: clamp(17px, 2.2vw, 21px); color: var(--text-faint);
  max-width: 56ch; margin: 24px 0 0; line-height: 1.55;
}
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero .meta-line { margin-top: 20px; font-size: 13px; color: var(--text-muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero .meta-line span { display: inline-flex; align-items: center; gap: 7px; }
.dl-alts { gap: 10px; }
.dl-alt { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.dl-alt:hover { color: var(--text); border-bottom-color: currentColor; }
.dl-alt[aria-current="true"] { color: var(--text); font-weight: 500; }
.dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--graphite-900); display: inline-block; }

/* ---------- app mockup ---------- */
.shot {
  margin-top: 64px; border: 1px solid var(--hairline-strong); border-radius: 14px;
  overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 0 var(--hairline), 0 30px 60px -30px rgba(0,0,0,.18);
}
.shot .titlebar {
  height: 38px; border-bottom: 1px solid var(--hairline); display: flex; align-items: center;
  gap: 7px; padding: 0 14px; background: var(--bg);
}
.shot .titlebar i { width: 11px; height: 11px; border-radius: 9999px; background: var(--hairline-strong); }
.shot .shot-img { display: block; width: 100%; height: auto; }

/* ---------- section scaffold ---------- */
section { padding: 72px 0; }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--text-faint); margin-top: 16px; font-size: 17px; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.feature { background: var(--bg); padding: 30px 28px; }
.feature .ic { display: flex; align-items: center; color: var(--text-strong); margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature .eyebrow { display: block; margin-bottom: 14px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--text-faint); line-height: 1.55; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--paper-100); padding: 1px 5px; border-radius: 4px; color: var(--text); }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tier { border: 1px solid var(--hairline-strong); border-radius: 14px; padding: 32px 30px; background: var(--surface); }
.tier.feat { border-color: var(--accent); }
.tier .eyebrow { display: block; margin-bottom: 14px; }
.tier h3 { font-size: 24px; }
.tier .price { font-size: 15px; color: var(--text-faint); margin: 6px 0 22px; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.tier li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text); align-items: flex-start; }
.tier li svg { width: 16px; height: 16px; color: var(--text-strong); flex-shrink: 0; margin-top: 3px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); padding: 22px 0; }
.faq summary { font-size: 17px; font-weight: 500; color: var(--text-strong); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { font-family: var(--mono); color: var(--text-muted); transition: transform .2s; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: var(--text-faint); font-size: 15px; max-width: 70ch; }

/* ---------- download band ---------- */
.download .wrap { text-align: center; }
.download h2 { font-size: clamp(28px, 4vw, 40px); }
.download p { color: var(--text-faint); margin: 16px auto 0; max-width: 50ch; }
.download .cta { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.os-row { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.os-row a { font-family: var(--mono); font-size: 12px; color: var(--text-muted); border: 1px solid var(--hairline); padding: 8px 14px; border-radius: 8px; transition: color .15s, border-color .15s; }
.os-row a:hover { color: var(--text-strong); border-color: var(--hairline-strong); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer .brand { font-size: 14px; }
.site-footer .links { display: flex; gap: 22px; font-size: 13px; color: var(--text-faint); }
.site-footer .links a:hover { color: var(--text-strong); }
.site-footer .legal { font-size: 12px; color: var(--text-muted); width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .features, .tiers { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
}
