/* ==========================================================================
   Cerfina — dark graphite financial terminal
   Design tokens + full component system. Self-hosted Sora display font.
   ========================================================================== */

/* ---- Fonts -------------------------------------------------------------- */
@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/display-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/display-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --bg: #0D1015;
  --surface: #151A22;
  --surface-2: #1C232E;
  --border: #2A3341;
  --border-soft: #222B38;
  --text: #E8EDF4;
  --muted: #8D9AAC;
  --silver: #AEB9C6;
  --accent: #2FD4E6;
  --accent-hover: #5FE1EF;
  --accent-tint: #0E2B31;
  --btn-text: #07252B;
  --down: #E07A7A;

  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 8, 16, .45), 0 2px 8px rgba(0, 8, 16, .35);
  --shadow-md: 0 2px 4px rgba(0, 8, 16, .5), 0 10px 28px rgba(0, 8, 16, .45);
  --shadow-lg: 0 4px 8px rgba(0, 8, 16, .55), 0 22px 56px rgba(0, 8, 16, .55);

  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --container: 1200px;
  --header-h: 72px;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe, video, canvas { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; color: var(--silver); }
p { margin: 0 0 1em; color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; color: var(--text); }
li { margin-bottom: .45em; }
strong { color: var(--text); font-weight: 600; }
small { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.section-head--split > div:last-child { color: var(--muted); font-size: .98rem; padding-bottom: .4em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.lead { font-size: 1.08rem; color: var(--muted); }
.muted { color: var(--muted); }
.silver { color: var(--silver); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--btn-text);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(47, 212, 230, .25), 0 8px 26px rgba(47, 212, 230, .18);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--btn-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 10px 32px rgba(47, 212, 230, .28);
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover { background: rgba(47, 212, 230, .08); color: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--silver); transform: translateY(-2px); color: var(--text); }
.btn .icon { width: 18px; height: 18px; }
.btn-sm { padding: 11px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---- Icon badges --------------------------------------------------------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--accent-tint);
  border: 1px solid rgba(47, 212, 230, .22);
  color: var(--accent);
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--silver { background: var(--surface-2); border-color: var(--border); color: var(--silver); }
.icon-badge--sm { width: 40px; height: 40px; border-radius: 11px; }
.icon-badge--sm .icon { width: 20px; height: 20px; }
.icon { display: inline-block; vertical-align: -.18em; }

/* ---- Skip link ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: var(--btn-text);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: var(--btn-text); }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 16, 21, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(13, 16, 21, .95); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo svg { display: block; height: 38px; width: auto; }
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--text); }
.logo-word em { font-style: normal; color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-group { position: relative; }
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.nav-trigger:hover, .nav-trigger:focus-visible, .nav-trigger[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.nav-trigger .icon { width: 15px; height: 15px; transition: transform .16s ease; }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 262px;
  max-width: min(340px, calc(100vw - 40px));
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  margin: 0;
  list-style: none;
  opacity: 0;
  transform: translateY(4px);
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 110;
}
.nav-menu::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 22px;
  width: 10px;
  height: 10px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.nav-group.nav-align-right .nav-menu { left: auto; right: 0; }
.nav-group.nav-align-right .nav-menu::before { left: auto; right: 22px; }
.nav-group.is-open .nav-menu { opacity: 1; transform: translateY(0); visibility: visible; }
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .92rem;
  transition: background-color .14s ease, color .14s ease;
}
.nav-menu a .icon { width: 17px; height: 17px; color: var(--accent); flex: none; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--accent-tint); color: var(--text); }

.header-cta { flex: none; }
.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

/* Mobile nav */
.mobile-nav { display: none; border-top: 1px solid var(--border-soft); background: var(--bg); }
.mobile-nav.is-open { display: block; }
.mobile-nav__group { border-bottom: 1px solid var(--border-soft); }
.mobile-nav__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px clamp(16px, 4vw, 40px);
  cursor: pointer;
}
.mobile-nav__btn .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .16s ease; }
.mobile-nav__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-nav__list { display: none; list-style: none; margin: 0; padding: 4px clamp(16px, 4vw, 40px) 14px; }
.mobile-nav__list.is-open { display: block; }
.mobile-nav__list a {
  display: block;
  padding: 9px 12px;
  color: var(--silver);
  border-radius: var(--radius-sm);
  font-size: .95rem;
}
.mobile-nav__list a:hover, .mobile-nav__list a:focus-visible { background: var(--surface-2); color: var(--text); }
.mobile-nav__cta { padding: 18px clamp(16px, 4vw, 40px) 22px; }

/* ---- Beacon ticker row ---------------------------------------------------- */
.beacon-ticker { margin-top: -1px; }
main { display: block; }

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(58% 62% at 78% 18%, rgba(47, 212, 230, .09), transparent 62%),
    radial-gradient(42% 50% at 12% 82%, rgba(30, 41, 59, .5), transparent 70%),
    linear-gradient(180deg, #0D1015 0%, #0F1319 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M44 .5H.5V44' fill='none' stroke='%232A3341' stroke-opacity='.38'/%3E%3C/svg%3E");
  background-size: 44px 44px;
  mask-image: radial-gradient(72% 68% at 60% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(72% 68% at 60% 30%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.hero-copy > h1 { margin-bottom: .45em; }
.hero-copy .lead { max-width: 560px; font-size: 1.1rem; }

.hero-flags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 20px 0 6px;
  font-size: .92rem;
  color: var(--muted);
}
.hero-flags .flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--silver);
  font-size: .86rem;
  white-space: nowrap;
}
.hero-flags .flag img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; display: block; }
.hero-flags .flag--lead { border-color: rgba(47, 212, 230, .4); color: var(--text); }

.hero-iconlinks { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.icon-link:hover { transform: translateY(-2px); border-color: rgba(47, 212, 230, .45); color: var(--text); box-shadow: var(--shadow-md); }
.icon-link .icon { width: 20px; height: 20px; color: var(--accent); }

/* Hero terminal visual */
.hero-visual { position: relative; }
.term-panel {
  position: relative;
  background: linear-gradient(160deg, #171E28 0%, #10151D 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 18px 14px;
  z-index: 2;
}
.term-panel__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 8px;
}
.term-panel__dots { display: inline-flex; gap: 5px; }
.term-panel__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.term-panel__dots i:first-child { background: rgba(47, 212, 230, .75); }
.term-panel__title {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}
.term-panel__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--accent);
  font-weight: 600;
}
.term-panel__live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(47, 212, 230, .9);
}
.term-chart { width: 100%; height: auto; display: block; }
.term-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(21, 26, 34, .9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .78rem;
  color: var(--silver);
  white-space: nowrap;
}
.term-chip b { color: var(--accent); font-weight: 600; }
.term-chip b.down { color: var(--down); }
.term-panel__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 2px 4px; }

.hero-orbits { position: absolute; inset: -34px -14px; z-index: 1; pointer-events: none; }
.hero-orbits svg { width: 100%; height: 100%; display: block; }
.hero-visual .coin-disc { transform-box: fill-box; transform-origin: center; }
.term-candle { transform-box: fill-box; transform-origin: bottom center; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 5.5vw, 76px) 0 clamp(44px, 5.5vw, 72px);
  background:
    radial-gradient(50% 64% at 86% 12%, rgba(47, 212, 230, .08), transparent 64%),
    linear-gradient(180deg, #10141B 0%, #0D1015 100%);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M44 .5H.5V44' fill='none' stroke='%232A3341' stroke-opacity='.32'/%3E%3C/svg%3E");
  background-size: 44px 44px;
  mask-image: radial-gradient(66% 70% at 78% 22%, #000 26%, transparent 76%);
  -webkit-mask-image: radial-gradient(66% 70% at 78% 22%, #000 26%, transparent 76%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.page-hero__copy p { color: var(--muted); max-width: 560px; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--silver);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
}
.hero-badge .icon { width: 15px; height: 15px; color: var(--accent); }
.page-hero--full { padding-bottom: clamp(52px, 6vw, 84px); }
.page-hero--full .page-hero__grid { grid-template-columns: minmax(0, 1fr); }

/* ---- Form block ------------------------------------------------------------ */
.form-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 3vw, 34px);
}
.form-block__heading { font-size: 1.25rem; margin-bottom: .5em; }
.form-block__intro { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.form-block__card { margin-bottom: 14px; }
.form-block__card .beacon-form { background: transparent; }
.form-legal { font-size: .82rem; color: var(--muted); margin: 0 0 10px; }
.form-legal a { color: var(--silver); text-decoration: underline; text-underline-offset: 3px; }
.form-manager {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  color: var(--silver);
  border-top: 1px solid var(--border-soft);
  padding-top: 13px;
  margin: 0;
}
.form-manager .icon { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Beacon form fields styling (site wrapper look) */
.form-block .beacon-form__label,
.beacon-form .beacon-form__label { color: var(--silver); }
.form-block .beacon-form__input,
.beacon-form .beacon-form__input {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 14px !important;
  font-size: .96rem;
  font-family: var(--font-body);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.beacon-form__input:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(47, 212, 230, .18) !important;
}
.beacon-form__submit {
  display: block;
  width: 100%;
  background: var(--accent) !important;
  color: var(--btn-text) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 15px 20px !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(47, 212, 230, .2);
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.beacon-form__submit:hover { background: var(--accent-hover) !important; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47, 212, 230, .3); }
.beacon-form__submit:active { transform: translateY(0); }

/* ---- Exchange chips -------------------------------------------------------- */
.exchanges { background: var(--surface); border-block: 1px solid var(--border-soft); }
.exchanges__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
}
.exchanges__label {
  width: 100%;
  text-align: center;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.exchange-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--silver);
  letter-spacing: .01em;
  transition: border-color .16s ease, color .16s ease, transform .16s ease;
}
.exchange-chip:hover { border-color: rgba(47, 212, 230, .5); color: var(--text); transform: translateY(-1px); }
.exchange-chip svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---- Steps ------------------------------------------------------------------ */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(47, 212, 230, .35); }
.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--btn-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: .5em; }
.step-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---- Cards / grids ----------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 2.6vw, 28px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(47, 212, 230, .3); }
.card h3 { font-size: 1.05rem; }
.card p { color: var(--muted); font-size: .94rem; margin-bottom: 0; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.card-head h3, .card-head h4 { margin: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.grid-stagger { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }

/* ---- Comparison table --------------------------------------------------------- */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.compare-table th, .compare-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
  font-size: .95rem;
}
.compare-table thead th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--silver);
  border-bottom: 1px solid var(--border);
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .col-us {
  background: rgba(47, 212, 230, .05);
  border-inline: 1px solid rgba(47, 212, 230, .16);
  font-weight: 500;
}
.compare-table thead .col-us { color: var(--accent); }
.tick-yes, .tick-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: none;
}
.tick-yes { background: rgba(47, 212, 230, .14); color: var(--accent); }
.tick-no { background: rgba(224, 122, 122, .12); color: var(--down); }
.tick-yes .icon, .tick-no .icon { width: 13px; height: 13px; }
.tick-cell { display: flex; align-items: center; gap: 10px; }

/* ---- Tables -------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin: 0 0 24px;
}
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th, .data-table td {
  padding: 13px 16px;
  text-align: left;
  font-size: .93rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.data-table thead th {
  background: var(--surface-2);
  color: var(--silver);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .84rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: rgba(28, 35, 46, .35); }
.data-table .t-free { color: var(--accent); font-weight: 600; }
.table-note { font-size: .85rem; color: var(--muted); margin-top: -12px; }

/* ---- Reviews --------------------------------------------------------------------- */
.reviews {
  position: relative;
  background:
    radial-gradient(46% 42% at 92% 8%, rgba(47, 212, 230, .05), transparent 68%),
    var(--bg);
}
.reviews::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M0 27.5h28M.5 0v28' fill='none' stroke='%232A3341' stroke-opacity='.3' stroke-width='.6'/%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}
.reviews .container { position: relative; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(47, 212, 230, .3); }
.review-head { display: flex; align-items: center; gap: 14px; }
.review-head img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(47, 212, 230, .35);
  flex: none;
}
.review-head h3 { margin: 0; font-size: 1rem; }
.review-head .review-role { font-size: .82rem; color: var(--muted); }
.review-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.review-stat {
  font-size: .78rem;
  padding: 5px 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--silver);
}
.review-stat b { color: var(--accent); font-weight: 600; }
.review-card blockquote {
  margin: 0;
  font-size: .93rem;
  color: var(--text);
  border-left: 2px solid rgba(47, 212, 230, .4);
  padding-left: 14px;
}
.review-card--wide { grid-column: span 2; }
.reviews-note { margin-top: 22px; font-size: .84rem; color: var(--muted); display: flex; gap: 9px; align-items: flex-start; max-width: 760px; }
.reviews-note .icon { width: 16px; height: 16px; color: var(--silver); flex: none; margin-top: 3px; }

/* ---- Calculator band --------------------------------------------------------------- */
.calc-band {
  position: relative;
  background:
    radial-gradient(50% 70% at 50% 0%, rgba(47, 212, 230, .06), transparent 70%),
    var(--surface);
  border-block: 1px solid var(--border-soft);
  overflow: hidden;
}
.calc-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='20' viewBox='0 0 120 20'%3E%3Cpath d='M0 10h120M114 6l6 4-6 4' fill='none' stroke='%232A3341' stroke-opacity='.5' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 20px;
  opacity: .5;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.calc-band .container { position: relative; }
.calc-band__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.mock-chart-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
}
.mock-chart-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.mock-chart-card__head h3 { margin: 0; font-size: .92rem; }
.mock-chart-card__head small { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.mock-chart-card canvas { display: block; width: 100%; height: 240px; border-radius: var(--radius-sm); background: #0B0E13; }
.mock-chart-card__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: .78rem; color: var(--muted); }
.mock-chart-card__legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -.5px;
}

/* ---- Node mesh band (why automate) ---------------------------------------------------- */
.mesh-band { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg), #0F141C); }
.mesh-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340' viewBox='0 0 340 340'%3E%3Cg fill='none' stroke='%23AEB9C6' stroke-opacity='.16'%3E%3Ccircle cx='170' cy='170' r='150'/%3E%3Ccircle cx='170' cy='170' r='104'/%3E%3Ccircle cx='170' cy='170' r='58'/%3E%3Ccircle cx='170' cy='20' r='7' fill='%232FD4E6' fill-opacity='.55' stroke='none'/%3E%3Ccircle cx='294' cy='212' r='6' fill='%23AEB9C6' fill-opacity='.4' stroke='none'/%3E%3Ccircle cx='76' cy='252' r='6' fill='%23AEB9C6' fill-opacity='.4' stroke='none'/%3E%3Ccircle cx='52' cy='120' r='5' fill='%232FD4E6' fill-opacity='.45' stroke='none'/%3E%3Ccircle cx='276' cy='96' r='5' fill='%23AEB9C6' fill-opacity='.35' stroke='none'/%3E%3Cpath d='M170 27l124 185M294 212L76 252M76 252 52 120M52 120 276 96M276 96 170 27M52 120l170-93'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 340px 340px;
  opacity: .6;
  mask-image: radial-gradient(60% 70% at 82% 42%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(60% 70% at 82% 42%, #000 20%, transparent 72%);
  pointer-events: none;
}
.mesh-band .container { position: relative; }

/* ---- Company block ------------------------------------------------------------------------ */
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.company-facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.company-facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .93rem; }
.company-facts dt { color: var(--muted); }
.company-facts dd { margin: 0; color: var(--text); }
.company-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 14px; }
.company-cards a.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.company-cards .card h3 { margin: 0; color: var(--text); }
.company-cards .card p { margin: 0; }
.company-cards .card:hover h3 { color: var(--accent); }

/* ---- FAQ ------------------------------------------------------------------------------------ */
.faq-list { display: grid; gap: 12px; max-width: 840px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .16s ease;
}
.faq-item.is-open { border-color: rgba(47, 212, 230, .4); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .99rem;
  text-align: left;
  padding: 17px 20px;
  cursor: pointer;
}
.faq-q .icon { width: 18px; height: 18px; color: var(--accent); flex: none; transition: transform .18s ease; }
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--muted); font-size: .95rem; }
.faq-a p { margin: 0; color: var(--muted); }
.faq-a a { color: var(--accent); }
.faq-item.is-open .faq-a { display: block; }

/* ---- Alert / note boxes ------------------------------------------------------------------------ */
.note {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: .94rem;
  color: var(--silver);
  margin: 0 0 20px;
}
.note .icon { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.note--warn { border-left-color: var(--down); }
.note--warn .icon { color: var(--down); }

/* ---- Doc pages ------------------------------------------------------------------------------------ */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.doc-section { scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-section h2 { font-size: 1.35rem; padding-top: 10px; }
.doc-section h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  margin-bottom: 12px;
}
.doc-section p { color: var(--silver); max-width: 780px; }
.doc-section li { color: var(--silver); max-width: 760px; }

/* ---- Map -------------------------------------------------------------------------------------------- */
.map-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 860px;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  background: var(--surface-2);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- History timeline -------------------------------------------------------------------------------- */
.timeline { position: relative; display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border));
  border-radius: 2px;
}
.timeline li { position: relative; padding: 0 0 26px 36px; margin: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 10px rgba(47, 212, 230, .35);
}
.timeline h3 { font-size: 1.02rem; margin-bottom: .35em; }
.timeline p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---- Vacancies ---------------------------------------------------------------------------------------- */
.vacancy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: center;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.vacancy:hover { border-color: rgba(47, 212, 230, .35); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.vacancy h3 { margin-bottom: .3em; font-size: 1.08rem; }
.vacancy .vacancy-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
.vacancy p { color: var(--muted); font-size: .93rem; margin: 0; }
.vacancy-cta { grid-column: 2; grid-row: 1; }

/* ---- Breadcrumbs ---------------------------------------------------------------------------------------- */
.breadcrumbs { border-bottom: 1px solid var(--border-soft); background: var(--surface); }
.breadcrumbs .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: .84rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-hidden] { color: var(--border); }

/* ---- Footer ------------------------------------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #0C0F14, #0B0D12);
  padding: clamp(44px, 6vw, 72px) 0 28px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'%3E%3Cpath d='M0 96c40 0 44-64 88-64s52 40 152 40' fill='none' stroke='%232FD4E6' stroke-opacity='.06' stroke-width='2'/%3E%3Cpath d='M0 96c40 0 44-64 88-64s52 40 152 40' fill='none' stroke='%23AEB9C6' stroke-opacity='.05' stroke-width='1' transform='translate(0 26)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr));
  gap: 28px clamp(20px, 3vw, 40px);
  position: relative;
}
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 300px; }
.footer-col h3 {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a {
  display: block;
  padding: 4.5px 0;
  color: var(--muted);
  font-size: .9rem;
  transition: color .14s ease;
}
.footer-col a:hover, .footer-col a:focus-visible { color: var(--accent); }
.footer-disclaimer {
  margin-top: 36px;
  padding: 20px 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
}
.footer-disclaimer h2 { font-size: .95rem; margin-bottom: .6em; color: var(--silver); }
.footer-disclaimer p { font-size: .84rem; color: var(--muted); margin: 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  font-size: .84rem;
  color: var(--muted);
  position: relative;
}
.footer-bottom a { color: var(--silver); }
.footer-bottom a:hover { color: var(--accent); }

/* ---- 404 ---------------------------------------------------------------------------------------------------- */
.error-page { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.error-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.04em;
  margin-bottom: 12px;
  text-shadow: 0 0 44px rgba(47, 212, 230, .25);
}
.error-page .lead { max-width: 520px; margin-inline: auto; }

/* ---- Special offer -------------------------------------------------------------------------------------------- */
.urgency-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: linear-gradient(90deg, rgba(47, 212, 230, .16), rgba(47, 212, 230, .05));
  border-bottom: 1px solid rgba(47, 212, 230, .3);
  color: var(--text);
  min-height: 44px;
  align-items: center;
}
body:has(.urgency-strip) .site-header { top: 44px; }
.cd-group { display: inline-flex; align-items: center; gap: 7px; }
.urgency-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  padding: 10px 16px;
  font-size: .84rem;
  font-weight: 500;
}
.urgency-strip__inner span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.urgency-strip__inner .icon { width: 15px; height: 15px; color: var(--accent); }
.urgency-strip__inner b { color: var(--accent); }

.so-hero { position: relative; overflow: hidden; background:
  radial-gradient(56% 60% at 72% 10%, rgba(47, 212, 230, .12), transparent 66%),
  linear-gradient(180deg, #10141B, #0D1015);
}
.so-countdown { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 8px; }
.so-countdown__label { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--silver); margin-right: 4px; }
.cd-seg {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(47, 212, 230, .35);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm), 0 0 18px rgba(47, 212, 230, .08);
  min-width: 58px;
  padding: 8px 8px 6px;
}
.cd-seg b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.cd-seg small { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.cd-sep { color: var(--accent); font-weight: 800; font-size: 1.3rem; align-self: center; transform: translateY(-8px); }

.so-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(47, 212, 230, .14), transparent 70%),
    var(--surface);
  border-block: 1px solid rgba(47, 212, 230, .3);
}
.cta-band .container { position: relative; }
.cta-band h2 { margin-bottom: .35em; }
.cta-band p { color: var(--silver); max-width: 560px; margin-inline: auto; }
.cta-band .btn { margin-top: 10px; }

/* Exit-intent modal */
.so-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.so-modal.is-open { display: flex; }
.so-modal__overlay { position: absolute; inset: 0; background: rgba(5, 8, 12, .78); backdrop-filter: blur(4px); }
.so-modal__card {
  position: relative;
  width: min(460px, 100%);
  background: linear-gradient(165deg, #171E28, #10151D);
  border: 1px solid rgba(47, 212, 230, .4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(47, 212, 230, .12);
  padding: 30px 28px 26px;
  text-align: center;
  animation: so-pop .22s cubic-bezier(.2, .6, .2, 1);
}
@keyframes so-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.so-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--silver);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: color .14s ease, border-color .14s ease;
}
.so-modal__close:hover { color: var(--text); border-color: var(--silver); }
.so-modal__art { margin: 0 auto 14px; width: 132px; height: auto; }
.so-modal__card h2 { font-size: 1.5rem; }
.so-modal__card p { color: var(--silver); font-size: .95rem; }

/* ---- Reveal on scroll ----------------------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .6, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---- Responsive ---------------------------------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-grid, .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 620px; }
  .calc-band__grid { grid-template-columns: minmax(0, 1fr); }
  .company-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-stagger { grid-template-columns: minmax(0, 1fr); }
  .section-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-orbits { inset: -20px -6px; }
}
@media (max-width: 768px) {
  .hero { padding-top: 44px; }
  .hero-orbits { display: none; } /* decorative orbit layer: static panel only on small screens */
  .hero-grid, .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .grid-stagger { grid-template-columns: minmax(0, 1fr); }
  .calc-band__grid { grid-template-columns: minmax(0, 1fr); }
  .company-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .map-embed { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .btn { width: 100%; }
  .header-cta, .header-inner .btn { width: auto; }
  .hero-iconlinks { flex-direction: column; align-items: stretch; }
  .steps, .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .vacancy { grid-template-columns: minmax(0, 1fr); }
  .vacancy-cta { grid-column: 1; grid-row: auto; }
  .review-card--wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .so-countdown { flex-wrap: wrap; }
}

/* Home conversion redesign: city photography, focused application, market motifs. */
.tv-ticker-wrapper { padding-top: 0 !important; height: 58px !important; }
[hidden] { display: none !important; }
.hero--conversion {
  isolation: isolate;
  padding: clamp(32px, 4.5vw, 64px) 0 20px;
  background: linear-gradient(90deg, rgba(13,16,21,.95) 0%, rgba(13,16,21,.68) 62%, rgba(13,16,21,.95) 100%), url('/assets/images/hero-city.jpg') center / cover;
  border-bottom: 1px solid var(--border);
}
.hero--conversion::before { display: none; }
.hero-market-art { position: absolute; inset: 0; color: var(--accent); opacity: .14; pointer-events: none; z-index: -1; }
.hero-market-art svg { width: 100%; height: 100%; }
.hero-conversion-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .9fr); grid-template-areas: 'heading application' 'details application' 'visual application' 'location location'; gap: 22px 48px; align-items: start; }
.hero-heading { grid-area: heading; min-width: 0; }
.hero-kicker, .application-kicker { font: 700 .72rem/1.5 var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.hero-heading h1 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1.12; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.hero-heading h1 span { color: var(--accent); }
.hero-details { grid-area: details; min-width: 0; }
.hero-description { color: #C5CFD4; font-size: 1.02rem; line-height: 1.65; max-width: 590px; margin: 0 0 22px; }
.hero-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; margin: 0 0 22px; border-block: 1px solid var(--border); }
.hero-benefits li { padding: 14px 10px 14px 0; margin: 0; }
.hero-benefits li + li { border-left: 1px solid var(--border); padding-left: 16px; }
.hero-benefits strong, .hero-benefits span { display: block; }
.hero-benefits strong { font: 700 1.3rem/1.3 var(--font-body); color: var(--text); }
.hero-benefits span { font-size: .73rem; color: #BCC6CD; margin-top: 4px; }
.hero-application { grid-area: application; min-width: 0; padding: clamp(22px, 2.5vw, 32px); border: 1px solid var(--accent); border-radius: 22px; background: var(--surface); box-shadow: 0 22px 64px rgba(0,0,0,.4); border-top: 4px solid var(--accent); }
.hero-application .form-block { max-width: none; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.hero-application .form-block__heading { font-size: 1.45rem; line-height: 1.25; margin: 0 0 12px; }
.hero-application .form-block__intro { font-size: .9rem; line-height: 1.6; color: #BCC6CD; margin-bottom: 20px; }
.hero-application .form-block__card { padding: 0; border: 0; box-shadow: none; background: transparent; }
.hero-application input { min-height: 48px; }
.hero-application button[type='submit'] { min-height: 52px; width: 100%; white-space: normal; border-radius: 10px; font-weight: 700; box-shadow: 0 5px 20px rgba(0,0,0,.25); }
.hero-application .form-manager { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .85rem; }
.hero-application .form-legal { font-size: .74rem; }
.hero-risk { color: var(--muted); font-size: .74rem; line-height: 1.5; margin: 12px 0 0; }
.hero-details .flags, .hero-details .hero-flags { margin: 0 0 12px; font-size: .8rem; }
.hero-details .hero-links, .hero-details .hero-iconlinks, .hero-details .hero-meta { margin: 10px 0 0; gap: 8px; }
.hero-details .hero-foot { display: block; padding: 0; border: 0; }
.hero-details .hero-link, .hero-details .icon-link { padding: 8px 12px; font-size: .8rem; }
.hero-preview { grid-area: visual; width: 100%; max-width: 560px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 16px; background: rgba(15,21,25,.8); }
.hero-preview > svg { height: 160px; width: 100%; object-fit: contain; filter: none; }
.hero-preview .term-panel { padding: 10px; box-shadow: none; }
.hero-preview .term-chart { max-height: 120px; }
.hero-preview .hero-orbits { display: none; }
.hero-preview-label { font-size: .67rem; color: var(--muted); text-align: center; margin: 8px 0 0; }
.hero-location { grid-area: location; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: .75rem; color: var(--text); margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.hero-location span { color: var(--muted); font-size: .65rem; }
.hero-location a { color: inherit; text-decoration: underline; }
.page-home .section-head h2 { letter-spacing: -.025em; }
.page-home .step { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.page-home .review-card { border-radius: 18px; border-top: 2px solid var(--accent); }
.review-photo { width: 64px; height: 64px; flex: 0 0 64px; object-fit: cover; border-radius: 50%; border: 2px solid var(--accent); }
#registration-form { scroll-margin-top: 100px; }
#mobile-menu { max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }
#mobile-menu button, #mobile-menu a { min-height: 44px; }
@media (min-width: 1024px) { #mobile-menu { display: none !important; } }
@media (max-width: 1023px) {
  .hero-conversion-grid { grid-template-columns: minmax(0,1fr); grid-template-areas: 'heading' 'application' 'details' 'visual' 'location'; gap: 24px; }
  .hero-kicker { display: none; }
  .hero-heading h1 { font-size: clamp(1.9rem, 6.8vw, 3rem); max-width: 680px; }
  .hero-application { width: 100%; max-width: 680px; }
  .hero-preview { max-width: 680px; }
  .hero--conversion { background-position: 55% center; }
}
@media (max-width: 480px) {
  .hero--conversion { padding-top: 28px; }
  .hero-conversion-grid { gap: 20px; }
  .hero-application { padding: 20px 16px; border-radius: 16px; }
  .hero-application .form-block__heading { font-size: 1.3rem; }
  .hero-benefits li + li { padding-left: 10px; }
  .hero-benefits strong { font-size: 1.15rem; }
  .hero-location { flex-direction: column; }
  .page-home .reviews-grid { grid-template-columns: minmax(0,1fr); }
}

#mobile-menu .mobile-menu__inner { padding: 10px clamp(16px,4vw,40px) 22px; }
.page-special-offer #mobile-menu { max-height: calc(100dvh - 124px); }

.iti__selected-country, .iti__country-name {color: #111!important;}
