:root {
  color-scheme: dark;
  --ink: #0b0a0f;
  --panel: #141219;
  --raised: #1c1a23;
  --hairline: #272530;
  --ivory: #eeeaf0;
  --lavender: #b7a2c5;
  --muted: #b7b0be;
  --ok: #83b69a;
  --warn: #e6c98f;
  --bad: #d98a91;
  --line: rgba(238, 234, 240, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--sans);
  background: var(--ink);
  color: var(--ivory);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------- backdrop */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora::before {
  content: "";
  position: absolute;
  inset: -30% -15% auto -15%;
  height: 76vh;
  background:
    radial-gradient(46% 54% at 16% 4%, rgba(238, 234, 240, 0.06), transparent 68%),
    radial-gradient(40% 48% at 86% 0%, rgba(183, 162, 197, 0.09), transparent 70%),
    linear-gradient(180deg, rgba(238, 234, 240, 0.025), transparent 74%);
}

.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(238, 234, 240, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 234, 240, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 66%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 66%);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 26px 0 calc(44px + env(safe-area-inset-bottom));
}

/* ---------------------------------------------------------------- top bar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.26em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 13px 13px 13px 5px;
  background: var(--raised);
  color: var(--lavender);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 0 20px rgba(183, 162, 197, 0.1), inset 0 1px 0 rgba(238, 234, 240, 0.08);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lavender);
  box-shadow: 0 0 8px rgba(183, 162, 197, 0.32);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ------------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
  padding: 4px 0 44px;
}

.hero-copy { min-width: 0; }

.eyebrow, .label {
  margin: 0;
  color: var(--lavender);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 18px;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.grad { color: var(--lavender); }

.intro {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.release {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(238, 234, 240, 0.045), rgba(238, 234, 240, 0.012));
  backdrop-filter: blur(12px);
}

.release strong {
  display: block;
  margin-top: 4px;
  font-size: 0.94rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ok);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(131, 182, 154, 0.5);
}

.download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  padding: 17px 24px;
  border-radius: 16px;
  border: 1px solid rgba(183, 162, 197, 0.38);
  background: linear-gradient(180deg, rgba(183, 162, 197, 0.26), rgba(183, 162, 197, 0.13));
  color: var(--ivory);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.download:hover, .download:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(183, 162, 197, 0.62);
  box-shadow: 0 14px 38px rgba(183, 162, 197, 0.18);
  outline: none;
}

.download .arrow { color: var(--lavender); font-size: 1.05rem; }

.update-note {
  margin: 14px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.8rem;
}

.update-note a { color: var(--lavender); text-decoration: none; border-bottom: 1px solid rgba(183, 162, 197, 0.4); }

/* ------------------------------------------------------------------ stage */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}

.halo {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 162, 197, 0.16), transparent 66%);
  filter: blur(6px);
}

.float { position: relative; animation: float 7s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone {
  position: relative;
  width: 268px;
  padding: 10px;
  border-radius: 34px;
  border: 1px solid rgba(238, 234, 240, 0.14);
  background: linear-gradient(180deg, #1b1922, #0f0e14);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(238, 234, 240, 0.09);
}

.screen {
  padding: 16px 14px 18px;
  border-radius: 26px;
  background:
    radial-gradient(120% 60% at 12% 0%, rgba(183, 162, 197, 0.16), transparent 62%),
    linear-gradient(180deg, #131118, #0b0a0f);
  border: 1px solid rgba(238, 234, 240, 0.07);
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.screen-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lavender); }

.screen-hello {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.tile {
  padding: 8px 9px;
  border-radius: 11px;
  border: 1px solid rgba(238, 234, 240, 0.09);
  background: rgba(238, 234, 240, 0.045);
}

.tile span { display: block; font-size: 0.58rem; color: var(--muted); }
.tile strong { font-size: 0.92rem; font-variant-numeric: tabular-nums; }

.screen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  margin-bottom: 5px;
  border-radius: 10px;
  background: rgba(238, 234, 240, 0.035);
}

.row-name { margin: 0; font-size: 0.7rem; font-weight: 600; }
.row-meta { margin: 0; font-size: 0.58rem; color: var(--muted); }

.pill {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pill-ok { color: var(--ok); border: 1px solid rgba(131, 182, 154, 0.45); }
.pill-warn { color: var(--warn); border: 1px solid rgba(230, 201, 143, 0.45); }
.pill-bad { color: var(--bad); border: 1px solid rgba(217, 138, 145, 0.45); }

.screen-cta {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--ivory);
  border: 1px solid rgba(183, 162, 197, 0.4);
  background: rgba(183, 162, 197, 0.2);
}

.chip {
  position: absolute;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(238, 234, 240, 0.14);
  background: rgba(20, 18, 25, 0.86);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 0.63rem;
  white-space: nowrap;
}

.chip-a { top: 34px; left: -34px; }
.chip-b { bottom: 58px; right: -26px; }

/* ------------------------------------------------------------------ cards */

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.card {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(238, 234, 240, 0.045), rgba(238, 234, 240, 0.012));
  backdrop-filter: blur(12px);
}

.card + .card { margin-top: 0; }
.card h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.card p { margin: 0 0 10px; color: var(--muted); font-size: 0.89rem; }
.card p:last-child { margin-bottom: 0; }

.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.89rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lavender);
}

ol { margin: 0 0 12px; padding-left: 20px; color: var(--muted); font-size: 0.89rem; }
ol li { margin-bottom: 7px; }
ol li::marker { color: var(--lavender); }

code {
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(238, 234, 240, 0.07);
  color: var(--ivory);
  font-size: 0.84em;
}

.hash { font-size: 0.76rem !important; word-break: break-all; }
.hash code { font-size: 0.95em; }

/* ----------------------------------------------------------------- footer */

footer {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.76rem;
}

footer p { margin: 0 0 6px; }
.legal { color: rgba(183, 176, 190, 0.72); letter-spacing: 0.04em; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  .stage { min-height: 0; order: -1; }
  .details { grid-template-columns: 1fr; }
  .chip-a { left: -8px; top: 10px; }
  .chip-b { right: -6px; bottom: 26px; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 28px, 1120px); }
  h1 { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .badge { display: none; }
  .phone { width: 244px; }
  .card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .float, .pulse { animation: none; }
  .download { transition: none; }
}
