:root,
html[data-theme="dark"] {
  --ink: #070b14;
  --navy: #0b1220;
  --panel: #121a2c;
  --line: rgba(232, 184, 74, 0.22);
  --gold: #e8b84a;
  --teal: #2dd4bf;
  --cream: #f6f1e7;
  --muted: #b7c0d4;
  --header-bg: rgba(7, 11, 20, 0.82);
  --card: linear-gradient(180deg, rgba(18, 26, 44, 0.95), rgba(11, 18, 32, 0.92));
  --glow-a: rgba(45, 212, 191, 0.12);
  --glow-b: rgba(232, 184, 74, 0.1);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --menu-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1080px;
  color-scheme: dark;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

html[data-theme="light"] {
  --ink: #1a1408;
  --navy: #f3eee4;
  --panel: #fffaf2;
  --line: rgba(120, 84, 20, 0.2);
  --gold: #9a6b12;
  --teal: #0f766e;
  --cream: #1c2434;
  --muted: #5a6272;
  --header-bg: rgba(255, 250, 242, 0.88);
  --card: linear-gradient(180deg, #fffaf2, #f7f0e4);
  --glow-a: rgba(15, 118, 110, 0.1);
  --glow-b: rgba(154, 107, 18, 0.12);
  --shadow: 0 24px 50px rgba(80, 50, 10, 0.12);
  --menu-shadow: 0 16px 32px rgba(80, 50, 10, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; }
body {
  background:
    radial-gradient(1200px 500px at 10% -10%, var(--glow-a), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, var(--glow-b), transparent 50%),
    var(--navy);
  color: var(--cream);
  line-height: 1.55;
}

a { color: var(--teal); }
a:hover { color: var(--gold); }

.wrap { width: min(var(--max), calc(100% - 32px)); max-width: calc(100vw - 32px); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}
.nav > a {
  color: var(--cream);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.92rem;
}
.nav > a:hover, .nav > a[aria-current="page"] {
  border-color: var(--line);
  background: rgba(232, 184, 74, 0.08);
  color: var(--gold);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.icon-btn, .lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.icon-btn { width: 40px; height: 40px; padding: 0; }
.icon-btn svg, .lang-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
.lang-menu { position: relative; }
.lang-toggle[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 11.5rem;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--menu-shadow);
  z-index: 30;
}
.lang-list[hidden] { display: none; }
.lang-list button {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--cream);
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}
.lang-list button:hover { background: rgba(232, 184, 74, 0.12); }
.lang-list button[aria-selected="true"] {
  background: var(--gold);
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  /* Fit phone + copy into the first browser window under the sticky header */
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding: 20px 0 28px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto;
  height: 80%;
  background:
    radial-gradient(ellipse at 18% 40%, var(--glow-a), transparent 55%),
    radial-gradient(ellipse at 90% 20%, var(--glow-b), transparent 50%);
  pointer-events: none;
}
.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  width: min(var(--max), calc(100% - 32px));
}
.hero-copy {
  min-width: 0;
  animation: hero-in 0.8s ease-out 0.08s both;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 0.94;
  margin: 10px 0 14px;
  letter-spacing: -0.03em;
}
.kicker { color: var(--gold); font-size: 0.92rem; letter-spacing: 0.18em; text-transform: uppercase; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; overflow-wrap: break-word; }
.hero-copy .lead { max-width: 32rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.phone {
  position: relative;
  flex: 0 0 auto;
  animation: phone-in 0.9s ease-out both;
}
.phone-shell {
  --phone-h: min(calc(100svh - 120px), 620px);
  height: var(--phone-h);
  width: calc(var(--phone-h) * 9 / 19.2);
  position: relative;
  padding: 11px;
  border-radius: 42px;
  background:
    linear-gradient(145deg, #3a414d 0%, #1a1f28 42%, #0e1218 100%);
  border: 1px solid rgba(232, 184, 74, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 30px 70px rgba(0, 0, 0, 0.5);
}
html[data-theme="light"] .phone-shell {
  border-color: rgba(154, 107, 18, 0.4);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 24px 50px rgba(80, 50, 10, 0.2);
}
.phone-btn {
  position: absolute;
  background: #0a0d12;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone-btn-silent {
  left: -3px;
  top: 18%;
  width: 3px;
  height: 22px;
  border-radius: 2px 0 0 2px;
}
.phone-btn-vol-up {
  left: -3px;
  top: 28%;
  width: 3px;
  height: 36px;
  border-radius: 2px 0 0 2px;
}
.phone-btn-vol-down {
  left: -3px;
  top: 38%;
  width: 3px;
  height: 36px;
  border-radius: 2px 0 0 2px;
}
.phone-btn-power {
  right: -3px;
  top: 30%;
  width: 3px;
  height: 56px;
  border-radius: 0 2px 2px 0;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #070b14;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55) inset;
}
.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 11px;
  border-radius: 999px;
  background: #05070c;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #0b1220;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes phone-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .phone { animation: none; }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  border: 1px solid var(--gold);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--ink); }

.wrap > .kicker { padding-top: 28px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 12px 0 48px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; color: var(--gold); font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

.faq { padding: 8px 0 28px; max-width: 760px; }
.faq-list { display: grid; gap: 10px; margin-top: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: var(--card);
}
.faq summary {
  cursor: pointer;
  color: var(--cream);
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.legal { padding: 40px 0 64px; max-width: 760px; }
.legal h1 { margin: 0 0 8px; font-size: 2.2rem; }
.updated { color: var(--gold); margin-bottom: 28px; }
.legal h2 { margin: 32px 0 10px; font-size: 1.2rem; color: var(--gold); }
.legal p, .legal li { color: var(--cream); }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal li { margin: 0.35rem 0; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--teal);
  font-size: 0.92em;
}
[data-lang][hidden] { display: none !important; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.95rem;
}
.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal th { background: rgba(232, 184, 74, 0.08); color: var(--gold); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--cream); }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .hero {
    min-height: auto;
    align-items: stretch;
    padding: 28px 0 36px;
  }
  .hero-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 28px;
  }
  .hero-copy { order: 0; }
  .phone { order: 1; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .phone-shell {
    --phone-h: min(58svh, 520px);
    border-radius: 36px;
    padding: 9px;
  }
  .phone-screen { border-radius: 28px; }
  .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .nav { margin-left: 0; width: 100%; }
  .toolbar { margin-left: auto; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
}
