/* ==========================================================================
   Klondike Trade AI — NORTHERN_TECH_FINTECH
   Deep navy + glacier blue + cool silver. Dark theme, terminal-structured
   panels, hairline grids, mono data labels. Radius 8/12/16, navy shadows.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --bg:        #0A1A2F;
  --surface:   #102540;
  --surface-2: #0D2038;
  --border:    #1E3A5C;
  --text:      #EAF2FA;
  --muted:     #9FB4CC;
  --silver:    #C6D4E2;
  --accent:    #58B8E8;
  --accent-h:  #7CC8F0;
  --accent-tint: rgba(88, 184, 232, .14);
  --accent-soft: rgba(88, 184, 232, .08);
  --danger:    #E2766B;
  --ok:        #6FD3A5;

  --font-ui:   'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: Consolas, 'Cascadia Mono', ui-monospace, 'Courier New', monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

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

  --header-h: 74px;
}

/* --- Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe, video, canvas { max-width: 100%; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); letter-spacing: -.005em; }
h3 { font-size: 1.13rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--accent-h); }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

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

.icon { vertical-align: middle; flex: none; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  padding: 10px 18px; border-radius: var(--r-sm);
  background: var(--accent); color: #062033; font-weight: 700;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: #062033; }

/* --- Layout primitives --------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.section { padding: clamp(52px, 7vw, 84px) 0; position: relative; }
.section--tight { padding: clamp(28px, 4vw, 44px) 0; }

.section--tint {
  background:
    radial-gradient(1100px 420px at 12% -10%, rgba(88, 184, 232, .09), transparent 62%),
    linear-gradient(180deg, var(--surface-2), var(--bg));
  border-block: 1px solid rgba(30, 58, 92, .55);
}

.section-head { margin-bottom: clamp(26px, 4vw, 40px); max-width: 780px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-bottom: 0; }

.lead { font-size: 1.08rem; color: var(--muted); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose b { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.note {
  font-size: .88rem; color: var(--muted);
  padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(88, 184, 232, .18);
}
.note a { text-decoration: underline; text-underline-offset: 2px; }

.mt-2 { margin-top: 1.1rem; }
.mt-4 { margin-top: 2.2rem; }
.text-center { text-align: center; }

.subhead {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--silver);
  margin: 2rem 0 .8rem;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-md);
  font: inherit; font-weight: 700; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: .88rem; }

.btn-primary {
  background: var(--accent); color: #062033;
  box-shadow: 0 6px 20px rgba(88, 184, 232, .28);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-h); color: #062033;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(88, 184, 232, .36);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 14px rgba(88, 184, 232, .3); }

.btn-secondary {
  background: transparent; color: var(--accent);
  border-color: rgba(88, 184, 232, .5);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--accent); color: var(--accent-h);
  background: var(--accent-tint);
  transform: translateY(-2px);
}
.btn-secondary:active { transform: translateY(0); }

.btn-block { width: 100%; }
.btn-header { padding: 10px 20px; font-size: .92rem; }
.header-cta-icon { display: inline-flex; margin-left: 4px; }
.header-cta-icon svg { transition: transform .16s ease; }
.btn-header:hover .header-cta-icon svg { transform: translateX(3px); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10, 26, 47, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled { background: rgba(10, 26, 47, .97); box-shadow: var(--shadow-md); }

.header-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand svg { display: block; height: 34px; width: auto; }

.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }

.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 13px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .94rem; font-weight: 600; color: var(--silver);
  border-radius: var(--r-sm);
  transition: color .16s ease, background .16s ease;
}
.nav-link:hover { color: var(--text); background: rgba(88, 184, 232, .08); }
.nav-link .icon { transition: transform .16s ease; }

.has-dropdown.is-open .nav-link .icon { transform: rotate(180deg); }

/* Dropdown surface */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 260px; padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 210;
}
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item:last-child .dropdown { left: auto; right: 0; }

.dropdown::before {
  content: ""; position: absolute; top: -5px; left: 26px;
  width: 10px; height: 10px; transform: rotate(45deg);
  background: var(--surface);
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
}
.nav-item:last-child .dropdown::before { left: auto; right: 26px; }

.dropdown-list { list-style: none; margin: 0; padding: 0; max-height: min(430px, 62vh); overflow-y: auto; }
.dropdown-link {
  display: block; padding: 9px 12px; border-radius: var(--r-sm);
  font-size: .92rem; color: var(--silver);
  transition: background .14s ease, color .14s ease;
}
.dropdown-link:hover, .dropdown-link:focus-visible { background: var(--accent-tint); color: var(--text); }
.dropdown-link.is-active { color: var(--accent); background: var(--accent-soft); }

/* Burger + mobile nav */
.nav-burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 0;
  background: none; border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text); cursor: pointer;
}
.nav-burger .burger-close { display: none; }
body.nav-open .nav-burger .burger-open { display: none; }
body.nav-open .nav-burger .burger-close { display: inline-flex; }

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: 18px 0 26px;
}
.mobile-nav__group { border-bottom: 1px solid rgba(30, 58, 92, .5); }
.mobile-nav__heading {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 13px 2px; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: .95rem; font-weight: 700; color: var(--text);
}
.mobile-nav__heading .icon { color: var(--accent); transition: transform .16s ease; }
.mobile-nav__heading[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-nav__list { list-style: none; margin: 0 0 8px; padding: 0 0 6px 10px; }
.mobile-nav__link { display: block; padding: 8px 10px; border-radius: var(--r-sm); font-size: .93rem; color: var(--muted); }
.mobile-nav__link:hover, .mobile-nav__link.is-active { color: var(--text); background: var(--accent-tint); }
.mobile-nav .btn { margin-top: 18px; }

/* --- Hero (shared) ------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(88, 184, 232, .12), transparent 60%),
    radial-gradient(700px 420px at -10% 100%, rgba(30, 58, 92, .55), transparent 65%),
    var(--bg);
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; will-change: transform; }

.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(88, 184, 232, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 184, 232, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1200px 700px at 60% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(1200px 700px at 60% 40%, #000 30%, transparent 78%);
}

.hero-aurora { position: absolute; top: -30px; left: 0; width: 100%; height: auto; opacity: .9; }
.hero-horizon {
  position: absolute; left: 0; right: 0; bottom: 88px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 212, 226, .35) 18%, rgba(198, 212, 226, .35) 82%, transparent);
}
.hero-candles {
  position: absolute; right: max(2vw, 12px); bottom: 40px;
  width: min(46vw, 540px); height: auto; opacity: .5;
}
.hero-candles .wick { stroke: rgba(88, 184, 232, .55); stroke-width: 2; }
.hero-candles .body { fill: rgba(88, 184, 232, .34); }
.hero-candles .body--up { fill: rgba(124, 200, 240, .42); }

.hero .container { position: relative; z-index: 1; }

/* Home hero split */
.hero-grid {
  display: grid; grid-template-columns: 6fr 5fr;
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.hero-copy { max-width: 590px; }
.hero-copy h1 { margin-bottom: .45em; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 34em; }

.offices { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 4px; }
.offices__label { margin: 0; font-size: .95rem; color: var(--muted); }
.flag-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .92rem; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow-sm);
}
.flag-chip svg { border-radius: 3px; display: block; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.trust-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--silver); font-size: .93rem; font-weight: 600;
  transition: border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.trust-link .icon { color: var(--accent); }
.trust-link:hover { border-color: rgba(88, 184, 232, .55); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* Form as terminal panel */
.hero-form { position: relative; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 16px; margin-bottom: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-color: rgba(88, 184, 232, .35);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.hero-form .form-block {
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--r-md) var(--r-md);
  margin-top: 0;
}
.hero-form .hero-meta + .form-block { border-top-left-radius: 0; border-top-right-radius: 0; }
.hero-meta__chip {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--silver);
  padding: 4px 10px; border-radius: 999px;
  background: rgba(88, 184, 232, .1);
  border: 1px solid rgba(88, 184, 232, .22);
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(44px, 6vw, 76px) 0;
  background:
    radial-gradient(820px 400px at 90% -10%, rgba(88, 184, 232, .11), transparent 62%),
    var(--bg);
  border-bottom: 1px solid rgba(30, 58, 92, .55);
}
.page-hero .hero__bg { z-index: 0; }
.page-hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(26px, 4vw, 52px); align-items: start;
}
.page-hero__grid h1 { margin-bottom: .5em; }
.page-hero__grid .lead + .lead { margin-top: -0.4em; }
.page-hero__mesh {
  position: absolute; right: 4%; top: 14%;
  width: min(30vw, 380px); height: auto; color: var(--accent);
  opacity: .5;
}
.page-hero__mesh--large { width: min(34vw, 460px); }
.page-hero__coins {
  position: absolute; right: 6%; bottom: 8%;
  width: min(26vw, 320px); height: auto; opacity: .55;
}

/* Auth page */
.auth-grid {
  display: grid; grid-template-columns: 6fr 5fr;
  gap: clamp(26px, 4vw, 52px); align-items: start;
}
.auth-points { list-style: none; padding: 0; margin: 18px 0; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); margin-bottom: 10px; }
.auth-points .icon { color: var(--ok); margin-top: 3px; }
.auth-form .form-block { border-top: 3px solid var(--accent); }

/* --- Forms --------------------------------------------------------------- */
.form-block {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 22px 18px;
  box-shadow: var(--shadow-md);
}
.form-block--extra { background: var(--surface-2); }
.form-block__heading {
  margin: 0 0 14px;
  font-family: var(--font-mono); font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.form-block__intro { margin: -6px 0 14px; font-size: .95rem; color: var(--muted); }
.form-note { margin: 12px 0 0; font-size: .88rem; color: var(--silver); }
.form-legal { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }
.form-legal a { text-decoration: underline; text-underline-offset: 2px; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }

/* formFactory (beacon) dark overrides */
.form-block .bff { --bf-input-bg: #0D2038; --bf-input-text: #EAF2FA; }
.form-block .bff__label { color: var(--silver); }
.form-block .bff__input { border-color: var(--border); }
.form-block .bff__input::placeholder { color: rgba(159, 180, 204, .6); }
.form-block .bff__submit {
  color: #062033 !important;
  box-shadow: 0 6px 18px rgba(88, 184, 232, .25);
  letter-spacing: .01em;
}
.form-block .bff__ok { color: var(--ok); }
.form-block .bff__fail { color: var(--danger); }

/* --- Breadcrumbs ---------------------------------------------------------- */
.breadcrumbs { padding: 14px 0 2px; font-size: .88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--border); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--silver); }

/* --- Tables --------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto; border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.table th, .table td { padding: 13px 16px; text-align: left; vertical-align: top; }
.table thead th {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .09em;
  text-transform: uppercase; font-weight: 400;
  color: var(--silver); background: rgba(13, 32, 56, .9);
  border-bottom: 1px solid var(--border);
}
.table tbody tr + tr { border-top: 1px solid rgba(30, 58, 92, .55); }
.table tbody tr:nth-child(even) { background: rgba(16, 37, 64, .45); }
.table tbody th[scope="row"] { color: var(--text); font-weight: 600; white-space: nowrap; }
.table tbody td { color: var(--muted); }
.table tbody td .icon { color: var(--ok); }
.table a { text-decoration: underline; text-underline-offset: 2px; }

/* --- Cards & grids -------------------------------------------------------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  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(88, 184, 232, .45); }
.card h3 { margin: 0; }
.card h3 a { color: inherit; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card--wide { grid-column: 1 / -1; }
.card__link { font-size: .9rem; font-weight: 600; color: var(--accent); }
.card__link:hover { color: var(--accent-h); }
.card__tip { margin: 0; font-size: .88rem; color: var(--silver); background: var(--accent-soft); border-radius: var(--r-sm); padding: 10px 12px; }
.card__tip b { color: var(--accent); font-weight: 700; }

.card--link { text-decoration: none; color: inherit; }
.card--link:hover { color: inherit; }
.card--link .card__link { margin-top: auto; }

.card--flow { background: var(--surface-2); }
.card--flow h3 { font-family: var(--font-mono); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 400; }
.flow-list { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .95rem; }
.flow-list li { margin-bottom: 8px; }
.flow-list b { color: var(--text); }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; flex: none;
  border-radius: var(--r-md);
  background: var(--accent-tint);
  border: 1px solid rgba(88, 184, 232, .25);
  color: var(--accent);
}
.icon-badge--navy { background: rgba(30, 58, 92, .45); border-color: var(--border); color: var(--silver); }

/* --- Steps ----------------------------------------------------------------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; counter-reset: step;
}
.step {
  position: relative;
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}
.step:hover { transform: translateY(-2px); border-color: rgba(88, 184, 232, .45); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none; margin-top: 2px;
  border-radius: 50%;
  background: var(--accent); color: #062033;
  font-family: var(--font-mono); font-size: .95rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(88, 184, 232, .3);
}
.step__body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step__body p { margin: 0; color: var(--muted); font-size: .94rem; }

.steps--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps--stacked, .steps--timeline { grid-template-columns: 1fr; }
.step:hover .step__num { background: var(--accent-h); }

/* --- Comparison table ------------------------------------------------------- */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2); box-shadow: var(--shadow-sm);
}
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.compare th, .compare td { padding: 13px 18px; text-align: left; }
.compare thead th {
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .09em;
  text-transform: uppercase; font-weight: 400; color: var(--silver);
  border-bottom: 1px solid var(--border);
}
.compare tbody tr + tr { border-top: 1px solid rgba(30, 58, 92, .55); }
.compare tbody tr:hover { background: rgba(88, 184, 232, .05); }
.compare td:first-child { color: var(--text); font-weight: 600; }
.compare .col-us, .compare .col-them { width: 200px; }
.compare .yes { color: var(--ok); }
.compare .no { color: var(--danger); }
.compare .yes .icon, .compare .no .icon { display: inline-block; vertical-align: middle; }
.compare .compare-half { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.compare .compare-half .icon { color: var(--ok); }

/* --- Exchanges row ------------------------------------------------------------ */
.exchanges-section {
  background: var(--surface-2);
  border-bottom: 1px solid rgba(30, 58, 92, .55);
}
.exchanges__label {
  margin: 0 0 14px; text-align: center;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.exchanges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.exchange-chip {
  display: inline-flex; align-items: center;
  padding: 9px 22px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-ui); font-size: 1rem; font-weight: 700;
  letter-spacing: .02em; color: var(--silver);
  transition: border-color .16s ease, color .16s ease, transform .16s ease;
}
.exchange-chip:hover { border-color: rgba(88, 184, 232, .5); color: var(--text); transform: translateY(-2px); }

/* --- Calculator band ----------------------------------------------------------- */
.calc-section {
  background:
    radial-gradient(900px 380px at 80% 0%, rgba(88, 184, 232, .08), transparent 60%),
    var(--bg);
}
.calc-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(90deg, rgba(88, 184, 232, .06) 0 22px, transparent 22px 58px) top right / 420px 120px no-repeat,
    repeating-linear-gradient(90deg, rgba(88, 184, 232, .09) 0 14px, transparent 14px 52px) bottom left / 380px 90px no-repeat,
    var(--surface-2);
  box-shadow: var(--shadow-md);
  padding: clamp(18px, 3vw, 34px);
}
.calc-frame::before, .calc-frame::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
}
.calc-frame::before { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-top-left-radius: var(--r-lg); }
.calc-frame::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); border-bottom-right-radius: var(--r-lg); }

/* --- Reviews --------------------------------------------------------------------- */
.review {
  display: flex; flex-direction: column; gap: 12px;
  margin: 0; padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(88, 184, 232, .4); }
.review__head { display: flex; align-items: center; gap: 14px; }
.review__ava {
  width: 64px; height: 64px; flex: none;
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(88, 184, 232, .45);
  background: var(--surface-2);
}
.review__name { margin: 0; font-weight: 700; color: var(--text); }
.review__role { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.review__stars { margin: 0; color: var(--accent); display: flex; gap: 2px; }
.review__stars .icon { width: 15px; height: 15px; }
.review__text { margin: 0; }
.review__text p { margin: 0; color: var(--muted); font-size: .95rem; }
.review__stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.review__stat {
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.review__stat b { font-size: .95rem; font-weight: 700; color: var(--accent); letter-spacing: 0; }
.reviews-note {
  margin: 26px auto 0; max-width: 720px; text-align: center;
  font-size: .85rem; color: var(--muted);
}

/* --- Company block ------------------------------------------------------------------ */
.company-grid {
  display: grid; grid-template-columns: 6fr 5fr;
  gap: clamp(26px, 4vw, 52px); align-items: start;
}
.company-facts h2 { margin-bottom: .4em; }
.company-facts__list { display: grid; gap: 10px; margin: 22px 0 0; }
.company-facts__list > div {
  display: grid; grid-template-columns: 200px 1fr; gap: 14px;
  padding: 13px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.company-facts__list dt {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); padding-top: 3px;
}
.company-facts__list dd { margin: 0; color: var(--text); font-size: .95rem; }
.company-facts__list dd a { text-decoration: underline; text-underline-offset: 2px; }
.company-facts__list--panel {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface-2); padding: 6px;
  box-shadow: var(--shadow-sm);
}
.company-facts__list--panel > div { background: transparent; border: 0; border-bottom: 1px dashed rgba(30, 58, 92, .7); border-radius: 0; }
.company-facts__list--panel > div:last-child { border-bottom: 0; }

.company-links { display: grid; gap: 12px; }
.company-link {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text); box-shadow: var(--shadow-sm);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.company-link:hover { transform: translateY(-2px); border-color: rgba(88, 184, 232, .5); box-shadow: var(--shadow-md); color: var(--text); }
.company-link b { display: block; font-size: .98rem; }
.company-link small { color: var(--muted); font-size: .84rem; }
.company-link .icon-badge { width: 46px; height: 46px; }

/* --- FAQ ---------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .16s ease;
}
.faq-item.is-open { border-color: rgba(88, 184, 232, .45); }
.faq-q {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: .98rem; font-weight: 600; text-align: left;
  color: var(--text);
}
.faq-q .icon { color: var(--accent); transition: transform .18s ease; flex: none; }
.faq-item.is-open .faq-q .icon { transform: rotate(180deg); }
.faq-a { padding: 0 18px 16px; }
.faq-a p { margin: 0; color: var(--muted); font-size: .94rem; }

.faq-signup { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(26px, 4vw, 52px); align-items: start; }
.faq-signup__faq h2 { margin-bottom: 18px; }
.faq-signup__form .form-block { border-top: 3px solid var(--accent); }

/* --- Vacancies / articles ------------------------------------------------------------ */
.vacancy-list { display: grid; gap: 16px; }
.vacancy { gap: 6px; }
.vacancy__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vacancy__head h3 { margin: 0; font-size: 1.15rem; }
.vacancy__meta { margin: 0; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.vacancy p { margin: 0; }
.vacancy__terms { color: var(--silver) !important; font-size: .88rem !important; }

.article {
  max-width: 780px; margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.article + .article { margin-top: 22px; }
.article__kicker {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.article h2 { margin-bottom: .5em; }
.article p { color: var(--muted); }
.article b { color: var(--text); }

.aml-prose h2 { font-size: 1.3rem; margin-top: 1.5em; }
.aml-prose h2:first-child { margin-top: 0; }

.risk-grid .card h3 { font-size: 1.05rem; }
.security-grid .card h3 { font-size: 1.02rem; }
.product-grid { margin-top: 8px; }
.contact-grid { align-items: stretch; }
.contact-grid .map-embed { min-height: 320px; }

/* --- Map ------------------------------------------------------------------------------ */
.map-embed {
  position: relative; width: 100%; max-width: 100%;
  aspect-ratio: 16 / 10; min-height: 300px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  background: var(--surface-2);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Special offer ---------------------------------------------------------------------- */
.offer-strip {
  background: linear-gradient(90deg, rgba(88, 184, 232, .16), rgba(13, 32, 56, .9) 55%, rgba(88, 184, 232, .16));
  border-bottom: 1px solid rgba(88, 184, 232, .35);
}
.offer-strip__inner { display: flex; flex-wrap: wrap; gap: 10px 34px; padding: 9px 0; }
.offer-strip .stat {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--silver);
}
.offer-strip .stat b { color: var(--accent); font-weight: 700; }

.offer-hero { padding-top: clamp(40px, 6vw, 64px); }
.offer-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-tint); border: 1px solid rgba(88, 184, 232, .4);
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.offer-deadline { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.offer-deadline__label {
  margin: 0; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.offer-reinforce { margin: 14px 0 0; font-size: .88rem; color: var(--silver); }

.countdown { display: inline-flex; gap: 8px; }
.countdown__seg {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 58px; padding: 8px 8px 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-bottom: 2px solid var(--accent);
  border-radius: var(--r-sm);
}
.countdown__seg b {
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700;
  color: var(--text); letter-spacing: .04em; line-height: 1;
}
.countdown__seg i {
  font-style: normal; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.countdown--inline .countdown__seg { min-width: 52px; }
.countdown--inline .countdown__seg b { font-size: 1.2rem; }

.offer-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(88, 184, 232, .16), transparent 70%),
    linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(88, 184, 232, .4);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.offer-band h2 { margin-bottom: .25em; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.offer-band p { margin: 0; color: var(--muted); max-width: 46em; }
.offer-band .btn { flex: none; }
.offer-band--product { background:
    radial-gradient(600px 240px at 100% 0%, rgba(88, 184, 232, .12), transparent 70%),
    var(--surface); }

/* Exit modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(4, 12, 24, .78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
body.modal-open { overflow: hidden; }
.modal-card {
  position: relative; width: 100%; max-width: 520px;
  padding: 34px 30px 30px; text-align: center;
  background: var(--surface);
  border: 1px solid rgba(88, 184, 232, .45);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: modal-in .22s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px; padding: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 50%; color: var(--muted);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.modal-close:hover { color: var(--text); border-color: rgba(88, 184, 232, .5); }
.modal-art { width: 200px; height: auto; margin: 0 auto 14px; display: block; }
.modal-card h2 { font-size: 1.45rem; }
.modal-card > p { color: var(--muted); }
.modal-card .countdown { margin: 18px auto 20px; }
.modal-card .btn { margin-top: 4px; }

/* --- 404 --------------------------------------------------------------------------------- */
.notfound { max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(24px, 5vw, 60px) 0; }
.notfound__code {
  margin: 0; font-family: var(--font-mono); font-size: clamp(3.4rem, 8vw, 5.4rem);
  font-weight: 700; line-height: 1; color: var(--accent);
  text-shadow: 0 0 42px rgba(88, 184, 232, .35);
}
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }

/* --- Footer --------------------------------------------------------------------------------- */
.site-footer {
  background:
    radial-gradient(800px 300px at 15% 0%, rgba(88, 184, 232, .07), transparent 60%),
    var(--surface-2);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 64px) 0 0;
}
.footer-top {
  display: grid; grid-template-columns: 4fr 3fr 3fr 3fr;
  gap: clamp(24px, 4vw, 44px);
  padding-bottom: 40px;
}
.brand-footer svg { height: 32px; width: auto; }
.footer-mission { margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.footer-contact { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.footer-contact .icon { color: var(--accent); margin-right: 6px; vertical-align: -3px; }
.footer-col h3 {
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 400; color: var(--silver);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--muted); font-size: .92rem; }
.footer-col a:hover { color: var(--accent-h); }

.footer-disclaimer {
  border-top: 1px solid rgba(30, 58, 92, .7);
  padding: 22px 0;
}
.footer-disclaimer h3 { font-size: .95rem; margin-bottom: 8px; }
.footer-disclaimer p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.65; max-width: 1000px; }

.footer-bottom {
  border-top: 1px solid rgba(30, 58, 92, .7);
  padding: 16px 0 22px;
}
.footer-bottom p { margin: 0; font-size: .82rem; color: var(--muted); }

/* --- Reveal ------------------------------------------------------------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* --- Responsive --------------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .site-nav { display: none; }
  .btn-header { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 960px) {
  .hero-grid, .page-hero__grid, .auth-grid, .company-grid, .faq-signup {
    grid-template-columns: 1fr;
  }
  .hero-copy { max-width: none; }
  .mobile-hero-title { order: -1; margin-bottom: .45em; }
  .hero-form { max-width: 560px; }
  .hero-candles { opacity: .3; width: min(70vw, 460px); bottom: 10px; }
  .page-hero__mesh, .page-hero__coins { opacity: .28; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .offer-band { flex-direction: column; align-items: flex-start; }
  .offer-band .btn { width: 100%; }
}

@media (max-width: 640px) {
  .hero { padding-top: 44px; }
  .hero-candles { display: none; }
  .hero-grid-lines { background-size: 40px 40px; }
  .company-facts__list > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-top { grid-template-columns: 1fr; }
  .countdown__seg { min-width: 52px; }
  .countdown__seg b { font-size: 1.25rem; }
  .offer-strip__inner { gap: 6px 18px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .container { padding-inline: 14px; }
  .btn { padding: 12px 18px; font-size: .92rem; }
  .hero-meta__chip { font-size: .64rem; }
  .flag-chip { font-size: .85rem; }
  .trust-link { padding: 9px 12px; font-size: .85rem; }
}

/* --- 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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__bg { transform: none !important; }
}

/* --- Supplement: contract completeness ----------------------------------- */

/* nav-toggle shares the nav-link surface (button element) */
.nav-link.nav-toggle { font: inherit; font-weight: 600; }

/* Canadian flag chip dot (inline SVG in hero) */
.flag-dot { display: block; border-radius: 3px; flex: none; }

/* beacon ticker row injected after </header> */
.beacon-ticker-row {
  position: relative;
  z-index: 55;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

/* Shared layout fixes: ticker, phone selector, and homepage reviews. */
.tv-ticker-wrapper {
    padding-top: 0px !important;
    height: 58px !important;
}

.iti__selected-country, .iti__selected-dial-code {
    color: rgb(24, 33, 47) !important;
}

@media (min-width: 961px) {
    .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

.review__ava { object-fit: cover; }
