:root {
  color-scheme: dark;
  --bg: #05070a;
  --panel: rgba(10, 18, 28, 0.82);
  --panel-strong: rgba(13, 28, 42, 0.94);
  --line: rgba(177, 236, 255, 0.16);
  --line-strong: rgba(0, 217, 255, 0.42);
  --text: #edf8ff;
  --muted: #96a8b7;
  --soft: #c9d8e3;
  --cyan: #00d9ff;
  --green: #5dffb3;
  --amber: #ffd166;
  --coral: #ff7a90;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.44);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 217, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #05070a 0%, #07111a 48%, #08100d 100%);
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(93, 255, 179, 0.09)),
    #07111a;
  box-shadow: 0 0 22px rgba(0, 217, 255, 0.16);
}

.brand-mark::before {
  width: 14px;
  height: 14px;
  content: "";
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(93, 255, 179, 0.18);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a,
.button-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 13px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a[aria-current="page"],
.button-link.primary {
  border-color: var(--line-strong);
  color: #031014;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 44px;
  padding: 72px 0 50px;
}

.hero::after {
  position: absolute;
  right: 12%;
  bottom: 22px;
  left: 8%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.7), transparent);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--green);
  background: rgba(0, 217, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1rem;
}

.hero-copy {
  max-width: 690px;
  color: var(--soft);
  font-size: 1.08rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  font-weight: 700;
}

.lens-panel {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(0, 217, 255, 0.12), rgba(93, 255, 179, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.lens-panel::before {
  position: absolute;
  inset: 22px;
  content: "";
  border: 1px solid rgba(0, 217, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(0, 217, 255, 0.28) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(93, 255, 179, 0.18) 50%, transparent 51%);
  background-size: 100% 100%, 100% 100%;
}

.scan-frame {
  position: absolute;
  inset: 56px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.scan-frame::before,
.scan-frame::after {
  position: absolute;
  content: "";
  border-radius: 8px;
}

.scan-frame::before {
  top: 34px;
  left: 32px;
  width: 48%;
  height: 52px;
  border: 1px solid rgba(93, 255, 179, 0.42);
  background: rgba(93, 255, 179, 0.07);
}

.scan-frame::after {
  right: 30px;
  bottom: 36px;
  width: 38%;
  height: 92px;
  border: 1px solid rgba(255, 209, 102, 0.42);
  background: rgba(255, 209, 102, 0.07);
}

.signal {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.signal span {
  height: 5px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  opacity: 0.35;
}

.signal span:nth-child(2) {
  opacity: 0.72;
}

.signal span:nth-child(3) {
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  opacity: 0.58;
}

.content-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  padding: 26px 0 64px;
}

.toc {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(7, 14, 22, 0.78);
  backdrop-filter: blur(14px);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--soft);
  font-size: 0.92rem;
}

.toc a:hover {
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

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

.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.glass.highlight {
  border-color: rgba(0, 217, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(93, 255, 179, 0.04)),
    var(--panel-strong);
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.note {
  border-left: 3px solid var(--cyan);
  margin: 18px 0 0;
  padding: 12px 14px;
  color: var(--soft);
  background: rgba(0, 217, 255, 0.06);
}

.data-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.data-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.data-row strong {
  color: var(--green);
}

ul,
ol {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 8px;
}

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

.mini-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-card .tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

code {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.1rem 0.32rem;
  color: var(--green);
  background: rgba(255, 255, 255, 0.05);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

@media (max-width: 920px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 50px;
  }

  .lens-panel {
    min-height: 300px;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 28px, 1120px);
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-links a {
    flex: 1 1 auto;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .glass {
    padding: 18px;
  }

  .data-row,
  .cards {
    grid-template-columns: 1fr;
  }

  .contact-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .button-link {
    width: 100%;
  }
}
