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

:root {
  --ink: #111513;
  --muted: #5f6861;
  --quiet: #8a948c;
  --paper: #f5f1e8;
  --panel: #fffdf6;
  --panel-soft: #ece7dc;
  --line: rgba(17, 21, 19, 0.13);
  --line-strong: rgba(17, 21, 19, 0.24);
  --charcoal: #171b19;
  --charcoal-2: #202620;
  --copper: #b66f45;
  --sage: #667a68;
  --blueprint: #dbe5db;
  --shadow: 0 32px 90px rgba(17, 21, 19, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(17, 21, 19, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(17, 21, 19, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 92% 8%, rgba(182, 111, 69, 0.14), transparent 28rem),
    linear-gradient(180deg, #f8f4eb 0%, var(--paper) 44%, #ebe5d9 100%);
  background-size: 88px 88px, 88px 88px, auto, auto;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(17, 21, 19, 0.055) 48% 48.15%, transparent 48.15%),
    radial-gradient(circle at 12% 72%, rgba(102, 122, 104, 0.15), transparent 25rem);
  pointer-events: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1.2rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  background: var(--charcoal);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  padding: 0.64rem 0.8rem;
  border: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 253, 246, 0.62);
}

.nav-cta {
  color: var(--paper) !important;
  background: var(--charcoal) !important;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  border: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.48);
}

.lang-button {
  min-height: 2.65rem;
  padding: 0 0.7rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-button + .lang-button {
  border-left: 1px solid var(--line);
}

.lang-button.active {
  color: var(--paper);
  background: var(--charcoal);
}

.section {
  width: min(1180px, calc(100% - 2.2rem));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6.5rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(22rem, 0.78fr);
  gap: clamp(2.2rem, 5vw, 5.5rem);
  align-items: center;
  min-height: calc(100vh - 4.8rem);
  padding-top: clamp(4rem, 7vw, 7rem);
}

.eyebrow,
.section-kicker,
.tag {
  margin: 0 0 1rem;
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Serif", Georgia, serif;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 11.5ch;
  font-size: clamp(3rem, 6.4vw, 5.9rem);
  line-height: 0.96;
  overflow-wrap: normal;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.12;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.lead {
  max-width: 43rem;
  margin: 1.55rem 0 0;
  color: #3f4842;
  font-size: clamp(1.06rem, 1.55vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line-strong);
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(17, 21, 19, 0.11);
}

.primary {
  color: var(--paper);
  background: var(--charcoal);
}

.secondary {
  background: rgba(255, 253, 246, 0.72);
}

.wide {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 48rem;
  margin: 2.5rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.54);
}

.hero-metrics div {
  padding: 1rem;
}

.hero-metrics div + div {
  border-left: 1px solid var(--line);
}

.hero-metrics dt {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.hero-metrics dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 246, 0.12);
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(219, 229, 219, 0.08), transparent 45%),
    var(--charcoal);
  box-shadow: var(--shadow);
}

.hero-card::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.18;
  background:
    linear-gradient(90deg, rgba(255, 253, 246, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(255, 253, 246, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.map-head,
.system-map,
.map-note {
  position: relative;
  z-index: 1;
}

.map-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 253, 246, 0.14);
  color: rgba(255, 253, 246, 0.7);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-head strong {
  color: #d6b399;
  font-weight: 700;
}

.system-map {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.map-node,
.map-lanes div {
  border: 1px solid rgba(255, 253, 246, 0.16);
  background: rgba(255, 253, 246, 0.055);
}

.primary-node {
  display: grid;
  min-height: 9rem;
  place-items: center;
  color: var(--paper);
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.map-toolchain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.map-toolchain span {
  display: grid;
  min-height: 4rem;
  place-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(255, 253, 246, 0.16);
  background: rgba(255, 253, 246, 0.055);
  text-align: center;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.18;
}

.map-toolchain .tool-primary {
  color: var(--charcoal);
  background: #d6b399;
  border-color: #d6b399;
}

.map-lanes {
  display: grid;
  gap: 0.7rem;
}

.map-lanes div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
}

.map-lanes small {
  color: rgba(255, 253, 246, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.map-lanes b {
  color: rgba(255, 253, 246, 0.9);
  font-weight: 600;
  text-align: right;
}

.map-note {
  margin: 0;
  padding: 1.2rem 1.4rem 1.45rem;
  border-top: 1px solid rgba(255, 253, 246, 0.14);
  color: rgba(255, 253, 246, 0.72);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.58);
}

.trust-strip span {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.trust-strip span + span {
  border-left: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proof-card,
.stack-card,
.product-card,
.timeline-item,
.contact {
  border: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.62);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.58) inset;
}

.proof-card,
.stack-card,
.product-card,
.timeline-item {
  min-height: 17rem;
  padding: clamp(1.25rem, 2.4vw, 1.8rem);
}

.proof-card h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

.proof-card.dark {
  background: var(--charcoal);
}

.proof-card.dark h2 {
  color: var(--paper);
}

.proof-card.dark p,
.proof-card.dark .tag {
  color: rgba(255, 253, 246, 0.68);
}

.split {
  display: grid;
  grid-template-columns: 0.32fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}

.product-ladder {
  border-top: 1px solid var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 23rem;
}

.product-card.featured {
  color: var(--paper);
  background: var(--charcoal);
}

.product-card.featured h3,
.product-card.featured strong {
  color: var(--paper);
}

.product-card.featured p {
  color: rgba(255, 253, 246, 0.72);
}

.product-step {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.product-card strong {
  display: block;
  margin-top: 1rem;
  color: var(--ink);
  line-height: 1.45;
}

.split-content p {
  max-width: 50rem;
  color: #3f4842;
  font-size: 1.08rem;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  min-height: 4.4rem;
  padding: 1rem 1rem 1rem 2.7rem;
  border: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.56);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 1rem;
  top: 1.18rem;
  width: 0.75rem;
  height: 0.75rem;
  content: "";
  background: var(--copper);
}

.stack-section,
.process,
.deliverables,
.starter-kit {
  border-top: 1px solid var(--line);
}

.section-title {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stack-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 15rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.76), rgba(236, 231, 220, 0.58));
}

.stack-card h3::before {
  display: block;
  width: 2rem;
  height: 1px;
  margin-bottom: 1rem;
  content: "";
  background: var(--copper);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-item {
  min-height: 16rem;
}

.timeline-item span {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.2rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--panel-soft);
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 25rem;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  margin-bottom: 3rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(23, 27, 25, 0.045), transparent 45%),
    rgba(255, 253, 246, 0.66);
}

.deliverables-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.58);
}

.deliverables-list span {
  min-height: 6rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #3f4842;
  font-weight: 700;
  line-height: 1.35;
}

.deliverables-list span:nth-child(4n) {
  border-right: 0;
}

.deliverables-list span:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.contact-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.contact-card strong {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.28rem;
}

.contact-card p {
  margin-top: 0;
}

.contact-note {
  color: var(--quiet);
  font-size: 0.88rem;
  line-height: 1.45;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.2rem, 4vw, 4.5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

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

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .language-switch {
    margin-left: 0;
    flex: 0 0 auto;
  }

  .hero,
  .split,
  .section-title,
  .contact {
    grid-template-columns: 1fr;
  }

  .proof-grid,
  .stack-grid,
  .timeline,
  .product-grid,
  .deliverables-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .trust-strip span {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .section {
    width: min(100% - 1rem, 1180px);
    padding: 3rem 0;
  }

  .hero {
    padding-top: 2.5rem;
  }

  h1 {
    max-width: 11ch;
  }

  .hero-metrics,
  .proof-grid,
  .stack-grid,
  .timeline,
  .product-grid,
  .check-list,
  .trust-strip,
  .deliverables-list {
    grid-template-columns: 1fr;
  }

  .deliverables-list span,
  .deliverables-list span:nth-child(4n),
  .deliverables-list span:nth-last-child(-n + 4) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .deliverables-list span:last-child {
    border-bottom: 0;
  }

  .hero-metrics div + div,
  .trust-strip span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .map-toolchain {
    grid-template-columns: 1fr 1fr;
  }

  .map-lanes div {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-lanes b {
    text-align: left;
  }

  .footer {
    flex-direction: column;
  }
}
