:root {
  color-scheme: dark;
  --bg: #0e141c;
  --bg-soft: #111b25;
  --panel: rgba(18, 26, 37, 0.84);
  --panel-strong: rgba(20, 29, 41, 0.94);
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(196, 214, 236, 0.12);
  --text: #edf3fb;
  --muted: #9eb0c7;
  --muted-strong: #b8c7d9;
  --accent: #82b8ff;
  --accent-2: #e2b17d;
  --success: #6ee7a5;
  --danger: #ff8d8d;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(122, 169, 246, 0.16), transparent 26%),
    radial-gradient(circle at 85% 10%, rgba(226, 177, 125, 0.11), transparent 24%),
    linear-gradient(180deg, #0e141c 0%, #101824 30%, #0e151d 100%);
}

body.legal-page {
  background:
    radial-gradient(circle at 80% 0%, rgba(122, 169, 246, 0.12), transparent 24%),
    linear-gradient(180deg, #0e141c 0%, #101824 40%, #0e151d 100%);
}

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

a {
  color: inherit;
}

code {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f5fbff;
  color: #102030;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

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

.config-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 188, 103, 0.18);
  background: rgba(55, 40, 21, 0.92);
  backdrop-filter: blur(14px);
}

.config-banner__inner {
  padding: 12px 0;
  color: #ffe0b9;
  font-size: 0.95rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(12, 18, 26, 0.74);
  border-bottom: 1px solid rgba(196, 214, 236, 0.08);
}

.site-header--legal {
  position: relative;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.04rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand span {
  white-space: nowrap;
}

.brand--footer {
  margin-bottom: 10px;
}

.site-nav,
.site-actions,
.hero__actions,
.footer-links,
.pill-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav {
  flex-wrap: wrap;
  justify-content: center;
}

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

.site-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.site-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(196, 214, 236, 0.24);
}

.button[aria-disabled="true"],
.is-placeholder-link {
  pointer-events: none;
  opacity: 0.58;
  filter: saturate(0.8);
}

.button--primary {
  color: #082033;
  background: linear-gradient(180deg, #8cc0ff 0%, #6a99d8 100%);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.03);
}

.button--soft {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
}

.button--block {
  width: 100%;
}

.section {
  padding: 92px 0;
}

.section--story,
.section--tones,
.section--support,
.section--setup {
  border-top: 1px solid rgba(196, 214, 236, 0.06);
}

.hero {
  padding: 70px 0 82px;
}

.hero__grid,
.story-grid,
.support-grid,
.setup-grid {
  display: grid;
  gap: 34px;
}

.hero__grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  align-items: center;
}

.story-grid,
.support-grid,
.setup-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  max-width: 14ch;
}

h3 {
  font-size: 1.2rem;
}

p,
li {
  color: var(--muted-strong);
  line-height: 1.68;
}

.hero__lede,
.support-copy,
.footer-copy,
.legal-meta {
  max-width: 62ch;
  font-size: 1.08rem;
}

.hero__lede {
  margin: 22px 0 0;
}

.hero__actions {
  margin-top: 28px;
  flex-wrap: wrap;
}

.pill-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.pill-list li,
.mock-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 214, 236, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.94rem;
}

.hero__note {
  margin-top: 22px;
  color: var(--muted);
  max-width: 56ch;
}

.hero__visual {
  position: relative;
}

.mock-browser {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(196, 214, 236, 0.12);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 26, 37, 0.96), rgba(14, 21, 30, 0.96));
  box-shadow: var(--shadow);
}

.mock-browser__bar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(196, 214, 236, 0.08);
}

.mock-browser__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.mock-browser__body {
  padding: 26px;
  background:
    radial-gradient(circle at 10% 0%, rgba(130, 184, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #101823 0%, #0e141c 100%);
}

.mock-reader {
  position: relative;
  min-height: 500px;
  border-radius: 26px;
  border: 1px solid rgba(196, 214, 236, 0.08);
  background:
    radial-gradient(circle at top, rgba(130, 184, 255, 0.1), transparent 30%),
    linear-gradient(180deg, #101722 0%, #111a25 100%);
  overflow: hidden;
}

.mock-reader__toolbar,
.mock-reader__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}

.mock-reader__footer {
  position: absolute;
  inset: auto 0 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.mock-chip--green {
  color: #dffff0;
  border-color: rgba(110, 231, 165, 0.24);
  background: rgba(110, 231, 165, 0.14);
}

.mock-page-stack {
  position: relative;
  padding: 16px 24px 86px;
}

.mock-page {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  min-height: 360px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mock-page--rear {
  position: absolute;
  inset: 36px 40px auto;
  min-height: 320px;
  opacity: 0.42;
  transform: scale(0.96);
}

.mock-page__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 84% 12%, rgba(130, 184, 255, 0.12), transparent 18%),
    radial-gradient(circle at 18% 90%, rgba(226, 177, 125, 0.08), transparent 16%);
}

.mock-page__line {
  height: 14px;
  margin: 28px 30px 0;
  border-radius: 999px;
  background: rgba(228, 237, 247, 0.56);
}

.mock-page__line--wide {
  width: calc(100% - 60px);
  margin-top: 120px;
}

.mock-page__line:not(.mock-page__line--wide) {
  width: calc(100% - 120px);
}

.mock-page__line--accent {
  width: 160px;
  background: rgba(140, 192, 255, 0.72);
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading--tight {
  margin-bottom: 18px;
}

.story-copy p:first-child,
.support-copy {
  margin-top: 0;
}

.feature-grid,
.tone-grid {
  display: grid;
  gap: 18px;
}

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

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

.feature-card,
.tone-card,
.support-card,
.setup-card,
.legal-shell {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-card,
.tone-card,
.support-card,
.setup-card {
  padding: 24px;
}

.feature-card h3,
.tone-card h3,
.support-card h3,
.setup-card h3 {
  margin-bottom: 10px;
}

.tone-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.tone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.95;
}

.tone-card > * {
  position: relative;
  z-index: 1;
}

.tone-card--slate::before {
  background:
    radial-gradient(circle at 78% 15%, rgba(143, 184, 255, 0.32), transparent 26%),
    linear-gradient(180deg, rgba(20, 30, 42, 0.98), rgba(12, 19, 27, 0.98));
}

.tone-card--graphite::before {
  background:
    radial-gradient(circle at 72% 12%, rgba(210, 218, 232, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(24, 28, 34, 0.98), rgba(15, 17, 21, 0.98));
}

.tone-card--warm::before {
  background:
    radial-gradient(circle at 76% 16%, rgba(225, 194, 155, 0.3), transparent 24%),
    linear-gradient(180deg, rgba(30, 26, 22, 0.98), rgba(19, 17, 15, 0.98));
}

.support-card {
  background:
    radial-gradient(circle at top, rgba(130, 184, 255, 0.12), transparent 30%),
    var(--panel-strong);
}

.setup-card {
  background:
    radial-gradient(circle at top, rgba(130, 184, 255, 0.1), transparent 30%),
    var(--panel-strong);
}

.setup-card__visual {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.setup-card__svg {
  width: min(100%, 240px);
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.24));
}

.setup-callout {
  margin: 14px 0 0;
}

.setup-callout code,
.setup-steps code {
  display: inline-flex;
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(130, 184, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #d8e9ff;
  white-space: normal;
  word-break: break-word;
}

.setup-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted-strong);
}

.setup-steps li + li {
  margin-top: 10px;
}

.support-card__eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.support-card__small {
  margin-top: 14px;
  font-size: 0.94rem;
  color: var(--muted);
}

.support-copy--muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(196, 214, 236, 0.08);
  padding: 34px 0 24px;
}

.site-footer__inner,
.site-footer__meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.site-footer__meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(196, 214, 236, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-shell {
  padding: 32px;
}

.legal-meta {
  margin: 12px 0 0;
  color: var(--muted);
}

.legal-copy {
  margin-top: 30px;
}

.legal-copy h2 {
  margin-top: 34px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.legal-copy ul {
  padding-left: 20px;
}

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

@media (max-width: 1100px) {
  .hero__grid,
  .story-grid,
  .support-grid,
  .setup-grid,
  .feature-grid,
  .tone-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
  }

  .site-actions,
  .footer-links,
  .site-nav {
    justify-content: center;
  }

  .site-footer__inner,
  .site-footer__meta {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .section,
  .hero {
    padding: 72px 0;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .button {
    width: 100%;
  }

  .hero__actions,
  .site-actions {
    width: 100%;
  }

  .mock-browser__body {
    padding: 16px;
  }

  .mock-reader {
    min-height: 430px;
  }

  .mock-reader__toolbar,
  .mock-reader__footer {
    flex-wrap: wrap;
  }

  .legal-shell {
    padding: 24px 18px;
  }
}
