:root {
  --bg: #f2efe8;
  --ink: #172227;
  --muted: #54636c;
  --line: rgba(23, 34, 39, 0.14);
  --surface: rgba(255, 252, 247, 0.84);
  --surface-strong: #fffaf2;
  --accent: #e65a2f;
  --accent-deep: #ab3312;
  --sage: #bed4c4;
  --shadow: 0 20px 60px rgba(34, 39, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(230, 90, 47, 0.15), transparent 28%),
    radial-gradient(circle at bottom right, rgba(190, 212, 196, 0.44), transparent 26%),
    linear-gradient(180deg, #f8f4ed 0%, var(--bg) 100%);
  font-family: "Space Grotesk", sans-serif;
}

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

code,
pre {
  font-family: "IBM Plex Mono", monospace;
}

.page-shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0 24px;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 10px;
}

.hero-copy,
.panel,
.terminal-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
  margin-bottom: 14px;
}

.lede,
.panel p,
.small,
.steps {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.55);
}

.terminal-card {
  overflow: hidden;
  background: #161a1f;
  color: #edf2f7;
}

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

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #44505a;
}

.terminal-bar span:nth-child(1) { background: #ff7a59; }
.terminal-bar span:nth-child(2) { background: #ffcf4a; }
.terminal-bar span:nth-child(3) { background: #34d399; }

.terminal-card pre {
  margin: 0;
  padding: 20px;
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 0.94rem;
}

.grid,
.split {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

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

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

.panel {
  padding: 28px;
}

.wide {
  min-height: 100%;
}

.panel pre {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 20px;
  background: #1b2024;
  color: #f6f7f9;
  overflow-x: auto;
  font-size: 0.92rem;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.chip-row span {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.steps {
  margin: 18px 0 0;
  padding-left: 22px;
}

.steps li + li {
  margin-top: 10px;
}

@media (max-width: 920px) {
  .hero,
  .grid,
  .split {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100vw - 20px, 1160px);
  }

  .hero-copy,
  .panel {
    padding: 24px;
  }

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