/* ==========================================================================
   NodeOps Security OÜ — Design System
   Self-contained. No external fonts, no CDNs, no trackers.
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography
   5.  Buttons & links
   6.  Header / navigation
   7.  Hero
   8.  Cards & grids
   9.  Sections & components
   10. Forms
   11. Footer
   12. Utilities
   13. Motion
   14. Responsive
   ========================================================================== */

/* 1. Tokens ================================================================ */

:root {
  /* Surfaces */
  --bg:            #06090e;
  --bg-soft:       #080d14;
  --surface:       #0c131d;
  --surface-2:     #101927;
  --surface-3:     #16212f;

  /* Lines */
  --line:          rgba(150, 178, 210, 0.12);
  --line-strong:   rgba(150, 178, 210, 0.22);

  /* Ink */
  --text:          #e9f0f8;
  --text-2:        #aebccd;
  --muted:         #7d8da3;

  /* Brand */
  --accent:        #3de3b0;
  --accent-ink:    #04140f;
  --accent-2:      #5b8cff;
  --accent-3:      #a98bff;
  --danger:        #ff6b6b;
  --warn:          #ffb454;

  /* Glows */
  --glow-a:        rgba(61, 227, 176, 0.16);
  --glow-b:        rgba(91, 140, 255, 0.16);

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

  /* Metrics */
  --container: 1200px;
  --narrow: 800px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --pad-section: clamp(4.5rem, 9vw, 8rem);
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:    0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.95);

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

/* 2. Reset & base ========================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Ambient background wash — pure CSS, no image requests. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 12% -8%,  var(--glow-a), transparent 62%),
    radial-gradient(820px 560px at 92% 4%,   var(--glow-b), transparent 60%),
    radial-gradient(700px 700px at 50% 108%, rgba(169, 139, 255, 0.10), transparent 62%);
  pointer-events: none;
}

/* Faint engineering grid. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right,  rgba(150, 178, 210, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 178, 210, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 12%, transparent 78%);
          mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 12%, transparent 78%);
  pointer-events: none;
}

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

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

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

/* 3. Layout primitives ===================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--narrow); }

.section { padding-block: var(--pad-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--flush-top { padding-top: 0; }

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(12, 19, 29, 0.72) 14%, rgba(12, 19, 29, 0.72) 86%, transparent);
  border-block: 1px solid var(--line);
}

.rule { height: 1px; background: var(--line); border: 0; }

/* 4. Typography ============================================================ */

h1, h2, h3, h4, h5 {
  color: var(--text);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.95rem, 4.2vw, 2.95rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; letter-spacing: -0.015em; }

p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.735rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.15rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}

.lead {
  font-size: clamp(1.06rem, 1.9vw, 1.22rem);
  line-height: 1.66;
  color: var(--text-2);
}

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head p { margin-top: 1.1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.text-gradient {
  /* The tail colour is lighter than --accent-2 so the end of a long heading
     does not read as dimmer than its start; Portuguese and Estonian headings
     are longer than the English, so more text lands in this part of the ramp. */
  background: linear-gradient(104deg, var(--accent) 0%, #7ee8ff 45%, #7fa6ff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

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

/* 5. Buttons & links ======================================================= */

a { color: var(--accent); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: #7ef0cb; }

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.945rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease),
              background-color 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #57e6ff);
  box-shadow: 0 10px 30px -12px rgba(61, 227, 176, 0.75);
}
.btn--primary:hover { box-shadow: 0 16px 38px -12px rgba(61, 227, 176, 0.9); }

.btn--ghost {
  background: rgba(150, 178, 210, 0.05);
  border-color: var(--line-strong);
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(150, 178, 210, 0.1); border-color: rgba(61, 227, 176, 0.45); color: var(--text); }

.btn--sm { padding: 0.62rem 1.15rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn__icon { width: 16px; height: 16px; flex: none; transition: transform 0.2s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--accent);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 6. Header / navigation =================================================== */

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--accent-ink); }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              backdrop-filter 0.25s var(--ease);
}

.header.is-stuck {
  background: rgba(6, 9, 14, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
          backdrop-filter: blur(16px) saturate(160%);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.015rem; font-weight: 650; letter-spacing: -0.028em; }
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.605rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }

.nav__link {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(150, 178, 210, 0.07); }
.nav__link[aria-current="page"] { color: var(--accent); }

.header__tail { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.6rem; }

/* Language picker - a native <details>, so it opens without JavaScript */
.langpick { position: relative; }
.langpick summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(150, 178, 210, 0.05);
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}
.langpick summary::-webkit-details-marker { display: none; }
.langpick summary::marker { content: ""; }
.langpick summary:hover { color: var(--text); border-color: rgba(61, 227, 176, 0.4); }
.langpick summary > svg { width: 15px; height: 15px; flex: none; }
.langpick__current { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; }
.langpick__chev { width: 13px; height: 13px; opacity: 0.6; transition: transform 0.2s var(--ease); }
.langpick[open] .langpick__chev { transform: rotate(180deg); }

.langpick__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 178px;
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(12, 19, 29, 0.98);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  z-index: 120;
}
.langpick__menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 0.9rem;
}
.langpick__menu a:hover { background: rgba(150, 178, 210, 0.08); color: var(--text); }
.langpick__menu a[aria-current="true"] { color: var(--accent); }
.langpick__code {
  flex: none;
  padding: 0.14rem 0.36rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.langpick__menu a[aria-current="true"] .langpick__code {
  color: var(--accent);
  border-color: rgba(61, 227, 176, 0.4);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(150, 178, 210, 0.05);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s var(--ease), background-color 0.15s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top:  5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

/* 7. Hero ================================================================== */

.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 8vw, 7rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title { margin-bottom: 1.5rem; }
.hero__lead { max-width: 56ch; margin-bottom: 2.2rem; font-size: clamp(1.06rem, 1.9vw, 1.2rem); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.95rem 0.42rem 0.55rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(150, 178, 210, 0.05);
  font-size: 0.815rem;
  color: var(--text-2);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.badge__dot {
  width: 7px; height: 7px;
  margin-left: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 227, 176, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
  flex: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(61, 227, 176, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(61, 227, 176, 0); }
}

.hero__visual { position: relative; }
.hero__visual img { width: 100%; }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero__meta div { min-width: 0; }
.hero__meta dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.hero__meta dd { color: var(--text); font-weight: 550; font-size: 0.97rem; }

/* Page hero (interior pages) */
.page-hero { padding-block: clamp(3.25rem, 7vw, 5.25rem) clamp(2.5rem, 5vw, 3.5rem); }
.page-hero h1 { margin-bottom: 1.25rem; }
.page-hero .lead { max-width: 62ch; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.755rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { opacity: 0.45; }

/* 8. Cards & grids ========================================================= */

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(150, 178, 210, 0.055), rgba(150, 178, 210, 0.015)),
    var(--surface);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}

/* Corner sheen that follows the pointer (set by JS). */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(61, 227, 176, 0.14), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

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

.card > * { position: relative; }
.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.955rem; }
.card__foot { margin-top: auto; padding-top: 1.35rem; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(61, 227, 176, 0.24);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(61, 227, 176, 0.14), rgba(91, 140, 255, 0.08));
  color: var(--accent);
  flex: none;
}
.card__icon svg { width: 22px; height: 22px; }

.card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.card--flat { background: var(--surface); }
.card--flat:hover { transform: none; }

/* Feature list inside cards */
.ticks { list-style: none; padding: 0; margin-top: 1.2rem; display: grid; gap: 0.6rem; }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.915rem;
  color: var(--text-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0.85;
}

/* 9. Sections & components ================================================= */

/* Trust / marquee strip */
.strip {
  border-block: 1px solid var(--line);
  background: rgba(12, 19, 29, 0.5);
  padding-block: 1.6rem;
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
}
.strip__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.strip__item svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: clamp(1.5rem, 3vw, 2.1rem); background: var(--surface); }
.stat__value {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.55rem;
}
.stat__label { font-size: 0.875rem; color: var(--muted); }

/* Process steps */
.steps { list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: 2.25rem; border-top: 1px solid var(--line); counter-increment: step; }
.step::before {
  content: "0" counter(step);
  position: absolute;
  top: -0.85rem;
  left: 0;
  padding-right: 0.75rem;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.step::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.step h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.step p { font-size: 0.93rem; }

/* Split feature block */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media img { width: 100%; border-radius: var(--radius-lg); }

/* Panel — bordered emphasis block */
.panel {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(150, 178, 210, 0.05), transparent), var(--surface);
}

/* Accordion / FAQ */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: clamp(1rem, 1.6vw, 1.09rem);
  font-weight: 550;
  letter-spacing: -0.015em;
  transition: color 0.18s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--accent); }
.accordion summary .chev {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.18s var(--ease);
}
.accordion details[open] summary .chev { transform: rotate(45deg); color: var(--accent); }
.accordion__body { padding-bottom: 1.5rem; max-width: 78ch; }
.accordion__body p + p { margin-top: 0.9rem; }

/* Contact / CTA band */
.cta-band {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.25rem);
  border: 1px solid var(--line-strong);
  border-radius: clamp(var(--radius-lg), 3vw, 32px);
  background:
    radial-gradient(760px 380px at 15% 0%, rgba(61, 227, 176, 0.16), transparent 62%),
    radial-gradient(640px 360px at 88% 100%, rgba(91, 140, 255, 0.16), transparent 62%),
    var(--surface);
  overflow: hidden;
  text-align: center;
}
.cta-band h2 { margin-bottom: 1.1rem; }
.cta-band p { max-width: 58ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-band .btn-row { justify-content: center; }

/* Definition rows (company facts) */
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) 1fr;
  gap: 1rem;
  padding: 1rem clamp(1rem, 2.4vw, 1.5rem);
  background: var(--surface);
}
.facts > div + div { border-top: 1px solid var(--line); }
.facts dt { font-size: 0.875rem; color: var(--muted); }
.facts dd { font-size: 0.945rem; color: var(--text); }

/* Contact channel tiles */
.channels { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.channel {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s var(--ease);
}
.channel:hover { border-color: rgba(61, 227, 176, 0.4); }
.channel svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 0.25rem; }
.channel > span { min-width: 0; }
.channel__label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.2rem; }
.channel__value { display: block; color: var(--text); font-weight: 550; word-break: break-word; }

/* Prose (legal pages) */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); margin-top: 2.75rem; margin-bottom: 0.9rem; }
.prose h3 { font-size: 1.08rem; margin-top: 1.9rem; margin-bottom: 0.65rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose > *:first-child { margin-top: 0; }

/* Notice */
.notice {
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 180, 84, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 180, 84, 0.06);
  font-size: 0.9rem;
  color: var(--text-2);
}
.notice svg { width: 18px; height: 18px; color: var(--warn); flex: none; margin-top: 0.2rem; }

/* 10. Forms ================================================================ */

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.855rem; font-weight: 550; color: var(--text); }
.field .req { color: var(--accent); }
.field .hint { font-size: 0.79rem; color: var(--muted); }

.input, .textarea, .select {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(6, 9, 14, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.945rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease);
}
.textarea { min-height: 150px; resize: vertical; }
.select { appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8da3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 17px;
}
.select option { background: var(--surface-2); color: var(--text); }

.input::placeholder, .textarea::placeholder { color: #5f7086; }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(6, 9, 14, 0.9);
  box-shadow: 0 0 0 3px rgba(61, 227, 176, 0.14);
}

.checkbox { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.875rem; color: var(--text-2); }
.checkbox input { margin-top: 0.25rem; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }

/* Honeypot — hidden from humans, visible to naive bots. */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form__status { padding: 0.9rem 1.1rem; border-radius: 11px; font-size: 0.9rem; display: none; }
.form__status.is-ok    { display: block; border: 1px solid rgba(61, 227, 176, 0.35); background: rgba(61, 227, 176, 0.08); color: #b6f5e0; }
.form__status.is-error { display: block; border: 1px solid rgba(255, 107, 107, 0.35); background: rgba(255, 107, 107, 0.08); color: #ffc9c9; }

/* 11. Footer =============================================================== */

.footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  background: rgba(8, 13, 20, 0.6);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--line);
}
.footer__about p { font-size: 0.915rem; margin-top: 1.1rem; max-width: 42ch; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.05rem;
}
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 0.65rem; }
.footer__col a { color: var(--text-2); font-size: 0.925rem; }
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.75rem;
  font-size: 0.845rem;
  color: var(--muted);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--accent); }
.footer__domains { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; }

/* 12. Utilities ============================================================ */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mt-0  { margin-top: 0 !important; }
.mt-1  { margin-top: 0.75rem; }
.mt-2  { margin-top: 1.5rem; }
.mt-3  { margin-top: 2.25rem; }
.mt-4  { margin-top: 3rem; }
.mb-2  { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-small { font-size: 0.875rem; }

.pill {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(150, 178, 210, 0.05);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Etymology block — the origin of the name (About page) */
.etym { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.etym__entry {
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(150, 178, 210, 0.05), transparent), var(--surface);
}
.etym__term {
  font-family: var(--font-mono);
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(104deg, var(--accent), #7ee8ff 55%, var(--accent-2));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.etym__pos {
  display: block;
  margin: 0.7rem 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.etym__entry p + p { margin-top: 0.85rem; }
.etym__note {
  grid-column: 1 / -1;
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid rgba(61, 227, 176, 0.24);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(61, 227, 176, 0.07), rgba(91, 140, 255, 0.05));
}
.etym__note p { font-size: clamp(1.02rem, 1.8vw, 1.16rem); color: var(--text); max-width: 68ch; }
.etym__note p + p { margin-top: 0.9rem; color: var(--text-2); font-size: 1rem; }

/* Contact page: wider form column beside the channel sidebar */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-grid .channels { grid-template-columns: 1fr; }

@media (max-width: 880px) {
  .etym { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Centred variants (404 page, centred section heads) */
.eyebrow--centre { justify-content: center; }
.btn-row--centre, .pill-row--centre { justify-content: center; }

/* Interactive pills (404 shortcuts) */
a.pill { transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
                     background-color 0.18s var(--ease); }
a.pill:hover { border-color: rgba(61, 227, 176, 0.5); color: var(--accent);
               background: rgba(61, 227, 176, 0.07); }

/* Launch placeholder — deliberately loud so it cannot ship unnoticed */
.todo {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1px dashed var(--warn);
  border-radius: 6px;
  background: rgba(255, 180, 84, 0.1);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--warn);
}

/* Legal pages use .facts inside .prose */
.prose .facts { margin-bottom: 1.5rem; }
.prose .notice { margin-bottom: 1.75rem; }
.prose .notice p { margin-bottom: 0; }

/* Standalone artwork bands — keep diagrams centred and at a readable width */
.art-band { max-width: 860px; margin-inline: auto; }

/* Column headings on the contact page sit inside panels, so they run smaller */
.contact-grid h2 { font-size: clamp(1.45rem, 2.3vw, 1.8rem); }

/* 13. Motion =============================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* 14. Responsive =========================================================== */

@media (max-width: 1024px) {
  .grid--4  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: 1fr; }
  /* Stacked layouts lead with the message, not the diagram. */
  .hero__visual { max-width: 520px; margin-inline: auto; }
  .hero { padding-block: clamp(2rem, 6vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 74px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin: 0;
    padding: 1rem var(--gutter) 1.75rem;
    background: rgba(6, 9, 14, 0.97);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(18px);
            backdrop-filter: blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 0.85rem 0.6rem; border-radius: 10px; font-size: 1rem; }
  .header__tail {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    margin: 0.85rem 0 0;
  }
  .header__tail .btn { width: 100%; }
  /* summary is inline-flex by default, so it would not stretch in the drawer */
  .langpick summary { display: flex; width: 100%; justify-content: center; padding: 0.8rem; }
  .langpick__menu { position: static; width: 100%; margin-top: 0.45rem; box-shadow: none; }
  .header.is-stuck,
  .header:has(.nav.is-open) { background: rgba(6, 9, 14, 0.92); border-bottom-color: var(--line); }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .channels { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

@media (max-width: 560px) {
  .grid--4, .stats, .steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .strip__inner { gap: 0.9rem; }
}

@media print {
  body::before, body::after, .header, .footer, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
