:root {
  --bg: #0a0910;
  --bg2: #121019;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.16);
  --text: #f1eff5;
  --mute: #a6a3b3;
  --dim: #8b8898;
  --violet: #8b5cf6;
  --gold: #e9b949;
  --serif: "Marcellus", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 0.84, 0.24, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; height: auto; }

h1, h2 { margin: 0; font: 400 1em/1 var(--serif); letter-spacing: -0.01em; }

.defs { position: absolute; }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}

.nav.solid { background: rgba(10, 9, 16, 0.94); border-color: var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 22px var(--serif);
}

.nav nav { display: flex; gap: 32px; }

.nav nav a {
  font-size: 14px;
  color: var(--mute);
  transition: color 0.25s;
}

.nav nav a:hover { color: var(--text); }

.nav .btn { justify-self: end; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: 600 15px var(--sans);
  cursor: pointer;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn.small { height: 36px; padding: 0 18px; font-size: 14px; }

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

#stage { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-copy {
  position: relative;
  max-width: 980px;
  padding: 0 24px 88px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.02;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1.4s 0.9s var(--ease) forwards;
}

.hero sup { font-size: 0.4em; vertical-align: super; color: var(--gold); }

.link {
  display: inline-block;
  margin-top: 28px;
  font-size: 15px;
  color: var(--mute);
  border-bottom: 1px solid var(--line2);
  padding-bottom: 3px;
  opacity: 0;
  animation: rise 1.2s 1.15s var(--ease) forwards;
  transition: color 0.25s, border-color 0.25s;
}

.link:hover { color: var(--text); border-color: var(--text); }

@keyframes rise { to { opacity: 1; transform: none; } }

.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 72px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust p { margin: 0; font-size: 14px; color: var(--dim); }

.trust ul {
  display: flex;
  gap: clamp(32px, 6vw, 80px);
  margin: 0;
  padding: 0;
  list-style: none;
  font: 600 22px var(--sans);
  letter-spacing: 0.14em;
  color: var(--mute);
}

.product {
  max-width: 1200px;
  margin: 0 auto;
  padding: 150px 32px 0;
}

.head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.icon { width: 88px; height: 88px; }

.head h2 { font-size: clamp(64px, 10vw, 136px); line-height: 0.82; }

.price { margin: 0; color: var(--mute); font-size: 16px; white-space: nowrap; }
.price b { font: 400 40px var(--serif); color: var(--text); margin-right: 4px; }

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 32px 0 0;
  list-style: none;
}

.specs li { color: var(--mute); font-size: 15px; max-width: 300px; }
.specs b { display: block; margin-bottom: 6px; color: var(--text); font-weight: 600; }

.gallery { position: relative; margin: 72px 0 0; padding-right: 9%; }

.gallery .main {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line2);
}

.gallery .side {
  position: absolute;
  right: 0;
  bottom: -9%;
  width: 30%;
  border-radius: 18px;
  border: 1px solid var(--line2);
  box-shadow: 0 40px 80px -30px #000;
}

.everything { max-width: 1200px; margin: 0 auto; padding: 170px 32px 0; }

.deal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: 28px;
  border: 1px solid var(--line2);
  background: var(--bg2);
}

.deal h2 { font-size: clamp(56px, 8vw, 112px); line-height: 0.85; }
.deal-copy p { margin: 18px 0 0; color: var(--mute); font-size: 17px; }
.deal-copy .addon { margin-top: 28px; }

.addon { margin: 0; color: var(--mute); }
.addon b { font: 400 22px var(--serif); color: var(--text); }

.deal-price { text-align: right; }
.deal-price p { margin: 0; color: var(--mute); }

.big { display: flex; align-items: flex-start; justify-content: flex-end; color: var(--text) !important; }
.big span { font: 400 40px/1.3 var(--serif); }
.big b { font: 400 128px/1 var(--serif); font-variant-numeric: tabular-nums; }

.save { margin-top: 10px !important; color: var(--gold) !important; font-size: 14px; }

.newgame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 32px 0;
}

.newgame h2 { font-size: clamp(44px, 5vw, 64px); }
.newgame sup { font-size: 0.45em; color: var(--gold); vertical-align: super; }
.ng-copy p { margin: 18px 0 0; color: var(--mute); max-width: 460px; }

.fees { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.fees li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.fees span { color: var(--mute); }
.fees b { font: 400 28px var(--serif); }
.fees li:nth-last-child(-n+2) b { color: var(--gold); }

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

.foot div { display: flex; align-items: center; gap: 10px; font: 400 18px var(--serif); color: var(--mute); }
.foot p { margin: 0; }

.start { max-width: 1200px; margin: 0 auto; padding: 160px 32px 160px; }
.start > h2 { font-size: clamp(52px, 7vw, 96px); margin-bottom: 48px; }

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: start;
}

.step { margin: 36px 0 14px; color: var(--dim); font-size: 14px; }
.step:first-child { margin-top: 0; }

.pick {
  display: grid;
  grid-template-columns: 40px 1fr auto 22px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.pick:hover { border-color: var(--line2); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .mini { width: 40px; height: 40px; }
.pick .name { font: 400 22px var(--serif); }
.pick .cost { color: var(--mute); font-size: 14px; text-align: right; }
.pick .name small { display: block; margin-top: 2px; font: 400 13px var(--sans); color: var(--dim); }
.pick .cost em {
  display: block;
  max-width: 150px;
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--gold);
}
.pick.pack { border-color: rgba(233, 185, 73, 0.35); }
.or { margin: 6px 0 12px; color: var(--dim); font-size: 13px; text-align: center; }

.pick i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line2);
  transition: all 0.3s var(--ease);
}

.pick:has(input:checked) { border-color: rgba(139, 92, 246, 0.6); background: rgba(139, 92, 246, 0.06); }
.pick:has(input:checked) i {
  border-color: var(--violet);
  background: var(--violet);
  box-shadow: inset 0 0 0 4px var(--bg);
}
.pick:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line2);
}

.seg input { position: absolute; opacity: 0; }

.seg span {
  display: block;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--mute);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.seg input:checked + span { background: var(--text); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }

.field {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: var(--bg2);
  color: var(--text);
  font: 400 15px var(--sans);
  resize: none;
  transition: border-color 0.2s;
}

.field::placeholder { color: var(--dim); }
.field:focus { outline: none; border-color: var(--violet); }
.field.bad { border-color: #ef4e5b; }

.panel {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line2);
  border-radius: 24px;
  background: var(--bg2);
  overflow: hidden;
}

.summary { padding: 28px; }

.lines { margin: 0 0 18px; padding: 0; list-style: none; min-height: 24px; }

.lines li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
  color: var(--mute);
  animation: rise 0.5s var(--ease) both;
  transform: translateY(6px);
  opacity: 0;
}

.lines li b { color: var(--text); font-weight: 500; }
.lines li.perk b { color: var(--gold); }

.totals { padding: 18px 0 4px; border-top: 1px solid var(--line); }
.totals p { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; }
.totals span { color: var(--mute); }
.totals b { font: 400 36px var(--serif); font-variant-numeric: tabular-nums; }

.hint { margin: 8px 0 6px; min-height: 22px; font-size: 14px; color: var(--dim); }
.hint.bad { color: #ef4e5b; }

.btn.wide { width: 100%; justify-content: center; margin-top: 14px; border: 0; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }

.chat { display: flex; flex-direction: column; height: 560px; }

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.chat-head b { display: block; font: 400 18px var(--serif); }
.reset {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dim);
  font: 400 13px var(--sans);
  cursor: pointer;
  transition: color 0.2s;
}

.reset:hover { color: var(--text); }
.chat-head span { font-size: 13px; color: var(--dim); }

.log {
  flex: 1;
  margin: 0;
  padding: 20px 22px;
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log li {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: rise 0.45s var(--ease) both;
  opacity: 0;
  transform: translateY(8px);
}

.log .me { align-self: flex-end; background: var(--violet); border-bottom-right-radius: 6px; }
.log .them { align-self: flex-start; background: #1d1a27; border-bottom-left-radius: 6px; }
.log .sys { align-self: center; max-width: 100%; padding: 0; color: var(--dim); font-size: 13px; text-align: center; }
.log .me.wait { opacity: 0.6; }

.say { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.say .field { margin: 0; }
.say .btn { border: 0; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .nav { grid-template-columns: 1fr auto; padding: 0 20px; }
  .nav nav { display: none; }
  .head { grid-template-columns: auto 1fr; }
  .head .price { grid-column: 1 / -1; }
  .specs { grid-template-columns: 1fr; gap: 22px; }
  .deal { grid-template-columns: 1fr; padding: 36px 28px; }
  .deal-price { text-align: left; }
  .big { justify-content: flex-start; }
  .trust { flex-direction: column; gap: 20px; }
  .newgame { grid-template-columns: 1fr; gap: 36px; }
  .builder { grid-template-columns: 1fr; }
  .panel { position: static; }
}

@media (max-width: 560px) {
  .product { padding: 110px 20px 0; }
  .everything { padding: 130px 20px 0; }
  .newgame { padding: 110px 20px 0; }
  .start { padding: 110px 20px 120px; }
  .pick { grid-template-columns: 34px 1fr auto 20px; gap: 12px; padding: 14px; }
  .pick .mini { width: 34px; height: 34px; }
  .pick .name small { display: none; }
  .pick .cost em { max-width: 110px; }
  .chat { height: 480px; }
  .icon { width: 64px; height: 64px; }
  .head { grid-template-columns: 1fr; gap: 18px; }
  .head h2 { font-size: clamp(52px, 17vw, 72px); }
  .head .price { grid-column: auto; }
  .big b { font-size: 96px; }
  .trust ul { gap: 26px; font-size: 18px; }
  .foot { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero h1, .link { opacity: 1; transform: none; }
}

.nw { white-space: nowrap; }
