@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/JetBrainsMono-Regular.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5f6d67;
  --line: #dbe3df;
  --paper: #f8faf7;
  --white: #ffffff;
  --green: #22664b;
  --green-dark: #154532;
  --mint: #d9efe4;
  --blue: #315b7c;
  --amber: #d9a441;
  --red: #b94b4b;
  --shadow: 0 24px 70px rgba(23, 33, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(248, 250, 247, 0.86);
  border-bottom: 1px solid rgba(219, 227, 223, 0.7);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(23, 33, 29, 0.08);
}

.brand,
.site-header nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.site-header nav {
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-header nav a:hover {
  color: var(--ink);
}

.language-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--white);
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.74fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 0;
  padding: clamp(46px, 7vw, 96px) clamp(20px, 4vw, 56px) 44px;
}

.hero-copy {
  max-width: 820px;
}

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

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

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 8vw, 6.85rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.8vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.62;
}

.hero-claim {
  display: inline-flex;
  margin: 0 0 22px;
  border: 1px solid #c8ddd2;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 900;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 19px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 16px 34px rgba(34, 102, 75, 0.25);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.hero-panel {
  min-width: 0;
  overflow: hidden;
  background: #14221c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  background: #0f1814;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  background: var(--amber);
  border-radius: 50%;
}

.terminal-bar span:nth-child(2) {
  background: var(--red);
}

.terminal-bar span:nth-child(3) {
  background: #65b88c;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
  color: #d7f1e5;
  font-size: clamp(0.8rem, 1.1vw, 0.98rem);
  line-height: 1.65;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.proof-strip div {
  display: grid;
  gap: 6px;
  padding: 24px clamp(20px, 4vw, 56px);
  background: var(--white);
}

.proof-strip span {
  color: var(--muted);
}

.showoff,
.api-section,
.deployment-section,
.stats-section,
.cta {
  padding: clamp(68px, 9vw, 116px) clamp(20px, 4vw, 56px);
}

.showoff-first {
  padding-top: clamp(24px, 4vw, 42px);
}

.showoff-first .section-heading {
  max-width: 860px;
}

.showoff-first h1 {
  max-width: 900px;
  margin-bottom: 12px;
  font-size: clamp(2.45rem, 5.4vw, 4.8rem);
  line-height: 0.96;
}

.top-subline {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 750;
  line-height: 1.42;
}

.section-heading {
  max-width: 780px;
}

.section-heading p:not(.eyebrow),
.api-section p,
.stats-section p,
.cta p {
  color: var(--muted);
  line-height: 1.65;
}

.api-warning {
  margin: 26px 0;
  border: 1px solid #eed89c;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff6d9;
  color: #705112;
  font-weight: 700;
}

.live-editor {
  margin-top: 24px;
}

.editor-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.template-picker {
  max-width: 420px;
  flex: 1 1 320px;
}

.template-picker label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.template-picker select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.editor-trust-line {
  max-width: 460px;
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  font-weight: 900;
  line-height: 1.35;
  text-align: right;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr) minmax(360px, 1.05fr);
  gap: 16px;
  align-items: stretch;
}

.editor-pane,
.preview-pane {
  display: flex;
  min-width: 0;
  min-height: 620px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(23, 33, 29, 0.08);
}

.editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 106px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.editor-header h3 {
  margin: 0 0 6px;
}

.editor-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.status-pill,
.small-button {
  flex: 0 0 auto;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 850;
}

.status-pill {
  border: 1px solid #b9dcca;
  padding: 7px 9px;
  background: var(--mint);
  color: var(--green-dark);
}

.render-time {
  flex: 0 0 auto;
  min-width: 142px;
  border: 1px solid #c8ddd2;
  border-radius: 8px;
  padding: 7px 9px;
  background: #f3faf6;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.small-button {
  min-height: 34px;
  border: 1px solid var(--line);
  padding: 0 10px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.small-button:hover {
  border-color: rgba(34, 102, 75, 0.45);
}

.code-field {
  flex: 1 1 auto;
  width: 100%;
  min-height: 390px;
  border: 0;
  padding: 18px;
  resize: none;
  background: #fbfcfb;
  color: #16231d;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  tab-size: 2;
  outline: none;
}

.code-field[readonly] {
  color: #4f5f58;
  background: #f3f7f5;
}

.code-field:focus {
  box-shadow: inset 0 0 0 2px rgba(34, 102, 75, 0.18);
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px;
  background: var(--white);
}

.editor-actions .button {
  min-height: 44px;
  cursor: pointer;
}

.editor-actions .button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.preview-pane iframe {
  flex: 1 1 auto;
  width: 100%;
  min-height: 512px;
  border: 0;
  background: #eef3f0;
}

.preview-error-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  margin: 0;
  padding: 18px;
  background: #fff8f4;
  color: var(--ink);
  font-family: Inter, sans-serif;
}

.preview-error {
  width: min(680px, 100%);
  border: 1px solid #f0c8b8;
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
}

.preview-error h1 {
  margin-bottom: 14px;
  font-size: 1.45rem;
  line-height: 1.12;
}

.preview-error pre {
  margin: 0;
  padding: 14px;
  background: #fff3ee;
  color: #8c2e1f;
  white-space: pre-wrap;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  margin-top: 38px;
}

.document-stack {
  position: relative;
  min-height: 510px;
}

.paper {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(72%, 340px);
  min-height: 380px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.paper span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.paper b {
  font-size: 1.65rem;
}

.paper i {
  display: block;
  height: 14px;
  background: #e9efec;
  border-radius: 4px;
}

.paper-a {
  top: 0;
  left: 8%;
  transform: rotate(-5deg);
}

.paper-b {
  top: 68px;
  right: 5%;
  transform: rotate(5deg);
}

.paper-c {
  bottom: 0;
  left: 22%;
  transform: rotate(-1deg);
}

.demo-options {
  display: grid;
  gap: 12px;
}

.demo-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--white);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.demo-option:hover,
.demo-option.is-loading {
  border-color: rgba(34, 102, 75, 0.45);
  box-shadow: 0 14px 34px rgba(23, 33, 29, 0.08);
  transform: translateY(-2px);
}

.demo-option span {
  overflow-wrap: anywhere;
  font-size: 1.06rem;
  font-weight: 850;
}

.demo-option small {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 850;
}

.api-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(30px, 5vw, 72px);
  background: var(--white);
}

.stats-section {
  background: #1d2c26;
  color: var(--white);
}

.stats-section .eyebrow {
  color: #9fd1b8;
}

.stats-section .section-heading p:not(.eyebrow),
.stats-footnote {
  color: #c7d5cf;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.stats-hardware {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 980px;
  margin-top: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 16px 18px;
  background: #24362f;
}

.stats-hardware span {
  color: #9fd1b8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-hardware strong {
  color: var(--white);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.25;
  text-align: right;
}

.stats-grid article {
  display: grid;
  gap: 8px;
  min-height: 142px;
  align-content: center;
  padding: 22px;
  background: #24362f;
}

.stats-grid strong {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.stats-grid span {
  color: #c7d5cf;
  font-weight: 800;
}

.stats-footnote {
  max-width: 900px;
  margin: 20px 0 0;
  font-size: 0.95rem;
}

.api-cards {
  display: grid;
  gap: 16px;
}

.api-cards article {
  border-left: 4px solid var(--green);
  padding: 6px 0 8px 22px;
}

.api-surface {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.api-surface h3 {
  font-size: clamp(1.55rem, 2.8vw, 2.7rem);
  line-height: 1.05;
}

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

.api-surface li {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--paper);
}

.api-surface li span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.api-surface code {
  overflow-wrap: anywhere;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}

.docs-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: var(--white);
  color: var(--green-dark);
  font-weight: 900;
}

.deployment-section {
  background: #f1f6f3;
}

.deployment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.deployment-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 33, 29, 0.07);
}

.deployment-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cta {
  text-align: center;
  background: #1d2c26;
  color: var(--white);
}

.cta p {
  max-width: 680px;
  margin-inline: auto;
  color: #c7d5cf;
}

.cta .button {
  margin-top: 18px;
  background: var(--amber);
  color: #231a07;
  box-shadow: none;
}

.demo-privacy-note {
  max-width: 820px;
  margin: 14px 0 18px;
  border-left: 4px solid var(--green);
  padding: 12px 14px;
  background: #f3faf6;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.demo-privacy-note a,
.site-footer a,
.legal-shell a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.demo-privacy-note a:hover,
.site-footer a:hover,
.legal-shell a:hover {
  text-decoration-thickness: 2px;
}

.demo-privacy-note a:focus-visible,
.site-footer a:focus-visible,
.legal-shell a:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  border-top: 1px solid var(--line);
  padding: 26px clamp(20px, 4vw, 56px);
  background: var(--white);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-footer p {
  margin: 0;
}

.site-footer nav,
.site-footer ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  font-weight: 750;
}

.legal-main {
  overflow: visible;
}

.legal-shell {
  width: min(900px, 100%);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 84px) clamp(20px, 4vw, 48px)
    clamp(72px, 9vw, 112px);
  overflow-wrap: anywhere;
}

.legal-shell > header {
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.legal-shell h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 6vw, 4.75rem);
  line-height: 1;
}

.legal-shell h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.legal-shell h3 {
  margin-top: 28px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.legal-shell p,
.legal-shell li,
.legal-shell dd {
  line-height: 1.72;
}

.legal-shell ul,
.legal-shell ol {
  padding-left: 1.35rem;
}

.legal-shell a,
.legal-shell code {
  word-break: break-word;
}

.legal-section {
  scroll-margin-top: 110px;
  margin-top: clamp(36px, 6vw, 58px);
  border-top: 1px solid var(--line);
  padding-top: clamp(30px, 4vw, 44px);
}

.legal-section > :last-child,
.legal-contact > :last-child {
  margin-bottom: 0;
}

.legal-shell dl {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}

.legal-shell dt,
.legal-shell dd {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.legal-shell dt {
  padding-right: 24px;
  color: var(--green-dark);
  font-weight: 800;
}

.legal-shell dd {
  margin: 0;
}

.legal-contact,
.legal-shell address {
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  background: var(--white);
  font-style: normal;
  line-height: 1.7;
}

.legal-toc {
  margin: clamp(28px, 4vw, 42px) 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  background: var(--white);
}

.legal-toc h2 {
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc a {
  display: inline-block;
  padding-block: 3px;
}

.legal-updated {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-updated time {
  color: var(--ink);
  font-weight: 750;
}

.error-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.error-box {
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 6vw, 56px);
  background: var(--white);
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .demo-grid,
  .api-section,
  .editor-grid,
  .deployment-grid,
  .stats-grid,
  .api-surface {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .document-stack {
    min-height: 440px;
  }

  .paper {
    width: min(76%, 320px);
    min-height: 310px;
  }

  .editor-pane,
  .preview-pane {
    min-height: 480px;
  }

  .preview-pane iframe {
    min-height: 420px;
  }

  .editor-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-trust-line {
    max-width: none;
    margin-bottom: 0;
    text-align: left;
  }

  .stats-hardware {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-hardware strong {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav,
  .site-footer ul {
    width: 100%;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 3rem;
  }

  .demo-option {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-stack {
    min-height: 360px;
  }

  .paper {
    min-height: 250px;
    padding: 20px;
  }

  .paper b {
    font-size: 1.2rem;
  }

  .editor-header {
    min-height: 0;
    flex-direction: column;
  }

  .code-field {
    min-height: 320px;
  }

  .editor-actions .button {
    width: 100%;
  }

  .site-footer nav,
  .site-footer ul {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-shell dl,
  .legal-toc ul {
    grid-template-columns: 1fr;
  }

  .legal-shell dt {
    border-bottom: 0;
    padding-bottom: 3px;
  }

  .legal-shell dd {
    padding-top: 0;
  }

  .legal-contact,
  .legal-shell address,
  .legal-toc {
    padding: 18px;
  }
}
