:root {
  color-scheme: dark light;
  --ink: #081014;
  --ink-2: #0d181d;
  --panel: #101d22;
  --panel-2: #15252b;
  --paper: #f4f1ea;
  --paper-2: #e8e3d8;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(8, 16, 20, 0.14);
  --text-dark: #eef5f2;
  --muted-dark: #afbbb7;
  --text-light: #101a1e;
  --muted-light: #56615e;
  --teal: #2fb8a2;
  --teal-2: #8be2d4;
  --amber: #d79a3a;
  --red: #c75d59;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-dark);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 4px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  color: var(--text-dark);
  background: rgba(8, 16, 20, 0.74);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  font-weight: 700;
  font-size: 1rem;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(139, 226, 212, 0.7);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 45%, rgba(139, 226, 212, 0.9) 46% 54%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(215, 154, 58, 0.85) 46% 54%, transparent 55%),
    radial-gradient(circle at center, var(--teal) 0 16%, transparent 17%);
  box-shadow: 0 0 26px rgba(47, 184, 162, 0.38);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  font-size: 0.88rem;
  color: rgba(238, 245, 242, 0.82);
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--white);
  border-color: var(--teal-2);
}

.section {
  padding: clamp(70px, 10vw, 118px) clamp(18px, 4vw, 48px);
}

.section-light {
  background: var(--paper);
  color: var(--text-light);
}

.section-warm {
  background: #ebe5d8;
  color: var(--text-light);
}

.section-ink,
.section-dark {
  background: var(--ink);
  color: var(--text-dark);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(18px, 4vw, 48px) 80px;
}

.hero-bg,
.hero-bg img,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.04);
  transform: translate(var(--hero-x, 0), var(--hero-y, 0)) scale(1.02);
  transition: transform 220ms ease-out;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(8, 16, 20, 0.94), rgba(8, 16, 20, 0.74) 32%, rgba(8, 16, 20, 0.34) 64%, rgba(8, 16, 20, 0.72)),
    linear-gradient(0deg, rgba(8, 16, 20, 0.88), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding-top: 24px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal-2);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-light .eyebrow,
.section-warm .eyebrow {
  color: #047d72;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 6.75vw, 5.85rem);
  font-weight: 820;
}

.scale-word-wrap {
  position: relative;
  display: inline-grid;
  font: inherit;
  line-height: inherit;
  width: 11ch;
  height: 1em;
  overflow: hidden;
  vertical-align: -0.09em;
}

.scale-word {
  grid-area: 1 / 1;
  font: inherit;
  line-height: inherit;
  color: var(--teal-2);
  text-shadow: 0 0 34px rgba(139, 226, 212, 0.34);
  transform: translateY(112%);
  animation: scale-word-cycle 8s cubic-bezier(0.76, 0, 0.24, 1) infinite;
  animation-delay: -0.35s;
}

.scale-word:nth-child(2) {
  animation-delay: 2s;
}

.scale-word:nth-child(3) {
  animation-delay: 4s;
}

.scale-word:nth-child(4) {
  animation-delay: 6s;
}

@keyframes scale-word-cycle {
  0% {
    opacity: 0;
    transform: translateY(112%);
  }

  5%,
  23% {
    opacity: 1;
    transform: translateY(0);
  }

  28%,
  100% {
    opacity: 0;
    transform: translateY(-112%);
  }
}

h2 {
  max-width: 860px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 780;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.16;
}

.hero-copy,
.section-heading p,
.closing p {
  max-width: 700px;
  color: rgba(238, 245, 242, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.section-light .section-heading p,
.section-warm .section-heading p,
.qa-copy p {
  color: var(--muted-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--teal);
  color: #041112;
  box-shadow: 0 14px 40px rgba(47, 184, 162, 0.28);
}

.button-secondary {
  color: var(--text-dark);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
}

.section-light .button-secondary,
.section-warm .button-secondary {
  color: var(--text-light);
  border-color: var(--line-light);
  background: rgba(8, 16, 20, 0.04);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(660px, 100%);
  margin-top: 46px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.hero-metrics div {
  min-width: 0;
  padding: 18px;
  background: rgba(10, 23, 28, 0.78);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1;
}

.hero-metrics span {
  display: block;
  color: var(--muted-dark);
  font-size: 0.82rem;
  line-height: 1.35;
}

.section-heading {
  width: min(var(--max), 100%);
  margin: 0 auto clamp(34px, 5vw, 60px);
  text-align: center;
}

.align-left {
  margin-left: 0;
  text-align: left;
}

.comparison-grid,
.layer-stack,
.use-case-grid,
.split-layout,
.governance-layout,
.qa-card {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.comparison-grid article,
.layer-card,
.use-case-grid article,
.proof-grid article {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.44);
}

.comparison-grid article {
  padding: clamp(24px, 3.2vw, 42px);
}

.comparison-grid .highlight-panel {
  color: var(--text-dark);
  border-color: rgba(47, 184, 162, 0.42);
  background:
    linear-gradient(135deg, rgba(12, 35, 39, 0.96), rgba(9, 23, 28, 0.98)),
    var(--panel);
  box-shadow: var(--shadow);
}

.comparison-grid ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comparison-grid li {
  position: relative;
  padding-left: 20px;
  color: inherit;
}

.comparison-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.highlight-panel li::before {
  background: var(--teal-2);
}

.layer-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.layer-card {
  min-height: 260px;
  padding: 26px;
  border: 0;
  color: var(--text-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.layer-card span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
}

.layer-card p,
.use-case-grid p,
.proof-grid span,
.governance-list p,
.site-footer {
  color: var(--muted-dark);
}

.split-layout,
.governance-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

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

.proof-grid article {
  min-height: 160px;
  padding: 22px;
}

.proof-grid strong {
  display: block;
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 1.05rem;
}

.proof-grid span {
  color: var(--muted-light);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.use-case-grid article {
  min-height: 220px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.use-case-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 184, 162, 0.48);
  background: rgba(255, 255, 255, 0.72);
}

.governance-list {
  display: grid;
  gap: 14px;
}

.governance-list div {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--panel);
}

.governance-list p {
  margin-bottom: 0;
}

.rule-dot {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border: 2px solid var(--teal-2);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(47, 184, 162, 0.08);
}

.qa-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 60px rgba(8, 16, 20, 0.12);
}

.qa-copy .button {
  margin-top: 14px;
}

.qa-figure {
  margin: 0;
}

.qa-figure img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.closing {
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(47, 184, 162, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 184, 162, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, black 28%, black 72%, transparent);
  opacity: 0.32;
}

.closing-inner {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  margin: 0 auto;
  text-align: center;
}

.closing .hero-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line-dark);
  background: #050b0e;
  font-size: 0.88rem;
}

.site-footer span:first-child {
  color: var(--white);
  font-weight: 800;
}

.site-footer a {
  color: var(--teal-2);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: transform 500ms ease, border-color 180ms ease, background 180ms ease;
}

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

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

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
  }

  .comparison-grid,
  .split-layout,
  .governance-layout,
  .qa-card {
    grid-template-columns: 1fr;
  }

  .layer-stack,
  .use-case-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .site-header {
    position: sticky;
    padding: 12px 16px;
    background: rgba(8, 16, 20, 0.94);
  }

  .brand {
    min-height: 34px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 86vh;
    padding: 78px 18px 48px;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(8, 16, 20, 0.96), rgba(8, 16, 20, 0.82)),
      linear-gradient(0deg, rgba(8, 16, 20, 0.9), transparent 48%);
  }

  .hero-bg img {
    object-position: 55% center;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .hero-copy,
  .section-heading p,
  .closing p {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .layer-stack,
  .use-case-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .layer-card,
  .use-case-grid article {
    min-height: auto;
  }

  .layer-card span {
    margin-bottom: 24px;
  }

  .qa-card {
    padding: 18px;
  }
}

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

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

  .scale-word {
    animation: none !important;
    opacity: 0;
    transform: none;
  }

  .scale-word:first-child {
    opacity: 1;
  }
}
