:root {
  --bg: #0b0810;
  --bg-soft: #120d19;
  --panel: #17101f;
  --panel-2: #1d1428;
  --ink: #f1ecf5;
  --muted: #aaa0b4;
  --line: rgba(211, 192, 226, 0.16);
  --line-strong: rgba(211, 192, 226, 0.28);
  --purple: #3e2656;
  --purple-2: #68418c;
  --purple-3: #9f7bc0;
  --stone: #9c9086;
  --copper: #b97952;
  --green: #79a889;
  --danger: #c66f75;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 5%, rgba(104, 65, 140, 0.18), transparent 30rem),
    radial-gradient(circle at 86% 18%, rgba(62, 38, 86, 0.16), transparent 24rem),
    linear-gradient(180deg, #0a070e 0%, #0d0912 55%, #09070c 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

a { color: inherit; }

img { max-width: 100%; }

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(10, 7, 14, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(159, 123, 192, 0.5);
  border-radius: 50% 46% 52% 44%;
  background: linear-gradient(145deg, rgba(104,65,140,.34), rgba(20,13,27,.5));
  transform: rotate(-4deg);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--purple-3);
  opacity: .8;
}

.brand-mark::before { width: 13px; height: 1px; transform: rotate(40deg); }
.brand-mark::after { width: 1px; height: 13px; transform: rotate(24deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: .94rem;
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.beta-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #cdb9dc;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.beta-pill {
  padding: 5px 9px;
  border: 1px solid rgba(159, 123, 192, 0.24);
  border-radius: 999px;
  background: rgba(62, 38, 86, .22);
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 70px;
  padding: 86px 0 96px;
}

.hero h1 {
  margin: 16px 0 20px;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 8vw, 6.8rem);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 700;
}

.hero h1 span {
  display: block;
  color: #bca5d2;
  font-size: .58em;
  line-height: 1.1;
  letter-spacing: -.035em;
  margin-top: 12px;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.button:hover { transform: translateY(-1px); }

.button.primary {
  background: #4a2d65;
  border-color: #6b468a;
}
.button.primary:hover { background: #553372; }

.button.secondary { background: rgba(255,255,255,.025); color: #d8d0df; }
.button.secondary:hover { border-color: rgba(211,192,226,.42); }

.hero-stage {
  position: relative;
  height: 520px;
}

.stage-ring {
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(159, 123, 192, .12);
  border-radius: 50%;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
}

.stage-ring::before,
.stage-ring::after {
  content: "";
  position: absolute;
  inset: 46px;
  border: 1px dashed rgba(185, 121, 82, .10);
  border-radius: 50%;
  transform: rotate(17deg);
}

.stage-ring::after {
  inset: 105px;
  border-style: solid;
  border-color: rgba(159, 123, 192, .09);
}

.mock-card {
  position: absolute;
  width: 226px;
  height: 328px;
  border: 1px solid rgba(192, 169, 209, .20);
  border-radius: 14px 12px 16px 11px;
  background:
    linear-gradient(160deg, rgba(159,123,192,.14), transparent 35%),
    radial-gradient(circle at 62% 24%, rgba(185,121,82,.10), transparent 32%),
    #15101c;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(156, 144, 134, .22);
  border-radius: 8px 7px 10px 7px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 95% 100%, 5% 100%, 0 94%);
}

.mock-card::after {
  content: "";
  position: absolute;
  inset: 38px 28px 58px;
  background:
    radial-gradient(circle at 45% 25%, rgba(205,185,220,.14), transparent 18%),
    linear-gradient(150deg, rgba(255,255,255,.03), transparent 60%);
  border-radius: 45% 50% 42% 48%;
  filter: blur(1px);
}

.card-a { left: 2%; top: 112px; transform: rotate(-8deg); }
.card-b { left: 50%; top: 52px; transform: translateX(-50%) rotate(2deg); z-index: 3; }
.card-c { right: 0; top: 128px; transform: rotate(9deg); }

.card-label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}

.card-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.card-meta { color: var(--muted); font-size: .75rem; }

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 44px;
}

.section h2,
.legal h1,
.support-card h1 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.section-heading p { margin: 0; color: var(--muted); max-width: 650px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature {
  position: relative;
  min-height: 220px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.018), transparent 45%),
    rgba(18, 13, 25, .72);
}

.feature:nth-child(2) { transform: translateY(10px); }
.feature:nth-child(3) { transform: translateY(-4px); }

.feature::after {
  content: attr(data-index);
  position: absolute;
  right: 22px;
  top: 14px;
  font-family: Georgia, serif;
  color: rgba(205,185,220,.10);
  font-size: 4rem;
}

.feature h3 { margin: 46px 0 8px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; max-width: 45ch; }

.feature-mark {
  width: 31px;
  height: 31px;
  border-left: 2px solid var(--purple-3);
  border-bottom: 2px solid rgba(185,121,82,.72);
  transform: rotate(-10deg);
  opacity: .7;
}

.beta-block {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 36px;
  align-items: stretch;
}

.beta-copy,
.beta-notes {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  background: rgba(18,13,25,.72);
}

.beta-copy h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
.beta-copy p, .beta-notes p { color: var(--muted); }

.beta-notes ul { list-style: none; padding: 0; margin: 10px 0 0; }
.beta-notes li { padding: 10px 0; border-bottom: 1px solid var(--line); color: #d5cddd; }
.beta-notes li:last-child { border-bottom: 0; }

.cta {
  text-align: center;
  padding: 110px 0 120px;
}

.cta h2 { margin-bottom: 18px; }
.cta p { max-width: 620px; margin: 0 auto; color: var(--muted); }
.cta .actions { justify-content: center; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 38px;
  color: var(--muted);
  font-size: .86rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.legal,
.support-card {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0 110px;
}

.legal .lead,
.support-card .lead { color: var(--muted); font-size: 1.05rem; margin: 18px 0 42px; }

.legal h2 {
  margin: 46px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  letter-spacing: -.02em;
}

.legal h3 { margin: 26px 0 8px; font-size: 1rem; }
.legal p, .legal li { color: #c4bbc9; }
.legal ul { padding-left: 1.2rem; }
.legal code { color: #d9c7e8; }

.notice {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--purple-3);
  background: rgba(62,38,86,.14);
  color: #d8d0df;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  margin-top: 34px;
}

.support-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18,13,25,.72);
}

.support-panel h2 { margin-top: 0; font-family: Georgia, serif; }
.support-panel p { color: var(--muted); }
.support-panel ul { color: #cdc4d2; padding-left: 1.15rem; }

.error-page {
  min-height: calc(100vh - 130px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-family: Georgia, serif;
  font-size: clamp(6rem, 20vw, 13rem);
  line-height: .8;
  color: rgba(159,123,192,.18);
}

@media (max-width: 860px) {
  .nav-links a:not(.beta-pill) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 70px; gap: 26px; }
  .hero-stage { height: 430px; max-width: 560px; width: 100%; margin: 0 auto; }
  .mock-card { width: 190px; height: 276px; }
  .section-heading, .beta-block, .support-grid { grid-template-columns: 1fr; gap: 22px; }
  .section-heading { align-items: start; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1120px); }
  .nav { min-height: 64px; }
  .hero { padding: 56px 0 70px; }
  .hero h1 { font-size: clamp(3.25rem, 18vw, 5rem); }
  .hero-stage { height: 350px; }
  .stage-ring { width: 310px; height: 310px; top: 16px; }
  .mock-card { width: 150px; height: 218px; }
  .card-a { top: 88px; }
  .card-b { top: 48px; }
  .card-c { top: 98px; }
  .card-label { left: 14px; right: 14px; bottom: 14px; }
  .card-name { font-size: .85rem; }
  .card-meta { font-size: .64rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature:nth-child(2), .feature:nth-child(3) { transform: none; }
  .section { padding: 66px 0; }
  .legal, .support-card { width: min(100% - 28px, 820px); padding-top: 58px; }
}
