/* ==========================================================================
   MUA VPN — single stylesheet
   Product of MUA Systems, Nairobi, Kenya.
   Pure static. No external fonts, no CDN, no remote assets.
   Palette: deep navy/slate base + single cyan accent.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Surfaces */
  --bg: #070b14;
  --bg-2: #0a1120;
  --surface: #0f1a2e;
  --surface-2: #142239;
  --surface-3: #1a2b47;
  --line: #223350;
  --line-soft: #1a2842;

  /* Text */
  --text: #e9eff9;
  --text-2: #b8c6dd;
  --muted: #8fa2bf;

  /* Accent (single bright accent: cyan/teal) */
  --accent: #22d3ee;
  --accent-strong: #06b6d4;
  --accent-deep: #0e7490;
  --accent-ink: #04222b;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-line: rgba(34, 211, 238, 0.35);

  /* Status */
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.12);
  --err: #f87171;
  --err-soft: rgba(248, 113, 113, 0.12);

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Radius + shadow */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 32px 70px -30px rgba(0, 0, 0, 0.9);
  --ring: 0 0 0 3px rgba(34, 211, 238, 0.45);

  /* Layout */
  --maxw: 1160px;
  --header-h: 68px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 200ms;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: #67e8f9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul,
ol {
  margin: 0 0 var(--s-4);
  padding-left: 1.25rem;
}

li + li {
  margin-top: var(--s-2);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-7) 0;
}

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

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

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: var(--s-3) var(--s-4);
  border-radius: 0 0 var(--r) 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* ---------- 3. Typography ---------- */
h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s-4);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 750;
  color: #fff;
}

h1 {
  font-size: clamp(2.1rem, 6.4vw, 3.6rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 var(--s-4);
  color: var(--text-2);
}

strong {
  color: var(--text);
  font-weight: 650;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  padding: 0.12em 0.42em;
  border-radius: 6px;
  color: #a5f3fc;
}

kbd {
  color: var(--text);
}

pre {
  margin: 0 0 var(--s-4);
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.section {
  padding-block: var(--s-8);
  position: relative;
}

.section--tight {
  padding-block: var(--s-7);
}

.section--alt {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section__head {
  max-width: 720px;
  margin-bottom: var(--s-7);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: var(--text-2);
  line-height: 1.7;
}

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

.center {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- 5. Grids ---------- */
.grid {
  display: grid;
  gap: var(--s-5);
}

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

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

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

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.78rem 1.35rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
  will-change: transform;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(34, 211, 238, 0.65);
  color: var(--btn-fg);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent-line);
  color: #fff;
  box-shadow: none;
  background: rgba(34, 211, 238, 0.06);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.btn-row--center {
  justify-content: center;
}

/* ---------- 7. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 11, 20, 0.92);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.06rem;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
  text-decoration: none;
}

.brand svg,
.brand img {
  width: 34px;
  height: 34px;
}

.brand__text small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -2px;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
}

.nav__toggle:hover {
  border-color: var(--accent-line);
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav__toggle span {
  position: relative;
}

.nav__toggle span::before {
  position: absolute;
  top: -6px;
}

.nav__toggle span::after {
  position: absolute;
  top: 6px;
}

.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav__menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.nav__menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav__link {
  color: var(--text-2);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

.nav__link[aria-current="page"] {
  color: var(--accent);
}

.nav__cta {
  margin-top: var(--s-4);
}

.nav__cta .btn {
  width: 100%;
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  padding-block: var(--s-8) var(--s-9);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: radial-gradient(
      55% 60% at 22% 8%,
      rgba(34, 211, 238, 0.16),
      transparent 70%
    ),
    radial-gradient(45% 55% at 88% 0%, rgba(59, 130, 246, 0.14), transparent 72%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

.hero__copy {
  max-width: 620px;
}

.hero h1 .hl {
  color: var(--accent);
}

.hero__sub {
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  color: var(--text-2);
  max-width: 56ch;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-5);
  font-size: 0.88rem;
  color: var(--muted);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.hero__meta svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex: none;
}

/* Terminal visual */
.terminal {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: rise 700ms var(--ease) both;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line-soft);
}

.terminal__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
  flex: none;
}

.terminal__dot--a {
  background: #f87171;
}
.terminal__dot--b {
  background: #fbbf24;
}
.terminal__dot--c {
  background: var(--ok);
}

.terminal__title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.terminal__body {
  padding: var(--s-5);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.85;
  color: #cbd5e1;
  min-height: 230px;
}

.terminal__line {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

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

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

.terminal__ok {
  color: var(--ok);
}

.terminal__cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.05s steps(1) infinite;
}

/* ---------- 9. Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  height: 100%;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: var(--s-2);
}

.card p:last-child {
  margin-bottom: 0;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  margin-bottom: var(--s-4);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card--flat:hover {
  transform: none;
}

/* Problem / pain list */
.pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-4);
}

.pain-list li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  margin: 0;
}

.pain-list svg {
  width: 20px;
  height: 20px;
  color: var(--err);
  flex: none;
  margin-top: 3px;
}

.pain-list b {
  color: var(--text);
}

/* Feature checklist */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-3);
}

.check-list li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  margin: 0;
  color: var(--text-2);
}

.check-list svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
  flex: none;
  margin-top: 4px;
}

.check-list--tight {
  gap: var(--s-2);
}

/* ---------- 10. Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--s-5);
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  position: relative;
  padding: var(--s-5);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-family: var(--mono);
  margin-bottom: var(--s-4);
}

.step h3 {
  margin-bottom: var(--s-2);
}

.step p:last-child {
  margin-bottom: 0;
}

/* ---------- 11. Pricing ---------- */
.price-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.plan:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}

.plan--featured {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line), var(--shadow);
}

.plan__tag {
  position: absolute;
  top: -13px;
  left: var(--s-5);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: var(--r-pill);
}

.plan__name {
  font-size: 1.15rem;
  font-weight: 750;
  color: #fff;
  margin: 0 0 var(--s-2);
}

.plan__desc {
  font-size: 0.92rem;
  color: var(--muted);
  min-height: 3em;
  margin-bottom: var(--s-5);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-bottom: var(--s-2);
}

.plan__amount {
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan__per {
  font-size: 0.85rem;
  color: var(--muted);
}

.plan__note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: var(--s-5);
}

.plan__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6);
  display: grid;
  gap: var(--s-3);
  font-size: 0.93rem;
}

.plan__list li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  margin: 0;
  color: var(--text-2);
}

.plan__list svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
  margin-top: 4px;
}

.plan__foot {
  margin-top: auto;
}

.plan__foot .btn {
  width: 100%;
}

.pricing-note {
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  font-size: 0.92rem;
  color: var(--text-2);
}

.pricing-note p:last-child {
  margin-bottom: 0;
}

/* Four-tier pricing grid */
.price-grid--4 .plan {
  padding: var(--s-5) var(--s-4);
}

@media (min-width: 640px) {
  .price-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .price-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
}

thead th {
  color: #fff;
  font-weight: 700;
  background: var(--surface);
  position: sticky;
  top: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td strong {
  color: #fff;
}

/* ---------- 12. Diagram ---------- */
.diagram {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow);
}

.diagram svg {
  width: 100%;
  height: auto;
}

.diagram__caption {
  margin: var(--s-4) 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- 13. FAQ ---------- */
.faq {
  display: grid;
  gap: var(--s-3);
  max-width: 820px;
  margin-inline: auto;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}

.faq__item.is-open {
  border-color: var(--accent-line);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: none;
  border: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
}

.faq__q:hover {
  color: #fff;
}

.faq__icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__q[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms var(--ease);
}

.faq__a-inner {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--text-2);
  font-size: 0.95rem;
}

.faq__a-inner p:last-child {
  margin-bottom: 0;
}

/* ---------- 14. Callouts / alerts ---------- */
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
  margin: 0 0 var(--s-5);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout--warn {
  border-left-color: #fb923c;
  background: rgba(251, 146, 60, 0.07);
}

.callout--ok {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.callout__title {
  display: block;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s-2);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.28rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}

.badge--ok {
  background: var(--ok-soft);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--ok);
}

.badge--free {
  background: var(--ok-soft);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--ok);
}

/* ---------- 15. CTA band ---------- */
.cta-band {
  position: relative;
  margin-block: var(--s-8);
  padding: var(--s-8) var(--s-5);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #0a1a2e, #0c2a3a 55%, #0b1a2e);
  border: 1px solid var(--accent-line);
  overflow: hidden;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% 40% auto -20%;
  height: 460px;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.22), transparent);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  margin-bottom: var(--s-3);
}

.cta-band p {
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--s-5);
}

/* ---------- 16. Forms ---------- */
.form {
  display: grid;
  gap: var(--s-4);
}

.form__row {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: var(--s-2);
}

.field label {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text);
}

.field label .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--text);
  font-size: 0.96rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #63758f;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
  background: var(--surface);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--err);
  box-shadow: 0 0 0 3px var(--err-soft);
}

.field__error {
  font-size: 0.82rem;
  color: var(--err);
  min-height: 1.1em;
  display: none;
}

.field.has-error .field__error {
  display: block;
}

.field__hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.form__status {
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
  font-size: 0.94rem;
  display: none;
}

.form__status.is-visible {
  display: block;
}

.form__status--ok {
  background: var(--ok-soft);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #d1fae5;
}

.form__status--err {
  background: var(--err-soft);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fee2e2;
}

.form__status strong {
  color: #fff;
}

.form__status ul {
  margin: var(--s-3) 0 0;
  padding-left: 1.1rem;
}

.fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-3);
}

/* Contact info list */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-4);
}

.contact-list li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  margin: 0;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
  margin-top: 3px;
}

.contact-list b {
  display: block;
  color: #fff;
  font-size: 0.94rem;
}

.contact-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: var(--s-7) var(--s-5);
  margin-top: var(--s-8);
}

.footer__grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}

.footer__brand p {
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer__col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-4);
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-2);
}

.footer__col li {
  margin: 0;
}

.footer__col a {
  color: var(--text-2);
  font-size: 0.93rem;
}

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

.footer__bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer__bottom p {
  margin: 0;
  font-size: 0.85rem;
}

.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

/* ---------- 18. Page header (interior pages) ---------- */
.page-head {
  position: relative;
  padding-block: var(--s-8) var(--s-7);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -60% 30% auto -10%;
  height: 420px;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.14), transparent);
  pointer-events: none;
}

.page-head__inner {
  position: relative;
  max-width: 760px;
}

.breadcrumbs {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: var(--s-4);
}

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

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

.breadcrumbs span[aria-hidden] {
  margin-inline: 0.4rem;
  opacity: 0.6;
}

/* Prose (setup guide) */
.prose {
  max-width: 780px;
}

.prose h2 {
  margin-top: var(--s-7);
}

.prose h3 {
  margin-top: var(--s-6);
}

.prose ul,
.prose ol {
  color: var(--text-2);
}

.prose li {
  margin-bottom: var(--s-2);
}

.code-block {
  background: #060a12;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
  overflow-x: auto;
  color: #cbd5e1;
  font-size: 0.86rem;
  line-height: 1.7;
  margin: 0 0 var(--s-5);
}

.code-block code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.code-block .c {
  color: var(--muted);
}

.code-block .k {
  color: var(--accent);
}

/* Anchor list / index */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: var(--s-3);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.93rem;
}

/* ---------- 19. 404 ---------- */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s-8) var(--s-5);
}

.error-page__code {
  font-family: var(--mono);
  font-size: clamp(4rem, 20vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--s-4);
}

/* ---------- 20. Utilities ---------- */
.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;
}

.stack > * + * {
  margin-top: var(--s-5);
}

.stack-sm > * + * {
  margin-top: var(--s-3);
}

.mt-0 {
  margin-top: 0;
}
.mt-4 {
  margin-top: var(--s-4);
}
.mt-5 {
  margin-top: var(--s-5);
}
.mt-6 {
  margin-top: var(--s-6);
}
.mb-0 {
  margin-bottom: 0;
}
.mb-5 {
  margin-bottom: var(--s-5);
}

.split {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

.split--media-first .split__media {
  order: -1;
}

/* ---------- 21. Motion ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.node-pulse {
  transform-origin: center;
  animation: pulse-ring 2.6s var(--ease) infinite;
}

/* ---------- 22. Responsive ---------- */
@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  :root {
    --header-h: 74px;
  }
  .section {
    padding-block: var(--s-9);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
  .split {
    grid-template-columns: 1.05fr 1fr;
  }
  .split--media-first .split__media {
    order: 0;
  }
  .container {
    padding-inline: var(--s-6);
  }
}

@media (min-width: 1000px) {
  .nav__toggle {
    display: none;
  }
  .nav__menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: var(--s-5);
    max-height: none;
    overflow: visible;
  }
  .nav__link {
    padding: 0.4rem 0;
    border-bottom: 0;
    font-size: 0.94rem;
  }
  .nav__cta {
    margin-top: 0;
  }
  .nav__cta .btn {
    width: auto;
  }
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--s-8);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
  }
}

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .terminal__cursor {
    animation: none;
  }
  .node-pulse {
    animation: none;
  }
}

/* ---------- 24. Print ---------- */
@media print {
  .site-header,
  .nav__menu,
  .cta-band,
  .site-footer {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
