:root {
  color-scheme: dark;
  --bg: #05050f;
  --panel: rgba(12, 20, 38, 0.78);
  --line: rgba(95, 118, 158, 0.34);
  --line-strong: rgba(0, 240, 255, 0.34);
  --text: #f2f7ff;
  --muted: #90a4c6;
  --accent: #00f0ff;
  --accent-soft: rgba(0, 240, 255, 0.14);
  --good: #36d98f;
  --warn: #ffbe4d;
  --bad: #ff6b7a;
  --glow: 0 0 30px rgba(0, 240, 255, 0.18);
  --shadow: 0 24px 80px rgba(2, 4, 10, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Bahnschrift", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 240, 255, 0.12), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(68, 112, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #05050f 0%, #08101c 48%, #05050f 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 10, 20, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(0, 240, 255, 0.22), rgba(0, 240, 255, 0.05)),
    rgba(8, 17, 30, 0.85);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: var(--glow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.topnav a {
  color: var(--muted);
  font-size: 13px;
  transition: color 180ms ease;
}

.topnav a:hover {
  color: var(--accent);
}

.hero-section,
.section,
.footer {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(11, 18, 33, 0.9), rgba(9, 14, 24, 0.78)),
    rgba(8, 14, 27, 0.86);
  box-shadow: var(--shadow);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 32px;
  padding: 44px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.footer-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section-heading h2,
.footer-copy h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.hero-text,
.section-heading p,
.footer-copy p,
.layer-copy p,
.innovation-card p,
.partner-card p,
.science-card p,
.contact-card a,
.contact-card span,
.resource-card strong,
.recommendation-card p,
.form-status,
.lead-form label,
.lead-form input,
.lead-form select,
.lead-form textarea {
  color: var(--muted);
  line-height: 1.6;
}

.hero-text {
  max-width: 700px;
  margin: 22px 0 0;
  font-size: 17px;
}

.hero-actions,
.hero-tags,
.demo-toolbar,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #5be7ff 100%);
  color: #05111b;
  box-shadow: var(--glow);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(0, 240, 255, 0.06);
  color: var(--text);
}

.hero-tags {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero-tags li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #c9d5eb;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(0, 240, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(4, 9, 18, 0.94), rgba(6, 11, 19, 0.8));
  overflow: hidden;
}

.lattice-canvas,
.visual-grid {
  position: absolute;
  inset: 0;
}

.lattice-canvas {
  z-index: 0;
  opacity: 0.92;
}

.visual-grid {
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85) 16%, #000 80%, transparent);
}

.lattice-badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: 16px;
  background: rgba(7, 14, 28, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--glow);
}

.lattice-badge span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.lattice-badge strong {
  font-size: 14px;
  line-height: 1.25;
}

.substation-card {
  position: absolute;
  z-index: 3;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(10, 20, 35, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--glow);
}

.card-label,
.aside-label,
.metric-card span,
.layer-copy span,
.contact-card span,
.resource-card span,
.recommendation-card span {
  display: inline-block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.substation-core {
  top: 24%;
  left: 16%;
  width: 62%;
  padding: 22px;
}

.substation-core strong,
.substation-node strong,
.metric-card strong,
.innovation-card h3,
.partner-logo,
.science-card h3,
.contact-card strong,
.resource-card strong,
.demo-panel h3 {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.substation-core p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.substation-node {
  width: 200px;
  padding: 16px 18px;
}

.node-left {
  left: 6%;
  bottom: 13%;
}

.node-right {
  right: 7%;
  top: 15%;
}

.substation-node strong {
  font-size: 18px;
}

.shield-ring {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 50%;
}

.shield-ring-outer {
  inset: 10%;
  box-shadow: inset 0 0 32px rgba(0, 240, 255, 0.06);
}

.shield-ring-inner {
  inset: 22%;
}

.energy-lines span {
  position: absolute;
  z-index: 2;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.85), transparent);
}

.energy-lines span:nth-child(1) {
  top: 26%;
  left: 0;
  width: 100%;
}

.energy-lines span:nth-child(2) {
  top: 60%;
  left: 8%;
  width: 78%;
}

.energy-lines span:nth-child(3) {
  top: 76%;
  left: 18%;
  width: 52%;
}

.section,
.footer {
  margin-top: 18px;
  padding: 34px;
}

.section-heading {
  max-width: 900px;
}

.section-heading p {
  margin: 16px 0 0;
  font-size: 16px;
}

.threat-layout,
.architecture-shell,
.science-layout,
.demo-grid,
.footer-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.threat-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
}

.threat-stage,
.metric-card,
.layer-card,
.aside-panel,
.innovation-card,
.partner-card,
.science-card,
.contact-card,
.resource-card,
.demo-panel,
.recommendation-card,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(14, 23, 40, 0.86), rgba(9, 15, 26, 0.92)),
    rgba(9, 15, 26, 0.9);
}

.threat-stage,
.metric-card,
.innovation-card,
.partner-card,
.science-card,
.contact-card,
.resource-card,
.demo-panel,
.recommendation-card,
.lead-form {
  padding: 22px;
}

.threat-stage-head strong {
  font-size: 28px;
  line-height: 1.12;
}

.threat-stage-head span {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.threat-timeline {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.timeline-point {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.timeline-point span,
.layer-index,
.roadmap-period {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.timeline-point p,
.metric-card p,
.aside-panel p,
.recommendation-card p {
  margin: 0;
}

.metric-grid,
.demo-metrics,
.innovation-grid,
.partner-grid,
.contact-grid,
.recommendation-list,
.form-grid {
  display: grid;
  gap: 16px;
}

.metric-card strong {
  font-size: 28px;
}

.metric-card.compact strong {
  font-size: 24px;
}

.metric-card p {
  margin-top: 12px;
}

.architecture-shell {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.architecture-stack,
.architecture-aside,
.roadmap-list {
  display: grid;
  gap: 14px;
}

.layer-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 18px;
}

.layer-copy h3,
.aside-panel h3,
.roadmap-item h3 {
  margin: 10px 0 8px;
  font-size: 24px;
}

.innovation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.innovation-card {
  position: relative;
  overflow: hidden;
}

.innovation-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.18), transparent 70%);
}

.partner-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.partner-logo {
  font-size: 26px;
}

.demo-toolbar {
  margin-top: 24px;
}

.resource-card {
  flex: 1 1 220px;
}

.resource-card strong {
  font-size: 18px;
}

.demo-alert {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 107, 122, 0.3);
  border-radius: 18px;
  background: rgba(255, 107, 122, 0.08);
  color: #ffd6dc;
}

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

.demo-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.demo-panel table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.demo-panel th,
.demo-panel td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

.demo-panel th {
  color: var(--muted);
  font-weight: 700;
}

.demo-panel tr:last-child td {
  border-bottom: none;
}

.qber-good {
  color: var(--good);
  font-weight: 800;
}

.qber-warn {
  color: var(--warn);
  font-weight: 800;
}

.qber-bad {
  color: var(--bad);
  font-weight: 800;
}

.recommendation-list {
  margin-top: 14px;
}

.science-layout {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.plain-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #dce6f9;
  line-height: 1.7;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 16px;
  align-items: start;
}

.roadmap-period {
  min-height: 56px;
  padding: 0 12px;
}

.footer-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
}

.contact-grid {
  grid-template-columns: 1fr;
}

.contact-card a {
  display: inline-block;
  margin-top: 12px;
  color: #d7f7ff;
}

.lead-form {
  display: grid;
  gap: 18px;
}

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

.lead-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

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

.form-message {
  grid-column: 1 / -1;
}

.form-actions {
  align-items: center;
  justify-content: space-between;
}

.form-status {
  margin: 0;
  font-size: 13px;
}

.form-status.success {
  color: var(--good);
}

.form-status.error {
  color: var(--bad);
}

@media (max-width: 1120px) {
  .hero-section,
  .threat-layout,
  .architecture-shell,
  .science-layout,
  .demo-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 460px;
  }

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

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
  }

  .topbar,
  .hero-section,
  .section,
  .footer {
    padding: 20px;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    justify-content: flex-start;
  }

  .hero-copy h1,
  .section-heading h2,
  .footer-copy h2 {
    font-size: clamp(30px, 9vw, 48px);
  }

  .innovation-grid,
  .demo-metrics,
  .partner-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .layer-card,
  .roadmap-item {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .lattice-badge {
    right: 16px;
    bottom: 16px;
  }

  .substation-core {
    left: 8%;
    width: 76%;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .hero-tags,
  .demo-toolbar,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
  }

  .lattice-badge {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .substation-core {
    top: 19%;
    left: 7%;
    width: 86%;
  }

  .substation-node {
    width: 170px;
    padding: 14px;
  }

  .node-left {
    left: 4%;
    bottom: 8%;
  }

  .node-right {
    right: 4%;
    top: 12%;
  }
}
