:root {
  --bg-0: #0a0b10;
  --bg-1: #0e1320;
  --bg-2: #111a2a;
  --panel: rgba(10, 14, 21, 0.82);
  --panel-strong: rgba(7, 10, 16, 0.92);
  --line: rgba(0, 229, 255, 0.24);
  --signal: #00e5ff;
  --signal-soft: rgba(0, 229, 255, 0.22);
  --amber: #ffb020;
  --text: #e2e8f0;
  --muted: #9aa8bc;
  --maxw: 1120px;
  --radius: 2px;
  --shadow: 0 18px 60px rgba(3, 10, 15, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: "Suisse Intl", "Neue Haas Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  background:
    radial-gradient(180% 150% at 88% -12%, rgba(0, 229, 255, 0.16) 0%, transparent 58%),
    radial-gradient(110% 86% at 5% 8%, rgba(255, 176, 32, 0.12) 0%, transparent 53%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 48%, var(--bg-2) 100%);
  overflow-x: hidden;
}

body.motion-reading {
  --line: rgba(0, 229, 255, 0.12);
  --signal-soft: rgba(0, 229, 255, 0.1);
}

body.motion-reading .netlist-layer {
  opacity: 0.06;
  animation-duration: 48s;
}

body.motion-idle .netlist-layer {
  opacity: 0.03;
  animation-play-state: paused;
}

.visual-stack {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.visual-stack canvas,
.netlist-layer,
.grain-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.netlist-layer {
  z-index: 1;
  padding: 7vh 3.5vw;
  color: rgba(0, 229, 255, 0.1);
  font-family: "IBM Plex Mono", "SFMono-Regular", "Consolas", "Menlo", monospace;
  font-size: clamp(0.58rem, 0.9vw, 0.78rem);
  letter-spacing: 0.12em;
  line-height: 2.2;
  white-space: pre-wrap;
  text-transform: uppercase;
  mix-blend-mode: screen;
  animation: netlist-flow 36s linear infinite;
}

.grain-layer {
  z-index: 3;
  opacity: 0.13;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.08) 0.6px, transparent 0.6px),
    radial-gradient(rgba(255, 255, 255, 0.05) 0.5px, transparent 0.5px);
  background-size: 4px 4px, 7px 7px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: soft-light;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  width: min(var(--maxw), calc(100% - 2.2rem));
  margin: 0 auto;
  padding: 1rem 0.1rem;
  backdrop-filter: blur(8px);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

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

.nav-link {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  padding: 0.45rem 0.62rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: var(--text);
  border-color: rgba(0, 229, 255, 0.34);
  background: rgba(0, 229, 255, 0.08);
  outline: none;
}

.breadcrumb {
  width: min(var(--maxw), calc(100% - 2.2rem));
  margin: 0.1rem auto 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--text);
  border-bottom-color: rgba(0, 229, 255, 0.42);
  outline: none;
}

.header-cta,
.footer-cta,
.main-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--signal) 52%, transparent);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.82rem 1.15rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(21, 39, 52, 0.7), rgba(17, 27, 36, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.header-cta:hover,
.footer-cta:hover,
.main-cta:hover,
.header-cta:focus-visible,
.footer-cta:focus-visible,
.main-cta:focus-visible {
  border-color: var(--amber);
  transform: translateY(-1px);
  outline: none;
}

main {
  width: min(var(--maxw), calc(100% - 2.2rem));
  margin: 2.5rem auto 6rem;
}

section {
  position: relative;
  margin: 0 0 3.2rem;
  scroll-margin-top: 5.2rem;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: linear-gradient(160deg, var(--panel), rgba(9, 14, 21, 0.62));
  box-shadow: var(--shadow);
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid rgba(255, 255, 255, 0.03);
}

.section-inner {
  position: relative;
  z-index: 2;
  padding: clamp(1.3rem, 3vw, 2.6rem);
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Tiempos Headline", "Ivar Display", "Bodoni Moda", "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: 0.01em;
  font-weight: 500;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(2rem, 6vw, 4.8rem);
  max-width: 18ch;
}

.hero-sub {
  margin-top: 1.2rem;
  max-width: 78ch;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  line-height: 1.55;
  font-size: clamp(1rem, 2.2vw, 1.16rem);
}

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

.section-title {
  margin-top: 0.78rem;
  font-size: clamp(1.4rem, 4vw, 2.7rem);
  max-width: 24ch;
}

.section-sub {
  margin: 0.95rem 0 0;
  line-height: 1.62;
  color: color-mix(in srgb, var(--text) 85%, var(--muted));
  max-width: 74ch;
}

.module-grid,
.metric-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module,
.metric-card {
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: linear-gradient(145deg, rgba(7, 12, 18, 0.88), rgba(14, 23, 35, 0.67));
  padding: 1rem;
}

.module h3,
.metric-range {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--text) 92%, var(--signal));
}

.module p,
.metric-card p {
  margin: 0.8rem 0 0;
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  line-height: 1.55;
}

.trust-layer {
  border-color: rgba(255, 176, 32, 0.3);
  background: linear-gradient(150deg, rgba(16, 14, 9, 0.74), rgba(10, 16, 25, 0.75));
}

.support-lines {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.support-lines li {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.related-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.55rem 0.7rem;
  flex-wrap: wrap;
}

.related-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
  text-decoration: none;
  font-size: 0.79rem;
  line-height: 1.4;
  padding: 0.34rem 0.5rem;
  background: rgba(6, 12, 20, 0.42);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.related-link:hover,
.related-link:focus-visible {
  border-color: rgba(255, 176, 32, 0.62);
  color: var(--text);
  background: rgba(18, 24, 34, 0.75);
  outline: none;
}

.entity-grid,
.faq-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.95rem;
}

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

.entity-card,
.faq-item {
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: linear-gradient(145deg, rgba(7, 12, 18, 0.88), rgba(14, 23, 35, 0.67));
  padding: 1rem;
}

.entity-card h3,
.faq-question {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--text) 92%, var(--signal));
}

.entity-card p {
  margin: 0.8rem 0 0;
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  line-height: 1.55;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--text) 92%, var(--signal));
  cursor: pointer;
  padding: 1rem;
  text-align: left;
}

.faq-question:hover,
.faq-question:focus-visible {
  background: rgba(0, 229, 255, 0.06);
  outline: none;
}

.faq-answer {
  padding: 0 1rem 1rem;
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

.faq-item:not(.is-open) .faq-answer {
  display: none;
}

.support-lines li::before {
  content: "◦ ";
  color: var(--amber);
}

.site-footer {
  width: min(var(--maxw), calc(100% - 2.2rem));
  margin: 0 auto 2.6rem;
  padding: 1.8rem;
  border: 1px solid rgba(0, 229, 255, 0.23);
  background: linear-gradient(160deg, var(--panel-strong), rgba(8, 16, 23, 0.95));
  box-shadow: var(--shadow);
}

.footer-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
}

.site-footer p {
  margin: 0.9rem 0 1.1rem;
  color: color-mix(in srgb, var(--text) 86%, var(--muted));
  max-width: 66ch;
  line-height: 1.56;
}

.noscript-warning {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  border: 1px solid rgba(240, 172, 104, 0.45);
  background: rgba(25, 20, 15, 0.9);
  color: var(--text);
  padding: 0.9rem;
  font-size: 0.86rem;
}

@keyframes netlist-flow {
  0% {
    transform: translate3d(0, 4%, 0);
    opacity: 0.08;
  }
  50% {
    transform: translate3d(0, -5%, 0);
    opacity: 0.14;
  }
  100% {
    transform: translate3d(0, 4%, 0);
    opacity: 0.08;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.55rem;
  }

  .site-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 940px) {
  .module-grid,
  .metric-grid,
  .entity-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    width: calc(100% - 1.4rem);
  }

  .breadcrumb {
    width: calc(100% - 1.4rem);
  }

  main,
  .site-footer {
    width: calc(100% - 1.4rem);
  }
}

@media (max-width: 620px) {
  .header-cta {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 0.58rem 0.7rem;
  }

  .nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 0.38rem 0.46rem;
  }

  .section-inner {
    padding: 1.1rem;
  }

  h1 {
    font-size: clamp(1.7rem, 9.5vw, 2.6rem);
  }

  .section-title {
    font-size: clamp(1.25rem, 7.4vw, 1.8rem);
  }

  .netlist-layer {
    opacity: 0.06;
    font-size: 0.55rem;
  }
}

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

  .visual-stack {
    display: none;
  }
}

.contact-form {
  margin: 1.1rem 0;
  display: grid;
  gap: 0.52rem;
  max-width: 760px;
}

.form-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: rgba(6, 12, 20, 0.74);
  color: var(--text);
  padding: 0.72rem 0.78rem;
  border-radius: var(--radius);
  font: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(255, 176, 32, 0.15);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  width: fit-content;
}

.form-botcheck {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
