:root {
  --color-abyss: #0d121a;
  --color-harbor: #141b25;
  --color-iron: #2b3646;
  --color-fog: #e2e7ee;
  --color-fog-soft: rgba(226, 231, 238, 0.82);
  --color-fog-muted: rgba(226, 231, 238, 0.58);
  --color-signal: #d45535;
  --color-ember: #bb472f;
  --color-brass: #b8925e;
  --shadow-deep: 0 40px 90px rgba(3, 7, 14, 0.42);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-signal: rgba(212, 85, 53, 0.28);
  --max: 92rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-abyss);
  color: var(--color-fog);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(212, 85, 53, 0.14), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(184, 146, 94, 0.08), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 38%),
    linear-gradient(180deg, #0a0f16 0%, #0d121a 100%);
  color: var(--color-fog);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 7rem, 7rem 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
  opacity: 0.22;
  z-index: -1;
}

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

button,
a {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 30;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-signal);
  background: rgba(212, 85, 53, 0.12);
  color: white;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 1rem auto 0;
  width: min(calc(100% - 2rem), var(--max));
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(12, 17, 24, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-deep);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 85, 53, 0.55), transparent);
}

.topbar-inner {
  display: grid;
  gap: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-signal);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand-copy {
  display: grid;
  gap: 0.18rem;
}

.eyebrow,
.panel-label,
.signal-topline,
.card-code,
.route-node span,
.metric span {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--color-brass);
  font-size: 0.72rem;
}

.brand-copy strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: flex-start;
}

.nav a {
  border: 1px solid var(--border-soft);
  padding: 0.75rem 0.95rem;
  color: var(--color-fog-soft);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
}

.nav a:hover,
.nav a:focus-visible {
  border-color: rgba(184, 146, 94, 0.28);
  color: white;
  transform: translateY(-1px);
  outline: none;
}

.nav a[aria-current="page"] {
  border-color: rgba(212, 85, 53, 0.42);
  background: rgba(212, 85, 53, 0.08);
  color: white;
}

.nav .nav-cta {
  border: 1px solid var(--border-signal);
  background: linear-gradient(135deg, rgba(212, 85, 53, 0.13), rgba(212, 85, 53, 0.02));
  color: white;
}

main {
  padding-bottom: 5rem;
}

.hero,
.page-hero {
  display: grid;
  gap: 1rem;
  margin-top: 1.3rem;
}

.hero-copy,
.page-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(17, 23, 32, 0.85);
  box-shadow: var(--shadow-deep);
  min-height: 28rem;
  display: grid;
  align-content: space-between;
}

.hero-copy::before,
.page-copy::before {
  content: "";
  position: absolute;
  inset: -15% auto auto 58%;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212, 85, 53, 0.14), transparent 68%);
  pointer-events: none;
}

.hero-copy::after,
.page-copy::after {
  content: "";
  position: absolute;
  inset: 1rem 1rem auto auto;
  width: 9rem;
  height: 9rem;
  border-top: 1px solid rgba(184, 146, 94, 0.28);
  border-right: 1px solid rgba(184, 146, 94, 0.28);
  opacity: 0.55;
}

.kicker {
  position: relative;
  z-index: 1;
  color: var(--color-brass);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker .dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.7rem;
  background: var(--color-signal);
  vertical-align: middle;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  text-wrap: balance;
}

h1 {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  max-width: 8ch;
  font-size: clamp(3.4rem, 7.6vw, 8.1rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  color: white;
}

.hero-copy p,
.page-copy p,
.section-head p,
.card p,
.panel p,
.info-box p,
.footer p {
  color: var(--color-fog-soft);
}

.hero-copy > p,
.page-copy > p {
  max-width: 42rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.04rem;
  line-height: 1.92;
}

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

.button {
  display: inline-flex;
  min-height: 3.45rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, var(--color-ember), var(--color-signal));
  color: white;
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button:not(.button-primary) {
  border: 1px solid var(--border-soft);
  color: var(--color-fog-soft);
}

.button:not(.button-primary):hover,
.button:not(.button-primary):focus-visible {
  border-color: rgba(184, 146, 94, 0.28);
  color: white;
  transform: translateY(-1px);
  outline: none;
}

.hero-note {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.hero-note div {
  border: 1px solid rgba(212, 85, 53, 0.16);
  background:
    linear-gradient(180deg, rgba(212, 85, 53, 0.08), rgba(212, 85, 53, 0.02)),
    rgba(255, 255, 255, 0.02);
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  color: var(--color-fog-soft);
  line-height: 1.7;
}

.hero-note strong {
  color: white;
}

.signal-panel,
.panel,
.card,
.info-box,
.footer {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(17, 23, 32, 0.85);
  box-shadow: var(--shadow-deep);
}

.signal-panel,
.panel,
.card,
.info-box {
  padding: 1.3rem;
}

.signal-panel::after,
.panel::after,
.card::after,
.info-box::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 85, 53, 0.5), transparent 55%);
  opacity: 0.65;
}

.signal-topline,
.panel-label,
.card-code {
  color: var(--color-brass);
  font-size: 0.72rem;
}

.manifest-grid,
.stack-lines,
.feature-grid,
.three-col,
.dock,
.metrics,
.notice-grid,
.two-col,
.proof-grid,
.section,
.route-map {
  display: grid;
  gap: 1rem;
}

.manifest-card,
.stack-line,
.route-node,
.metric {
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(17, 23, 32, 0.85);
}

.manifest-card,
.route-node,
.metric,
.stack-line {
  padding: 1rem 1.05rem;
}

.manifest-card strong,
.card h3,
.panel h3,
.info-box h3 {
  display: block;
  margin-top: 0.7rem;
  color: white;
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.manifest-card p,
.card p,
.panel p,
.info-box p,
.footer p {
  margin: 0.75rem 0 0;
  font-size: 0.98rem;
  line-height: 1.85;
}

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

.route-node span,
.metric span {
  color: var(--color-brass);
  font-size: 0.72rem;
}

.route-node strong,
.metric strong {
  display: block;
  margin-top: 0.45rem;
  color: white;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.section {
  margin-top: 5rem;
}

.section-head {
  display: grid;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  max-width: 58rem;
  font-size: clamp(2.1rem, 4vw, 4.8rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
  color: white;
}

.section-head p {
  margin: 1rem 0 0;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.9;
}

.stack-grid {
  display: grid;
  gap: 1rem;
}

.stack-line {
  display: flex;
  gap: 1rem;
  align-items: start;
  color: var(--color-fog-soft);
  font-size: 0.96rem;
  line-height: 1.8;
}

.stack-line span {
  color: var(--color-signal);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  flex: 0 0 5.8rem;
}

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

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

.card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-height: 100%;
}

.card ul,
.panel ul,
.info-box ul {
  display: grid;
  gap: 0.9rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.card li,
.panel li,
.info-box li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--color-fog-soft);
  font-size: 0.96rem;
  line-height: 1.8;
}

.card li::before,
.panel li::before,
.info-box li::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.65rem;
  background: var(--color-signal);
}

.link-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  color: white;
  font-weight: 700;
}

.link-row::after {
  content: "→";
  color: var(--color-brass);
}

.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.3rem;
}

.metric {
  padding: 1rem;
}

.quote-box {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.footer {
  display: grid;
  gap: 1.2rem;
  margin-top: 4rem;
  padding: 1.8rem 1.4rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  max-width: 40rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.footer-links a {
  border: 1px solid var(--border-soft);
  padding: 0.75rem 0.95rem;
  color: var(--color-fog-soft);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  border-color: rgba(184, 146, 94, 0.28);
  color: white;
  transform: translateY(-1px);
  outline: none;
}

.error-grid {
  min-height: calc(100dvh - 6rem);
  display: grid;
  place-items: center;
  padding: 3rem 0 5rem;
}

.error-card {
  width: min(100%, 760px);
}

@media (min-width: 768px) {
  .topbar {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.2rem 1.4rem;
  }

  .nav {
    justify-content: flex-end;
  }

  .footer {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(22rem, 0.7fr);
    align-items: stretch;
  }

  .page-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: stretch;
  }

  .stack-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.9fr) minmax(0, 0.78fr);
    align-items: stretch;
  }

  .two-col,
  .proof-grid,
  .notice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

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

@media (max-width: 1099px) {
  .hero,
  .page-hero,
  .stack-grid,
  .two-col,
  .proof-grid,
  .notice-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .three-col,
  .dock,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .topbar {
    position: static;
  }

  .feature-grid,
  .three-col,
  .dock,
  .route-map,
  .metrics {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .stack-line {
    display: grid;
  }

  .stack-line span {
    flex: none;
  }
}
