:root {
  color-scheme: light;
  --bg: #f5f8fc;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --bg-strong: rgba(255, 255, 255, 0.9);
  --surface: #ffffff;
  --surface-muted: #edf3fb;
  --text: #0d1b2c;
  --text-soft: #5d7289;
  --text-faint: #7d90a4;
  --line: rgba(25, 67, 112, 0.12);
  --line-strong: rgba(32, 92, 156, 0.24);
  --accent: #0f7cda;
  --accent-soft: #6ac9ff;
  --accent-2: #13a9d8;
  --accent-3: #073a75;
  --success: #1aa56e;
  --danger: #eb5d5d;
  --shadow: 0 22px 60px rgba(12, 32, 56, 0.12);
  --shadow-soft: 0 18px 48px rgba(15, 34, 60, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1220px;
  --header-height: 86px;
  --grid-dot: rgba(70, 109, 152, 0.16);
  --bg-tint: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 42%);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08111d;
  --bg-elevated: rgba(9, 18, 31, 0.72);
  --bg-strong: rgba(9, 18, 31, 0.92);
  --surface: #0e1a2b;
  --surface-muted: #122239;
  --text: #edf7ff;
  --text-soft: #95abc2;
  --text-faint: #7389a1;
  --line: rgba(143, 189, 240, 0.12);
  --line-strong: rgba(110, 188, 255, 0.28);
  --accent: #7fd0ff;
  --accent-soft: #38d1ff;
  --accent-2: #1594d1;
  --accent-3: #d5efff;
  --success: #38d38a;
  --danger: #ff8484;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 14px 44px rgba(0, 0, 0, 0.24);
  --grid-dot: rgba(141, 177, 212, 0.16);
  --bg-tint: linear-gradient(180deg, rgba(15, 32, 53, 0.55), rgba(6, 14, 24, 0.1) 48%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(26, 121, 223, 0.18), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(19, 169, 216, 0.14), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(15, 124, 218, 0.11), transparent 26%),
    radial-gradient(var(--grid-dot) 0.85px, transparent 0.85px),
    var(--bg);
  background-size: auto, auto, auto, 26px 26px, auto;
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg-tint);
  pointer-events: none;
  z-index: -2;
}

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

button {
  font: inherit;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 108px 0;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(56px);
  pointer-events: none;
  z-index: -3;
}

.orb-a {
  top: 10vh;
  left: -80px;
  width: 280px;
  height: 280px;
  background: rgba(24, 150, 244, 0.1);
}

.orb-b {
  top: 44vh;
  right: -60px;
  width: 240px;
  height: 240px;
  background: rgba(19, 169, 216, 0.1);
}

.orb-c {
  bottom: -40px;
  left: 34%;
  width: 240px;
  height: 240px;
  background: rgba(15, 124, 218, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 18px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(15, 124, 218, 0.2);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-tag {
  font-size: 0.82rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(127, 208, 255, 0.12);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn,
.icon-btn {
  border: 0;
  cursor: pointer;
}

.lang-btn {
  min-width: 46px;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  transition: background-color 180ms ease, color 180ms ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, rgba(15, 124, 218, 0.18), rgba(106, 201, 255, 0.2));
  color: var(--text);
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.icon-btn svg {
  width: 21px;
  height: 21px;
}

.theme-icon {
  grid-area: 1 / 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

html[data-theme="dark"] .theme-sun,
html:not([data-theme="dark"]) .theme-moon {
  opacity: 0;
  transform: scale(0.8);
}

html[data-theme="dark"] .theme-moon,
html:not([data-theme="dark"]) .theme-sun {
  opacity: 1;
  transform: scale(1);
}

.mobile-only {
  display: none;
}

.mobile-panel {
  display: none;
  width: min(var(--container), calc(100% - 40px));
  margin: 14px auto 0;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-strong) 88%, transparent);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow-soft);
}

.mobile-panel.open {
  display: grid;
  gap: 6px;
}

.mobile-cta {
  margin-top: 10px;
}

.hero-section {
  padding-top: 54px;
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 540px);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 124, 218, 0.18);
  background: rgba(127, 208, 255, 0.1);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h1 {
  margin-top: 22px;
  font-size: clamp(3rem, 5.8vw, 6rem);
}

h1 span {
  color: var(--accent);
}

.hero-lead {
  margin-top: 24px;
  max-width: 62ch;
  font-size: 1.12rem;
  color: var(--text-soft);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

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

.btn-primary {
  color: #f7fbff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px rgba(15, 124, 218, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: var(--bg-strong);
  border-color: var(--line-strong);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.signal-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(26, 165, 110, 0.12);
}

.hero-visual {
  position: relative;
  min-height: 900px;
}

.glass-card {
  position: relative;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(28px) saturate(160%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
  opacity: 0.25;
}

.security-console {
  padding: 18px 18px 24px;
  margin-bottom: 280px;
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--text-faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.window-dots span:nth-child(1) { background: var(--danger); }
.window-dots span:nth-child(2) { background: #f4bd50; }
.window-dots span:nth-child(3) { background: var(--success); }

.console-grid {
  display: grid;
  gap: 10px;
}

.console-node {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 19, 32, 0.88), rgba(8, 16, 28, 0.74));
  border: 1px solid rgba(127, 208, 255, 0.14);
  color: #e7f4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html:not([data-theme="dark"]) .console-node {
  background: linear-gradient(180deg, rgba(10, 22, 39, 0.92), rgba(17, 35, 58, 0.82));
}

.console-node span:last-child {
  color: #93bad7;
  font-size: 0.88rem;
}

.console-step,
.window-label,
.panel-kicker,
.deliverable-tag,
.status-chip,
.stat-kicker {
  font-family: "JetBrains Mono", monospace;
}

.console-step {
  color: var(--accent-soft);
  font-size: 0.78rem;
}

.model-node {
  border-color: rgba(127, 208, 255, 0.3);
  background: linear-gradient(180deg, rgba(11, 29, 48, 0.96), rgba(10, 27, 45, 0.82));
}

.console-arrow {
  height: 20px;
  position: relative;
}

.console-arrow::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(127, 208, 255, 0.15), rgba(127, 208, 255, 0.65), rgba(127, 208, 255, 0.15));
}

.console-arrow::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(127, 208, 255, 0.65);
  border-bottom: 1px solid rgba(127, 208, 255, 0.65);
  transform: rotate(45deg);
}

.floating-card {
  animation: float-card 12s ease-in-out infinite;
}

.floating-stat {
  position: absolute;
  max-width: 230px;
  padding: 16px 18px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg-strong) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(150%);
  z-index: 2;
}

.floating-stat strong {
  display: block;
  margin-top: 8px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.stat-kicker {
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-stat-a {
  top: 38px;
  right: 12px;
  animation: float-card 10s ease-in-out infinite reverse;
}

.floating-stat-b {
  left: 44px;
  bottom: 22px;
  max-width: 310px;
  animation: float-card 9.5s ease-in-out infinite;
}

.section-heading {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.section-heading p {
  color: var(--text-soft);
  font-size: 1.04rem;
}

.card-grid {
  display: grid;
  gap: 20px;
}

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

.feature-card,
.invariant-card,
.platform-card {
  padding: 24px;
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.16));
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .invariant-card,
html[data-theme="dark"] .platform-card {
  background: linear-gradient(180deg, rgba(14, 26, 43, 0.74), rgba(11, 20, 34, 0.45));
}

.feature-card::before,
.invariant-card::before,
.platform-card::before,
.deliverable-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.feature-card h3,
.invariant-card h3,
.platform-card h3 {
  margin-bottom: 10px;
  font-size: 1.42rem;
}

.feature-card p,
.invariant-card p,
.platform-card p {
  color: var(--text-soft);
}

.feature-index {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 124, 218, 0.18), rgba(106, 201, 255, 0.2));
  color: var(--accent-3);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

html[data-theme="dark"] .feature-index {
  color: var(--text);
}

.pipeline-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.pipeline-sticky {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding: 24px;
}

.panel-kicker {
  margin-bottom: 16px;
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-index-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pipeline-index-list a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--text-soft);
  border: 1px solid transparent;
}

.pipeline-index-list a:hover {
  border-color: var(--line-strong);
  background: rgba(127, 208, 255, 0.08);
}

.layer-stack {
  display: grid;
  gap: 18px;
}

.layer-card {
  padding: 28px;
}

.layer-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.layer-number {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 124, 218, 0.18), rgba(106, 201, 255, 0.2));
  color: var(--accent-3);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  flex-shrink: 0;
}

html[data-theme="dark"] .layer-number {
  color: var(--text);
}

.layer-kicker {
  font-family: "JetBrains Mono", monospace;
  color: var(--text-faint);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layer-card p {
  color: var(--text-soft);
}

.layer-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.layer-specs div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.layer-specs span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "JetBrains Mono", monospace;
}

.layer-specs strong {
  font-size: 0.98rem;
  line-height: 1.45;
}

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

.proof-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 20px;
}

.proof-card,
.code-card,
.lock-card,
.repo-shell {
  padding: 24px;
}

.proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.proof-head h3 {
  font-size: 1.5rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(127, 208, 255, 0.14);
  border: 1px solid rgba(127, 208, 255, 0.18);
  color: var(--accent);
  font-size: 0.76rem;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.matrix-list {
  display: grid;
  gap: 12px;
}

.matrix-row {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.matrix-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.matrix-row p,
.proof-copy {
  color: var(--text-soft);
}

.code-card pre {
  margin: 18px 0 0;
  padding: 20px;
  overflow: auto;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(7, 17, 29, 0.98), rgba(10, 24, 40, 0.92));
  border: 1px solid rgba(127, 208, 255, 0.14);
  color: #e7f5ff;
  font-size: 0.88rem;
  line-height: 1.7;
  font-family: "JetBrains Mono", monospace;
}

.lock-points {
  padding-left: 18px;
  margin: 18px 0 0;
  color: var(--text-soft);
}

.lock-points li + li {
  margin-top: 10px;
}

.repo-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.95fr);
  gap: 24px;
}

.repo-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.repo-copy h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.repo-copy p {
  margin-top: 18px;
  color: var(--text-soft);
}

.repo-actions {
  margin-top: 26px;
}

.repo-grid {
  display: grid;
  gap: 16px;
}

.deliverable-card {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.deliverable-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.deliverable-tag {
  display: inline-flex;
  margin-bottom: 14px;
  font-size: 0.76rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deliverable-card h3 {
  margin-bottom: 8px;
  font-size: 1.38rem;
}

.deliverable-card p {
  color: var(--text-soft);
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 20px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.14rem;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 14px;
  color: var(--text-soft);
}

.site-footer {
  padding: 36px 0 56px;
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-title {
  font-weight: 700;
}

.footer-copy {
  margin-top: 10px;
  max-width: 720px;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: var(--text-soft);
}

html.js-ready .fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

html.js-ready .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-card {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }

  .mobile-only {
    display: inline-grid;
  }

  .hero-grid,
  .repo-shell,
  .pipeline-layout,
  .proof-grid,
  .problem-grid,
  .portability-grid,
  .invariants-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 0;
  }

  .floating-stat {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    margin-top: 16px;
    max-width: none;
  }

  .pipeline-sticky {
    position: relative;
    top: auto;
  }
}

@media (max-width: 820px) {
  .header-row {
    padding: 14px 16px;
  }

  .brand img {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-tag {
    display: none;
  }

  .section {
    padding: 88px 0;
  }

  .hero-section {
    padding-top: 34px;
  }

  .layer-card,
  .proof-card,
  .code-card,
  .lock-card,
  .repo-shell,
  .feature-card,
  .invariant-card,
  .platform-card,
  .faq-item {
    padding: 20px;
  }

  .layer-specs {
    grid-template-columns: 1fr;
  }

  .footer-row {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .site-header {
    padding-top: 12px;
  }

  .header-row {
    min-height: 74px;
    border-radius: 26px;
  }

  .lang-switch {
    display: none;
  }

  .hero-actions-row,
  .signal-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .signal-pill {
    width: 100%;
  }

  .security-console {
    padding: 16px;
  }

  .console-node {
    padding: 14px 16px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .proof-head,
  .layer-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  html.js-ready .fade-up,
  html.js-ready .fade-up.visible,
  .floating-card,
  .floating-stat {
    transition: none;
    animation: none;
    transform: none;
    opacity: 1;
  }
}
