:root {
  color-scheme: light;
  --paper: oklch(97% 0.012 84);
  --ink: oklch(24% 0.035 252);
  --muted: oklch(53% 0.025 252);
  --line: oklch(84% 0.02 76);
  --accent: oklch(66% 0.17 35);
  --accent-dark: oklch(46% 0.16 31);
  --wash: oklch(93% 0.04 72);
  --display: "Manrope", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  min-width: 320px;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(22px, 5vw, 72px);
}
.brand { align-items: center; color: inherit; display: flex; font-family: var(--display); font-weight: 700; gap: 11px; text-decoration: none; }
.brand-mark { align-items: center; background: var(--ink); border-radius: 50%; color: var(--paper); display: inline-flex; height: 34px; justify-content: center; width: 34px; }
.environment { align-items: center; color: var(--muted); display: flex; font-size: 13px; gap: 9px; }
.environment span { background: oklch(68% 0.15 150); border-radius: 50%; height: 8px; width: 8px; }

.hero {
  display: grid;
  gap: clamp(48px, 7vw, 110px);
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  min-height: 650px;
  padding: clamp(70px, 10vw, 148px) clamp(22px, 7vw, 110px) clamp(80px, 11vw, 160px);
}
.eyebrow { color: var(--accent-dark); font-size: 12px; font-weight: 600; letter-spacing: .16em; margin: 0 0 30px; text-transform: uppercase; }
h1, h2 { font-family: var(--display); letter-spacing: -.055em; margin: 0; }
h1 { font-size: clamp(58px, 9vw, 132px); font-weight: 600; line-height: .88; }
h1 em { color: var(--accent); font-family: Georgia, serif; font-weight: 400; }
.intro { color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; margin: 40px 0 24px; max-width: 560px; }
.text-link { border-bottom: 1px solid var(--ink); color: var(--ink); display: inline-flex; font-weight: 600; gap: 16px; padding: 8px 0; text-decoration: none; }

.trust-map { align-self: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; max-width: 520px; position: relative; width: 100%; }
.trust-map::before { background: var(--wash); border-radius: 50%; content: ""; inset: 19%; position: absolute; }
.orbit { border: 1px dashed color-mix(in oklch, var(--accent), transparent 55%); border-radius: 50%; inset: 10%; position: absolute; transform: rotate(-18deg); }
.orbit-two { inset: 30%; }
.person { align-items: center; background: var(--paper); border: 1px solid var(--ink); border-radius: 50%; display: flex; flex-direction: column; height: 104px; justify-content: center; position: absolute; width: 104px; z-index: 2; }
.person span { color: var(--accent-dark); font-size: 12px; }
.person b { font-family: var(--display); font-size: 14px; }
.person-a { left: -3%; top: 43%; }
.person-b { right: 7%; top: 4%; }
.person-c { bottom: 1%; right: 11%; }
.trust-map > p { bottom: 43%; font-family: Georgia, serif; font-size: clamp(20px, 2vw, 28px); font-style: italic; left: 27%; line-height: 1.25; margin: 0; max-width: 190px; position: absolute; z-index: 1; }

.workspace { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 130px) clamp(22px, 7vw, 110px); }
.workspace-heading { align-items: end; display: grid; gap: 32px; grid-template-columns: 1.2fr .8fr; margin-bottom: clamp(52px, 7vw, 90px); }
.workspace .eyebrow { color: oklch(77% 0.13 40); }
h2 { font-size: clamp(42px, 6vw, 84px); font-weight: 600; line-height: .98; }
.workspace-heading > p { color: oklch(77% 0.025 252); font-size: 17px; line-height: 1.65; margin: 0; max-width: 500px; }
.demo-grid { border-top: 1px solid oklch(42% 0.03 252); display: grid; grid-template-columns: 1fr 1fr; }
.action-panel { border-right: 1px solid oklch(42% 0.03 252); padding: 42px clamp(24px, 4vw, 58px) 18px 0; }
.response-panel { margin: 0; min-width: 0; padding: 42px 0 18px clamp(24px, 4vw, 58px); }
.tabs { display: flex; gap: 28px; margin-bottom: 42px; }
.tab { background: none; border: 0; color: oklch(66% 0.025 252); cursor: pointer; font-size: 20px; padding: 0 0 8px; }
.tab.is-active { border-bottom: 2px solid var(--accent); color: var(--paper); }
.auth-form { display: grid; gap: 22px; }
.auth-form label { color: oklch(78% 0.02 252); display: grid; font-size: 13px; gap: 9px; }
.auth-form input { background: transparent; border: 0; border-bottom: 1px solid oklch(48% 0.03 252); color: var(--paper); font-size: 17px; outline: none; padding: 10px 2px 14px; transition: border-color 180ms ease; }
.auth-form input:focus { border-color: var(--accent); }
.auth-form input::placeholder { color: oklch(57% 0.025 252); }
.primary-button { align-items: center; background: var(--accent); border: 0; color: oklch(20% 0.04 30); cursor: pointer; display: flex; font-weight: 600; justify-content: space-between; margin-top: 15px; padding: 17px 20px; transition: background 180ms ease, transform 180ms ease; }
.primary-button:hover { background: oklch(72% 0.16 38); transform: translateY(-2px); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.session-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.secondary-button, .quiet-button { background: transparent; border: 1px solid oklch(48% 0.03 252); color: var(--paper); cursor: pointer; padding: 11px 14px; }
.quiet-button { border-color: transparent; color: oklch(68% 0.02 252); }
.secondary-button:hover, .secondary-button:focus-visible { border-color: var(--paper); }
.response-header { align-items: center; display: flex; font-size: 13px; justify-content: space-between; letter-spacing: .08em; text-transform: uppercase; }
.status-pill { border: 1px solid oklch(48% 0.03 252); border-radius: 999px; color: oklch(75% 0.02 252); font-size: 10px; padding: 6px 10px; }
.status-pill.success { border-color: oklch(68% 0.15 150); color: oklch(78% 0.12 150); }
.status-pill.error { border-color: var(--accent); color: oklch(78% 0.13 40); }
pre { color: oklch(83% 0.025 252); font-family: "Cascadia Code", Consolas, monospace; font-size: 14px; line-height: 1.75; margin: 38px 0 0; min-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
footer { display: flex; font-size: 12px; justify-content: space-between; letter-spacing: .08em; padding: 26px clamp(22px, 5vw, 72px); text-transform: uppercase; }

:focus-visible { outline: 3px solid color-mix(in oklch, var(--accent), transparent 20%); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .trust-map { justify-self: center; max-width: 430px; }
  .workspace-heading, .demo-grid { grid-template-columns: 1fr; }
  .workspace-heading > p { max-width: 620px; }
  .action-panel { border-bottom: 1px solid oklch(42% 0.03 252); border-right: 0; padding-right: 0; padding-bottom: 50px; }
  .response-panel { padding-left: 0; padding-top: 50px; }
}

@media (max-width: 520px) {
  .environment { font-size: 0; }
  .hero { min-height: 0; }
  .person { height: 78px; width: 78px; }
  .person b { font-size: 12px; }
  .trust-map > p { font-size: 17px; left: 25%; max-width: 150px; }
  footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
