:root {
  --bg: #0a0a0c;
  --bg-2: #0e0f12;
  --surface: #141519;
  --surface-2: #1b1d23;
  --rule: #24262e;
  --rule-2: #33363f;
  --ink: #ece7da;
  --ink-2: #9a978c;
  --ink-3: #5f5e58;
  --amber: #e8a23d;
  --amber-pale: #f6cd86;
  --signal: #6fd0b4;
  --signal-dim: rgba(111, 208, 180, 0.14);
  --display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --body: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 32px;
}

.narrow {
  margin: 0 auto;
  max-width: 780px;
  padding: 0 32px;
}

.eyebrow,
.status,
.label,
.artifact-kicker {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

em {
  color: var(--amber);
  font-style: normal;
}

nav {
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 12, 0.78);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-row {
  align-items: center;
  display: flex;
  height: 62px;
  justify-content: space-between;
}

.brand {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
}

.brand .dot {
  color: var(--amber);
}

.nav-links {
  align-items: center;
  color: var(--ink-2);
  display: flex;
  font-family: var(--mono);
  font-size: 12px;
  gap: 22px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  border: 1px solid var(--rule-2);
  border-radius: 7px;
  color: var(--ink);
  padding: 7px 14px;
}

.nav-cta:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.product-hero {
  align-items: center;
  border-bottom: 1px solid var(--rule);
  display: flex;
  min-height: 72vh;
  overflow: hidden;
  position: relative;
}

.product-hero::after {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10, 10, 12, 0.78) 36%, rgba(10, 10, 12, 0.22) 72%, transparent),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-content {
  padding: 84px 0 72px;
  position: relative;
  z-index: 2;
}

.status {
  border: 1px solid rgba(232, 162, 61, 0.35);
  border-radius: 999px;
  display: inline-flex;
  letter-spacing: 0.12em;
  padding: 6px 10px;
}

.product-hero h1 {
  font-size: clamp(48px, 8vw, 92px);
  margin-top: 20px;
}

.hero-line {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(23px, 3.5vw, 40px);
  font-weight: 700;
  margin-top: 14px;
  max-width: 22ch;
}

.hero-copy {
  color: var(--ink-2);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.62;
  margin-top: 24px;
  max-width: 55ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.btn {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 13px;
  gap: 8px;
  padding: 12px 20px;
  transition: 0.18s;
}

.btn-primary {
  background: var(--amber);
  color: #1a1205;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--amber-pale);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--rule-2);
}

.btn-ghost:hover {
  border-color: var(--ink-2);
}

.hero-boundary {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11.5px;
  margin-top: 24px;
}

section {
  padding: 92px 0;
  position: relative;
}

.rule-top {
  border-top: 1px solid var(--rule);
}

.section-head {
  max-width: 66ch;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin-top: 14px;
}

.section-head p {
  color: var(--ink-2);
  font-size: 16.5px;
  margin-top: 17px;
}

.fact-grid,
.boundary-grid {
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 44px;
}

.fact,
.boundary-item {
  min-width: 0;
  padding: 27px 26px;
}

.fact + .fact,
.boundary-item + .boundary-item {
  border-left: 1px solid var(--rule);
}

.fact h3,
.boundary-item h3 {
  font-size: 19px;
  margin-top: 10px;
}

.fact p,
.boundary-item p {
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 9px;
}

.flow {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
}

.flow-step {
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  padding: 28px 24px;
  position: relative;
}

.flow-step + .flow-step {
  border-left: 1px solid var(--rule);
}

.flow-step:not(:last-child)::after {
  color: var(--amber);
  content: "\2192";
  font-family: var(--mono);
  position: absolute;
  right: -8px;
  top: 28px;
  z-index: 2;
}

.flow-step b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  margin-top: 10px;
}

.flow-step p {
  color: var(--ink-2);
  font-size: 13.5px;
  margin-top: 8px;
}

.artifact-stage {
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  padding: 58px 0;
}

.artifact-shell {
  background: #0d0e11;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  box-shadow: 0 28px 70px -38px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.artifact-toolbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  display: flex;
  font-family: var(--mono);
  font-size: 11px;
  justify-content: space-between;
  padding: 13px 17px;
}

.artifact-pass {
  color: var(--signal);
}

.artifact-body {
  display: grid;
  gap: 0;
  grid-template-columns: 1.2fr 0.8fr;
}

.artifact-code {
  color: #c8c4b9;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  padding: 28px;
}

.artifact-code .key {
  color: var(--amber-pale);
}

.artifact-code .value {
  color: var(--signal);
}

.artifact-checks {
  border-left: 1px solid var(--rule);
  padding: 25px;
}

.check-row {
  align-items: center;
  border-bottom: 1px solid var(--rule);
  display: flex;
  font-size: 13.5px;
  gap: 10px;
  padding: 12px 0;
}

.check-row::before {
  color: var(--signal);
  content: "\2713";
  font-family: var(--mono);
}

.media-stage {
  background: #0d0b0a;
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  overflow: hidden;
}

.media-stage img {
  background: #0d0b0a;
  display: block;
  height: min(58vh, 620px);
  object-fit: contain;
  width: 100%;
}

.media-caption {
  align-items: center;
  background: var(--bg-2);
  color: var(--ink-2);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  padding: 13px 20px;
}

.media-caption b {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
}

.gallery figure {
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}

.gallery img {
  background: #0d0b0a;
  display: block;
  height: 220px;
  object-fit: contain;
  width: 100%;
}

.gallery figcaption {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  padding: 10px 12px;
}

.closing {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  text-align: center;
}

.closing h2 {
  font-size: clamp(30px, 4.8vw, 54px);
}

.closing p {
  color: var(--ink-2);
  margin: 18px auto 0;
  max-width: 56ch;
}

.closing .cta-row {
  justify-content: center;
}

footer {
  border-top: 1px solid var(--rule);
  padding: 44px 0;
}

.foot-row {
  align-items: center;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  gap: 18px;
  justify-content: space-between;
}

.foot-row a:hover {
  color: var(--amber);
}

@media (max-width: 900px) {
  .nav-links {
    gap: 15px;
  }

  .fact-grid,
  .boundary-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .fact + .fact,
  .boundary-item + .boundary-item {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

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

  .flow-step:nth-child(3) {
    border-left: 0;
  }

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

  .artifact-checks {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 640px) {
  .container,
  .narrow {
    padding-left: 20px;
    padding-right: 20px;
  }

  .product-hero {
    min-height: 68vh;
  }

  .hero-content {
    padding: 64px 0 54px;
  }

  section {
    padding: 70px 0;
  }

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

  .flow-step + .flow-step {
    border-left: 0;
    border-top: 0;
  }

  .flow-step:not(:last-child)::after {
    bottom: -9px;
    content: "\2193";
    right: 22px;
    top: auto;
  }

  .media-stage img {
    height: 48vh;
  }

  .media-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .gallery img {
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
