:root {
  color-scheme: light;
  --ink: #16181d;
  --muted: #5f6878;
  --paper: #f8f7f2;
  --surface: #ffffff;
  --line: #d8d6cc;
  --green: #157a55;
  --green-soft: #dff2e6;
  --blue: #225f9c;
  --blue-soft: #e3eef8;
  --ruby: #a23a51;
  --ruby-soft: #f7e1e6;
  --amber: #8a6419;
  --amber-soft: #f4ead0;
  --code: #101419;
  --code-line: #2b3440;
  --shadow: 0 24px 80px rgb(22 24 29 / 16%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
}

pre,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  color: #fff;
  background: rgb(16 20 25 / 82%);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 26%);
  background: rgb(255 255 255 / 10%);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.nav-links {
  gap: clamp(12px, 2vw, 24px);
  font-size: 14px;
  color: rgb(255 255 255 / 82%);
}

.nav-links a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: min(760px, 96vh);
  padding: 132px clamp(18px, 6vw, 80px) 92px;
  overflow: hidden;
  color: #fff;
  background: var(--code);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 86px;
  background: var(--paper);
  clip-path: polygon(0 62%, 100% 22%, 100% 100%, 0 100%);
}

.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(16 20 25 / 94%) 0%, rgb(16 20 25 / 68%) 48%, rgb(16 20 25 / 32%) 100%),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 4%) 0 1px, transparent 1px 42px);
}

.scene-code,
.scene-output {
  position: absolute;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 12%);
  background: rgb(255 255 255 / 8%);
  box-shadow: var(--shadow);
}

.scene-code {
  width: min(620px, 72vw);
  padding: 24px;
  color: #d7efe2;
  font-size: clamp(13px, 1.4vw, 18px);
  line-height: 1.7;
  white-space: pre;
}

.scene-code-a {
  top: 128px;
  right: clamp(-160px, -10vw, 24px);
}

.scene-code-b {
  right: clamp(-220px, -8vw, 40px);
  bottom: 76px;
  color: #e8eff9;
}

.scene-output {
  right: clamp(24px, 12vw, 180px);
  top: 50%;
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  color: #101419;
  background: #f7d878;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #87e0b1;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 8.5vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 14px 0 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgb(255 255 255 / 82%);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions,
.command-row,
.demo-tabs,
.link-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions {
  gap: 12px;
  margin-top: 34px;
}

.button,
.copy-button,
.demo-tab {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 15px;
  font: inherit;
  font-weight: 740;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--code);
  background: #87e0b1;
}

.button.secondary {
  color: #fff;
  border-color: rgb(255 255 255 / 24%);
  background: rgb(255 255 255 / 10%);
}

.button.inline-button {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: #fff;
  background: var(--code);
}

.band {
  padding: clamp(72px, 9vw, 128px) clamp(18px, 5vw, 72px);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.split > *,
.section-inner > * {
  min-width: 0;
}

.compact-copy {
  color: var(--muted);
  font-size: 18px;
}

.compact-copy p:first-child {
  margin-top: 0;
}

.tool-band,
.docs-band {
  background: #fff;
}

.capability-band {
  background: #f8f7f2;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
}

.demo-shell {
  border: 1px solid var(--line);
  background: #fdfcf8;
  box-shadow: 0 18px 70px rgb(22 24 29 / 10%);
}

.demo-tabs {
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f2f0e7;
}

.demo-tab {
  color: var(--muted);
  background: transparent;
}

.demo-tab.active {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 420px;
}

.code-panel {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--code);
  color: #dbe7ef;
}

.code-panel:last-child {
  border-right: 0;
}

.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--code-line);
  color: #f3f7f8;
  background: #161c23;
  font-size: 13px;
  font-weight: 780;
}

.file-label {
  color: #8fa0ad;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 520;
}

.code-panel pre,
.terminal-panel pre {
  margin: 0;
  overflow: auto;
}

.code-panel pre {
  height: 100%;
  padding: 22px;
}

.code-panel code,
.terminal-panel code {
  white-space: pre;
  font-size: 14px;
  line-height: 1.7;
}

.command-row {
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.command-row code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 14px;
}

.copy-button {
  color: #fff;
  background: var(--blue);
}

.safety-band {
  background: #f5f0e3;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tier-item {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 72%);
}

.tier-item p {
  margin: 0;
  color: var(--muted);
}

.tier-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
}

.tier-tag.safe {
  color: var(--green);
  background: var(--green-soft);
}

.tier-tag.guarded {
  color: var(--blue);
  background: var(--blue-soft);
}

.tier-tag.certified {
  color: var(--amber);
  background: var(--amber-soft);
}

.tier-tag.llm {
  color: var(--ruby);
  background: var(--ruby-soft);
}

.evidence-band {
  background: #eaf0f2;
}

.terminal-panel {
  min-width: 0;
  border: 1px solid #202934;
  background: var(--code);
  box-shadow: var(--shadow);
}

.terminal-panel pre {
  padding: 22px;
  color: #d7efe2;
}

.link-list {
  gap: 10px;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  font-weight: 760;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgb(255 255 255 / 74%);
  background: var(--code);
  font-size: 14px;
}

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

  .nav-links {
    display: none;
  }

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

  .scene-code-a {
    display: none;
  }

  .scene-code-b {
    right: 18px;
    left: 18px;
    width: auto;
    bottom: 86px;
  }

  .scene-output {
    display: none;
  }

  .split,
  .code-grid,
  .tier-grid {
    grid-template-columns: 1fr;
  }

  .code-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .code-panel:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(44px, 14vw, 58px);
  }

  .hero-actions,
  .command-row,
  .demo-tabs,
  .link-list {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .copy-button,
  .demo-tab,
  .link-list a {
    justify-content: center;
    width: 100%;
  }
}
