:root {
  --bg: #f3efe7;
  --bg-strong: #e3d5bd;
  --surface: rgba(255, 252, 246, 0.8);
  --surface-strong: #fffaf2;
  --text: #1c231d;
  --muted: #49544a;
  --line: rgba(28, 35, 29, 0.14);
  --accent: #b4461e;
  --accent-strong: #7f2d12;
  --shadow: 0 22px 60px rgba(62, 38, 15, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(180, 70, 30, 0.15), transparent 28%),
    radial-gradient(circle at right 20%, rgba(54, 89, 67, 0.18), transparent 26%),
    linear-gradient(180deg, #f7f2e7 0%, #efe4cf 100%);
}

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

code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95em;
}

.page-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 24px;
}

.hero::after,
.spotlight::after {
  content: "";
  position: absolute;
  inset: auto -12% -24% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 70, 30, 0.18), transparent 65%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 48%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 58%);
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
  font-size: 1.02rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 40px;
  align-items: start;
}

.hero-content {
  padding: 40px 8px 16px;
  max-width: 680px;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 6.6vw, 5.1rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
}

h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.05em;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.hero-copy,
.overview-copy,
.panel p,
.card p,
.fact-card p {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.12rem;
}

.hero-copy-secondary {
  max-width: 58ch;
  margin-top: -2px;
  color: #556157;
}

.hero-copy-tertiary {
  max-width: 58ch;
  margin-top: -2px;
  color: #556157;
}

.overview-copy {
  max-width: 34ch;
  margin-top: 18px;
  color: #556157;
}

.hero-aside {
  display: grid;
  gap: 18px;
  padding: 40px 8px 16px 0;
}

.hero-visual {
  margin: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 48%),
    rgba(255, 251, 244, 0.82);
  box-shadow: 0 24px 60px rgba(62, 38, 15, 0.14);
}

.hero-logo {
  display: block;
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

.hero-visual-caption {
  margin: 0;
  padding: 18px 20px 20px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.06rem;
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.94), rgba(255, 251, 244, 0.98));
}

.hero-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fact-card {
  position: relative;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 251, 244, 0.8);
}

.fact-card p {
  max-width: 30ch;
  line-height: 1.62;
}

.fact-card-primary {
  background: linear-gradient(135deg, rgba(255, 246, 235, 0.96), rgba(250, 241, 228, 0.92));
}

main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.panel {
  padding: 28px;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

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

.card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.card p {
  max-width: 54ch;
  line-height: 1.62;
}

.inline-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.spotlight {
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(248, 236, 211, 0.92)),
    var(--surface);
}

.spotlight .workflow-intro,
.spotlight .workflow-note {
  max-width: 110ch;
}

.spotlight h2 {
  max-width: 100%;
}

.workflow-flow {
  display: grid;
  gap: 10px;
  margin: 26px 0 22px;
}

.workflow-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) 24px
    minmax(0, 1fr) 24px
    minmax(0, 1fr) 24px
    minmax(0, 1fr) 24px
    minmax(0, 1fr) 24px
    minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.workflow-row-reverse .flow-arrow {
  background: linear-gradient(90deg, rgba(180, 70, 30, 0.42), rgba(180, 70, 30, 0.18));
}

.workflow-row-reverse .flow-arrow::after {
  right: auto;
  left: -1px;
  border-top: 0;
  border-right: 0;
  border-bottom: 2px solid rgba(180, 70, 30, 0.42);
  border-left: 2px solid rgba(180, 70, 30, 0.42);
  transform: translateY(-50%) rotate(45deg);
}

.workflow-turn-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) 24px
    minmax(0, 1fr) 24px
    minmax(0, 1fr) 24px
    minmax(0, 1fr) 24px
    minmax(0, 1fr) 24px
    minmax(0, 1fr);
  gap: 8px;
}

.workflow-turn {
  width: 2px;
  height: 28px;
  grid-column: 11;
  justify-self: center;
  background: linear-gradient(180deg, rgba(180, 70, 30, 0.18), rgba(180, 70, 30, 0.42));
}

.flow-step {
  display: grid;
  justify-items: center;
}

.flow-node {
  display: grid;
  place-items: center;
  width: 120px;
  min-height: 120px;
  padding: 16px;
  border-radius: 50%;
  border: 1px solid rgba(180, 70, 30, 0.2);
  background: linear-gradient(135deg, rgba(255, 247, 233, 0.96), rgba(249, 233, 204, 0.92));
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 12px 24px rgba(127, 45, 18, 0.08);
}

.flow-node-optional {
  background: linear-gradient(135deg, rgba(255, 253, 250, 0.98), rgba(249, 244, 236, 0.94));
  color: #6a5e54;
  border-color: rgba(108, 96, 86, 0.16);
}

.flow-node-designer {
  background: linear-gradient(135deg, rgba(235, 245, 255, 0.98), rgba(214, 232, 252, 0.94));
  color: #21558a;
  border-color: rgba(33, 85, 138, 0.2);
}

.flow-node-standard {
  background: linear-gradient(135deg, rgba(241, 249, 242, 0.98), rgba(225, 241, 228, 0.94));
  color: #2b6b46;
  border-color: rgba(43, 107, 70, 0.18);
}

.flow-node-decision {
  background: linear-gradient(135deg, rgba(255, 237, 237, 0.98), rgba(252, 219, 219, 0.94));
  color: #9e2f2f;
  border-color: rgba(158, 47, 47, 0.24);
  box-shadow: 0 14px 28px rgba(158, 47, 47, 0.08);
}

.flow-node-wide {
  width: 132px;
}

.flow-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(108, 96, 86, 0.08);
  color: #6a5e54;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flow-chip-designer {
  background: rgba(33, 85, 138, 0.12);
  color: #21558a;
}

.flow-chip-decision {
  background: rgba(158, 47, 47, 0.12);
  color: #9e2f2f;
}

.flow-arrow {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, rgba(180, 70, 30, 0.18), rgba(180, 70, 30, 0.42));
  position: relative;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(180, 70, 30, 0.42);
  border-right: 2px solid rgba(180, 70, 30, 0.42);
  transform: translateY(-50%) rotate(45deg);
}

.workflow-meta {
  display: grid;
  gap: 14px;
}

.terminal-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.terminal-showcase {
  width: 100%;
}

.terminal-copy h2 {
  max-width: 100%;
}

.terminal-copy {
  display: grid;
  gap: 8px;
  align-content: start;
}

.terminal-copy-line {
  max-width: 100%;
  margin: 0;
}

.terminal-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(28, 35, 29, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(33, 85, 138, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(247, 241, 231, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 24px 70px rgba(62, 38, 15, 0.14);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
}

.terminal-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.18fr);
  align-items: stretch;
}

.terminal-preview {
  padding: 18px 18px 18px 0;
}

.gui-preview-floating {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow:
    0 24px 54px rgba(62, 38, 15, 0.22),
    0 0 0 1px rgba(28, 35, 29, 0.05);
}

.terminal-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(28, 35, 29, 0.025) 1px, transparent 1px);
  background-size: 100% 26px;
  opacity: 0.3;
  pointer-events: none;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(28, 35, 29, 0.08);
  color: #667364;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.terminal-lights {
  display: inline-flex;
  gap: 8px;
}

.light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.light-red {
  background: #ff6b5a;
}

.light-yellow {
  background: #ffbf47;
}

.light-green {
  background: #34d17f;
}

.terminal-title {
  white-space: nowrap;
}

.terminal-screen {
  padding: 24px 20px 24px;
  font-family: "IBM Plex Mono", monospace;
  color: #1c231d;
  position: relative;
  z-index: 1;
}

.terminal-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 30px;
  margin: 8px 0;
  font-size: 1rem;
}

.prompt {
  color: #21558a;
  font-weight: 500;
}

.cmd {
  color: #7f2d12;
  font-weight: 600;
}

.arg {
  color: #1c231d;
}

.flag {
  color: #21558a;
}

.path {
  color: #2b6b46;
}

.string {
  color: #9e2f2f;
}

.env {
  color: #7c4d1f;
}

.operator {
  color: #667364;
}

.terminal-line-muted {
  padding-left: 28px;
}

.status-mark {
  color: #21558a;
}

.status-text {
  color: #667364;
}

.terminal-output {
  margin-top: 18px;
  padding-left: 0;
  color: #2b6b46;
}

.terminal-output p {
  margin: 6px 0;
  max-width: 48ch;
  color: inherit;
  line-height: 1.65;
}

.workflow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #556157;
  font-size: 0.98rem;
  line-height: 1.5;
}

.legend-item-designer {
  color: #21558a;
}

.legend-item-optional {
  color: #6a5e54;
}

.legend-item-decision {
  color: #9e2f2f;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legend-chip-designer {
  background: rgba(33, 85, 138, 0.12);
  color: #21558a;
}

.legend-chip-optional {
  background: #ffffff;
  color: #6a5e54;
}

.legend-chip-decision {
  background: rgba(158, 47, 47, 0.12);
  color: #9e2f2f;
}

.cursor {
  width: 10px;
  height: 1.15em;
  margin-left: 2px;
  background: #21558a;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 1440px);
    padding-top: 10px;
  }

  .hero,
  .panel,
  .terminal-window {
    border-radius: 22px;
  }

  .topbar,
  .panel-grid,
  .hero-layout,
  .terminal-section {
    display: grid;
    grid-template-columns: 1fr;
  }

  .terminal-showcase {
    padding-right: 0;
  }

  .terminal-body {
    grid-template-columns: 1fr;
  }

  .terminal-preview {
    padding: 0 16px 16px;
  }

  .gui-preview-floating {
    width: 100%;
    height: auto;
    margin-top: 0;
    border-radius: 16px;
    object-fit: contain;
  }

  .workflow-flow {
    gap: 18px;
  }

  .workflow-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workflow-turn-row {
    grid-template-columns: 1fr;
  }

  .workflow-row-reverse .flow-arrow {
    background: linear-gradient(180deg, rgba(180, 70, 30, 0.18), rgba(180, 70, 30, 0.42));
  }

  .workflow-row-reverse .flow-arrow::after {
    top: auto;
    bottom: -1px;
    left: 50%;
    border-top: 0;
    border-right: 2px solid rgba(180, 70, 30, 0.42);
    border-bottom: 2px solid rgba(180, 70, 30, 0.42);
    border-left: 0;
    transform: translateX(-50%) rotate(45deg);
  }

  .workflow-turn {
    width: 18px;
    height: 2px;
    grid-column: auto;
    justify-self: center;
    background: linear-gradient(90deg, rgba(180, 70, 30, 0.18), rgba(180, 70, 30, 0.42));
  }

  .flow-arrow {
    width: 2px;
    height: 18px;
    justify-self: center;
    background: linear-gradient(180deg, rgba(180, 70, 30, 0.18), rgba(180, 70, 30, 0.42));
  }

  .flow-arrow::after {
    top: auto;
    bottom: -1px;
    right: 50%;
    transform: translateX(50%) rotate(135deg);
  }

  .topbar {
    justify-content: initial;
  }

  .hero-content {
    padding-top: 44px;
  }

  .hero-aside {
    padding: 24px 8px 12px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }

  .terminal-screen {
    padding: 20px 16px 22px;
  }

  .terminal-line {
    font-size: 0.92rem;
  }

  .terminal-output {
    padding-left: 0;
  }

  .terminal-copy p {
    max-width: 100%;
  }
}
