:root {
  color-scheme: light;
  --ink: #16211f;
  --muted: #5b6865;
  --paper: #f7f4ec;
  --surface: #fffdf8;
  --line: #d9d3c6;
  --accent: #0f6b5f;
  --accent-dark: #0a4942;
  --gold: #c88a2c;
  --blue: #375d81;
  --code: #101816;
  --code-line: #22312e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(22, 33, 31, 0.1);
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(14px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  min-height: 640px;
  padding: clamp(54px, 9vw, 118px) clamp(18px, 5vw, 72px) 64px;
  background:
    linear-gradient(110deg, rgba(15, 107, 95, 0.14), rgba(200, 138, 44, 0.08) 46%, rgba(55, 93, 129, 0.12)),
    var(--paper);
}

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

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

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: #3e4b48;
  font-size: 1.18rem;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 10px 16px;
  font-weight: 750;
  text-decoration: none;
}

.primary-action {
  background: var(--accent);
  color: white;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.68);
}

.terminal-panel {
  align-self: stretch;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--code);
  box-shadow: 0 28px 80px rgba(17, 24, 22, 0.28);
  color: #d9fff5;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 15px;
  border-bottom: 1px solid var(--code-line);
}

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

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

.terminal-bar span:nth-child(3) {
  background: var(--blue);
}

.terminal-panel pre {
  margin: 0;
  padding: clamp(24px, 4vw, 46px);
  white-space: pre-wrap;
}

.search-band,
.approach,
.blog-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 64px clamp(18px, 5vw, 72px) 22px;
}

.search-band h2,
.approach h2,
.blog-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.search-box {
  display: grid;
  width: min(440px, 100%);
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 10px 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 clamp(18px, 5vw, 72px) 24px;
}

.filter-button,
.icon-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 8px 12px;
}

.filter-button.active,
.tab-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 72px) 72px;
}

.pipeline-card {
  display: grid;
  min-width: 0;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(18px, 3vw, 26px);
}

.card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.stack {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-card h2 {
  margin: 6px 0 0;
  font-size: 1.55rem;
  line-height: 1.1;
}

.summary {
  margin: 0;
  color: #3f4d49;
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e8f2ef;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 9px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  border: 1px solid #e1dccf;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 9px;
}

.implementation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbf8f0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 780;
  padding: 7px 10px;
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.file-label {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-toolbar div {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.icon-button {
  min-width: 48px;
  min-height: 34px;
  padding: 6px 9px;
}

.starter-button {
  border-color: rgba(15, 107, 95, 0.42);
  background: #e8f2ef;
  color: var(--accent-dark);
}

.code-block {
  max-height: 430px;
  min-height: 260px;
  margin: 0;
  overflow: auto;
  border-radius: 7px;
  background: var(--code);
  color: #e4fff7;
  font-size: 0.84rem;
  line-height: 1.55;
  padding: 18px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(760px, 100%);
}

.principles article {
  border-top: 3px solid var(--accent);
  background: rgba(255, 253, 248, 0.66);
  padding: 16px 0 0;
}

.principles h3 {
  margin: 0 0 8px;
}

.principles p,
.blog-band p,
footer p {
  margin: 0;
  color: var(--muted);
}

.blog-band {
  align-items: center;
  border-top: 1px solid var(--line);
  background: #ede9df;
  padding-bottom: 64px;
}

.blog-band div {
  max-width: 760px;
}

footer {
  padding: 26px clamp(18px, 5vw, 72px);
  background: var(--ink);
}

footer p {
  color: #ecf2ef;
}

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

  .catalog-grid {
    display: grid;
  }

  .approach,
  .search-band,
  .blog-band {
    align-items: start;
    flex-direction: column;
  }

  .principles {
    grid-template-columns: 1fr;
  }
}

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

  .hero {
    min-height: auto;
  }

  .terminal-panel {
    min-height: 260px;
  }

  .card-heading,
  .code-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .code-toolbar div {
    width: 100%;
  }

  .icon-button {
    flex: 1;
  }
}
