@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #f5f3ee;
  --surface: #fffdf8;
  --surface-strong: #0f1720;
  --line: #d8d3c7;
  --text: #17212b;
  --muted: #56616d;
  --accent: #d85f2d;
  --accent-soft: #f2d6c8;
  --teal: #0f766e;
  --teal-soft: #d8f0ec;
  --shadow: 0 20px 45px rgba(15, 23, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 95, 45, 0.12), transparent 32%),
    linear-gradient(180deg, #f9f7f2 0%, #f1eee7 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(245, 243, 238, 0.88);
  border-bottom: 1px solid rgba(216, 211, 199, 0.8);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #ef8f5f);
  color: #fff;
  box-shadow: var(--shadow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-link:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.button-primary {
  background: var(--surface-strong);
  color: #fff;
  box-shadow: var(--shadow);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
  color: var(--text);
}

.button-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 32px rgba(216, 95, 45, 0.24);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(216, 211, 199, 0.9);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.85fr);
  gap: 26px;
  padding: 42px 0 28px;
}

.hero-card,
.panel,
.section-card,
.list-card,
.note-card,
.code-card {
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid rgba(216, 211, 199, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px;
}

.hero-card h1 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4.8vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-card h1 span {
  color: var(--accent);
}

.lede {
  margin: 0 0 22px;
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.trust-row,
.meta-grid,
.micro-grid,
.card-grid,
.value-grid,
.hub-grid,
.field-grid {
  display: grid;
  gap: 14px;
}

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

.trust-pill {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.92rem;
}

.panel {
  padding: 26px;
}

.panel h2,
.section-title h2,
.section-card h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.panel p,
.section-copy,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

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

.meta-grid div {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.meta-grid dt,
.metric dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-grid dd,
.metric dd {
  margin: 8px 0 0;
  font-weight: 800;
  line-height: 1.4;
}

.section {
  padding: 18px 0 12px;
}

.section-card {
  padding: 28px;
}

.section-title {
  margin-bottom: 18px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

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

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

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

.list-card,
.note-card,
.code-card {
  padding: 20px;
}

.list-card h3,
.note-card h3,
.code-card h3,
.value-card h3,
.hub-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.list-card ul,
.note-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.list-card li + li,
.note-card li + li {
  margin-top: 8px;
}

.value-card,
.hub-card,
.field-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.value-card p,
.hub-card p,
.field-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.code-card pre {
  margin: 0;
  overflow-x: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #dce5ee;
  background: #101923;
  padding: 16px;
  border-radius: 18px;
}

.code-card p {
  color: var(--muted);
  margin: 0 0 12px;
}

.cta-band {
  margin: 24px 0 48px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, #102030, #173646 62%, #135a59);
  color: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 32, 0.18);
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.cta-band p {
  margin: 0 0 18px;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.cta-band .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

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

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hub-card .eyebrow {
  align-self: flex-start;
}

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

.field-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.site-footer {
  padding: 0 0 48px;
  color: var(--muted);
}

.site-footer-inner {
  padding-top: 20px;
  border-top: 1px solid rgba(216, 211, 199, 0.95);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.metric-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.metric {
  min-width: 180px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero,
  .card-grid,
  .value-grid,
  .field-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .shell {
    width: min(100% - 20px, 1160px);
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card,
  .panel,
  .section-card,
  .cta-band {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-actions,
  .metric-row {
    flex-direction: column;
  }

  .trust-row,
  .meta-grid,
  .micro-grid {
    grid-template-columns: 1fr;
  }
}
