:root {
  color-scheme: dark;
  --bg: #07101f;
  --panel: #0b1932;
  --panel-2: #0d2044;
  --ink: #f7fbff;
  --text: #cfd8e3;
  --muted: #7892ad;
  --line: rgba(0, 180, 216, 0.18);
  --blue: #00b4d8;
  --green: #10b981;
  --amber: #f59e0b;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(7, 16, 31, 0.94), rgba(7, 16, 31, 1)),
    repeating-linear-gradient(90deg, rgba(0, 180, 216, 0.035) 0, rgba(0, 180, 216, 0.035) 1px, transparent 1px, transparent 96px),
    #07101f;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(0, 180, 216, 0.12);
  background: rgba(7, 16, 31, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 370px;
  margin-left: -40px;
}

.brand img {
  display: block;
  width: 340px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #9fb4cc;
  font-size: 13px;
  font-weight: 760;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: rgba(0, 180, 216, 0.4);
}

.nav-links .nav-cta {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(0, 180, 216, 0.42);
  border-radius: 7px;
  background: rgba(0, 180, 216, 0.12);
  color: var(--ink);
}

.main {
  padding: 44px 0 76px;
}

.hero {
  max-width: 1000px;
  padding: 0 0 30px;
}

.eyebrow,
.lbl,
.tag {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.08;
}

h3 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.18;
}

.accent { color: var(--blue); }

.sub {
  max-width: 900px;
  margin-bottom: 0;
  color: #a8bad0;
  font-size: 17px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn-pri,
.btn-sec {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 180, 216, 0.28);
  border-radius: 7px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-pri {
  border-color: rgba(0, 180, 216, 0.9);
  background: var(--blue);
  color: #03111c;
  box-shadow: 0 14px 34px rgba(0, 180, 216, 0.2);
}

.btn-sec {
  background: rgba(13, 32, 68, 0.5);
  color: #c5d8ec;
}

.kpi-grid,
.benefit-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.kpi-card,
.panel,
.product-shot,
.benefit-card,
.related-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 24, 53, 0.58);
  box-shadow: none;
}

.kpi-card {
  min-height: 112px;
  padding: 18px;
}

.kpi-card .val {
  margin: 8px 0 5px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
}

.sub-info,
.panel p,
.panel li,
.benefit-card p,
.related-card p,
.product-shot figcaption,
.sample-note {
  color: #9fb4cc;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin: 0 0 24px;
}

.panel {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(13, 32, 68, 0.62), rgba(10, 24, 53, 0.48)),
    rgba(10, 24, 53, 0.58);
}

.panel h2,
.panel h3 { margin-bottom: 12px; }
.panel p:last-child,
.panel ul:last-child { margin-bottom: 0; }

.check-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.check-list li + li { margin-top: 8px; }

.product-shot {
  margin: 0;
  overflow: hidden;
  background: rgba(6, 16, 34, 0.72);
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid rgba(0, 180, 216, 0.14);
}

.product-shot figcaption {
  padding: 14px 16px 16px;
}

.code-panel {
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 16, 34, 0.78);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 180, 216, 0.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(0, 180, 216, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  color: #86a3bf;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

pre {
  margin: 0;
  padding: 20px;
  overflow: auto;
  color: #dbe8f7;
  font-size: 13px;
  line-height: 1.55;
}

.code-key { color: #7dd3fc; }
.code-string { color: #a7f3d0; }
.code-num { color: #fbbf24; }

.benefit-card,
.related-card {
  padding: 22px;
}

.related-card {
  min-height: 150px;
}

.related-card a {
  color: var(--ink);
}

.related-card a:hover {
  color: var(--blue);
}

.footer {
  border-top: 1px solid rgba(0, 180, 216, 0.1);
  padding: 26px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.pr-flag {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 180, 216, 0.22);
  border-radius: 18px;
  padding: 6px 14px;
  background: rgba(5, 13, 28, 0.82);
  color: #9fb4cc;
  font-size: 10.5px;
  font-weight: 800;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.pr-flag .flag {
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 920px) {
  .brand { margin-left: 0; }

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

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 18px;
  }

  .kpi-grid,
  .benefit-grid,
  .related-grid,
  .split-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1488px); }
  .brand { min-width: 0; }
  .brand img { width: 260px; }
  .sub { font-size: 16px; }
  .btn-pri,
  .btn-sec { width: 100%; }
  pre { font-size: 12px; }
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .pr-flag {
    right: 12px;
    bottom: 12px;
  }
}
