:root {
  --snow: #f2f5f8;
  --snow-2: #e6ecf1;
  --paper: #ffffff;
  --ink: #121820;
  --ink-soft: #4a5563;
  --muted: #7a8794;
  --ice: #0d9488;
  --ice-deep: #0f766e;
  --ice-soft: rgba(13, 148, 136, 0.12);
  --frost: #38bdf8;
  --frost-soft: rgba(56, 189, 248, 0.14);
  --slate: #334155;
  --line: #d5dde5;
  --shadow: 0 12px 40px rgba(18, 24, 32, 0.08);
  --radius: 6px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1120px;
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--snow);
  color: var(--ink);
  line-height: 1.65;
}

/* Blueprint grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

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

address {
  font-style: normal;
  color: var(--ink-soft);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Top bar — mono technical */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(242, 245, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.logo span {
  color: var(--ice);
}

.nav {
  display: flex;
  gap: 0.15rem;
}

.nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  background: var(--snow-2);
}

.header__end {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn--ice {
  background: var(--ice);
  color: #fff;
  box-shadow: 0 4px 16px var(--ice-soft);
}

.btn--ice:hover {
  background: var(--ice-deep);
}

.btn--wire {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn--wire:hover {
  background: var(--ink);
  color: #fff;
}

.btn--lg {
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.nav--mobile {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1rem 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s, opacity 0.3s;
}

.nav--mobile.open {
  max-height: 360px;
  opacity: 1;
}

.nav--mobile a {
  padding: 0.7rem 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.nav--mobile a.active {
  color: var(--ice);
}

/* Hero — stacked: label strip + headline row + lattice */
.hero {
  padding: 2.5rem 0 4rem;
}

.hero__rail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero__rail::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--ice);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--ice);
  border-bottom: 3px solid var(--frost);
}

.hero__text {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 42ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Opportunity Lattice */
.lattice {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lattice__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lattice__bar i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--ice);
  border-radius: 1px;
  margin-right: 0.4rem;
  animation: blink 1.8s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.lattice__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.cell {
  background: var(--paper);
  padding: 1rem 0.85rem;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.3s;
  animation: cell-in 0.5s ease backwards;
}

.cell:nth-child(1) { animation-delay: 0.05s; }
.cell:nth-child(2) { animation-delay: 0.12s; }
.cell:nth-child(3) { animation-delay: 0.19s; }
.cell:nth-child(4) { animation-delay: 0.26s; }
.cell:nth-child(5) { animation-delay: 0.33s; }
.cell:nth-child(6) { animation-delay: 0.4s; }

@keyframes cell-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

.cell:hover {
  background: var(--ice-soft);
}

.cell--hot {
  background: linear-gradient(160deg, var(--ice-soft), var(--frost-soft));
}

.cell__name {
  font-size: 0.8rem;
  font-weight: 700;
}

.cell__meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cell__tag {
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  background: var(--snow-2);
  color: var(--slate);
}

.cell--hot .cell__tag {
  background: var(--ice);
  color: #fff;
}

/* Strip sections — full-bleed alternating */
.strip {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

.strip--ink {
  background: var(--ink);
  color: #fff;
  border-top: none;
}

.strip--ink .eyebrow {
  color: var(--frost);
}

.strip--ink .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

.strip--paper {
  background: var(--paper);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ice);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-desc {
  color: var(--ink-soft);
  margin-top: 0.75rem;
  max-width: 48ch;
}

/* Stacked feature rows — text left, wireframe right alternating */
.stack-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid var(--line);
  margin-top: 2rem;
  background: var(--paper);
}

.stack-row + .stack-row {
  border-top: none;
}

.stack-row:nth-child(even) .stack-row__copy {
  order: 2;
}

.stack-row__copy {
  padding: 2.25rem;
  border-right: 1.5px solid var(--line);
}

.stack-row:nth-child(even) .stack-row__copy {
  border-right: none;
  border-left: 1.5px solid var(--line);
}

.stack-row__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ice);
  margin-bottom: 0.75rem;
}

.stack-row h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stack-row p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.stack-row__viz {
  padding: 1.5rem;
  display: grid;
  place-items: center;
  background: var(--snow);
  min-height: 160px;
}

.wire-box {
  width: 85%;
  border: 1.5px dashed var(--muted);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.wire-box strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.wire-line {
  height: 4px;
  background: var(--snow-2);
  margin-bottom: 0.4rem;
  border-radius: 2px;
  overflow: hidden;
}

.wire-line i {
  display: block;
  height: 100%;
  background: var(--ice);
  border-radius: 2px;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
}

.spec-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--snow-2);
  color: var(--muted);
  font-weight: 500;
}

.spec-table td:first-child {
  font-weight: 700;
  font-family: var(--font-display);
  width: 28%;
}

/* Process — numbered horizontal bars */
.process-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.process-bar {
  display: grid;
  grid-template-columns: 72px 1fr;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.process-bar:hover {
  border-color: var(--ice);
  transform: translateX(6px);
}

.process-bar__n {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.process-bar__body {
  padding: 1.15rem 1.35rem;
}

.process-bar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.process-bar p {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Feature list page — dense rows */
.feat-dense {
  border-top: 1.5px solid var(--ink);
}

.feat-dense-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.feat-dense-row__id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ice);
}

.feat-dense-row h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.feat-dense-row p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 55ch;
}

.feat-dense-row__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

/* Page hero */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-hero p {
  color: var(--ink-soft);
  margin-top: 0.65rem;
  max-width: 52ch;
}

/* CTA slab */
.cta-slab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2.25rem 2.5rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.cta-slab h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.cta-slab p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.cta-slab .btn--wire {
  border-color: #fff;
  color: #fff;
}

.cta-slab .btn--wire:hover {
  background: #fff;
  color: var(--ink);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item {
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-left: 3px solid var(--ice);
}

.info-item h3 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.info-item a:hover {
  color: var(--ice);
}

.form-panel {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 2rem;
  border-radius: var(--radius);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--snow);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ice);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Legal */
.legal {
  max-width: 700px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.6rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal a {
  color: var(--ice);
}

.list {
  list-style: none;
  margin-top: 1rem;
}

.list li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--ice);
  font-size: 0.75rem;
}

/* Footer */
.footer {
  border-top: 1.5px solid var(--ink);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  max-width: 28ch;
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.footer__col a {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.footer__col a:hover {
  color: var(--ice);
}

.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__links {
  display: flex;
  gap: 1.25rem;
}

.footer__links a:hover {
  color: var(--ink);
}

/* Reveal */
.reveal {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--up {
  transform: translateY(24px);
}

.reveal--skew {
  transform: translateY(20px) skewY(1.5deg);
}

.reveal--left {
  transform: translateX(-24px);
}

.reveal.on {
  opacity: 1;
  transform: none;
}

/* Cookie — bottom-left corner chip */
.cookie-chip {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 300;
  max-width: 320px;
  padding: 1.15rem 1.25rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  font-size: 0.8rem;
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
}

.cookie-chip.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-chip a {
  color: var(--frost);
}

.cookie-chip__btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.btn--dim {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* About signal */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.signal-cell {
  aspect-ratio: 1;
  background: var(--snow-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  animation: signal-pulse 2.4s ease infinite;
}

.signal-cell:nth-child(1) { animation-delay: 0s; background: var(--ice-soft); }
.signal-cell:nth-child(2) { animation-delay: 0.2s; }
.signal-cell:nth-child(3) { animation-delay: 0.4s; background: var(--frost-soft); }
.signal-cell:nth-child(4) { animation-delay: 0.6s; }
.signal-cell:nth-child(5) { animation-delay: 0.8s; }
.signal-cell:nth-child(6) { animation-delay: 1s; background: var(--ice-soft); }
.signal-cell:nth-child(7) { animation-delay: 1.2s; }
.signal-cell:nth-child(8) { animation-delay: 1.4s; background: var(--frost-soft); }

@keyframes signal-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Responsive */
@media (max-width: 900px) {
  .nav,
  .header__end .btn--wire {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .nav--mobile {
    display: flex;
  }

  .hero__layout,
  .stack-row,
  .stack-row:nth-child(even) .stack-row__copy,
  .contact-grid,
  .footer__grid,
  .split,
  .feat-dense-row {
    grid-template-columns: 1fr;
  }

  .stack-row:nth-child(even) .stack-row__copy {
    order: 0;
    border-left: none;
    border-right: none;
    border-bottom: 1.5px solid var(--line);
  }

  .stack-row__copy {
    border-right: none;
    border-bottom: 1.5px solid var(--line);
  }

  .feat-dense-row__tag {
    display: none;
  }

  .signal-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 280px;
  }
}

@media (max-width: 560px) {
  .lattice__grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-bar {
    grid-template-columns: 52px 1fr;
  }
}
