@font-face {
  font-family: "Inter";
  src: url("/Inter-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --page: #FCFCFC;
  --surface: #FFFFFF;
  --surface-soft: #F7F7F8;
  --surface-warm: #F7F7F8;
  --section-surface: #F4F4F2;
  --text: #262628;
  --muted: #5F6068;
  --quiet: #6F7078;
  --line: #E5E5E8;
  --line-strong: #D7D7DC;
  --paper-blue: #007AFF;
  --paper-blue-hover: #0066CC;
  --paper-blue-soft: #EAF3FF;
  --paper-amber: #F4B942;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-semibold: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overscroll-behavior-y: none;
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a { font: inherit; }
a { color: inherit; }
button, a, [tabindex] { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--paper-blue);
  outline-offset: 3px;
}

::selection { background: var(--paper-blue-soft); }

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.header-inner, .section-inner, .footer-inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-semibold);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 120ms ease-out;
}

.brand-lockup:hover { opacity: 0.88; }
.brand-lockup:active { opacity: 0.72; }

.brand-lockup img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.site-nav, .hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-text-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 100ms ease-out, opacity 100ms ease-out;
}

.nav-text-link:hover { color: var(--text); }
.nav-text-link:active { opacity: 0.72; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: var(--font-semibold);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button-small { min-height: 38px; padding-inline: 15px; font-size: 13px; }
.button-dark { border-color: var(--text); background: var(--text); color: #FFFFFF; }
.button-dark:hover { border-color: #36363A; background: #36363A; transform: translateY(-1px); }
.button-primary { border-color: var(--paper-blue); background: var(--paper-blue); color: #FFFFFF; }
.button-primary:hover { border-color: var(--paper-blue-hover); background: var(--paper-blue-hover); transform: translateY(-1px); }
.button-link { min-height: 44px; padding-inline: 2px; color: var(--muted); }
.button-link:hover { color: var(--text); }
.button:active { transform: translateY(0) scale(0.985); }

.hero {
  padding: clamp(52px, 6.5vw, 84px) 0 clamp(40px, 4vw, 56px);
  background: var(--page);
}

.hero-inner {
  width: min(930px, calc(100% - 64px));
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-family: var(--font-semibold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 880px;
  margin: 0 auto;
  font-family: var(--font-semibold);
  font-size: clamp(56px, 6.2vw, 72px);
  font-weight: 600;
  letter-spacing: -0.062em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 650px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  letter-spacing: -0.018em;
}

.hero-actions { flex-direction: column; justify-content: center; margin-top: 35px; gap: 12px; }

.workflow-section {
  padding: clamp(80px, 9vw, 116px) 0 clamp(92px, 11vw, 144px);
  border-top: 10px solid #F5F5F5;
  border-bottom: 10px solid #F5F5F5;
  background: var(--section-surface);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.45fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.section-heading .eyebrow { margin-top: 9px; }

.section-heading h2, .principle-inner h2, .alpha-inner h2 {
  margin: 0;
  font-family: var(--font-semibold);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.58fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: stretch;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.workflow-step {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 22px 4px 22px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color 100ms ease-out, opacity 100ms ease-out;
}

.workflow-step:hover, .workflow-step.is-active { color: var(--text); }
.workflow-step:active { opacity: 0.72; }

.step-number {
  color: var(--quiet);
  font-family: var(--font-semibold);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  transition: color 100ms ease-out;
}

.workflow-step.is-active .step-number { color: var(--paper-blue); }
.step-copy { display: grid; gap: 6px; }

.step-copy strong {
  font-family: var(--font-semibold);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.step-copy > span {
  max-width: 280px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.workflow-step:not(.is-active) .step-copy > span { display: none; }

.product-surface {
  min-width: 0;
  min-height: 630px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(38, 38, 40, 0.07), 0 2px 6px rgba(38, 38, 40, 0.025);
}

.product-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.example-label, .document-label, .card-type {
  color: var(--muted);
  font-family: var(--font-semibold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.example-label { display: inline-flex; align-items: center; gap: 7px; }
.example-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--paper-amber); }

.product-header h3 {
  margin: 6px 0 0;
  font-family: var(--font-semibold);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.alpha-label, .review-count { color: var(--quiet); font-size: 12px; white-space: nowrap; }

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.demo-tab {
  appearance: none;
  position: relative;
  min-height: 49px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 100ms ease-out, opacity 100ms ease-out;
}

.demo-tab::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 2px;
  background: transparent;
  transition: background-color 100ms ease-out;
}

.demo-tab:hover { color: var(--text); }
.demo-tab:active { opacity: 0.72; }
.demo-tab.is-active { color: var(--paper-blue); }
.demo-tab.is-active::after { background: var(--paper-blue); }
.demo-stage { padding: clamp(26px, 4vw, 42px); }
.demo-panel[hidden] { display: none; }
.demo-panel:not([hidden]) { animation: demo-panel-enter 120ms ease-out both; }

@keyframes demo-panel-enter {
  from {
    opacity: 0.96;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.document-copy {
  max-width: 620px;
  min-height: 340px;
  padding-top: 20px;
  color: var(--text);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.72;
  letter-spacing: -0.014em;
}

.document-copy p { margin: 0 0 1em; }

.panel-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 12px;
}

.review-heading, .handoff-header, .established-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.review-heading h4 {
  margin: 4px 0 0;
  font-family: var(--font-semibold);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.review-card {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FFFFFF;
}

.review-card p, .established-item p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.authority-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }

.control-sample {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
}

.question-card { background: var(--surface-soft); }

.answer-sample {
  margin-top: 15px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--quiet);
  font-size: 13px;
}

.establish-intro { margin: 0 0 22px; color: var(--muted); font-size: 14px; }

.established-item {
  margin-top: 14px;
  padding: 21px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-warm);
}

.established-meta > span:first-child {
  color: var(--muted);
  font-family: var(--font-semibold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.human-badge { color: var(--text); font-size: 11px; font-weight: 600; }
.handoff-header { margin-bottom: 20px; }
.handoff-header > span:last-child { color: var(--quiet); font-size: 12px; }

.markdown-output {
  max-height: 440px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: var(--font);
  font-size: 12.5px;
  line-height: 1.65;
}

.principle-section { padding: clamp(100px, 12vw, 170px) 0; background: var(--page); }

.principle-inner {
  width: min(900px, calc(100% - 64px));
  margin: 0 auto;
  text-align: center;
}

.principle-inner p:last-child {
  max-width: 690px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--page);
}

.footer-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup-small { gap: 8px; font-size: 18px; }
.brand-lockup-small img { width: 28px; height: 28px; border-radius: 6px; }

.footer-links, .footer-social-links {
  display: flex;
  align-items: center;
}

.footer-links { gap: 16px; }
.footer-social-links { gap: 10px; }

.footer-discord-link {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 120ms ease-out, opacity 100ms ease-out;
}

.footer-discord-link:hover { color: var(--text); }
.footer-discord-link:active { opacity: 0.72; }

.footer-social-link {
  display: inline-flex;
  color: var(--quiet);
  opacity: 0.72;
  transition: color 100ms ease-out, opacity 100ms ease-out;
}

.footer-social-link:hover { color: var(--text); opacity: 1; }
.footer-social-link:active { opacity: 0.56; }
.footer-social-link svg { width: 18px; height: 18px; fill: currentColor; }

.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;
}

@media (min-width: 641px) {
  .hero {
    min-height: calc(100svh - 76px);
  }

  .principle-section {
    min-height: calc(100svh - 112px);
    display: grid;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .section-heading { grid-template-columns: 1fr; gap: 4px; }
  .workflow-layout { grid-template-columns: 1fr; gap: 32px; }
  .workflow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .workflow-step { grid-template-columns: 1fr; align-content: start; padding: 18px 12px; border-right: 1px solid var(--line); }
  .workflow-step:last-child { border-right: 0; }
  .step-copy > span { display: none !important; }
  .product-surface { min-height: 610px; }
}

@media (max-width: 640px) {
  .header-inner, .section-inner, .footer-inner { width: min(100% - 36px, 1180px); }
  .header-inner { min-height: 68px; }
  .brand-lockup { gap: 8px; font-size: 20px; }
  .brand-lockup img { width: 31px; height: 31px; }
  .nav-text-link { display: none; }
  .site-nav { gap: 0; }
  .button-small { min-height: 40px; }
  .hero { padding: 52px 0 48px; }
  .hero-inner, .principle-inner { width: min(100% - 36px, 930px); }
  .hero h1 { font-size: clamp(40px, 12vw, 48px); line-height: 1.02; }
  .hero-copy { margin-top: 22px; font-size: 17px; }
  .hero-actions { gap: 10px; margin-top: 28px; }
  .workflow-section { padding: 72px 0 88px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2, .principle-inner h2 { font-size: clamp(36px, 10.6vw, 44px); }
  .workflow-steps { overflow-x: auto; scrollbar-width: none; }
  .workflow-steps::-webkit-scrollbar { display: none; }
  .workflow-step { min-width: 82px; padding: 15px 8px; }
  .step-copy strong { font-size: 13px; }
  .product-surface { min-height: 570px; }
  .product-header { min-height: 76px; padding: 15px 16px; }
  .product-header h3 { max-width: 210px; font-size: 15px; }
  .alpha-label { display: none; }
  .demo-tabs { padding-inline: 8px; }
  .demo-tab { min-height: 47px; font-size: 11.5px; }
  .demo-stage { padding: 24px 18px 28px; }
  .document-copy { min-height: 330px; font-size: 16px; line-height: 1.67; }
  .review-card, .established-item { padding: 16px; }
  .review-card p, .established-item p { font-size: 14px; }
  .established-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .markdown-output { max-height: 410px; font-size: 11.5px; }
  .principle-section { padding: 96px 0; }
  .principle-inner p:last-child { font-size: 16px; }
  .footer-inner { min-height: 96px; gap: 12px; }
  .footer-links { gap: 8px; }
  .footer-discord-link { max-width: 125px; text-align: right; }
  .footer-social-links { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo-panel:not([hidden]) { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

.legal-section {
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--page);
}

.legal-content {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.legal-content h1 {
  font-family: var(--font-semibold);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  line-height: 1.1;
}

.legal-content h2 {
  font-family: var(--font-semibold);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  line-height: 1.3;
}

.legal-content p {
  margin: 0 0 20px;
  color: var(--muted);
}

.legal-content ul {
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--muted);
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}
