:root {
  color-scheme: dark;
  --ink: #070706;
  --panel: #11110f;
  --panel-soft: #171613;
  --bone: #f0ebe0;
  --muted: #aaa397;
  --faint: #777167;
  --line: rgba(240, 235, 224, 0.12);
  --ember: #e65b3b;
  --ember-soft: rgba(230, 91, 59, 0.16);
  --max: 1120px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 5%, rgba(157, 51, 31, 0.13), transparent 31rem),
    radial-gradient(circle at 10% 58%, rgba(255, 255, 255, 0.035), transparent 28rem),
    var(--ink);
  color: var(--bone);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bone);
  color: var(--ink);
}

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

.site-header,
.site-footer,
.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--bone);
  font-size: 0.82rem;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(240, 235, 224, 0.45);
  border-radius: 50%;
  box-shadow: inset 0 0 16px rgba(230, 91, 59, 0.13);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  inset: 7px;
  border: 1px solid var(--ember);
  border-radius: 50%;
}

.brand-mark::after {
  inset: 12px;
  border: 0;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
}

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

.nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(310px, 0.84fr);
  gap: clamp(46px, 8vw, 112px);
  align-items: center;
  min-height: min(790px, calc(100vh - 78px));
  padding-block: 88px;
}

.eyebrow {
  margin: 0 0 19px;
  color: var(--ember);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 7.6vw, 7rem);
  font-weight: 560;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.lede {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  border-color: var(--ember);
  background: var(--ember);
  color: #160907;
}

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

.conversation {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(27, 26, 22, 0.96), rgba(10, 10, 9, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

.conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-dot::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 9px var(--ember);
  content: "";
}

.conversation-body {
  display: grid;
  gap: 12px;
  min-height: 420px;
  align-content: end;
  padding: 24px;
}

.bubble {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 17px 17px 17px 5px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.96rem;
}

.bubble-player {
  justify-self: end;
  border-color: rgba(230, 91, 59, 0.22);
  border-radius: 17px 17px 5px 17px;
  background: var(--ember-soft);
  color: #e8d8cf;
}

.disclosure {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.76rem;
}

.disclosure strong { color: var(--muted); }

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

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.section h2,
.page-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1;
}

.section-heading p,
.page-hero .lede { color: var(--muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  min-height: 220px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.card-index {
  display: block;
  margin-bottom: 44px;
  color: var(--ember);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
}

.card h3 { margin-bottom: 9px; font-size: 1.06rem; }
.card p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; }

.boundary {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.boundary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary-list li {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.boundary-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bone);
}

.page-hero {
  max-width: 790px;
  padding: 94px 0 58px;
}

.page-hero h1 { max-width: 760px; }

.prose {
  max-width: 790px;
  padding-bottom: 90px;
}

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

.prose h2 {
  margin-bottom: 13px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.prose p,
.prose li { color: var(--muted); }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--bone); text-underline-offset: 3px; }
.prose strong { color: var(--bone); }

.notice {
  margin: 4px 0 34px;
  padding: 18px 20px;
  border: 1px solid rgba(230, 91, 59, 0.34);
  border-radius: 14px;
  background: var(--ember-soft);
  color: #dfc8bf;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 42px;
}

.support-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.support-card h2 { font-size: 1.08rem; }
.support-card p:last-child { margin-bottom: 0; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 31px 42px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.78rem;
}

.footer-links { display: flex; gap: 19px; }

@media (max-width: 800px) {
  .hero,
  .boundary { grid-template-columns: 1fr; }
  .hero { padding-block: 64px 86px; }
  .conversation { max-width: 540px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card-index { margin-bottom: 24px; }
}

@media (max-width: 580px) {
  .site-header,
  .site-footer,
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .site-header { min-height: 68px; }
  .nav a:first-child { display: none; }
  h1 { font-size: clamp(3.2rem, 17vw, 5.2rem); }
  .conversation-body { min-height: 360px; padding: 18px; }
  .section { padding-block: 70px; }
  .support-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}
