:root {
  color-scheme: light;
  --ink: #1e2721;
  --ink-strong: #111a15;
  --muted: #6f766d;
  --soft: #f6f1e8;
  --paper: #fffaf2;
  --panel: #fffdf6;
  --line: rgba(17, 24, 39, 0.13);
  --navy: #244537;
  --blue: #4d735d;
  --gold: #c47a32;
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.12);
  --radius: 8px;
  --max: 1160px;
  --viewport-safe-height: 100svh;
  --safe-height: var(--viewport-safe-height);
  --motion-fast: var(--wm-motion-duration-fast, 160ms);
  --motion-standard: var(--wm-motion-duration-standard, 220ms);
  --motion-slow: var(--wm-motion-duration-slow, 320ms);
  --ease: var(--wm-motion-ease-standard, cubic-bezier(.2, 0, .18, 1));
  --ease-enter: var(--wm-motion-ease-enter, cubic-bezier(0, 0, .2, 1));
  --ease-exit: var(--wm-motion-ease-exit, cubic-bezier(.4, 0, 1, 1));
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

html {
  width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.surface-modal-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.assistant-open .ask-launcher {
  opacity: 0;
  pointer-events: none;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 52px rgba(7, 17, 31, 0.1);
  backdrop-filter: blur(18px);
}

.brand,
.desktop-nav,
.hero-actions,
.assistant-actions,
.composer-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink-strong);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  box-shadow: inset 6px 0 0 var(--gold);
}

.desktop-nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  place-items: center;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 17px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink-strong);
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-standard) var(--ease);
}

.site-menu:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.site-menu__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background: rgba(7, 17, 31, 0.35);
}

.site-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: min(360px, 92vw);
  height: var(--safe-height);
  padding: calc(24px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom));
  display: grid;
  align-content: start;
  gap: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform var(--motion-standard) var(--ease);
}

.site-menu:not([hidden]) .site-menu__panel {
  transform: translateX(0);
}

.site-menu__panel a,
.site-menu__close {
  min-height: 48px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink-strong);
  text-align: left;
  font-weight: 800;
}

.site-menu__close {
  justify-self: end;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

main {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 112px clamp(22px, 5vw, 70px) 56px;
  isolation: isolate;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  display: grid;
  gap: 22px;
}

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

h1,
h2,
h3 {
  color: var(--ink-strong);
  letter-spacing: -0.035em;
}

h1 {
  max-width: 790px;
  margin-bottom: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(3.2rem, 9vw, 6.6rem);
  line-height: 0.91;
}

h2 {
  max-width: 800px;
  margin-bottom: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.96;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.hero-copy p {
  max-width: 690px;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.52;
}

.hero h1,
.hero h2 {
  color: #fff;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
}

.button,
button.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.82rem 1.15rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.button-primary {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.button-secondary {
  background: var(--paper);
  color: var(--ink-strong);
}

.hero-actions,
.assistant-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.hero-shader {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.88) 0%, rgba(11, 31, 58, 0.62) 50%, rgba(11, 31, 58, 0.35) 100%),
    linear-gradient(180deg, rgba(11, 31, 58, 0.25) 0%, rgba(11, 31, 58, 0.72) 100%);
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--navy);
}

.hero-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 900ms ease, transform 2000ms ease;
}

.hero-carousel img.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-proof-strip {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 18px;
}

.hero-proof-strip span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 850;
}

.hero .button-primary {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.hero .button-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.section-band,
.section-split {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) 0;
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 850px;
  margin-bottom: 34px;
}

.section-heading p,
.section-split > div > p {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 1.04rem;
}

.problem-grid,
.steps,
.scope-grid,
.proof-grid {
  display: grid;
  gap: 14px;
}

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

.problem-grid article,
.contrast-stack article,
.scope-grid article,
.message,
.assistant-preview,
.proof-grid a,
.steps button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.problem-grid article,
.contrast-stack article,
.scope-grid article,
.proof-grid a {
  padding: 20px;
}

.problem-grid p,
.contrast-stack p,
.scope-grid p,
.proof-grid span {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: center;
}

.editorial-image {
  margin: 0;
}

.editorial-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.editorial-image figcaption {
  max-width: 520px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

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

.steps button {
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  color: inherit;
  text-align: left;
  transition:
    border-color var(--motion-fast) var(--ease),
    box-shadow var(--motion-fast) var(--ease),
    transform var(--motion-fast) var(--ease);
}

.steps button:hover,
.steps button:focus-visible {
  border-color: rgba(39, 79, 126, 0.42);
  box-shadow: 0 18px 42px rgba(7, 17, 31, 0.1);
  transform: translateY(-2px);
}

.steps span,
.scope-grid span {
  color: var(--gold);
  font-weight: 900;
}

.steps strong {
  color: var(--ink-strong);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.42rem;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.steps p {
  margin: 0;
}

.steps em {
  align-self: end;
  width: fit-content;
  color: var(--blue);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.contrast-stack {
  display: grid;
  gap: 14px;
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

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

.proof-grid a {
  display: grid;
  gap: 8px;
}

.proof-grid a:hover {
  border-color: rgba(39, 79, 126, 0.42);
}

.proof-grid strong {
  color: var(--ink-strong);
}

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

.assistant-section {
  align-items: start;
}

.assistant-preview {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.assistant-preview p {
  margin-bottom: 6px;
  color: var(--ink-strong);
  font-weight: 850;
}

.assistant-preview button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-strong);
  font-weight: 780;
  text-align: left;
  padding: 0.75rem 1rem;
}

.ask-launcher {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 48;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0 22px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 900;
  transition: opacity var(--motion-standard) var(--ease), transform var(--motion-standard) var(--ease);
}

.detail-modal,
.assistant-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(245, 246, 248, 0.92);
  backdrop-filter: blur(18px);
  transition: opacity var(--motion-standard) var(--ease), visibility 0ms linear var(--motion-standard);
  overflow: hidden;
  overscroll-behavior: contain;
}

.detail-modal.is-open,
.assistant-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--motion-standard) var(--ease), visibility 0ms linear 0ms;
}

.detail-panel,
.assistant-panel {
  width: 100%;
  height: var(--safe-height);
  max-height: var(--safe-height);
  overflow: hidden;
  transform: translateY(18px) scale(0.985);
  opacity: 0.98;
  transition: transform var(--motion-standard) var(--ease), opacity var(--motion-standard) var(--ease);
}

.detail-modal.is-open .detail-panel,
.assistant-modal.is-open .assistant-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px 32px;
  padding: calc(24px + env(safe-area-inset-top)) calc(24px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(24px + env(safe-area-inset-left));
  background: var(--paper);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.detail-close {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--panel);
  font-weight: 850;
}

.detail-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail-panel h2 {
  grid-column: 1;
}

.detail-panel img {
  grid-column: 2;
  grid-row: 2 / span 2;
  width: 100%;
  height: min(68svh, 620px);
  object-fit: cover;
  border-radius: 14px;
}

.detail-body {
  grid-column: 1;
  display: grid;
  gap: 12px;
  align-content: start;
}

.detail-body p {
  margin: 0;
}

.detail-body h3 {
  margin: 14px 0 0;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.5;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

.detail-outcome {
  margin-top: 8px;
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  background: rgba(167, 128, 59, 0.08);
  color: var(--ink-strong);
  font-weight: 760;
}

.assistant-panel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  --assistant-pad-left: calc(16px + env(safe-area-inset-left));
  --assistant-pad-right: calc(16px + env(safe-area-inset-right));
  --assistant-top-space: calc(96px + env(safe-area-inset-top));
  --assistant-bottom-space: calc(104px + env(safe-area-inset-bottom));
  padding: 0;
  transition:
    transform var(--motion-standard) var(--ease),
    opacity var(--motion-standard) var(--ease);
}

.assistant-topbar {
  position: absolute;
  z-index: 4;
  top: calc(14px + env(safe-area-inset-top));
  left: var(--assistant-pad-left);
  right: var(--assistant-pad-right);
  max-height: var(--assistant-chrome-max, 180px);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: auto;
  max-width: 920px;
  padding: 8px 0 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(245, 246, 248, 0.98), rgba(245, 246, 248, 0.82) 72%, rgba(245, 246, 248, 0));
  transition:
    opacity var(--motion-fast) var(--ease),
    transform var(--motion-fast) var(--ease);
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.assistant-panel.is-reading .assistant-topbar {
  opacity: 0;
  transform: translate3d(0, calc(-100% - 16px), 0);
  pointer-events: none;
}

.assistant-topbar p {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.assistant-topbar h2 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
}

.assistant-topbar button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--paper);
  color: var(--ink-strong);
  font-weight: 850;
}

.assistant-body {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scroll-behavior: auto;
  overflow-anchor: none;
  contain: layout paint;
  padding: 0;
}

.conversation {
  width: min(920px, 100%);
  display: grid;
  gap: 12px;
  margin: 0 auto;
  padding: var(--assistant-top-space) var(--assistant-pad-right) var(--assistant-bottom-space) var(--assistant-pad-left);
  overflow-anchor: none;
}

.message {
  width: min(760px, 100%);
  padding: 18px;
}

.message--user {
  justify-self: end;
  background: #eef2f7;
}

.message--assistant {
  justify-self: start;
}

.message p {
  margin: 0 0 12px;
}

.message p:last-child {
  margin-bottom: 0;
}

.message.is-pending {
  width: fit-content;
  min-width: 84px;
}

.message.is-streaming {
  overflow-anchor: none;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0.42;
  animation: typingPulse 920ms var(--ease) infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.typing-dots span:nth-child(3) {
  animation-delay: 240ms;
}

.response-line {
  margin: 0 0 12px;
}

.stream-text.is-active::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 2px;
  border-right: 2px solid var(--gold);
  transform: translateY(2px);
  animation: caretBlink 680ms steps(2, start) infinite;
}

.quick-prompts,
.answer-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.answer-followups[hidden],
.answer-cta[hidden] {
  display: none !important;
}

.quick-prompts button,
.answer-followups button,
.answer-cta {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.52rem 0.78rem;
  background: var(--paper);
  color: var(--ink-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.answer-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  background: var(--navy);
  color: #fff;
}

.assistant-composer {
  position: absolute;
  z-index: 4;
  left: var(--assistant-pad-left);
  right: var(--assistant-pad-right);
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: auto;
  max-width: 920px;
  max-height: var(--assistant-chrome-max, 180px);
  display: grid;
  gap: 8px;
  margin: 0 auto;
  padding-top: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(245, 246, 248, 0), rgba(245, 246, 248, 0.96) 18%, rgba(245, 246, 248, 0.99));
  transition:
    opacity var(--motion-fast) var(--ease),
    transform var(--motion-fast) var(--ease);
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.assistant-panel.is-reading .assistant-composer {
  opacity: 0;
  transform: translate3d(0, calc(100% + 18px), 0);
  pointer-events: none;
}

.assistant-composer label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.composer-row {
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 7px;
  box-shadow: 0 16px 40px rgba(7, 17, 31, 0.08);
}

.composer-row input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--ink-strong);
  font-size: max(16px, 1rem);
}

.composer-row button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  display: grid;
  gap: 18px;
  margin: 0 auto;
  padding: 54px 0 70px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
  color: var(--ink-strong);
  font-weight: 850;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
}

.site-footer .footer-cta {
  width: fit-content;
  color: var(--navy);
  font-weight: 900;
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 100svh;
    padding-top: 108px;
  }

  .section-split,
  .proof-layout {
    grid-template-columns: 1fr;
  }

  .problem-grid,
  .steps,
  .scope-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-panel {
    grid-template-columns: 1fr;
    display: block;
  }

  .detail-panel img {
    width: 100%;
    height: 34svh;
    margin: 18px 0;
  }
}

@media (max-width: 620px) {
  :root {
    --assistant-chrome-max: 186px;
  }

  .site-header {
    width: calc(100% - 20px);
    margin-top: 8px;
    padding: 9px 10px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .section-band,
  .section-split,
  .site-footer {
    width: calc(100% - 24px);
  }

  .hero {
    min-height: 100svh;
    align-items: end;
    padding: 92px 18px 42px;
  }

  h1 {
    font-size: clamp(2.35rem, 12.5vw, 3.45rem);
    line-height: 0.96;
  }

  .hero-content {
    gap: 18px;
  }

  .hero-shader {
    background:
      linear-gradient(180deg, rgba(7, 17, 31, 0.26) 0%, rgba(7, 17, 31, 0.42) 32%, rgba(7, 17, 31, 0.78) 100%),
      linear-gradient(90deg, rgba(7, 17, 31, 0.72) 0%, rgba(7, 17, 31, 0.46) 62%, rgba(7, 17, 31, 0.38) 100%);
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: 390px;
  }

  .hero-proof-strip span {
    min-height: 30px;
    justify-content: center;
    padding: 0 6px;
    font-size: clamp(0.62rem, 2.7vw, 0.72rem);
    text-align: center;
  }

  .hero-actions,
  .assistant-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .problem-grid,
  .steps,
  .scope-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .section-band,
  .section-split {
    padding: 64px 0;
  }

  .steps button {
    min-height: 190px;
  }

  .assistant-panel {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    --assistant-pad-left: calc(10px + env(safe-area-inset-left));
    --assistant-pad-right: calc(10px + env(safe-area-inset-right));
    --assistant-top-space: calc(82px + env(safe-area-inset-top));
    --assistant-bottom-space: calc(82px + env(safe-area-inset-bottom));
    padding: 0;
  }

  .assistant-topbar {
    position: absolute;
    top: calc(8px + env(safe-area-inset-top));
    left: var(--assistant-pad-left);
    right: var(--assistant-pad-right);
    z-index: 4;
    width: auto;
    margin: 0;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 0 8px;
  }

  .assistant-panel.is-reading {
    grid-template-rows: minmax(0, 1fr);
  }

  .assistant-panel.is-reading .assistant-topbar {
    opacity: 0;
    transform: translate3d(0, calc(-100% - 16px), 0);
    pointer-events: none;
  }

  .assistant-panel.is-reading .assistant-composer {
    opacity: 0;
    transform: translate3d(0, calc(100% + 18px), 0);
    pointer-events: none;
  }

  .assistant-topbar p {
    margin-bottom: 2px;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .assistant-topbar h2 {
    max-width: calc(100vw - 122px);
    overflow: hidden;
    font-size: clamp(1.08rem, 5.4vw, 1.45rem);
    line-height: 1.02;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .assistant-topbar button {
    min-height: 44px;
    padding: 0 16px;
  }

  .assistant-body {
    height: 100%;
    padding: 0;
  }

  .conversation {
    width: 100%;
    padding: var(--assistant-top-space) var(--assistant-pad-right) var(--assistant-bottom-space) var(--assistant-pad-left);
  }

  .message {
    padding: 15px;
  }

  .assistant-composer {
    position: absolute;
    left: var(--assistant-pad-left);
    right: var(--assistant-pad-right);
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 4;
    width: auto;
    margin: 0 auto;
    gap: 6px;
    padding-top: 8px;
  }

  .assistant-composer label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .composer-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(74px, 92px);
    gap: 6px;
    border-radius: 28px;
    padding: 5px;
  }

  .composer-row input,
  .composer-row button {
    min-height: 44px;
  }

  .composer-row button {
    padding: 0 18px;
  }

  .ask-launcher {
    min-height: 48px;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 0 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
  }

  body.is-past-hero .ask-launcher {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@supports (height: 100dvh) {
  :root {
    --viewport-safe-height: 100dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

@keyframes typingPulse {
  0%,
  80%,
  100% {
    opacity: 0.34;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes caretBlink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}
