:root {
  color-scheme: dark;
  --bg: #111315;
  --surface: #191c1f;
  --surface-2: #202428;
  --text: #f4f0e9;
  --muted: #a7adb4;
  --line: #30363c;
  --accent: #efa93f;
  --accent-strong: #ffbd55;
  --accent-soft: rgba(239, 169, 63, 0.13);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 85% -10%, rgba(239, 169, 63, 0.12), transparent 32rem), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-strong); text-underline-offset: 0.2em; }
a:hover { color: #ffd18c; }
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 20;
  padding: 0.6rem 0.8rem;
  transform: translateY(-160%);
  background: var(--accent);
  color: #17120a;
  border-radius: 0.5rem;
  font-weight: 750;
}
.skip-link:focus { transform: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(17, 19, 21, 0.88);
  backdrop-filter: blur(18px);
}
.nav {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 8px 24px rgba(239, 169, 63, 0.2);
}
.nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem; }
.nav-links a {
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.hero {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: clamp(4.8rem, 10vw, 8.5rem) 0 clamp(3.8rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(2.7rem, 7vw, 5.8rem); line-height: 0.98; letter-spacing: -0.055em; }
.hero-copy { max-width: 720px; margin: 1.45rem 0 0; color: #c6cbd0; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-copy p { margin: 0; }
.hero-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-note { margin: 0.85rem 0 0; color: var(--muted); font-size: 0.82rem; }
.button {
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface);
  font-weight: 750;
  text-decoration: none;
}
.button.primary { border-color: var(--accent); background: var(--accent); color: #17120a; }
.button:hover { transform: translateY(-1px); }
.status-card {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.25rem;
  background: linear-gradient(145deg, rgba(239, 169, 63, 0.12), var(--surface));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}
.status-card strong { display: block; margin-bottom: 0.25rem; font-size: 1.05rem; }
.status-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.status-card ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.status-card li { position: relative; padding-left: 1.3rem; color: #d8dadd; font-size: 0.88rem; }
.status-card li + li { margin-top: 0.45rem; }
.status-card li::before { position: absolute; left: 0; color: var(--accent); content: "✓"; font-weight: 850; }
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.feature-grid {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto clamp(5rem, 10vw, 8rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: 1.04; letter-spacing: -0.045em; }
.section-heading > p:last-child { margin: 1rem 0 0; color: var(--muted); font-size: 1.02rem; }
.showcase { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto clamp(5rem, 10vw, 8rem); }
.product-shot {
  margin: 0;
}
.product-shot img { display: block; width: 100%; height: auto; background: #111315; box-shadow: 0 28px 80px -34px rgba(0, 0, 0, 0.8); }
.product-shot figcaption { padding: 0.72rem 0 0; color: var(--muted); font-size: 0.82rem; }
.product-shot-wide { margin-bottom: 1.2rem; }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr); gap: 1.2rem; align-items: start; }
.phone-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.phone-shot figcaption { text-align: center; }
.platform-section { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto clamp(5rem, 10vw, 8rem); }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.platform-card { display: flex; min-height: 310px; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; flex-direction: column; align-items: flex-start; background: var(--surface); }
.platform-card:first-child { border-color: rgba(239, 169, 63, 0.45); background: linear-gradient(145deg, rgba(239, 169, 63, 0.1), var(--surface) 52%); }
.platform-card.apple-download { grid-column: 1 / -1; min-height: 260px; }
.platform-status { letter-spacing: 0.03em; text-transform: none; }
.platform-label { margin: 0 0 1rem; color: var(--accent); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.12em; text-transform: none; }
.platform-card h3 { margin: 0; font-size: 1.5rem; }
.platform-card > p:not(.platform-label) { margin: 0.7rem 0 1.4rem; color: var(--muted); }
.platform-card .button { margin-top: auto; }
.platform-card span { margin-top: 0.75rem; color: var(--muted); font-size: 0.78rem; }
.apple-waitlist-form { width: min(100%, 760px); margin-top: auto; }
.apple-waitlist-form > label:first-child { display: block; margin-bottom: 0.5rem; color: #e7e9eb; font-size: 0.88rem; font-weight: 750; }
.apple-waitlist-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.65rem; }
.apple-waitlist-row input {
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 0.68rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}
.apple-waitlist-row input:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.apple-waitlist-row .button { min-height: 46px; cursor: pointer; }
.apple-waitlist-row .button:disabled { cursor: wait; opacity: 0.65; }
.waitlist-consent { display: flex; margin-top: 0.8rem; align-items: flex-start; gap: 0.55rem; color: var(--muted); font-size: 0.82rem; }
.waitlist-consent input { margin-top: 0.18rem; accent-color: var(--accent); }
.waitlist-consent span { margin: 0; }
.waitlist-status { min-height: 1.25rem; margin: 0.65rem 0 0; color: var(--muted); font-size: 0.84rem; }
.waitlist-status[data-state="success"] { color: #9dd7ae; }
.waitlist-status[data-state="error"] { color: #ffb4ab; }
.waitlist-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.feature-card { min-height: 230px; border: 1px solid var(--line); border-radius: 1rem; padding: 1.35rem; background: var(--surface); }
.feature-card h2 { margin: 0 0 0.65rem; font-size: 1.12rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature-number { display: inline-block; margin-bottom: 1.6rem; color: var(--accent); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.12em; }
.document-shell { width: min(calc(100% - 2rem), 900px); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) 0 6rem; }
.document-header { margin-bottom: 2.4rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.document-header h1 { margin: 0 0 0.65rem; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.04em; }
.document-header p { margin: 0; color: var(--muted); }
.document-content h1 { display: none; }
.document-content h2 { margin: 2.4rem 0 0.65rem; font-size: 1.35rem; line-height: 1.25; }
.document-content h3 { margin: 1.8rem 0 0.55rem; font-size: 1.08rem; }
.document-content p { margin: 0.7rem 0; color: #d6d8db; }
.document-content ul, .document-content ol { margin: 0.7rem 0; padding-left: 1.35rem; color: #d6d8db; }
.document-content li + li { margin-top: 0.3rem; }
.document-content code {
  padding: 0.12rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--surface-2);
  color: #ffd18c;
  font: 0.92em ui-monospace, SFMono-Regular, Consolas, monospace;
}
.document-content blockquote { margin: 1.2rem 0; padding: 0.8rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-soft); color: #e7d5bb; }
.site-footer { border-top: 1px solid var(--line); background: #0d0f11; }
.footer-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-inner p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.85rem; }
.footer-links a { color: var(--muted); font-size: 0.86rem; }
.footer-link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  text-decoration: underline;
  cursor: pointer;
}
.telemetry-consent {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  width: min(calc(100% - 2rem), 920px);
  margin: 0 auto;
  border: 1px solid rgba(239, 169, 63, 0.38);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: rgba(25, 28, 31, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.telemetry-consent[hidden] { display: none; }
.telemetry-consent h2 { margin: 0 0 0.35rem; font-size: 1rem; }
.telemetry-consent p { max-width: 680px; margin: 0; color: var(--muted); font-size: 0.84rem; }
.telemetry-consent-actions { display: flex; flex: 0 0 auto; gap: 0.55rem; }
.telemetry-consent-actions .button { min-height: 42px; cursor: pointer; white-space: nowrap; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .status-card { max-width: 520px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .phone-shots { width: min(100%, 620px); }
}
@media (max-width: 590px) {
  .nav { min-height: 62px; }
  .nav-links a:not([aria-current="page"]) { display: none; }
  .hero { padding-top: 3.7rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card { min-height: 280px; }
  .apple-waitlist-row { grid-template-columns: 1fr; }
  .showcase { width: min(calc(100% - 1rem), var(--max)); }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .telemetry-consent { align-items: stretch; flex-direction: column; }
  .telemetry-consent-actions { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
