:root {
  --bg: #0B0614;
  --surface: #1A1028;
  --purple: #C45CFF;
  --gold: #F5C542;
  --muted: #C8BEDE;
  --dim: #84749E;
  font-family: "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[dir="rtl"] body { text-align: right; }
body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}
.aurora {
  position: fixed; inset: -20%;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(196,92,255,.35), transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(245,197,66,.18), transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(121,36,184,.3), transparent 50%);
  pointer-events: none; z-index: 0;
}
.wrap { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.logo { height: 48px; }
.lang-wrap { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.lang-wrap-label { font-size: .85rem; color: var(--dim); white-space: nowrap; }
.lang-picker { position: relative; }
.lang-picker-trigger {
  display: flex; align-items: center; gap: .55rem;
  min-height: 44px; min-width: 11rem; max-width: min(220px, 42vw);
  padding: .45rem .7rem .45rem .55rem;
  background: var(--surface); color: #fff;
  border: 1px solid rgba(196,92,255,.4); border-radius: 12px;
  font: inherit; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  transition: border-color .15s, box-shadow .15s;
}
.lang-picker-trigger:hover,
.lang-picker.is-open .lang-picker-trigger {
  border-color: rgba(196,92,255,.65);
  box-shadow: 0 0 0 3px rgba(196,92,255,.15);
}
.lang-picker-label {
  flex: 1; text-align: left; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-size: .92rem;
}
.lang-flag {
  flex-shrink: 0; width: 22px; height: 15px; border-radius: 3px;
  object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.lang-chevron { flex-shrink: 0; color: var(--dim); transition: transform .2s; }
.lang-picker.is-open .lang-chevron { transform: rotate(180deg); color: var(--purple); }
.lang-picker-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(11,6,20,.55); backdrop-filter: blur(2px);
}
.lang-picker-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 100;
  list-style: none; margin: 0; padding: .35rem;
  min-width: min(280px, calc(100vw - 2.5rem)); max-width: 320px;
  max-height: min(340px, 52vh); overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: #1a1028; border: 1px solid rgba(196,92,255,.45);
  border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.55);
}
.lang-picker-menu li { margin: 0; padding: 0; }
.lang-picker-item {
  display: flex; align-items: center; gap: .65rem;
  width: 100%; min-height: 44px; padding: .45rem .6rem;
  border: none; border-radius: 10px; background: transparent;
  color: var(--muted); font: inherit; text-align: left; cursor: pointer;
}
.lang-picker-item[aria-selected="true"] {
  background: rgba(196,92,255,.22); color: #fff; font-weight: 600;
}
.lang-picker-item-label { flex: 1; min-width: 0; }
.lang-picker-item:hover,
.lang-picker-item:focus-visible {
  background: rgba(196,92,255,.14); color: #fff; outline: none;
}
html[dir="rtl"] .lang-picker-label { text-align: right; }
html[dir="rtl"] .lang-picker-menu { right: auto; left: 0; }
@media (max-width: 640px) {
  .lang-picker.is-open .lang-picker-menu {
    position: fixed; left: 1rem; right: 1rem; top: auto;
    bottom: max(1rem, env(safe-area-inset-bottom));
    max-height: min(420px, 62vh); max-width: none;
  }
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.15; margin: 0 0 1rem; white-space: pre-line; }
.hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 36rem; }
.morph-wrap { margin: 1.75rem 0 2rem; }
.morph-stage {
  display: inline-block; margin-bottom: .5rem; padding: .2rem .65rem;
  border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--purple);
  background: rgba(196,92,255,.15); border: 1px solid rgba(196,92,255,.35);
}
.morph {
  margin: 0; padding: 1.25rem 1.4rem; border-radius: 16px;
  background: var(--surface); border: 1px solid rgba(196,92,255,.3);
  font-size: 1.05rem; min-height: 4.5rem; color: var(--gold);
}
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
a.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.4rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer; font: inherit;
}
.btn-primary { background: var(--purple); color: #fff; }
.legal a.btn-primary { color: #fff; background: var(--purple); }
.legal a.btn-primary:hover { color: #fff; }
.btn-ghost { background: transparent; color: var(--gold); border: 1px solid rgba(245,197,66,.45); }
.stage { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin: 3.5rem 0; align-items: center; }
@media (min-width: 800px) { .stage { grid-template-columns: 280px 1fr; } }
.phone {
  width: min(248px, 68vw); margin: 0 auto; border-radius: 28px; padding: 7px 6px 9px;
  background: #12081e; border: 2.5px solid rgba(196,92,255,.6);
  box-shadow: 0 0 48px rgba(196,92,255,.22);
}
.phone video, .phone img {
  width: 100%; margin: 0; border-radius: 20px; display: block;
  aspect-ratio: 9/16; object-fit: contain; object-position: center;
  background: var(--bg);
}
.beats { display: grid; gap: 1rem; }
.beat { background: var(--surface); border-radius: 14px; padding: 1rem 1.15rem; border: 1px solid rgba(196,92,255,.2); }
.beat strong { color: var(--gold); }
.proof { margin: 2rem 0 3rem; }
.proof-group { margin-bottom: 1.75rem; }
.proof-group:last-child { margin-bottom: 0; }
.proof-label {
  margin: 0 0 .75rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
}
.proof-grid { display: grid; gap: .75rem; }
.proof-grid-modes { grid-template-columns: repeat(2, 1fr); }
.proof-grid-trust { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .proof-grid-modes { grid-template-columns: repeat(4, 1fr); }
  .proof-grid-trust { grid-template-columns: repeat(3, 1fr); }
}
.proof-tile {
  padding: 1rem .85rem; border-radius: 12px;
  background: rgba(26,16,40,.8); border: 1px solid rgba(196,92,255,.2);
  font-size: .9rem; color: var(--muted); text-align: center;
}
.proof-tile-mode {
  border-left: 3px solid var(--purple);
  text-align: left; color: #fff; font-weight: 600;
}
.improve-tones-section {
  margin: 2.5rem 0 3rem;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(88, 28, 135, 0.22), rgba(15, 10, 30, 0.55));
}
.improve-tones-section h2 {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
}
.improve-tones-lead {
  max-width: 52rem;
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}
.improve-tones-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .improve-tones-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .improve-tones-grid { grid-template-columns: repeat(3, 1fr); }
}
.improve-tone-card {
  padding: 0.85rem 1rem 0.95rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.improve-tone-card:hover {
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(0, 0, 0, 0.38);
}
.improve-tone-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.improve-tone-label {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  color: #f8fafc;
  line-height: 1.25;
}
.improve-tone-id {
  flex-shrink: 0;
  font-size: 0.68rem;
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.improve-tone-hint {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}
.improve-tone-hint-muted { opacity: 0.45; }

.changelog-section { margin: 2.5rem 0; }
.changelog-section h2 { margin-bottom: .5rem; }
.changelog-row {
  display: flex; gap: 1rem; padding: .75rem 0;
  border-bottom: 1px solid rgba(196,92,255,.15);
}
.changelog-ver { flex: 0 0 4.5rem; color: var(--gold); font-weight: 700; font-size: .9rem; }
.changelog-sum { color: var(--muted); font-size: .95rem; line-height: 1.35; }
form.waitlist { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
form.waitlist input {
  flex: 1 1 220px; padding: .85rem 1rem; border-radius: 12px; border: 1px solid rgba(196,92,255,.3);
  background: #12081e; color: #fff; font: inherit;
}
.msg { margin-top: .75rem; color: var(--gold); font-size: .95rem; }
.msg.err { color: #ff6b8a; }
.msg.hidden { display: none; }
footer { margin-top: 4rem; color: var(--dim); font-size: .85rem; display: flex; gap: 1rem; flex-wrap: wrap; }
footer a { color: var(--muted); }
.legal main { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.legal h1 { font-size: 1.75rem; margin: 0 0 0.5rem; }
.legal h2 { font-size: 1.1rem; margin: 2rem 0 0.5rem; color: #e9d5ff; }
.legal p, .legal li { color: #d1d5db; line-height: 1.6; }
.legal a { color: #c084fc; }
.legal .muted { color: #9ca3af; font-size: 0.9rem; }
.legal .note { margin: 1rem 0; padding: .75rem 1rem; border-radius: 10px; background: rgba(196,92,255,.12); border: 1px solid rgba(196,92,255,.25); font-size: .9rem; color: var(--muted); }
.legal .card { background: #1a1228; border: 1px solid #3b2a55; border-radius: 12px; padding: 1rem 1.25rem; margin-top: 1.5rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--muted); }
.clip-qr-card {
  background: #fff;
  padding: 1rem;
  border-radius: 16px;
  display: inline-block;
  margin: 1.25rem 0 0.35rem;
}
.clip-qr-card img {
  width: 220px;
  height: 220px;
  display: block;
}
.clip-qr-caption { margin: 0 0 1rem; }
.clip-hub-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 800px) {
  .clip-hub-grid { grid-template-columns: 1fr 1fr; }
}
.clip-hub-card {
  background: #1a1228;
  border: 1px solid #3b2a55;
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}
.clip-hub-card h2 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .aurora { display: none; }
  html { scroll-behavior: auto; }
}
