:root {
  --bg: #070a0f;
  --bg-soft: #0a0f17;
  --panel: #0d141e;
  --panel-2: #111a26;
  --panel-3: #16212f;
  --line: #1d2836;
  --line-strong: #2b3a4d;
  --text: #e7eef7;
  --muted: #94a3b8;
  --faint: #7a8ca2;
  --accent: #38e1c4;
  --accent-soft: rgba(56, 225, 196, 0.12);
  --indigo: #6d7bff;
  --indigo-soft: rgba(109, 123, 255, 0.14);
  --danger: #ff7d8a;
  --warn: #f4c46a;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --max: 1180px;
  --radius: 14px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 120vh;
  z-index: -2;
  background:
    radial-gradient(52% 46% at 18% 8%, rgba(56, 225, 196, 0.11), transparent 62%),
    radial-gradient(46% 42% at 86% 12%, rgba(109, 123, 255, 0.13), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(20, 36, 58, 0.5), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
  will-change: transform;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 88%);
}

@keyframes drift {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  100% { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: #7ff0dc;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
}

h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.9rem);
}

h2 {
  font-size: clamp(1.65rem, 3.3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

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

code,
kbd,
samp,
pre {
  font-family: var(--mono);
  font-size: 0.92em;
}

:not(pre) > code {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.12em 0.4em;
  color: #c8f5eb;
  white-space: nowrap;
}

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

::selection {
  background: rgba(56, 225, 196, 0.28);
  color: #ffffff;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #04211c;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-weight: 650;
}

.skip:focus {
  top: 12px;
  color: #04211c;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 10, 15, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--text);
  font-weight: 660;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 28px;
}

.brand .brand-dot {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  position: relative;
  color: var(--muted);
  padding: 0.5rem 0.72rem;
  border-radius: 7px;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(148, 163, 184, 0.09);
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.28rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.nav a:not(.btn):hover::after,
.nav a:not(.btn):focus-visible::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav .btn {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--panel);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0.66rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #04211c;
  box-shadow: 0 8px 26px rgba(56, 225, 196, 0.2);
}

.btn-primary:hover {
  background: #5aebd2;
  color: #04211c;
  box-shadow: 0 10px 32px rgba(56, 225, 196, 0.3);
}

.btn-ghost {
  background: rgba(148, 163, 184, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: #3a4d64;
  color: var(--text);
}

.btn-indigo {
  background: rgba(109, 123, 255, 0.16);
  border-color: rgba(109, 123, 255, 0.45);
  color: #c3c9ff;
}

.btn-indigo:hover {
  background: rgba(109, 123, 255, 0.26);
  color: #dfe2ff;
}

.btn-block {
  width: 100%;
}

.btn-small {
  padding: 0.45rem 0.8rem;
  font-size: 0.86rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.lead {
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
  color: #b6c3d6;
  max-width: 62ch;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-top: 1px solid rgba(29, 40, 54, 0.7);
}

.section-tight {
  padding: clamp(2.4rem, 4.5vw, 3.6rem) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(1.8rem, 3.4vw, 2.9rem);
}

.section-head p {
  margin-bottom: 0;
}

.hero {
  position: relative;
  padding: clamp(2.8rem, 6vw, 5.2rem) 0 clamp(2.2rem, 4vw, 3.4rem);
}

.hero-grid {
  display: grid;
  grid: auto / minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.2rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

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

.hero h1 .grad {
  background: linear-gradient(96deg, var(--accent), var(--indigo) 46%, var(--accent) 88%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}

.hero-note {
  display: grid;
  grid: auto / repeat(3, minmax(0, 1fr));
  gap: 0.45rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-note span::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hops-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.15rem 0.9rem;
  background: linear-gradient(180deg, rgba(17, 26, 38, 0.9), rgba(10, 15, 23, 0.96));
  box-shadow: var(--shadow);
}

.hops-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.hops {
  margin: 0;
  padding: 0.2rem 0 0;
  list-style: none;
}

.hops li {
  display: grid;
  grid: auto / 2.1rem 5.6rem minmax(0, 1fr);
  gap: 0.4rem;
  align-items: baseline;
  padding: 0.52rem 0;
  border-bottom: 1px dashed rgba(38, 55, 75, 0.6);
}

.hops li:last-child {
  border-bottom: 0;
}

.hops b {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.hops span {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
}

.hops em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--faint);
}

.hops-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
}

.hops-foot b {
  font-size: 0.95rem;
  color: var(--text);
}

.graph-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(109, 123, 255, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(17, 26, 38, 0.9), rgba(10, 15, 23, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.graph-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(56, 225, 196, 0.4), rgba(109, 123, 255, 0.16) 44%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.graph-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(29, 40, 54, 0.9);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
}

.graph-lights {
  display: inline-flex;
  gap: 5px;
}

.graph-lights i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.graph-body {
  padding: 0.5rem;
}

.graph-body svg {
  width: 100%;
  height: auto;
}

.graph-foot {
  display: grid;
  grid: auto / repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(29, 40, 54, 0.9);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.graph-foot div {
  padding: 0.65rem 0.9rem;
  color: var(--faint);
}

.graph-foot div + div {
  border-left: 1px solid rgba(29, 40, 54, 0.9);
}

.graph-foot b {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
}

.node-pulse {
  animation: nodePulse 3.4s ease-in-out infinite;
  transform-origin: center;
}

.node-pulse.d2 { animation-delay: 0.7s; }
.node-pulse.d3 { animation-delay: 1.4s; }
.node-pulse.d4 { animation-delay: 2.1s; }

@keyframes nodePulse {
  0%, 100% { opacity: 0.5; r: 3; }
  50% { opacity: 1; r: 4.4; }
}

.flow {
  stroke-dasharray: 5 10;
  animation: flowDash 2.4s linear infinite;
}

.flow.slow { animation-duration: 3.8s; }
.flow.slower { animation-duration: 5.4s; }

@keyframes flowDash {
  to { stroke-dashoffset: -60; }
}

.metrics {
  display: grid;
  grid: auto / repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.metric {
  padding: 1.25rem 1.4rem;
  background: linear-gradient(180deg, rgba(17, 26, 38, 0.75), rgba(10, 15, 23, 0.9));
}

.metric .value {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.metric .value .u {
  font-size: 0.56em;
  font-weight: 550;
  letter-spacing: 0;
  margin-left: 0.05em;
  color: var(--faint);
}

.metric .value em {
  font-style: normal;
  color: var(--accent);
}

.metric .label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--faint);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid: auto / repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid: auto / repeat(2, minmax(0, 1fr));
}

.grid-4 {
  grid: auto / repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 1.4rem 1.4rem 1.5rem;
  background: linear-gradient(180deg, rgba(17, 26, 38, 0.6), rgba(10, 15, 23, 0.8));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  border-color: var(--line-strong);
  border-top-color: rgba(56, 225, 196, 0.72);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(22, 33, 47, 0.7), rgba(10, 15, 23, 0.85));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), 0 0 24px rgba(56, 225, 196, 0.09);
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p {
  font-size: 0.93rem;
  margin-bottom: 0;
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(56, 225, 196, 0.07);
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.card .icon svg {
  width: 19px;
  height: 19px;
}

.card-indigo .icon {
  background: var(--indigo-soft);
  color: #aab2ff;
}

.card-stat {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.card-stat .num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  margin-top: 0.2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.05);
}

.pill-accent {
  border-color: rgba(56, 225, 196, 0.4);
  color: var(--accent);
  background: var(--accent-soft);
}

.pill-indigo {
  border-color: rgba(109, 123, 255, 0.4);
  color: #b7beff;
  background: var(--indigo-soft);
}

.code-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #080d14;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 26, 38, 0.6);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
}

.code-head .tag {
  color: var(--accent);
}

pre {
  margin: 0;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  color: #c6d2e2;
  line-height: 1.75;
  font-size: 0.83rem;
  tab-size: 2;
}

pre .c { color: #5c7085; }
pre .k { color: #8f9dff; }
pre .s { color: #8fe3c8; }
pre .n { color: #f0c987; }
pre .f { color: #7fd6ff; }
pre .v { color: #d7e2f0; }

.split {
  display: grid;
  grid: auto / minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3.4rem);
  align-items: start;
}

.split-wide {
  grid: auto / minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.72em;
  height: 0.4em;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  opacity: 0.85;
}

.arch {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(180deg, rgba(17, 26, 38, 0.65), rgba(8, 13, 20, 0.85));
  overflow: hidden;
}

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

.arch-strip {
  display: grid;
  grid: auto / repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.arch-strip div {
  padding: 0.9rem 1rem;
  background: rgba(10, 15, 23, 0.92);
}

.arch-strip b {
  display: block;
  font-size: 0.86rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.arch-strip span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
}

.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.8rem, 4vw, 3rem);
  background:
    radial-gradient(90% 140% at 12% 0%, rgba(56, 225, 196, 0.16), transparent 55%),
    radial-gradient(80% 130% at 90% 20%, rgba(109, 123, 255, 0.18), transparent 58%),
    linear-gradient(180deg, #0e1722, #090e15);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--indigo), transparent);
  background-size: 200% 100%;
  pointer-events: none;
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band p {
  max-width: 58ch;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  background: rgba(10, 15, 23, 0.7);
}

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

th,
td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  background: rgba(17, 26, 38, 0.55);
}

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

tbody tr:hover td {
  background: rgba(56, 225, 196, 0.03);
}

td .muted {
  color: var(--faint);
  font-size: 0.84rem;
}

.mono {
  font-family: var(--mono);
  font-size: 0.88em;
}

.text-accent { color: var(--accent); }
.text-indigo { color: #aab2ff; }
.text-muted { color: var(--muted); }
.text-faint { color: var(--faint); }
.text-danger { color: var(--danger); }
.text-warn { color: var(--warn); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.6rem; }
.mt-4 { margin-top: 2.4rem; }

.tier {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 26, 38, 0.62), rgba(10, 15, 23, 0.86));
}

.tier.featured {
  border-color: rgba(56, 225, 196, 0.42);
  box-shadow: 0 0 0 1px rgba(56, 225, 196, 0.12), 0 22px 60px rgba(0, 0, 0, 0.4);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(56, 225, 196, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(17, 26, 38, 0.75), rgba(10, 15, 23, 0.9));
}

.tier h3 {
  margin-bottom: 0.25rem;
}

.tier .price {
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.1rem;
}

.tier .price span {
  font-size: 0.8rem;
  color: var(--faint);
  font-weight: 500;
}

.tier .hint {
  font-size: 0.84rem;
  color: var(--faint);
  min-height: 2.6em;
}

.tier ul {
  list-style: none;
  margin: 0.9rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.91rem;
  color: var(--muted);
}

.tier li {
  position: relative;
  padding-left: 1.3rem;
}

.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.tier .btn {
  margin-top: auto;
}

.note {
  border-left: 2px solid var(--accent);
  background: rgba(56, 225, 196, 0.05);
  padding: 0.85rem 1.1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.note-warn {
  border-left-color: var(--warn);
  background: rgba(244, 196, 106, 0.06);
}

.note-danger {
  border-left-color: var(--danger);
  background: rgba(255, 125, 138, 0.06);
}

.note-left {
  text-align: left;
}

.note strong {
  color: var(--text);
}

.listing {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.listing > article,
.listing > div {
  background: rgba(10, 15, 23, 0.9);
  padding: 1.15rem 1.3rem;
}

.listing h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.listing p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.doc-layout {
  display: grid;
  grid: auto / 232px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.doc-side {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(10, 15, 23, 0.7);
}

.doc-side h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.6rem;
}

.doc-side nav {
  display: grid;
  gap: 0.15rem;
}

.doc-side a {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.36rem 0.5rem;
  border-radius: 6px;
}

.doc-side a:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
}

.doc-main > section {
  scroll-margin-top: 92px;
  padding-bottom: 2.2rem;
  margin-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.doc-main > section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.steps {
  display: grid;
  gap: 1.6rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid: auto / 34px minmax(0, 1fr);
  gap: 1rem;
}

.step .n {
  counter-increment: step;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(56, 225, 196, 0.06);
}

.step .n::before {
  content: counter(step);
}

.step h3 {
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.93rem;
}

.step .code-card {
  margin-top: 0.8rem;
}

.auth-card {
  width: min(460px, 100%);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(90% 90% at 50% -10%, rgba(109, 123, 255, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(17, 26, 38, 0.8), rgba(9, 14, 21, 0.96));
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  font-weight: 650;
}

.auth-brand img {
  width: 32px;
  height: 32px;
}

.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.auth-card > p {
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.auth-foot {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

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

.auth-foot a:hover {
  color: var(--text);
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.1rem 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 550;
  color: #c2cede;
  margin-bottom: 0.35rem;
}

.field .hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--faint);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(7, 10, 15, 0.72);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.94rem;
  padding: 0.64rem 0.75rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #3a4d64;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 225, 196, 0.12);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 132px;
}

label.checkbox {
  display: grid;
  grid: auto / 18px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  font-size: 0.85rem;
  color: var(--muted);
}

label.checkbox input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0.18rem 0 0;
  accent-color: var(--accent);
}

.form-status {
  font-size: 0.84rem;
  color: var(--faint);
  margin-top: 0.9rem;
}

.contact-grid {
  display: grid;
  grid: auto / minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.3rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(17, 26, 38, 0.66), rgba(9, 14, 21, 0.92));
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.next-list {
  counter-reset: next;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.next-list li {
  counter-increment: next;
  position: relative;
  padding-left: 1.9rem;
  color: var(--muted);
  font-size: 0.91rem;
}

.next-list li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.3rem;
  height: 1.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
}

.contact-aside .card {
  padding: 1.2rem 1.3rem;
}

.error-hero {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 3rem 0;
}

.error-card {
  width: min(560px, 100%);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.6rem, 5vw, 2.8rem);
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(255, 125, 138, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(17, 26, 38, 0.8), rgba(9, 14, 21, 0.96));
  box-shadow: var(--shadow);
}

.error-code {
  font-family: var(--mono);
  font-size: 4rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 0.8rem;
}

.error-card .icon-bad {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 125, 138, 0.35);
  background: rgba(255, 125, 138, 0.08);
  color: var(--danger);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-good {
  border-color: rgba(56, 225, 196, 0.35);
  background: rgba(56, 225, 196, 0.08);
  color: var(--accent);
}

.error-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.4rem;
}

.faq {
  display: grid;
  gap: 0.6rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 15, 23, 0.65);
  padding: 0.15rem 1rem;
}

.faq summary {
  cursor: pointer;
  padding: 0.75rem 0;
  font-weight: 550;
  color: var(--text);
  font-size: 0.94rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}


.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  font-size: 0.9rem;
  margin: 0 0 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: clamp(2.2rem, 4vw, 3.4rem) 0 1.6rem;
  background: rgba(8, 12, 18, 0.6);
}

.footer-grid {
  display: grid;
  grid: auto / 1.5fr repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-brand p {
  font-size: 0.86rem;
  max-width: 30ch;
  color: var(--faint);
}

.footer-col h2 {
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.7rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.18rem 0;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--faint);
}

.footer-bottom .status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.footer-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-bottom: 1.1rem;
}

.footer-mini a {
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-mini a:hover {
  color: var(--text);
}

.footer-col a,
.footer-mini a {
  position: relative;
}

.footer-col a::after,
.footer-mini a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.footer-col a:hover::after,
.footer-col a:focus-visible::after,
.footer-mini a:hover::after,
.footer-mini a:focus-visible::after {
  transform: scaleX(1);
}

.footer-slim .footer-bottom {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.tiny {
  font-size: 0.78rem;
}

.footer-bottom .status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.reveal {
  opacity: 1;
}

body.js .reveal {
  opacity: 0.5;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

body.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

body.js .card.reveal.is-visible {
  transition: opacity 0.55s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes revealChild {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes revealRow {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes heroSheen {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  @keyframes ctaLine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
  }

  .hero h1 .grad {
    animation: heroSheen 10s ease-in-out infinite;
  }

  .cta-band::before {
    animation: ctaLine 9s linear infinite;
  }

  body.js .grid > .reveal.is-visible,
  body.js .reveal.is-visible > .card,
  body.js .reveal.is-visible > .tier {
    animation: revealChild 0.55s ease backwards;
  }

  body.js .reveal.is-visible tbody tr {
    animation: revealRow 0.5s ease backwards;
  }

  body.js .grid > .reveal.is-visible:nth-child(1),
  body.js .reveal.is-visible > .card:nth-child(1),
  body.js .reveal.is-visible > .tier:nth-child(1),
  body.js .reveal.is-visible tbody tr:nth-child(1) {
    animation-delay: 0ms;
  }
  body.js .grid > .reveal.is-visible:nth-child(2),
  body.js .reveal.is-visible > .card:nth-child(2),
  body.js .reveal.is-visible > .tier:nth-child(2),
  body.js .reveal.is-visible tbody tr:nth-child(2) {
    animation-delay: 70ms;
  }
  body.js .grid > .reveal.is-visible:nth-child(3),
  body.js .reveal.is-visible > .card:nth-child(3),
  body.js .reveal.is-visible > .tier:nth-child(3),
  body.js .reveal.is-visible tbody tr:nth-child(3) {
    animation-delay: 140ms;
  }
  body.js .grid > .reveal.is-visible:nth-child(4),
  body.js .reveal.is-visible > .card:nth-child(4),
  body.js .reveal.is-visible > .tier:nth-child(4),
  body.js .reveal.is-visible tbody tr:nth-child(4) {
    animation-delay: 210ms;
  }
  body.js .grid > .reveal.is-visible:nth-child(5),
  body.js .reveal.is-visible > .card:nth-child(5),
  body.js .reveal.is-visible > .tier:nth-child(5),
  body.js .reveal.is-visible tbody tr:nth-child(5) {
    animation-delay: 280ms;
  }
  body.js .grid > .reveal.is-visible:nth-child(6),
  body.js .reveal.is-visible > .card:nth-child(6),
  body.js .reveal.is-visible > .tier:nth-child(6),
  body.js .reveal.is-visible tbody tr:nth-child(6) {
    animation-delay: 350ms;
  }
  body.js .grid > .reveal.is-visible:nth-child(7),
  body.js .reveal.is-visible > .card:nth-child(7),
  body.js .reveal.is-visible > .tier:nth-child(7),
  body.js .reveal.is-visible tbody tr:nth-child(7) {
    animation-delay: 420ms;
  }
  body.js .grid > .reveal.is-visible:nth-child(8),
  body.js .reveal.is-visible > .card:nth-child(8),
  body.js .reveal.is-visible > .tier:nth-child(8),
  body.js .reveal.is-visible tbody tr:nth-child(8) {
    animation-delay: 490ms;
  }
  body.js .grid > .reveal.is-visible:nth-child(9),
  body.js .reveal.is-visible > .card:nth-child(9),
  body.js .reveal.is-visible > .tier:nth-child(9),
  body.js .reveal.is-visible tbody tr:nth-child(9) {
    animation-delay: 560ms;
  }
  body.js .grid > .reveal.is-visible:nth-child(10),
  body.js .reveal.is-visible > .card:nth-child(10),
  body.js .reveal.is-visible > .tier:nth-child(10),
  body.js .reveal.is-visible tbody tr:nth-child(10) {
    animation-delay: 630ms;
  }
  body.js .grid > .reveal.is-visible:nth-child(11),
  body.js .reveal.is-visible > .card:nth-child(11),
  body.js .reveal.is-visible > .tier:nth-child(11),
  body.js .reveal.is-visible tbody tr:nth-child(11) {
    animation-delay: 700ms;
  }
  body.js .grid > .reveal.is-visible:nth-child(12),
  body.js .reveal.is-visible > .card:nth-child(12),
  body.js .reveal.is-visible > .tier:nth-child(12),
  body.js .reveal.is-visible tbody tr:nth-child(12) {
    animation-delay: 770ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body::before {
    animation: none;
  }
  .node-pulse,
  .flow {
    animation: none;
  }
  .btn,
  .card,
  .nav a,
  input,
  select,
  textarea {
    transition: none;
  }
  .hero h1 .grad,
  .cta-band::before,
  body.js .grid > .reveal.is-visible,
  body.js .reveal.is-visible > .card,
  body.js .reveal.is-visible > .tier,
  body.js .reveal.is-visible tbody tr {
    animation: none;
  }
  .nav a::after,
  .footer-col a::after,
  .footer-mini a::after {
    transition: none;
  }
  body.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1040px) {
  .footer-grid {
    grid: auto / 1.4fr repeat(3, 1fr);
  }
  .grid-4 {
    grid: auto / repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .split,
  .split-wide,
  .contact-grid {
    grid: auto / minmax(0, 1fr);
  }
  .graph-card {
    max-width: 620px;
  }
  .doc-layout {
    grid: auto / minmax(0, 1fr);
  }
  .doc-side {
    position: static;
  }
  .doc-side nav {
    grid: auto / repeat(2, minmax(0, 1fr));
  }
  .arch-strip {
    grid: auto / repeat(3, minmax(0, 1fr));
  }
  .grid-3 {
    grid: auto / repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid: auto / repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 60px;
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: none;
  }
  body.js .nav-toggle {
    display: inline-block;
  }
  .nav {
    position: static;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    padding: 0 0 0.7rem;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }
  body.js .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.7rem 20px 1rem;
    background: rgba(8, 12, 18, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
    display: none;
  }
  .nav a {
    padding: 0.6rem 0.4rem;
    font-size: 0.96rem;
  }
  .nav .btn {
    margin: 0.5rem 0 0;
  }
  body.js.nav-open .nav {
    display: flex;
  }
}

@media (max-width: 720px) {
  .hero-note {
    grid: auto / minmax(0, 1fr);
  }
  .metrics {
    grid: auto / minmax(0, 1fr);
  }
  .metric + .metric {
    border-top: 1px solid var(--line);
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid: auto / minmax(0, 1fr);
  }
  .arch-strip {
    grid: auto / repeat(2, minmax(0, 1fr));
  }
  .graph-foot {
    grid: auto / repeat(3, minmax(0, 1fr));
  }
  .graph-foot div {
    padding: 0.55rem 0.5rem;
    font-size: 0.65rem;
  }
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-grid {
    grid: auto / minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .wrap,
  .narrow {
    width: calc(100% - 28px);
  }
  .nav {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }
  .graph-foot {
    grid: auto / minmax(0, 1fr);
  }
  .graph-foot div + div {
    border-left: 0;
    border-top: 1px solid rgba(29, 40, 54, 0.9);
  }
  th,
  td {
    padding: 0.7rem 0.8rem;
  }
}
