:root {
  --ink: #10251f;
  --ink-soft: #435b53;
  --ink-faint: #6d8079;
  --paper: #f7f8f3;
  --paper-warm: #eef2e8;
  --white: #ffffff;
  --line: rgba(16, 37, 31, 0.13);
  --line-strong: rgba(16, 37, 31, 0.23);
  --green: #1e795d;
  --green-dark: #155843;
  --lime: #c8f06b;
  --lime-soft: #e6f8b6;
  --blue: #3973e6;
  --blue-soft: #dfe9ff;
  --orange: #f06a3c;
  --orange-soft: #ffe1d7;
  --violet: #7b65d6;
  --violet-soft: #e8e2ff;
  --shadow: 0 28px 80px rgba(36, 55, 47, 0.12);
  --shadow-soft: 0 12px 34px rgba(36, 55, 47, 0.08);
  --radius: 22px;
  --sans: Inter, "Avenir Next", "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --bg-primary: var(--paper);
  --bg-secondary: var(--paper-warm);
  --bg-tertiary: #e3e9df;
  --fg: var(--ink);
  --fg-dim: var(--ink-soft);
  --accent-cyan: var(--green);
  --accent-cyan-bright: var(--green-dark);
  --accent-cyan-alt: var(--blue);
  --accent-green: var(--green);
  --accent-yellow: #ad700f;
  --accent-red: #c74d39;
  --border: var(--line);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(57, 115, 230, 0.45);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s ease;
}

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

.page-shell,
.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Navigation */

.site-header,
body > nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
body > nav {
  border-color: var(--line);
  background: rgba(247, 248, 243, 0.88);
  box-shadow: 0 6px 30px rgba(28, 48, 40, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-shell,
body > nav .container {
  width: min(1240px, calc(100% - 48px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand,
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 760;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand em,
.nav-logo span {
  color: var(--green);
  font-style: normal;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  width: 17px;
  height: 1px;
  background: var(--ink-soft);
  transform-origin: left center;
}

.brand-mark::before { top: 11px; transform: rotate(27deg); }
.brand-mark::after { top: 20px; transform: rotate(-27deg); }

.brand-mark i {
  position: absolute;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.brand-mark i:nth-child(1) { top: 8px; left: 5px; }
.brand-mark i:nth-child(2) { top: 14px; right: 5px; }
.brand-mark i:nth-child(3) { bottom: 6px; left: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--green);
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links .nav-cta {
  padding: 0.72rem 1.08rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
}

.nav-links .nav-cta:hover {
  background: var(--ink);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 17px;
  height: 1px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Shared typography and controls */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green-dark);
  font-size: 0.69rem;
  font-weight: 770;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 18px;
  height: 1px;
  background: currentColor;
}

.eyebrow-light {
  color: var(--lime);
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.82rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 720;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 720;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { border-color: var(--line-strong); background: var(--white); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }

.button-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(16, 37, 31, 0.16);
}

.button-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 16px 34px rgba(21, 88, 67, 0.2);
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--ink);
  background: var(--white);
}

.button-light {
  background: var(--lime);
  color: var(--ink);
}

.button-light:hover {
  background: #d7ff7f;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 720;
  text-decoration: none;
  transition: gap 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  gap: 1.1rem;
  border-color: var(--green);
}

.section {
  position: relative;
  padding: 7.5rem 0;
}

.section-intro h2,
.pqc-copy h2,
.start-copy h2 {
  margin-top: 1.15rem;
  font-size: clamp(2.5rem, 5.2vw, 4.85rem);
  font-weight: 580;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

/* Hero */

.hero {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  padding: 9.5rem 0 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.75), rgba(247,248,243,0.48)),
    radial-gradient(circle at 78% 26%, rgba(200, 240, 107, 0.18), transparent 32%),
    var(--paper);
}

#topology-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.52;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.hero-glow-a {
  top: 11%;
  right: 8%;
  width: 260px;
  height: 260px;
  background: rgba(200, 240, 107, 0.16);
}

.hero-glow-b {
  bottom: 18%;
  left: 4%;
  width: 220px;
  height: 220px;
  background: rgba(57, 115, 230, 0.08);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.hero-copy {
  padding-bottom: 5rem;
}

.hero-copy h1 {
  margin: 1.45rem 0 1.6rem;
  color: var(--ink);
  font-size: clamp(3.7rem, 6.8vw, 6.45rem);
  font-weight: 470;
  letter-spacing: -0.075em;
  line-height: 0.89;
}

.hero-copy h1 strong {
  color: var(--green);
  font-weight: 600;
}

.hero-lead {
  max-width: 590px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.1rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 3.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-facts li {
  color: var(--ink-soft);
  font-size: 0.69rem;
  font-weight: 640;
  line-height: 1.45;
}

.hero-facts li span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.network-card {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid rgba(16, 37, 31, 0.14);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.network-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,240,107,0.08), transparent 38%, rgba(57,115,230,0.05));
  pointer-events: none;
}

.network-card-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
}

.network-card-head p {
  margin-bottom: 0.08rem;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.network-card-head strong {
  font-size: 0.78rem;
  font-weight: 700;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(30,121,93,0.2);
  border-radius: 999px;
  background: rgba(200,240,107,0.18);
  color: var(--green-dark);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-pill i,
.secure-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(30,121,93,0.1);
  animation: pulse 2s ease-out infinite;
}

.lt-network {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16,37,31,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,37,31,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.map-grid::after {
  content: "LIETUVA / 55°10′N 23°53′E";
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: rgba(16,37,31,0.25);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.08em;
}

.route {
  position: absolute;
  z-index: 1;
  height: 1px;
  transform-origin: left center;
  background: rgba(30, 121, 93, 0.35);
}

.route::after {
  content: "";
  position: absolute;
  inset: -2px 0;
  background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 10px);
  color: rgba(30,121,93,0.28);
}

.route-a { left: 16%; top: 58%; width: 36%; transform: rotate(-43deg); }
.route-b { left: 45%; top: 26%; width: 25%; transform: rotate(7deg); }
.route-c { left: 68%; top: 32%; width: 45%; transform: rotate(68deg); }
.route-d { left: 50%; top: 66%; width: 30%; transform: rotate(12deg); }
.route-e { left: 16%; top: 58%; width: 40%; transform: rotate(13deg); }
.route-f { left: 46%; top: 27%; width: 45%; transform: rotate(43deg); }

.route-f::after,
.route-d::after {
  color: rgba(123,101,214,0.4);
}

.city-node {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.city-node i {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(16,37,31,0.3), 0 0 0 8px rgba(30,121,93,0.08);
}

.city-node.is-core i {
  width: 19px;
  height: 19px;
  background: var(--orange);
  box-shadow: 0 0 0 1px rgba(16,37,31,0.3), 0 0 0 10px rgba(240,106,60,0.1);
}

.city-node span {
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.86);
  color: var(--ink);
  font-size: 0.67rem;
  font-weight: 740;
  line-height: 1.1;
  box-shadow: 0 6px 18px rgba(16,37,31,0.06);
}

.city-node small {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.47rem;
  font-weight: 500;
}

.city-klaipeda { left: 12%; top: 51%; }
.city-siauliai { left: 41%; top: 18%; }
.city-panevezys { left: 65%; top: 23%; }
.city-kaunas { left: 44%; top: 59%; }
.city-vilnius { right: 7%; bottom: 14%; }

.packet {
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(240,106,60,0.12);
}

.packet-a { left: 23%; top: 49%; animation: packet-a 5s linear infinite; }
.packet-b { left: 52%; top: 29%; animation: packet-b 4.6s linear 0.8s infinite; }
.packet-c { left: 56%; top: 64%; background: var(--violet); animation: packet-c 4.2s linear 1.5s infinite; }

.network-legend {
  position: relative;
  z-index: 2;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.35rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.54rem;
  text-transform: uppercase;
}

.network-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.network-legend i {
  width: 17px;
  height: 2px;
  background: var(--green);
}

.network-legend .legend-hf {
  background: repeating-linear-gradient(90deg, var(--green) 0 4px, transparent 4px 7px);
}

.network-legend .legend-local { background: var(--orange); }
.network-legend .legend-pqc { background: var(--violet); }

.medium-strip {
  position: relative;
  z-index: 3;
  margin-top: 5rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.4);
}

.medium-track {
  min-height: 59px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2.5vw, 2.2rem);
  padding: 0.75rem 1.5rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.medium-track i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}

/* Concept */

.concept-section {
  background: var(--white);
}

.split-intro {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: clamp(3rem, 9vw, 8rem);
}

.split-intro h2 {
  max-width: 760px;
}

.split-intro > div:last-child > p {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.8;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 4.5rem;
}

.principle-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.principle-card-large {
  grid-row: span 2;
  min-height: 636px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--paper-warm);
}

.accent-card {
  background: var(--lime-soft);
}

.card-index {
  position: absolute;
  top: 1.25rem;
  right: 1.35rem;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.card-kicker {
  margin-bottom: 0.55rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.principle-card h3 {
  max-width: 520px;
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.principle-card > p,
.card-copy > p:last-child {
  max-width: 530px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.signal-orbit {
  position: absolute;
  top: 7%;
  left: 50%;
  width: 330px;
  height: 330px;
  transform: translateX(-50%);
}

.signal-orbit .orbit {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(30,121,93,0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.signal-orbit .orbit-1 { width: 115px; height: 115px; }
.signal-orbit .orbit-2 { width: 210px; height: 210px; }
.signal-orbit .orbit-3 { width: 310px; height: 310px; }

.signal-orbit::before,
.signal-orbit::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 8px;
  height: 8px;
  border: 3px solid var(--paper-warm);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.signal-orbit::before { transform: translate(98px, -93px); }
.signal-orbit::after { transform: translate(-134px, 76px); }

.signal-orbit > i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border: 6px solid var(--white);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 18px rgba(240,106,60,0.08);
}

.mini-icon {
  position: absolute;
  top: 2.2rem;
  left: 2rem;
  width: 100px;
  height: 82px;
}

.principle-card:not(.principle-card-large) {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.icon-route::before,
.icon-route::after {
  content: "";
  position: absolute;
  left: 14px;
  width: 70px;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
}

.icon-route::before { top: 16px; transform: rotate(25deg); }
.icon-route::after { top: 63px; transform: rotate(-25deg); }

.icon-route i {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.icon-route i:nth-child(1) { left: 5px; top: 9px; }
.icon-route i:nth-child(2) { right: 5px; top: 34px; background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.icon-route i:nth-child(3) { left: 5px; bottom: 6px; }

.icon-identity::before,
.icon-identity::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(30,121,93,0.32);
  border-radius: 50%;
}

.icon-identity::before { inset: 7px 15px; }
.icon-identity::after { inset: 19px 27px; }
.icon-identity i:first-child { position: absolute; inset: 31px 42px; border-radius: 50%; background: var(--green); }
.icon-identity i:last-child { position: absolute; right: 7px; bottom: 5px; width: 13px; height: 13px; border: 3px solid var(--lime-soft); border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }

/* Media grid */

.media-section {
  background: var(--paper);
}

.centered-intro {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.centered-intro .eyebrow {
  justify-content: center;
}

.centered-intro > p:last-child {
  max-width: 650px;
  margin: 1.5rem auto 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 4.5rem;
}

.media-card {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  padding: 1.65rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.media-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(30,121,93,0.08);
}

.media-card h3 {
  margin-top: auto;
  font-size: 1.55rem;
  font-weight: 620;
  letter-spacing: -0.045em;
}

.media-card > p {
  max-width: 480px;
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.media-meta {
  display: block;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.radio-visual,
.wave-visual,
.ip-visual,
.local-visual {
  position: relative;
  height: 225px;
  margin: 1rem -0.25rem 1.3rem;
  border-radius: 15px;
  background: var(--paper-warm);
}

.radio-visual::before,
.radio-visual::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(30,121,93,0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radio-visual::before { width: 150px; height: 150px; }
.radio-visual::after { width: 90px; height: 90px; }
.radio-visual b { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; transform: translate(-50%,-50%); border: 6px solid var(--paper-warm); border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.radio-visual i { position: absolute; width: 9px; height: 9px; border: 2px solid var(--paper-warm); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.radio-visual i:nth-child(1) { left: 23%; top: 25%; }
.radio-visual i:nth-child(2) { right: 20%; top: 33%; }
.radio-visual i:nth-child(3) { left: 34%; bottom: 21%; }

.wave-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  background: var(--orange-soft);
}

.wave-visual::before,
.wave-visual::after {
  content: "";
  position: absolute;
  bottom: 29px;
  width: 10px;
  height: 10px;
  border: 4px solid var(--orange-soft);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.wave-visual::before { left: 12%; }
.wave-visual::after { right: 12%; }
.wave-visual span { width: 7px; border-radius: 999px; background: var(--orange); animation: wave 1.7s ease-in-out infinite; }
.wave-visual span:nth-child(1), .wave-visual span:nth-child(7) { height: 30px; }
.wave-visual span:nth-child(2), .wave-visual span:nth-child(6) { height: 75px; animation-delay: 0.1s; }
.wave-visual span:nth-child(3), .wave-visual span:nth-child(5) { height: 125px; animation-delay: 0.2s; }
.wave-visual span:nth-child(4) { height: 170px; animation-delay: 0.3s; }

.ip-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1rem;
  background: var(--violet-soft);
}

.ip-visual span {
  min-width: 82px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(123,101,214,0.24);
  border-radius: 10px;
  background: rgba(255,255,255,0.66);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.65rem;
  text-align: center;
}

.ip-visual span:last-child {
  border-color: rgba(240,106,60,0.35);
  background: var(--orange-soft);
}

.ip-visual i {
  position: relative;
  width: 55px;
  height: 1px;
  background: rgba(123,101,214,0.42);
}

.ip-visual i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid rgba(123,101,214,0.7);
  border-right: 1px solid rgba(123,101,214,0.7);
  transform: rotate(45deg);
}

.local-visual {
  background: var(--blue-soft);
}

.local-visual::before,
.local-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 155px;
  background: rgba(57,115,230,0.25);
}

.local-visual::before { transform: translate(-50%,-50%) rotate(55deg); }
.local-visual::after { transform: translate(-50%,-50%) rotate(-55deg); }
.local-visual b { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%,-50%); border: 7px solid var(--blue-soft); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px rgba(57,115,230,0.55); }
.local-visual i { position: absolute; z-index: 1; width: 13px; height: 13px; border: 3px solid var(--blue-soft); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.local-visual i:nth-child(1) { left: 15%; top: 18%; }
.local-visual i:nth-child(2) { right: 15%; top: 18%; }
.local-visual i:nth-child(3) { left: 15%; bottom: 18%; }
.local-visual i:nth-child(4) { right: 15%; bottom: 18%; }

.legal-note {
  max-width: 900px;
  margin: 1.5rem auto 0;
  color: var(--ink-faint);
  font-size: 0.72rem;
  text-align: center;
}

.legal-note span {
  color: var(--ink-soft);
  font-weight: 700;
}

/* PQC */

.pqc-section {
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.pqc-section::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(200,240,107,0.08);
  filter: blur(6px);
}

.pqc-shell {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: center;
  gap: clamp(4rem, 9vw, 9rem);
}

.pqc-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin-top: 1.5rem;
  color: rgba(255,255,255,0.68);
  font-size: 0.95rem;
}

.pqc-copy > p strong {
  color: var(--white);
}

.pqc-points {
  margin: 2rem 0;
  list-style: none;
}

.pqc-points li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.pqc-points li:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.pqc-points > li > span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.59rem;
  line-height: 1.75;
}

.pqc-points strong,
.pqc-points small {
  display: block;
}

.pqc-points strong {
  font-size: 0.8rem;
}

.pqc-points small {
  margin-top: 0.22rem;
  color: rgba(255,255,255,0.52);
  font-size: 0.68rem;
}

.layer-panel {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 25px;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 32px 90px rgba(0,0,0,0.2);
}

.layer-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.layer-panel-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  color: rgba(255,255,255,0.45);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
}

.secure-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--lime);
}

.secure-status i { background: var(--lime); box-shadow: 0 0 0 4px rgba(200,240,107,0.08); }

.layer-stack {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.65rem;
}

.layer {
  min-height: 88px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 15px;
  background: rgba(255,255,255,0.07);
}

.layer-num {
  color: rgba(255,255,255,0.35);
  font-family: var(--mono);
  font-size: 0.57rem;
}

.layer strong,
.layer small {
  display: block;
}

.layer strong {
  font-size: 0.78rem;
}

.layer small {
  margin-top: 0.18rem;
  color: rgba(255,255,255,0.46);
  font-size: 0.63rem;
}

.layer em {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: rgba(255,255,255,0.48);
  font-family: var(--mono);
  font-size: 0.48rem;
  font-style: normal;
  letter-spacing: 0.05em;
}

.layer-pqc {
  border-color: rgba(200,240,107,0.55);
  background: rgba(200,240,107,0.12);
  box-shadow: 0 0 40px rgba(200,240,107,0.06);
}

.layer-pqc .layer-num,
.layer-pqc em {
  color: var(--lime);
}

.layer-pqc em {
  border-color: rgba(200,240,107,0.25);
}

.flow-meter {
  position: relative;
  z-index: 2;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 0.9rem;
}

.flow-meter span {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,0.1);
  animation: flow 2.1s ease-in-out infinite;
}

.flow-meter span:nth-child(1) { animation-delay: 0s; }
.flow-meter span:nth-child(2) { animation-delay: 0.1s; }
.flow-meter span:nth-child(3) { animation-delay: 0.2s; }
.flow-meter span:nth-child(4) { animation-delay: 0.3s; }
.flow-meter span:nth-child(5) { animation-delay: 0.4s; }
.flow-meter span:nth-child(6) { animation-delay: 0.5s; }
.flow-meter span:nth-child(7) { animation-delay: 0.6s; }
.flow-meter span:nth-child(8) { animation-delay: 0.7s; }
.flow-meter span:nth-child(9) { animation-delay: 0.8s; }

.layer-panel > p {
  position: relative;
  z-index: 2;
  margin-top: 0.35rem;
  color: rgba(255,255,255,0.42);
  font-size: 0.64rem;
  text-align: center;
}

/* Start */

.start-section {
  background: var(--white);
}

.start-card {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper-warm);
}

.start-copy h2 {
  max-width: 600px;
  font-size: clamp(2.5rem, 4.8vw, 4.25rem);
}

.start-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 1.35rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.start-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin-top: 2rem;
}

.terminal-card {
  overflow: hidden;
  border: 1px solid rgba(16,37,31,0.18);
  border-radius: 17px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 22px 45px rgba(16,37,31,0.18);
  transform: rotate(1.5deg);
}

.terminal-head {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.terminal-head span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
}

.terminal-head span:first-child { background: var(--orange); }
.terminal-head span:nth-child(2) { background: #f0c65d; }
.terminal-head span:nth-child(3) { background: var(--green); }
.terminal-head em { margin-left: auto; color: rgba(255,255,255,0.4); font-family: var(--mono); font-size: 0.48rem; font-style: normal; }

.terminal-body {
  min-height: 245px;
  padding: 1.45rem;
  font-family: var(--mono);
  font-size: clamp(0.66rem, 1.2vw, 0.78rem);
}

.terminal-body p {
  margin-bottom: 0.85rem;
}

.terminal-body p span {
  color: var(--lime);
}

.terminal-body .terminal-output {
  margin: -0.42rem 0 0.65rem 1.1rem;
  color: rgba(255,255,255,0.42);
  font-size: 0.62rem;
}

.terminal-body p i {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 4px;
  background: var(--lime);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

.resource-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resource-row > a {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 100px;
  padding: 1.2rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.resource-row > a + a {
  border-left: 1px solid var(--line);
}

.resource-row > a:hover {
  background: var(--paper-warm);
}

.resource-row > a > span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.56rem;
}

.resource-row strong,
.resource-row small {
  display: block;
}

.resource-row strong {
  font-size: 0.78rem;
}

.resource-row small {
  margin-top: 0.2rem;
  color: var(--ink-faint);
  font-size: 0.62rem;
}

.resource-row > a > i {
  font-style: normal;
}

/* Footer */

.site-footer,
body > footer {
  padding: 4.5rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.6fr;
  gap: 3rem;
  align-items: start;
}

.brand-footer {
  margin-bottom: 1rem;
}

.footer-grid > div:first-child > p {
  max-width: 390px;
  color: var(--ink-faint);
  font-size: 0.74rem;
}

.footer-author span,
.footer-author strong {
  display: block;
}

.footer-author span {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-author strong {
  margin-top: 0.45rem;
  font-size: 0.84rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a,
body > footer a {
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-decoration: none;
}

.footer-links a:hover,
body > footer a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.footer-bottom p,
body > footer p {
  color: var(--ink-faint);
  font-size: 0.6rem;
}

body > footer .container {
  text-align: center;
}

.footer-bottom a {
  color: var(--ink-soft);
  font-size: 0.62rem;
  text-decoration: none;
}

/* Legacy information pages */

.page-header {
  padding: 9.5rem 0 4.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 30%, rgba(200,240,107,0.2), transparent 25%),
    var(--paper-warm);
}

.page-header h1 {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 580;
  letter-spacing: -0.06em;
  line-height: 1;
}

.page-header p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.breadcrumb {
  margin-bottom: 1rem;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.breadcrumb a {
  color: var(--green);
  text-decoration: none;
}

.breadcrumb .sep {
  margin: 0 0.45rem;
  color: var(--line-strong);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.tag {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  color: var(--green-dark);
  font-family: var(--mono);
  font-size: 0.56rem;
}

.content-section,
main > .content-section {
  padding: 4.5rem 0;
}

main > section:not(.content-section):not(.section) {
  padding: 4.5rem 0;
}

.content-section:nth-child(even) {
  background: var(--paper-warm) !important;
}

.content-section h2 {
  max-width: 900px;
  margin-bottom: 1.35rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.content-section h3 {
  margin: 1.5rem 0 0.6rem;
  color: var(--ink);
  font-size: 1.1rem;
}

.content-section p,
.lead {
  max-width: 850px;
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.85;
}

.content-section ul {
  max-width: 900px;
  margin-bottom: 1.5rem;
  padding-left: 1.1rem;
}

.content-section li {
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.content-section li::marker {
  color: var(--green);
}

.highlight-box,
.callout {
  max-width: 900px;
  margin: 2rem 0;
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 0 14px 14px 0;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.highlight-box p,
.callout p {
  margin: 0;
}

.callout h3 {
  margin: 0 0 0.55rem;
  color: var(--green-dark);
}

.features-grid,
.info-grid,
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.feature-card,
.info-block,
.toc-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 25px rgba(36,55,47,0.05);
}

.feature-card h3,
.info-block h3,
.toc-card h3 {
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-size: 1rem;
}

.feature-card p,
.info-block p,
.toc-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.toc-card {
  display: block;
  border-left: 3px solid var(--green);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.toc-step {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.analysis-table {
  width: 100%;
  margin: 1.8rem 0 2.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  background: var(--white);
  font-size: 0.76rem;
}

.analysis-table th,
.analysis-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.65;
  text-align: left;
  vertical-align: top;
}

.analysis-table th {
  background: var(--paper-warm);
  color: var(--ink);
  font-size: 0.7rem;
}

.analysis-table tr:last-child td {
  border-bottom: 0;
}

.rating-high { color: var(--green) !important; font-weight: 700; }
.rating-mid { color: #a96e0e !important; font-weight: 700; }
.rating-low { color: #c34c39 !important; font-weight: 700; }

.diagram-figure {
  max-width: 1000px;
  margin: 2rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.diagram-figure img {
  width: 100%;
  height: auto;
}

.diagram-figure figcaption {
  margin-top: 0.8rem;
  color: var(--ink-faint);
  font-size: 0.68rem;
  text-align: center;
}

.code-block {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--ink);
  color: #d9f8e8;
  font-family: var(--mono);
  font-size: 0.69rem;
  line-height: 1.7;
  white-space: pre;
}

.page-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.page-nav a {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.73rem;
  text-decoration: none;
}

.page-nav .nav-prev::before { content: "← "; }
.page-nav .nav-next::after { content: " →"; }

.refs {
  padding-left: 0;
  list-style: none;
}

.refs li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
}

.refs a {
  color: var(--green);
  overflow-wrap: anywhere;
}

.contact-section {
  text-align: center;
}

.section-title {
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 590;
  letter-spacing: -0.055em;
}

.section-subtitle {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.contact-email {
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.stat-item {
  padding: 1.6rem;
  background: var(--white);
  text-align: center;
}

.stat-value,
.stat-label {
  display: block;
}

.stat-value {
  color: var(--green);
  font-size: 2rem;
  font-weight: 680;
}

.stat-label {
  color: var(--ink-faint);
  font-size: 0.66rem;
}

/* Motion */

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(30,121,93,0.08); }
  50% { box-shadow: 0 0 0 8px rgba(30,121,93,0); }
}

@keyframes packet-a {
  0% { transform: translate(0,0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(170px,-130px); opacity: 0; }
}

@keyframes packet-b {
  0% { transform: translate(0,0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(125px,18px); opacity: 0; }
}

@keyframes packet-c {
  0% { transform: translate(0,0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(160px,35px); opacity: 0; }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.45); opacity: 0.65; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes flow {
  0%, 100% { background: rgba(255,255,255,0.1); }
  50% { background: var(--lime); box-shadow: 0 0 12px rgba(200,240,107,0.3); }
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

/* Responsive */

@media (max-width: 1020px) {
  .hero {
    min-height: auto;
  }

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

  .hero-copy {
    max-width: 760px;
    padding-bottom: 0;
  }

  .network-card {
    width: min(100%, 720px);
    margin: 0 auto;
  }

  .pqc-shell,
  .start-card {
    grid-template-columns: 1fr;
  }

  .pqc-copy {
    max-width: 690px;
  }

  .layer-panel {
    width: min(100%, 720px);
  }

  .terminal-card {
    width: min(100%, 600px);
    transform: none;
  }
}

@media (max-width: 820px) {
  .page-shell,
  .container,
  .nav-shell,
  body > nav .container {
    width: min(100% - 32px, 1180px);
  }

  .nav-shell,
  body > nav .container {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 68px 16px auto;
    display: none;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
  }

  .nav-links.open {
    display: grid;
    gap: 0;
  }

  .nav-links a {
    padding: 0.85rem 0.75rem;
    border-radius: 9px;
  }

  .nav-links a:hover {
    background: var(--paper-warm);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .nav-cta {
    margin-top: 0.35rem;
    text-align: center;
  }

  .nav-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .section {
    padding: 5.5rem 0;
  }

  .split-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .principle-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .principle-card-large {
    grid-row: auto;
  }

  .resource-row {
    grid-template-columns: 1fr;
  }

  .resource-row > a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .footer-links {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, max-content);
    gap: 1rem 2rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .analysis-table,
  .analysis-table thead,
  .analysis-table tbody,
  .analysis-table tr,
  .analysis-table th,
  .analysis-table td {
    display: block;
    width: 100%;
  }

  .analysis-table thead {
    display: none;
  }

  .analysis-table tr {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
  }

  .analysis-table tr:last-child {
    border-bottom: 0;
  }

  .analysis-table td {
    border-bottom: 0;
  }

  .analysis-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.55rem;
    text-transform: uppercase;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 7.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 16vw, 4.5rem);
  }

  .hero-lead {
    font-size: 0.94rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .hero-facts li {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: baseline;
  }

  .network-card {
    min-height: 480px;
    border-radius: 22px;
  }

  .network-card-head {
    align-items: flex-start;
  }

  .network-card-head strong {
    font-size: 0.68rem;
  }

  .live-pill {
    padding: 0.35rem;
    font-size: 0;
  }

  .lt-network {
    height: 360px;
  }

  .city-node span {
    padding: 0.35rem 0.4rem;
    font-size: 0.54rem;
  }

  .city-node small {
    font-size: 0.4rem;
  }

  .city-klaipeda { left: 6%; }
  .city-siauliai { left: 34%; }
  .city-panevezys { left: 61%; }
  .city-kaunas { left: 36%; }
  .city-vilnius { right: 2%; }

  .network-legend {
    gap: 0.65rem;
  }

  .medium-track {
    justify-content: flex-start;
  }

  .medium-track i:nth-of-type(even) {
    display: none;
  }

  .principle-card {
    min-height: 340px;
    padding: 1.4rem;
  }

  .principle-card-large {
    min-height: 560px;
  }

  .signal-orbit {
    width: 280px;
    height: 280px;
  }

  .signal-orbit .orbit-3 { width: 260px; height: 260px; }

  .media-card {
    min-height: 430px;
  }

  .ip-visual {
    flex-direction: column;
  }

  .ip-visual i {
    width: 1px;
    height: 28px;
  }

  .ip-visual i::after {
    right: -3px;
    top: auto;
    bottom: 0;
    transform: rotate(135deg);
  }

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

  .layer em {
    grid-column: 2;
    width: max-content;
  }

  .start-card {
    padding: 1.5rem;
  }

  .start-actions {
    display: grid;
  }

  .start-actions .text-link {
    justify-self: start;
  }

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

  .footer-links {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  #topology-canvas { display: none; }
}
