:root {
  --page: #06101d;
  --page-soft: #091827;
  --surface: #0d1c2e;
  --surface-strong: #12263d;
  --surface-raised: #142a43;
  --ink: #f4f8ff;
  --ink-strong: #ffffff;
  --muted: #a9bad1;
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(36, 214, 170, .34);
  --accent: #24d6aa;
  --accent-dark: #45e3bb;
  --accent-soft: rgba(36, 214, 170, .12);
  --warn: #ffd166;
  --warn-soft: rgba(255, 209, 102, .12);
  --danger: #ffb4a8;
  --danger-soft: rgba(255, 180, 168, .12);
  --ok: #8ef0bc;
  --ok-soft: rgba(142, 240, 188, .12);
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --max: 1160px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 8%, rgba(36, 214, 170, .13), transparent 28rem),
    radial-gradient(circle at 6% 34%, rgba(64, 126, 255, .08), transparent 24rem),
    var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .42), transparent 58%);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

img,
svg {
  max-width: 100%;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 40px));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 16, 29, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: var(--ink-strong);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

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

.nav .nav-strong {
  color: var(--accent);
}

.focusable:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(36, 214, 170, .42);
  outline-offset: 3px;
}

.section {
  padding: 78px 0;
  scroll-margin-top: 88px;
}

.section--tight {
  padding: 48px 0;
}

.section--band {
  background: rgba(9, 24, 39, .72);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink-strong);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: 66px;
  line-height: 1.01;
}

h2 {
  margin-bottom: 12px;
  font-size: 46px;
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.lead {
  max-width: 760px;
  font-size: 20px;
  line-height: 1.45;
}

.body-copy {
  max-width: 700px;
}

.actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: #031510;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-dark);
}

.button--secondary {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
  color: var(--ink-strong);
}

.button--secondary:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--line-strong);
}

.button--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-strong);
}

.button[disabled],
.button--disabled {
  background: var(--surface-strong);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 22%, rgba(36, 214, 170, .16), transparent 24rem),
    radial-gradient(circle at 14% 68%, rgba(68, 132, 255, .09), transparent 22rem);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(6, 16, 29, .88), transparent);
  pointer-events: none;
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 54px;
  align-items: center;
}

.hero__layout > *,
.summary-grid > *,
.prepractice > *,
.workspace > *,
.result-layout > *,
.grid-2 > *,
.grid-3 > * {
  min-width: 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(36, 214, 170, .055);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.product-preview {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 0%, rgba(36, 214, 170, .14), transparent 14rem),
    linear-gradient(155deg, rgba(18, 38, 61, .98), rgba(9, 24, 39, .98));
  box-shadow: var(--shadow);
}

.preview-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-label span:last-child {
  color: var(--accent);
}

.scenario-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.scenario-bar small {
  display: block;
  color: var(--muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.conversation {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.bubble {
  max-width: 88%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 13px 13px 13px 4px;
  background: rgba(255, 255, 255, .065);
  color: var(--ink);
  font-size: 13px;
}

.bubble--user {
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 13px 13px 4px 13px;
  background: var(--accent-soft);
}

.result-mini {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #071522;
}

.score {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 5px solid var(--accent);
  border-radius: 50%;
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 950;
}

.score-caption {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.result-mini strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.result-mini p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.brief {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(18, 38, 61, .98), rgba(9, 24, 39, .98));
  box-shadow: var(--shadow);
}

.brief__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.brief__body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.brief-line {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
}

.brief-line svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.brief-line strong {
  display: block;
  color: var(--ink-strong);
}

.brief-line span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.panel,
.card,
.metric,
.status-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 28, 46, .94);
}

.panel,
.card {
  padding: 22px;
}

.card p:last-child,
.panel p:last-child {
  margin-bottom: 0;
}

.number {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--accent);
  color: #031510;
  font-weight: 900;
}

.offer-list,
.list {
  display: grid;
  gap: 12px;
}

.offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.offer-card__price {
  color: var(--ink-strong);
  font-size: 28px;
  font-weight: 900;
  white-space: nowrap;
}

.offer-card small,
.muted {
  color: var(--muted);
}

.status-box {
  padding: 16px;
  color: var(--muted);
}

.status-box--error {
  background: var(--danger-soft);
  border-color: rgba(255, 180, 168, .34);
  color: var(--danger);
}

.status-box--warn {
  background: var(--warn-soft);
  border-color: rgba(255, 209, 102, .28);
  color: var(--warn);
}

.status-box--ok {
  background: var(--ok-soft);
  border-color: rgba(142, 240, 188, .28);
  color: var(--ok);
}

.hidden {
  display: none !important;
}

.form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

label {
  display: block;
  color: var(--ink-strong);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #091521;
  color: var(--ink);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7f92aa;
}

.app-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 72px;
}

.app-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.summary-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 16px;
  align-items: stretch;
}

.metric {
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 214, 170, .12), transparent 13rem),
    var(--surface-strong);
}

.metric span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.metric strong {
  display: block;
  color: var(--ink-strong);
  font-size: 60px;
  line-height: 1;
}

.metric p {
  margin: 12px 0 0;
  font-size: 14px;
}

.item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
}

.item strong {
  display: block;
  color: var(--ink-strong);
}

.item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

.scenario-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 214, 170, .08), transparent 12rem),
    var(--surface);
}

.scenario-card__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.meta {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}

.meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meta strong {
  display: block;
  color: var(--ink-strong);
  font-size: 14px;
}

.prepractice {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 16px;
  align-items: start;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: stretch;
}

.conversation-shell {
  min-height: 420px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.conversation-area {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #071522;
  color: var(--muted);
  text-align: center;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.score-placeholder {
  min-height: 210px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #071522;
  color: var(--muted);
  text-align: center;
}

.footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: rgba(6, 16, 29, .94);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 92px;
}

.legal-sidebar ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.legal-sidebar a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.legal-sidebar a:hover {
  color: var(--accent);
}

.legal-content {
  display: grid;
  gap: 46px;
}

.legal-content section {
  scroll-margin-top: 96px;
}

.legal-content h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 34px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--muted);
}

.legal-content code {
  color: var(--ink-strong);
}

.legal-content a,
.status-box a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover,
.status-box a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 40px;
  }

  .hero__layout,
  .summary-grid,
  .prepractice,
  .workspace,
  .result-layout {
    grid-template-columns: 1fr;
  }

  .hero__layout {
    gap: 32px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container,
  .narrow,
  .app-shell {
    width: calc(100% - 32px);
  }

  .topbar__inner {
    min-height: 64px;
  }

  .nav a:not(.nav-strong) {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 42px 0 50px;
  }

  .hero__layout {
    display: block;
  }

  .hero__layout > * {
    width: 100%;
    max-width: 100%;
  }

  .hero__layout > * + * {
    margin-top: 30px;
  }

  .lead,
  .body-copy {
    max-width: 100%;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  .offer-card,
  .form-row,
  .scenario-card__meta {
    grid-template-columns: 1fr;
  }

  .button,
  .actions .button,
  .form-row .button {
    width: 100%;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .container,
  .narrow,
  .app-shell {
    width: calc(100% - 28px);
  }

  .brand {
    font-size: 21px;
  }

  .nav .nav-strong {
    font-size: 13px;
  }

  .panel,
  .card,
  .metric {
    padding: 18px;
  }

  h1 {
    font-size: 36px;
  }

  h2,
  .legal-content h2 {
    font-size: 30px;
  }

  .lead {
    font-size: 17px;
  }

  .body-copy {
    font-size: 15px;
  }

  .hero .button--secondary {
    display: none;
  }

  .brief__body {
    padding: 14px;
  }

  .result-mini {
    grid-template-columns: 1fr;
  }

  .score {
    width: 54px;
    height: 54px;
  }
}
