:root {
  color-scheme: dark;
  --bg: #05091d;
  --bg-deep: #030617;
  --panel: rgba(13, 22, 63, 0.86);
  --panel-strong: #101c4a;
  --line: rgba(99, 207, 255, 0.42);
  --text: #f5f7ff;
  --muted: #afbadc;
  --cyan: #62ddff;
  --gold: #ffd650;
  --purple: #8e4dff;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg-deep);
}
body {
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 18%, rgba(85, 55, 205, 0.35), transparent 32rem),
    radial-gradient(circle at 8% 72%, rgba(0, 191, 255, 0.18), transparent 24rem),
    linear-gradient(180deg, #060a22 0%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(circle, #ffffff 0 1px, transparent 1.2px),
    radial-gradient(circle, #67dfff 0 1px, transparent 1.2px);
  background-position: 0 0, 45px 75px;
  background-size: 120px 120px, 180px 180px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(128, 172, 255, 0.16);
  background: rgba(4, 8, 28, 0.82);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; min-height: 48px; gap: 10px; font-weight: 800; }
.brand-mark { color: var(--gold); font-size: 1.5rem; text-shadow: 0 0 20px var(--gold); }
nav { display: flex; gap: 26px; color: var(--muted); }
nav a { display: inline-flex; align-items: center; min-height: 48px; }
nav a:hover, nav a:focus-visible { color: var(--cyan); }

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
  scroll-margin-top: 96px;
}
.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
  padding-block: 80px 64px;
}

.eyebrow, .card-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

h1 { margin: 0; font-size: clamp(3rem, 7vw, 6rem); line-height: 0.96; letter-spacing: -0.055em; }
h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { margin: 12px 0 10px; font-size: 1.35rem; }
p { color: var(--muted); line-height: 1.65; }
.hero-summary { max-width: 650px; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.primary { background: linear-gradient(135deg, #6e2ee8, #264fc7); box-shadow: 0 12px 34px rgba(75, 57, 220, 0.28); }
.secondary { border-color: var(--line); background: rgba(13, 29, 77, 0.78); }
button:disabled, .is-disabled { cursor: not-allowed; opacity: 0.55; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.fine-print { font-size: 0.8rem; }

.cube-stage {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(110, 188, 255, 0.23);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 57, 203, 0.55), rgba(9, 14, 54, 0.2) 60%, transparent 70%);
}
.cube-grid {
  display: grid;
  grid-template-columns: repeat(2, 130px);
  gap: 10px;
  padding: 18px;
  border-radius: 34px;
  background: #c9f5ff;
  transform: rotate(-5deg) skewY(2deg);
  box-shadow: 0 30px 70px rgba(46, 219, 255, 0.28), 0 0 0 8px rgba(255,255,255,0.11);
}
.tile { aspect-ratio: 1; display: grid; place-items: center; border-radius: 18px; font-size: 4rem; font-weight: 900; color: #17203f; box-shadow: inset 0 0 0 5px rgba(255,255,255,0.44); }
.tile.white { background: #e9edf1; }
.tile.red { background: #e98282; }
.tile.blue { background: #74b8f4; }
.tile.yellow { background: #ffe967; }
.spark { position: absolute; width: 130px; height: 130px; border-radius: 50%; border: 2px dashed rgba(255, 214, 80, 0.48); }
.spark-a { right: 1%; top: 20%; }
.spark-b { left: 2%; bottom: 12%; border-color: rgba(98, 221, 255, 0.5); }

.feature-grid, .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid { padding-block: 30px 90px; }
.feature-card, .product-card, .status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 22px 55px rgba(0,0,0,0.2);
}
.feature-card { padding: 28px; min-height: 220px; }

.release-section { padding-block: 42px 82px; }
.release-proof {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(16, 28, 74, 0.72), rgba(13, 22, 63, 0.35));
}
.release-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.release-facts > div { min-width: 0; padding: 22px 24px; border-bottom: 1px solid rgba(99, 207, 255, 0.16); }
.release-facts > div:nth-child(odd):not(.release-fact-wide) { border-right: 1px solid rgba(99, 207, 255, 0.16); }
.release-facts > div:last-child { border-bottom: 0; }
.release-fact-wide { grid-column: 1 / -1; }
.release-facts dt { color: var(--cyan); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.release-facts dd { margin: 8px 0 0; color: var(--text); }
.release-facts code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }
.release-access { display: flex; flex-direction: column; justify-content: center; padding: 28px; border-left: 1px solid var(--line); }
.release-access p { margin-top: 0; }
.release-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.text-link, .footer-links a { color: var(--cyan); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.release-links .text-link { display: inline-flex; align-items: center; min-height: 48px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; }

.plans-section { padding-block: 84px 40px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(14, 26, 72, 0.95), rgba(7, 13, 42, 0.92));
  box-shadow: 0 24px 64px rgba(0,0,0,0.24);
}
.plus-plan {
  border-color: rgba(174, 143, 255, 0.72);
  background:
    radial-gradient(circle at 80% 5%, rgba(87, 225, 255, 0.24), transparent 24rem),
    radial-gradient(circle at 5% 100%, rgba(183, 74, 255, 0.24), transparent 25rem),
    linear-gradient(145deg, rgba(28, 24, 88, 0.97), rgba(8, 17, 50, 0.96));
}
.plan-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.plan-heading strong { color: var(--text); font-size: 1.55rem; }
.plan-heading small { color: var(--muted); font-size: 0.82rem; }
.plan-badge { display: inline-flex; padding: 7px 11px; border-radius: 999px; color: var(--cyan); background: rgba(35, 111, 159, 0.28); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; }
.plan-badge.member { color: #fff0a7; background: linear-gradient(135deg, rgba(128, 68, 241, 0.72), rgba(35, 157, 206, 0.66)); }
.plan-list { margin: 20px 0 0; padding-left: 22px; color: #dbe3ff; line-height: 1.55; }
.plan-list li { margin-bottom: 12px; }
.plan-note { margin-bottom: 0; padding-top: 16px; border-top: 1px solid rgba(99, 207, 255, 0.18); font-size: 0.82rem; }
.aurora-preview { width: 150px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin: 24px 0 4px; padding: 10px; border-radius: 22px; transform: rotate(-3deg); background: rgba(221, 248, 255, 0.9); box-shadow: 0 18px 46px rgba(72, 215, 255, 0.32), 0 0 40px rgba(169, 80, 255, 0.28); }
.aurora-tile { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; color: rgba(16, 25, 61, 0.88); font-size: 1.75rem; font-weight: 900; box-shadow: inset 0 0 0 3px rgba(255,255,255,0.44); }
.a-white { background: #f8fdff; }
.a-pink { background: #ff4fa3; }
.a-blue { background: #4c7dff; }
.a-green { background: #37e3a3; }
.product-price { margin: -2px 0 8px; color: var(--gold); font-size: 1.12rem; font-weight: 900; }

.account-section {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 44px;
  align-items: center;
  padding-block: 86px;
}
.status-card { padding: 28px; }
.email-link-row {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  scroll-margin-block: 96px 24px;
}
.email-link-row input,
.email-link-row button { scroll-margin-block: 96px 24px; }
.email-link-row label { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.email-link-row input {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(5, 12, 40, 0.84);
}
.email-link-row input:disabled { opacity: 0.5; }
.status-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #ffbf47; box-shadow: 0 0 14px #ffbf47; }

.store-section { padding-block: 84px 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.channel-badge, .product-type, .product-state { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.08em; }
.channel-badge { color: var(--gold); border: 1px solid rgba(255, 214, 80, 0.42); background: rgba(84, 62, 12, 0.42); }
.product-card { display: flex; flex-direction: column; padding: 24px; min-height: 360px; }
.product-meta { display: flex; justify-content: space-between; gap: 8px; }
.product-type { color: var(--cyan); background: rgba(28, 110, 155, 0.24); }
.product-state { color: var(--gold); background: rgba(115, 82, 10, 0.32); }
.entitlement-list { flex: 1; padding-left: 20px; color: #d4dcf5; }
.entitlement-list li { margin-bottom: 8px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px max(24px, calc((100vw - 1180px) / 2)); border-top: 1px solid rgba(128, 172, 255, 0.16); color: var(--muted); font-size: 0.85rem; }

.legal-page h1 {
  max-width: 920px;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0;
}
.legal-shell {
  width: min(900px, calc(100% - 36px));
  margin-inline: auto;
  padding-block: 72px 104px;
}
.legal-header {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}
.legal-header > p:not(.eyebrow) { max-width: 760px; font-size: 1.08rem; }
.legal-updated { margin: 18px 0 0; color: var(--gold); font-weight: 800; }
.legal-section {
  padding-block: 34px;
  border-bottom: 1px solid rgba(99, 207, 255, 0.18);
}
.legal-section h2 { font-size: clamp(1.65rem, 4vw, 2.2rem); }
.legal-section a { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }
.legal-list { margin: 18px 0 0; padding-left: 24px; color: var(--muted); line-height: 1.65; }
.legal-list li { margin-bottom: 14px; padding-left: 4px; }
.legal-list strong { color: var(--text); }
.legal-callout {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  line-height: 1.6;
}
.legal-callout strong { color: var(--text); }
.legal-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 40px; }

@media (max-width: 850px) {
  .hero, .account-section, .plan-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .cube-stage { min-height: 370px; }
  .feature-grid, .product-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .release-proof { grid-template-columns: 1fr; }
  .release-access { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 560px) {
  .topbar nav { display: none; }
  .cube-grid { grid-template-columns: repeat(2, 100px); }
  .tile { font-size: 3rem; }
  .release-facts { grid-template-columns: 1fr; }
  .release-facts > div, .release-facts > div:nth-child(odd):not(.release-fact-wide) { border-right: 0; }
  .release-fact-wide { grid-column: auto; }
  footer { flex-direction: column; }
  .legal-shell { padding-top: 48px; }
  .legal-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
