/* =========================================================================
   RontgenTek — design system
   Concept: "Line-scan", X-ray tech. Dark theme.
   Brand: Signal Cyan #0BB4C7 · Ink #161A20 · Panel #12161D
   Type:  Space Grotesk (head) · JetBrains Mono (labels) · Inter (body)
   ========================================================================= */

/* ----- Tokens ----------------------------------------------------------- */
:root {
  /* surfaces */
  --bg:          #0e1218;
  --panel:       #12161d;
  --surface:     #161b23;
  --surface-2:   #1b2330;
  --surface-3:   #222c3b;

  /* lines */
  --border:        rgba(233, 240, 247, 0.09);
  --border-soft:   rgba(233, 240, 247, 0.05);
  --border-cyan:   rgba(11, 180, 199, 0.28);

  /* text */
  --text:        #e8eef5;
  --text-dim:    #aeb8c6;
  --muted:       #8a94a6;
  --muted-2:     #6b7585;

  /* brand */
  --cyan:        #0bb4c7;
  --cyan-bright: #22d4e6;
  --cyan-soft:   #6cd0da;
  --cyan-pale:   #a9e4ea;
  --cyan-deep:   #0a7d88;
  --cyan-deeper: #075a63;

  /* effects */
  --glow:        0 0 0 1px var(--border-cyan), 0 18px 50px -18px rgba(11, 180, 199, 0.35);
  --shadow:      0 24px 60px -28px rgba(0, 0, 0, 0.75);
  --radius:      14px;
  --radius-sm:   9px;
  --radius-lg:   22px;

  --maxw:        1180px;
  --gutter:      clamp(20px, 5vw, 56px);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient background: faint scan grid + cyan aura */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(11, 180, 199, 0.14), transparent 60%),
    radial-gradient(900px 700px at 8% 4%, rgba(34, 212, 230, 0.07), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(233, 240, 247, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 240, 247, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(11, 180, 199, 0.32); color: #fff; }

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

/* ----- Layout ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* detector strip — recurring pixel-row motif from the logo symbol */
.detector-strip {
  display: flex;
  gap: 3px;
  height: 6px;
  width: 100%;
  overflow: hidden;
  opacity: 0.85;
}
.detector-strip i {
  flex: 1 1 auto;
  border-radius: 1px;
  background: var(--cyan-deeper);
}
.detector-strip i:nth-child(3n)   { background: var(--cyan-deep); }
.detector-strip i:nth-child(4n)   { background: var(--cyan); }
.detector-strip i:nth-child(7n)   { background: var(--cyan-soft); }
.detector-strip i:nth-child(11n)  { background: var(--cyan-pale); }

/* ----- Typography ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.42rem); }
h4 { font-size: 1.05rem; }

p { color: var(--text-dim); }
strong { color: #fff; font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  max-width: 60ch;
}
.text-cyan { color: var(--cyan-soft); }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  --b: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  padding: 0.82em 1.5em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: linear-gradient(180deg, var(--cyan-bright), var(--cyan));
  color: #04222a;
  box-shadow: 0 12px 30px -12px rgba(11, 180, 199, 0.7);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(34, 212, 230, 0.8);
}
.btn--ghost {
  background: rgba(233, 240, 247, 0.02);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--border-cyan);
  background: rgba(11, 180, 199, 0.06);
  transform: translateY(-2px);
}
.btn--block { width: 100%; justify-content: center; }

/* ----- Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 18, 24, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand__sym { height: 30px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  position: relative;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 0.55em 0.85em;
  border-radius: 7px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: #fff; background: rgba(233, 240, 247, 0.04); }
.nav a.is-active { color: var(--cyan-soft); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0.85em; right: 0.85em; bottom: 4px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  border-radius: 2px;
}
/* Primary CTA inside the nav keeps its button look in all states.
   The generic `.nav a` (0,1,1) outweighs `.btn--primary` (0,1,0), so without
   this the dark button text falls back to the light nav-link colour and blends
   into the cyan fill (and .is-active / :hover made it worse). */
.nav a.btn--primary,
.nav a.btn--primary.is-active,
.nav a.btn--primary:hover { color: #04222a; }
.nav a.btn--primary:hover { background: linear-gradient(180deg, var(--cyan-bright), var(--cyan)); }
.nav a.btn--primary.is-active::after { content: none; }

.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* language switch */
.lang {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
}
.lang a {
  padding: 0.45em 0.7em;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}
.lang a + a { border-left: 1px solid var(--border); }
.lang a:hover { color: var(--text); }
.lang a.is-active { background: rgba(11, 180, 199, 0.16); color: var(--cyan-soft); }

.header-cta { display: inline-flex; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.burger span::before { transform: translate(-50%, -7px); }
.burger span::after  { transform: translate(-50%, 5px); }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { transform: translate(-50%, -50%) rotate(45deg); }
body.nav-open .burger span::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ----- Hero ------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(64px, 11vw, 150px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero__scan {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(11, 180, 199, 0.55), transparent);
  width: 38%;
  filter: blur(3px);
  opacity: 0.5;
  animation: scan 7s var(--ease) infinite;
}
@keyframes scan {
  0%   { transform: translateX(-120%); opacity: 0; }
  18%  { opacity: 0.55; }
  82%  { opacity: 0.55; }
  100% { transform: translateX(360%); opacity: 0; }
}
.hero h1 { margin-top: 18px; max-width: 16ch; }
.hero .lead { margin-top: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__strip { margin-top: 56px; }

/* ----- Section heads ---------------------------------------------------- */
.section-head { max-width: 62ch; margin-bottom: clamp(34px, 4vw, 56px); }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 14px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ----- Cards grid ------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(11, 180, 199, 0.1);
  border: 1px solid var(--border-cyan);
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--cyan-soft);
}
.card__link .arrow { transition: transform 0.25s var(--ease); }
.card:hover .card__link .arrow { transform: translateX(4px); }
.card__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* feature card (no link) */
.feature { padding: 24px; }
.feature h3 { font-size: 1.1rem; }

/* ----- Feature / bullet lists ------------------------------------------ */
.ticks { list-style: none; padding: 0; display: grid; gap: 13px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--text-dim);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 11px; height: 11px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(11, 180, 199, 0.6);
}
.ticks strong { color: #fff; }

/* numbered process */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 20px 22px 20px 64px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 20px; top: 18px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan);
}
.steps strong { display: block; color: #fff; margin-bottom: 3px; }

/* ----- Tables ----------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
thead th {
  background: var(--surface);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(11, 180, 199, 0.035); }
td strong, th strong { color: #fff; }

/* ----- Diagram / code panel (ASCII pipelines) -------------------------- */
.diagram {
  background: linear-gradient(180deg, var(--panel), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  overflow-x: auto;
  position: relative;
}
.diagram::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deeper));
}
.diagram pre {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--cyan-soft);
  white-space: pre;
}

/* ----- Flow diagram (system architecture schema) ----------------------- */
.flow { display: flex; flex-direction: column; align-items: center; gap: 0; margin-block: 8px; }
.flow__node {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, var(--surface), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  text-align: center;
}
.flow__node h4 { font-size: 1.06rem; color: #fff; }
.flow__node p { font-size: 0.85rem; color: var(--muted); margin-top: 5px; }
.flow__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 6px;
}
.flow__node--lead {
  border-color: var(--border-cyan);
  box-shadow: 0 0 0 1px var(--border-cyan), 0 22px 50px -26px rgba(11, 180, 199, 0.45);
}
.flow__node--out { background: rgba(11, 180, 199, 0.06); border-color: var(--border-cyan); }

.flow__step { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.flow__arrow {
  display: block;
  position: relative;
  width: 2px;
  height: 42px;
  background: linear-gradient(180deg, var(--cyan), rgba(11, 180, 199, 0.2));
}
.flow__arrow::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translate(-50%, 2px) rotate(45deg);
}
.flow__note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); max-width: 30ch; }

.flow__pair { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 800px; }
.flow__pair .flow__node { max-width: none; flex: 1 1 0; }
.flow__link {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin: 0 18px;
  border-radius: 50%;
  background: rgba(11, 180, 199, 0.12);
  border: 1px solid var(--border-cyan);
  color: var(--cyan-soft);
  font-size: 1.2rem;
  z-index: 2;
}
.flow__link::before, .flow__link::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px; height: 2px;
  background: var(--cyan);
}
.flow__link::before { right: 100%; }
.flow__link::after  { left: 100%; }

@media (max-width: 620px) {
  .flow__pair { flex-direction: column; }
  .flow__pair .flow__node { width: 100%; }
  .flow__link { transform: rotate(90deg); margin: 14px 0; }
  .flow__link::before, .flow__link::after { display: none; }
  .flow__step { flex-direction: column; gap: 6px; text-align: center; }
  .flow__note { max-width: none; }
}

/* ----- Pipeline (linear step chain) ------------------------------------ */
.pipeline {
  list-style: none;
  padding: 0;
  margin-block: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 18px 32px;
}
.pipeline__step {
  position: relative;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, var(--surface), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-height: 54px;
}
.pipeline__step:not(:last-child)::before {
  content: "";
  position: absolute;
  right: -30px; top: 50%;
  width: 21px; height: 2px;
  background: linear-gradient(90deg, var(--cyan-deeper), var(--cyan));
  transform: translateY(-50%);
}
.pipeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -22px; top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  transform: translateY(-50%) rotate(45deg);
}
.pipeline__k { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: #fff; line-height: 1.25; }
.pipeline__sub { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.02em; color: var(--muted); margin-top: 4px; }
.pipeline__step--in { border-color: var(--border-cyan); box-shadow: 0 0 0 1px var(--border-cyan); }
.pipeline__step--out { background: rgba(11, 180, 199, 0.07); border-color: var(--border-cyan); }

@media (max-width: 620px) {
  .pipeline { flex-direction: column; align-items: stretch; gap: 30px 0; }
  .pipeline__step:not(:last-child)::before {
    right: auto; left: 50%; top: auto; bottom: -22px;
    width: 2px; height: 14px; transform: translateX(-50%);
  }
  .pipeline__step:not(:last-child)::after {
    right: auto; left: 50%; top: auto; bottom: -19px;
    border-top: 0; border-left: 0;
    border-right: 2px solid var(--cyan);
    border-bottom: 2px solid var(--cyan);
    transform: translateX(-50%) rotate(45deg);
  }
}

/* ----- Before/after comparison slider (colorization demo) -------------- */
.compare { width: 100%; --pos: 50%; }
.compare__stage {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #05080c;
  box-shadow: var(--shadow);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.compare__img--gray { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.compare__label {
  position: absolute;
  top: 12px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(5, 8, 12, 0.62);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.compare__label--before { left: 12px; }
.compare__label--after { right: 12px; color: var(--cyan-soft); border-color: var(--border-cyan); }

.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(11, 180, 199, 0.9);
  transform: translateX(-50%);
  z-index: 4;
  cursor: ew-resize;
  touch-action: none;
}
.compare__grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--cyan-bright), var(--cyan));
  border: 2px solid rgba(5, 8, 12, 0.55);
  display: grid;
  place-items: center;
  color: #04222a;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 8px 22px -6px rgba(11, 180, 199, 0.85);
}
.compare__handle:focus-visible { outline: none; }
.compare__handle:focus-visible .compare__grip { outline: 3px solid var(--cyan-pale); outline-offset: 3px; }

.compare__pager { display: flex; gap: 8px; margin-top: 16px; justify-content: center; }
.compare__dot {
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.compare__dot:hover { color: var(--text); border-color: var(--border-cyan); }
.compare__dot.is-active { background: rgba(11, 180, 199, 0.16); color: var(--cyan-soft); border-color: var(--border-cyan); }

/* ----- Note / callout --------------------------------------------------- */
.note {
  border-left: 3px solid var(--cyan);
  background: rgba(11, 180, 199, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  color: var(--text-dim);
}
.note strong { color: var(--cyan-pale); }

/* ----- Prose (long-form content pages) --------------------------------- */
.prose { max-width: 78ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; padding-top: 0.4em; }
.prose h3 { margin-top: 1.8em; color: var(--cyan-pale); }
.prose h2 + p, .prose h3 + p, .prose h2 + .ticks, .prose h3 + .ticks { margin-top: 0.8em; }
.prose a:not(.btn):not(.card__link) {
  color: var(--cyan-soft);
  border-bottom: 1px solid var(--border-cyan);
  transition: color 0.2s, border-color 0.2s;
}
.prose a:not(.btn):not(.card__link):hover { color: var(--cyan-bright); border-color: var(--cyan-bright); }
.prose ul:not(.ticks):not(.steps) { padding-left: 1.3em; display: grid; gap: 0.5em; }
.prose ul:not(.ticks):not(.steps) li { color: var(--text-dim); }
.prose ul:not(.ticks):not(.steps) li::marker { color: var(--cyan); }
.prose .table-wrap, .prose .diagram, .prose .note { margin-block: 1.6em; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(233, 240, 247, 0.07);
  padding: 0.15em 0.45em;
  border-radius: 5px;
  color: var(--cyan-pale);
}

/* page hero (interior pages) */
.page-hero { padding-block: clamp(52px, 8vw, 96px) clamp(28px, 4vw, 48px); position: relative; }
.page-hero h1 { margin-top: 16px; max-width: 20ch; }
.page-hero .lead { margin-top: 18px; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--cyan-soft); }
.breadcrumb span { color: var(--cyan-deep); }

/* ----- CTA band --------------------------------------------------------- */
.cta {
  position: relative;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 280px at 80% 0%, rgba(11, 180, 199, 0.18), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--panel));
  padding: clamp(34px, 5vw, 60px);
  overflow: hidden;
}
.cta__strip { position: absolute; left: 0; right: 0; bottom: 0; }
.cta h2 { max-width: 18ch; }
.cta p { margin-top: 14px; max-width: 56ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ----- Stats / why-row -------------------------------------------------- */
.stat { padding: 22px; }
.stat__k { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--cyan-bright); }
.stat__v { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

/* ----- Footer ----------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding-block: clamp(44px, 6vw, 72px) 32px;
  margin-top: clamp(40px, 6vw, 80px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer .brand img { height: 34px; }
.footer-about p { margin-top: 16px; font-size: 0.92rem; color: var(--muted); max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-dim); font-size: 0.93rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan-soft); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-bottom .langs { font-family: var(--font-mono); letter-spacing: 0.05em; }

/* utility */
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.center { text-align: center; }
.maxw-sm { max-width: 720px; }
.muted { color: var(--muted); }

/* ----- 404 / not-found scanner ----------------------------------------- */
/* Big "404" rendered twice: a faint raw X-ray outline, and a glowing cyan
   "dual-energy" layer revealed through a circular lens that follows the
   pointer (or auto-sweeps when idle) — the site's before/after motif. */
.notfound { text-align: center; }
.nf { margin-inline: auto; max-width: 760px; }
.nf .eyebrow { justify-content: center; }
.nf__scanner {
  position: relative;
  display: inline-block;
  margin: 10px auto 2px;
  --lens: clamp(88px, 22vw, 180px);
  touch-action: none;
  cursor: crosshair;
}
.nf__digits {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(6.5rem, 30vw, 17rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  -webkit-user-select: none;
  user-select: none;
}
.nf__digits--raw {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(233, 240, 247, 0.16);
  text-stroke: 1.5px rgba(233, 240, 247, 0.16);
}
.nf__digits--xray {
  position: absolute;
  inset: 0;
  color: var(--cyan-bright);
  text-shadow: 0 0 22px rgba(11, 180, 199, 0.7), 0 0 64px rgba(11, 180, 199, 0.4);
  -webkit-mask: radial-gradient(circle var(--lens) at var(--mx, 50%) var(--my, 50%), #000 36%, transparent 68%);
          mask: radial-gradient(circle var(--lens) at var(--mx, 50%) var(--my, 50%), #000 36%, transparent 68%);
}
.nf__readout {
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  background: rgba(5, 8, 12, 0.6);
  border: 1px solid var(--border-cyan);
  border-radius: 6px;
  padding: 4px 9px;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.nf h1 { margin-top: 6px; max-width: 22ch; margin-inline: auto; }
.nf .lead { margin-inline: auto; margin-top: 16px; }
.nf__path {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 18px;
  word-break: break-all;
}
.nf__path b { color: var(--cyan-soft); font-weight: 500; }
.nf .hero__actions { justify-content: center; }
.nf__strip { margin-top: 46px; }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 940px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .site-header__bar { height: 62px; }

  .nav.is-mobile {
    display: flex;
    position: fixed;
    inset: 62px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px var(--gutter) 24px;
    background: rgba(14, 18, 24, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s var(--ease);
    max-height: calc(100vh - 62px);
    overflow-y: auto;
  }
  body.nav-open .nav.is-mobile { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-mobile a { padding: 0.95em 0.4em; font-size: 1.05rem; border-bottom: 1px solid var(--border-soft); border-radius: 0; }
  .nav.is-mobile a.is-active::after { display: none; }
  .nav.is-mobile .btn--primary { margin-top: 16px; justify-content: center; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
