:root {
  --ink: #0a1320;
  --ink-soft: #122234;
  --paper: #f3f6f8;
  --surface: #ffffff;
  --muted: #d8e0e7;
  --muted-strong: #b4c0ca;
  --text-muted: #5c6b78;
  --accent: #35b8e8;
  --accent-deep: #1689b3;
  --accent-2: #a6d94a;
  --danger: #d85c63;
  --container: 1180px;
  --reading: 760px;
  --shadow: 0 22px 70px rgba(4, 13, 24, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 19, 32, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 19, 32, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
}

a {
  color: inherit;
}

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

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

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--accent-2);
  border-radius: 8px;
  font-weight: 800;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  color: #fff;
  background: rgba(8, 17, 29, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: var(--container);
  min-height: 74px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 184, 232, 0.72);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(53, 184, 232, 0.08);
  font-weight: 900;
  font-style: italic;
}

.brand-copy {
  display: grid;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.brand-copy strong {
  font-size: 14px;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
}

.nav-cta {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  color: var(--ink) !important;
  background: var(--accent);
  border-radius: 9px;
  font-weight: 850;
}

.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 78% 36%, rgba(53, 184, 232, 0.14), transparent 30%),
    linear-gradient(135deg, #08111d 0%, #0d1b2c 62%, #10263a 100%);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  min-height: 620px;
  margin: 0 auto;
  padding: 86px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 72px;
}

.eyebrow,
.section-kicker,
.article-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 68px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(29px, 3.3vw, 43px);
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

p {
  margin: 0 0 18px;
}

.hero-copy {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 19px;
  line-height: 1.62;
}

.actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button {
  min-height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  color: var(--ink);
  background: var(--accent);
  box-shadow: 0 12px 34px rgba(53, 184, 232, 0.22);
}

.button-primary:hover {
  background: #59c8ef;
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.035);
}

.text-link {
  color: var(--accent-deep);
  font-weight: 780;
  text-underline-offset: 4px;
}

.hero-facts {
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.hero-facts li::before {
  margin-right: 8px;
  color: var(--accent-2);
  content: "✓";
  font-weight: 900;
}

.product-preview {
  position: relative;
  min-height: 410px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.product-preview::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 18, 31, 0.2), rgba(7, 18, 31, 0.92)),
    url("assets/hero.png") center / cover no-repeat;
  opacity: 0.56;
}

.preview-window {
  position: relative;
  z-index: 1;
  min-height: 374px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 19, 31, 0.05), rgba(8, 19, 31, 0.94) 58%);
}

.preview-top {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(166, 217, 74, 0.12);
}

.evidence-list {
  display: grid;
  gap: 8px;
}

.evidence-row {
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 12px;
  align-items: center;
  background: rgba(7, 17, 29, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  font-size: 13px;
}

.evidence-row span:first-child {
  color: rgba(255, 255, 255, 0.48);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-row em {
  color: var(--accent-2);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.section {
  padding: 88px 24px;
}

.section-white {
  background: var(--surface);
  border-top: 1px solid rgba(10, 19, 32, 0.06);
  border-bottom: 1px solid rgba(10, 19, 32, 0.06);
}

.section-dark {
  color: #fff;
  background: var(--ink);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 18px;
}

.section-dark .section-heading p:last-child {
  color: rgba(255, 255, 255, 0.66);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.topic-card {
  min-height: 250px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 184, 232, 0.8);
  box-shadow: var(--shadow);
}

.topic-card:nth-child(1),
.topic-card:nth-child(2) {
  grid-column: span 6;
}

.topic-card:nth-child(n+3) {
  grid-column: span 4;
}

.topic-index {
  margin-bottom: 38px;
  color: var(--accent-deep);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.topic-card h3 {
  font-size: 25px;
}

.topic-card p {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.topic-arrow {
  margin-top: auto;
  font-weight: 850;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 76px;
}

.workflow-intro {
  position: sticky;
  top: 116px;
}

.workflow-intro p {
  color: var(--text-muted);
  font-size: 18px;
}

.steps {
  border-top: 1px solid var(--muted);
}

.step {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  border-bottom: 1px solid var(--muted);
}

.step-num {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  border: 1px solid rgba(53, 184, 232, 0.48);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 850;
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.quality-item {
  min-height: 230px;
  padding: 30px;
  background: var(--ink);
}

.quality-item span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quality-item h3 {
  margin-top: 42px;
}

.quality-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
}

.safety-note {
  margin-top: 32px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(166, 217, 74, 0.25);
  background: rgba(166, 217, 74, 0.05);
}

.safety-note strong {
  color: var(--accent-2);
}

.faq-list {
  max-width: 900px;
  border-top: 1px solid var(--muted);
}

.faq-list details {
  padding: 22px 0;
  border-bottom: 1px solid var(--muted);
}

.faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 820;
}

.faq-list details p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--text-muted);
}

.closing-cta {
  padding: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.closing-cta h2 {
  margin-bottom: 10px;
}

.closing-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.article-hero {
  color: #fff;
  background: linear-gradient(135deg, #08111d 0%, #10273c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.breadcrumbs {
  margin-bottom: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.breadcrumbs span::before {
  margin-right: 8px;
  content: "/";
}

.article-hero h1 {
  max-width: 920px;
  font-size: clamp(39px, 5vw, 64px);
}

.article-deck {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
}

.article-meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 74px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) 300px;
  align-items: start;
  gap: 76px;
}

.article-body {
  min-width: 0;
}

.article-body > p:first-of-type {
  color: #314454;
  font-size: 20px;
  line-height: 1.7;
}

.article-body h2 {
  margin-top: 58px;
  padding-top: 8px;
  font-size: 34px;
}

.article-body h3 {
  margin-top: 34px;
}

.article-body p,
.article-body li {
  color: #314454;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.article-body li + li {
  margin-top: 9px;
}

.article-body strong {
  color: var(--ink);
}

.toc {
  margin: 34px 0 44px;
  padding: 24px 26px;
  background: #eaf1f5;
  border-left: 3px solid var(--accent);
}

.toc strong {
  display: block;
  margin-bottom: 12px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc a {
  color: #27485a;
  text-underline-offset: 3px;
}

.info-panel,
.warning-panel {
  margin: 32px 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 12px;
}

.warning-panel {
  background: #fff9f2;
  border-color: #ead4b9;
}

.info-panel p:last-child,
.warning-panel p:last-child {
  margin-bottom: 0;
}

.check-list {
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.check-list li {
  padding: 14px 16px 14px 46px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 10px;
}

.check-list li::before {
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--accent-deep);
  content: "✓";
  font-weight: 900;
}

.article-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 12px;
}

.side-card-dark {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.side-card h2,
.side-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.side-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.side-card-dark p {
  color: rgba(255, 255, 255, 0.62);
}

.side-links {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  list-style: none;
}

.side-links a {
  padding: 10px 0;
  display: block;
  border-bottom: 1px solid var(--muted);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.side-links li:last-child a {
  border-bottom: 0;
}

.side-card .button {
  width: 100%;
  min-height: 46px;
  padding-inline: 14px;
  font-size: 14px;
}

.policy-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 74px 24px 96px;
}

.policy-wrap h1 {
  margin-bottom: 26px;
  font-size: clamp(40px, 6vw, 62px);
}

.policy-wrap h2 {
  margin-top: 48px;
  font-size: 29px;
}

.policy-wrap p,
.policy-wrap li {
  color: #314454;
}

.policy-intro {
  font-size: 20px;
}

.site-footer {
  padding: 58px 24px 34px;
  color: rgba(255, 255, 255, 0.64);
  background: #07101b;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 64px;
}

.footer-grid h2,
.footer-grid h3 {
  color: #fff;
  font-size: 17px;
}

.footer-grid p {
  max-width: 430px;
}

.footer-links {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.67);
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--container);
  margin: 42px auto 0;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr 380px;
    gap: 34px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .article-layout {
    grid-template-columns: 1fr 260px;
    gap: 42px;
  }
}

@media (max-width: 820px) {
  .hero-inner,
  .workflow-grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 64px;
    gap: 48px;
  }

  .product-preview {
    min-height: 340px;
  }

  .preview-window {
    min-height: 304px;
  }

  .topic-card:nth-child(n) {
    grid-column: span 6;
  }

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

  .workflow-intro,
  .article-sidebar {
    position: static;
  }

  .article-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    gap: 34px;
  }
}

@media (max-width: 600px) {
  .nav {
    min-height: 66px;
    padding-inline: 16px;
  }

  .brand-copy {
    display: none;
  }

  .nav-cta {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 13px;
  }

  .hero-inner,
  .article-hero-inner {
    padding-inline: 18px;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  h1,
  .article-hero h1 {
    font-size: 40px;
  }

  .hero-copy,
  .article-deck {
    font-size: 17px;
  }

  .actions,
  .actions .button {
    width: 100%;
  }

  .product-preview {
    min-height: 310px;
    padding: 10px;
  }

  .preview-window {
    min-height: 288px;
    padding: 12px;
  }

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

  .evidence-row span:first-child {
    grid-column: 1 / -1;
  }

  .section {
    padding: 64px 18px;
  }

  .topic-card:nth-child(n) {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .quality-item {
    min-height: auto;
  }

  .quality-item h3 {
    margin-top: 26px;
  }

  .safety-note {
    grid-template-columns: 1fr;
  }

  .closing-cta {
    padding: 34px 24px;
    grid-template-columns: 1fr;
  }

  .article-layout,
  .policy-wrap {
    padding: 54px 18px 72px;
  }

  .article-body h2 {
    margin-top: 46px;
    font-size: 30px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-inline: 18px;
  }
}

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

  .topic-card,
  .skip-link {
    transition: none;
  }
}
