:root {
  --ink: #111827;
  --ink-soft: #243244;
  --muted: #64748b;
  --line: #d8e0ea;
  --paper: #ffffff;
  --wash: #f5f8fb;
  --teal: #0f9f8f;
  --green: #16a34a;
  --red: #dc2626;
  --blue: #2563eb;
  --amber: #d97706;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(216, 224, 234, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 680;
}

nav a {
  border-bottom: 2px solid transparent;
  padding: 6px 0;
}

nav a:hover {
  border-color: var(--teal);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 32px));
  overflow: hidden;
  background: #0b1220;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url("assets/workflow-results.png");
  background-position: center;
  background-size: cover;
  filter: saturate(0.95);
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 22, 0.92) 0%, rgba(7, 12, 22, 0.78) 44%, rgba(7, 12, 22, 0.22) 100%),
    linear-gradient(180deg, rgba(7, 12, 22, 0.34) 0%, rgba(7, 12, 22, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  padding: clamp(86px, 12vw, 150px) 0 92px;
  margin-left: clamp(18px, 5vw, 72px);
  color: white;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #58e0ca;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-copy {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.36;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 780;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--teal);
  color: white;
}

.button-primary:hover {
  background: #0b877b;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-stats span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 720;
}

.section {
  padding: clamp(70px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.section-lede {
  max-width: 860px;
}

.section-lede p {
  max-width: 780px;
}

.story {
  background: white;
}

.story-grid,
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.story-card,
.mode-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.05);
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #e8f7f5;
  color: #087568;
  font-weight: 830;
}

.proof {
  background: #edf3f8;
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: stretch;
  gap: 22px;
  margin-top: 34px;
}

.proof-layout img,
.split img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pr-list {
  display: grid;
  gap: 12px;
}

.pr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.05);
}

.pr-row span {
  font-weight: 740;
}

.pr-row strong {
  border-radius: 8px;
  padding: 8px 10px;
  color: white;
  font-size: 13px;
}

.pr-row.pass strong {
  background: var(--green);
}

.pr-row.fail strong {
  background: var(--red);
}

.contrast {
  background: white;
}

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

.mode-card h3 {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color: var(--blue);
  font-size: 18px;
}

.mode-card:nth-child(2) h3 {
  color: var(--teal);
}

.mode-card:nth-child(3) h3 {
  color: var(--amber);
}

.mode-card:nth-child(4) h3 {
  color: #7c3aed;
}

.mode-card:nth-child(5) h3 {
  color: var(--red);
}

.mode-card p {
  font-size: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: 42px;
  align-items: center;
  background: #f8fafc;
}

.quickstart {
  background: #101827;
}

.quickstart h2 {
  color: white;
}

.quickstart .section-lede p {
  color: rgba(255, 255, 255, 0.74);
}

.terminal {
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #080d18;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.terminal-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
}

.terminal-bar span:nth-child(2) {
  background: #f59e0b;
}

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

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #e8eef8;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.7;
}

.launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: white;
}

.launch > div:first-child {
  max-width: 780px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #111827;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer span {
  margin-right: auto;
  color: white;
  font-weight: 800;
}

.site-footer a:hover {
  color: white;
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

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

  .mode-grid {
    gap: 14px;
  }

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

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
  }

  .hero {
    min-height: 740px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 12, 22, 0.94) 0%, rgba(7, 12, 22, 0.84) 58%, rgba(7, 12, 22, 0.55) 100%);
  }

  .hero-content {
    padding-top: 90px;
    margin-left: 18px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  p {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .pr-row {
    align-items: flex-start;
    flex-direction: column;
  }

  pre {
    padding: 18px;
  }
}
