/* =========================================================
   Trade Corp — base shell, site header, hero section
   ========================================================= */

/* ---------- theme variables ---------- */
:root,
[data-theme="dark"] {
  --bg: #000000;
  --bg-elev: #0d0f15;
  --surface: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.16);
  --stroke: rgba(255, 255, 255, 0.10);
  --text: #e9ecf3;
  --text-dim: #a0a7b8;
  --text-mute: #6b7388;
  --header-h: 88px;
  /* JS overrides this on load/resize to body.clientWidth so that horizontal
     grids/scrollers reference the same width (viewport minus scrollbar). */
  --content-w: 100vw;

  /* Futuristic accent palette — orange stays primary, the others are tuned
     hue-rotations of it so cool/warm tones share the same chroma family. */
  --accent: #fb5e47;
  /* primary orange — used by the top header buttons and brand decorations */
  --accent-soft: rgba(251, 94, 71, 0.12);
  --accent-line: rgba(251, 94, 71, 0.32);
  --accent-hover: #fd7867;

  --accent-2: #3b6af8;
  /* secondary dark skyblue — used by primary CTAs throughout the site */
  --accent-2-soft: rgba(59, 106, 248, 0.12);
  --accent-2-line: rgba(59, 106, 248, 0.32);
  --accent-2-hover: #5b85ff;

  --cyan: #5EE2FB;
  /* electric data-cyan */
  --cyan-soft: rgba(94, 226, 251, 0.12);
  --cyan-line: rgba(94, 226, 251, 0.32);

  --lime: #A8FB5E;
  /* live / positive */
  --lime-soft: rgba(168, 251, 94, 0.12);
  --lime-line: rgba(168, 251, 94, 0.32);

  --magenta: #FB5EE2;
  /* AI / special */
  --magenta-soft: rgba(251, 94, 226, 0.12);
  --magenta-line: rgba(251, 94, 226, 0.32);

  --violet: #8E5EFB;
  /* signals / strategy */
  --violet-soft: rgba(142, 94, 251, 0.12);
  --violet-line: rgba(142, 94, 251, 0.32);
}

[data-theme="light"] {
  --bg: #f5f4ef;
  --bg-elev: #ffffff;
  --surface: rgba(0, 0, 0, 0.03);
  --line: rgba(0, 0, 0, 0.22);
  --stroke: rgba(0, 0, 0, 0.12);
  /* Darker text scale in light mode — the previous grays didn't carry
     enough contrast on the cream bg. Targets ≥ 7:1 for body, ≥ 4.5:1
     for muted labels (WCAG AAA / AA). */
  --text: #0a0b0f;
  --text-dim: #1f2330;
  --text-mute: #3a4150;
}

/* ---------- reset / base ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Iceland', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Reserve space for the fixed site header so content starts below it. */
body {
  padding-top: var(--header-h);
}

/* Standalone auth pages (login, signup) live outside the main site chrome —
   no fixed header to reserve room for, so drop the body top padding. */
body.page--auth,
body.page--auth-2col {
  padding-top: 0;
}

body.page--auth .page-shell {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- themed scrollbar (theme orange thumb on bg track) ---------- */
html {
  scrollbar-color: #fb5e47 var(--bg);
  /* Firefox: thumb track */
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #fb5e47;
  border-radius: 8px;
  border: 3px solid var(--bg);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #fc7867;
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: var(--bg);
}

/* =========================================================
   LANDING WRAPPER (header + hero + gradient canvas)
   ========================================================= */

.landing {
  position: relative;
  /* No `isolation: isolate` — would trap the nested .site-header (z-index 100)
     and .nav-menu (z-index 9999) inside this stacking context, causing later
     sections (eg. the FAQ section-band heading) to paint on top of them. */
  background: var(--bg);
}

.grainient-canvas {
  position: absolute;
  /* Extend upward by the header height so the gradient sits behind the
     fixed, backdrop-blurred header — otherwise the header would render
     as flat black since body padding-top has reserved that strip. */
  top: calc(-1 * var(--header-h));
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% + var(--header-h));
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* =========================================================
   SITE HEADER (independent of the hero)
   ========================================================= */

.site-header {
  display: flex;
  align-items: stretch;
  min-height: var(--header-h);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* above page content; nav-menu overlay (9999) still covers it when opened */
  transition: background-color 0.3s ease;
}

[data-theme="light"] .site-header {
  background: rgba(245, 244, 239, 0.85);
}

.site-header__brand {
  flex: 0 0 32%;
  display: flex;
  align-items: center;
  padding: 0 32px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--text);
}

.site-header__actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 18px 24px;
}

/* Bordered rectangle buttons — themed orange */
.site-btn {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: stretch;
  border: 1px solid var(--accent-2);
  color: #FFFFFF;
  text-decoration: none;
  background: var(--accent-2);
  min-height: 52px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-btn:hover {
  background: var(--accent-2-hover);
  border-color: var(--accent-2-hover);
}

/* Menu button keeps the primary orange — distinguished by its #menu anchor */
.site-btn[href*="#menu"] {
  background: var(--accent);
  border-color: var(--accent);
}

.site-btn[href*="#menu"]:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.site-btn__label {
  padding: 0 26px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.site-btn__divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.site-btn__icon {
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: 32fr 28fr 40fr;
  grid-template-rows: 80px 1fr 124px;
  min-height: calc(100vh - var(--header-h));
  background: transparent;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

/* ---------- col 1: headline (rows 1-2) + sub (row 3) ---------- */

.hero__headline {
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
  padding: 38px 32px 0;
  border-right: 1px solid var(--line);
  font-size: clamp(56px, 7.6vw, 132px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero__sub {
  grid-column: 1;
  grid-row: 3;
  margin: 0;
  padding: 0 32px 36px;
  border-right: 1px solid var(--line);
  font-size: clamp(20px, 1.7vw, 30px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  display: flex;
  align-items: flex-end;
}

/* ---------- col 2: labels (row 1) + empties ---------- */

.hero__labels {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text);
}

.hero__midmid {
  grid-column: 2;
  grid-row: 2;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero__botmid {
  grid-column: 2;
  grid-row: 3;
  border-right: 1px solid var(--line);
}

/* ---------- col 3: mark (full height) ---------- */

.hero__mark {
  grid-column: 3;
  grid-row: 1 / 3;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.hero__markbot {
  grid-column: 3;
  grid-row: 3;
}

/* Three.js woven-light mount inside the mark cell */
.woven-mount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.woven-mount canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* =========================================================
   THEMED BUTTON — orange filled, label · divider · icon
   ========================================================= */

.btn {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: stretch;
  background: var(--accent-2);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  min-height: 50px;
  border: 1px solid var(--accent-2);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--accent-2-hover);
  border-color: var(--accent-2-hover);
}

.btn__label {
  padding: 0 22px;
  display: flex;
  align-items: center;
}

.btn__divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.btn__icon {
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.btn--sm {
  min-height: 38px;
  font-size: 13px;
}

.btn--sm .btn__label {
  padding: 0 16px;
}

.btn--sm .btn__icon {
  padding: 0 14px;
}

/* =========================================================
   SECTION HEADER BAND  (sits between hero and AI section)
   ========================================================= */

.section-band {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: clamp(20px, 2.5vw, 40px) clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

/* Variant with nav buttons on the right (used by carousels) */
.section-band--with-nav {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-band__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.section-band__nav-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-2);
  border: 1px solid var(--accent-2);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.section-band__nav-btn:hover {
  background: var(--accent-2-hover);
  border-color: var(--accent-2-hover);
}

.section-band__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.section-band__heading {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}

/* =========================================================
   REVEAL-HEADING — per-line staggered cover reveal
   Each .reveal-line gets its own pair of covers (front + back).
   Lines are staggered against each other; within a line, the front
   cover slides off first, then the back.
   ========================================================= */

.reveal-heading {
  display: block;
}

.reveal-line {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
}

.reveal-line__text {
  display: inline-block;
}

.reveal-line__cover {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(0);
  /* hidden until JS marks doc as reveal-ready, so no FOUC for no-JS users */
  display: none;
}

.js-reveal .reveal-line__cover {
  display: block;
}

.reveal-line__cover--front {
  background: var(--text);
  /* light in dark theme, dark in light theme */
  z-index: 2;
}

.reveal-line__cover--back {
  background: var(--accent-2);
  /* secondary blue */
  z-index: 1;
}

/* =========================================================
   AI & AGENTIC TRADING SECTION
   Line-grid aesthetic to match the landing page.
   ========================================================= */

.ai {
  background: #000000;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

/* ---------- top row: 6 feature cells (3 cols × 2 rows), no gaps ---------- */
.ai__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ai__card {
  padding: 26px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: background-color 0.25s ease;
}

/* remove right border on the right-edge cells */
.ai__card:nth-of-type(3n) {
  border-right: none;
}

.ai__card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ai__num {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
}

.ai__card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai__card-title {
  font-size: 22px;
  font-weight: 400;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.005em;
}

.ai__card-desc {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- bottom: image + feature + 2 sub-cards, no gaps ---------- */
.ai__bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto 1fr;
  height: 52vh;
}

.ai__image {
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
  border-right: 1px solid var(--line);
  overflow: hidden;
  /* No height set — grid stretches the cell to fill the 55vh parent. */
}

.ai__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ai__feature {
  grid-column: 2 / 4;
  grid-row: 2;
  padding: clamp(26px, 3.2vw, 44px);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  min-height: 0;
}

.ai__kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(251, 94, 71, 0.12);
  color: #fb5e47;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(251, 94, 71, 0.25);
}

.ai__headline {
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
}

.ai__lede {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
  max-width: 58ch;
}

.ai__more {
  /* positioning only — visual styling comes from .btn / .btn--sm */
  margin-top: auto;
  align-self: flex-start;
}

.ai__sub {
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 160px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease;
}

.ai__sub:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ai__sub--a {
  grid-column: 2;
  grid-row: 1;
  border-right: 1px solid var(--line);
}

.ai__sub--b {
  grid-column: 3;
  grid-row: 1;
}

.ai__sub h4 {
  font-size: 22px;
  font-weight: 400;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.005em;
}

.ai__sub p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ai__top {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai__card:nth-of-type(3n) {
    border-right: 1px solid var(--line);
  }

  .ai__card:nth-of-type(2n) {
    border-right: none;
  }

  .ai__bottom {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
  }

  .ai__image {
    grid-column: 1 / 3;
    grid-row: 1;
    min-height: 360px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .ai__feature {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .ai__sub--a {
    grid-column: 1;
    grid-row: 3;
    border-right: 1px solid var(--line);
  }

  .ai__sub--b {
    grid-column: 2;
    grid-row: 3;
    border-right: none;
  }
}

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

  .ai__card {
    border-right: none !important;
  }
}

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

  .ai__image,
  .ai__feature,
  .ai__sub--a,
  .ai__sub--b {
    grid-column: 1;
    grid-row: auto;
    border-right: none;
  }

  .ai__sub--a {
    border-bottom: 1px solid var(--line);
  }
}

/* =========================================================
   PLATFORM SOLUTIONS — 3 cards, black bg, orange hover, white→black SVG
   ========================================================= */

.platform {
  background: #000000;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.platform__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.platform__card {
  background: #000000;
  color: #FFFFFF;
  padding: 64px 44px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
  border-right: 1px solid var(--line);
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  position: relative;
}

.platform__card:nth-of-type(3n) {
  border-right: none;
}

.platform__card:hover {
  background: #fb5e47;
  color: #000000;
}

.platform__svg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  padding: 6px;
  border-radius: 20px;
  /* Lit container: subtle top-to-bottom gradient + visible bright border +
     inset top highlight, with a soft outer shadow for elevation. */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0.00) 100%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 18px rgba(0, 0, 0, 0.35);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.platform__card:hover .platform__svg {
  color: #000000;
  border-color: rgba(0, 0, 0, 0.32);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.02) 60%, rgba(0, 0, 0, 0.00) 100%),
    rgba(0, 0, 0, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 18px rgba(0, 0, 0, 0.2);
}

.platform__svg svg,
.platform__img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 14px;
}

.platform__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.platform__title {
  font-size: 28px;
  font-weight: 400;
  margin: 0;
  color: inherit;
  letter-spacing: -0.005em;
}

.platform__desc {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  color: inherit;
  opacity: 0.9;
  max-width: 42ch;
}

/* Themed button — same layout (label · divider · icon) as the rest of
   the site, but outlined w/ currentColor so it inverts cleanly when the
   card switches between dark and orange states. */
.platform__btn {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: stretch;
  background: var(--accent-2);
  color: #fff;
  border: 1px solid var(--accent-2);
  min-height: 44px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-top: 12px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.platform__btn:hover {
  background: var(--accent-2-hover);
  border-color: var(--accent-2-hover);
}

/* Keep button readable when the card itself hovers to orange */
.platform__card:hover .platform__btn {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.platform__btn-label {
  padding: 0 22px;
  display: flex;
  align-items: center;
}

.platform__btn-divider {
  width: 1px;
  background: currentColor;
  opacity: 0.45;
}

.platform__btn-icon {
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .platform__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform__card {
    min-height: 70vh;
  }

  .platform__card:nth-of-type(3n) {
    border-right: 1px solid var(--line);
  }

  .platform__card:nth-of-type(2n) {
    border-right: none;
  }

  .platform__svg svg,
  .platform__img {
    max-width: 300px;
  }
}

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

  .platform__card {
    border-right: none;
    border-bottom: 1px solid var(--line);
    min-height: 60vh;
    padding: 48px 24px 36px;
  }

  .platform__card:last-child {
    border-bottom: none;
  }

  .platform__svg svg,
  .platform__img {
    max-width: 260px;
  }
}

/* =========================================================
   SOLUTIONS STACK — 4 panels that stack on scroll via position: sticky.
   Each panel pins at an incremental top offset so the top slice of the
   previous panel (number + image-top + label) stays visible above the
   next panel — matching the reference's collapsed-strip behaviour.
   ========================================================= */

.stack {
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.stack__list {
  position: relative;
  /* Pinning anchor — panel 1 pins directly below the fixed site header,
     each subsequent panel pins one strip height further down. */
  --pin-start: var(--header-h);
  --strip-h: 72px;
}

.stack-panel {
  position: sticky;
  background: var(--bg);
  min-height: 70vh;
  display: grid;
  grid-template-columns: 100px 1fr 1.15fr;
  gap: 0;
  padding: 0 clamp(24px, 5vw, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Incremental top offsets, each shifted further by one strip height */
.stack-panel:nth-of-type(1) {
  top: var(--pin-start);
}

.stack-panel:nth-of-type(2) {
  top: calc(var(--pin-start) + var(--strip-h));
}

.stack-panel:nth-of-type(3) {
  top: calc(var(--pin-start) + var(--strip-h) * 2);
}

.stack-panel:nth-of-type(4) {
  top: calc(var(--pin-start) + var(--strip-h) * 3);
}

/* ---------- per-panel color blocks (Engineered trading section) ----------
   Each panel pins on top of the next so its background is the dominant
   surface. Text + button colors invert per panel to stay legible. */

.stack-panel--c1 {
  background: #ffffff;
  border-top-color: rgba(0, 0, 0, 0.10);
  border-bottom-color: rgba(0, 0, 0, 0.10);
}

.stack-panel--c2 {
  background: #2e5ce1;
  border-top-color: rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.stack-panel--c3 {
  background: #41e047;
  border-top-color: rgba(255, 255, 255, 0.22);
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.stack-panel--c4 {
  background: #fb3d4c;
  border-top-color: rgba(255, 255, 255, 0.20);
  border-bottom-color: rgba(255, 255, 255, 0.20);
}

/* Panel 1 — light surface, dark ink, dark button */
.stack-panel--c1 .stack-panel__num,
.stack-panel--c1 .stack-panel__label,
.stack-panel--c1 .stack-panel__title {
  color: #0a0a0a;
}

.stack-panel--c1 .stack-panel__desc {
  color: #44474d;
}

.stack-panel--c1 .stack-panel__num {
  border-right-color: rgba(0, 0, 0, 0.12);
}

.stack-panel--c1 .stack-panel__content {
  border-left-color: rgba(0, 0, 0, 0.12);
}

.stack-panel--c1 .stack-panel__image,
.stack-panel--c1 .stack-panel__image:hover {
  color: #0a0a0a;
}

.stack-panel--c1 .stack-panel__btn {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #ffffff;
}

.stack-panel--c1 .stack-panel__btn:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  color: #ffffff;
}

.stack-panel--c1 .stack-panel__btn-divider {
  background: rgba(255, 255, 255, 0.35);
}

/* Panels 2/3/4 — colored surfaces, white ink, white pill button
   tinted with the panel's own color */
.stack-panel--c2 .stack-panel__num,
.stack-panel--c2 .stack-panel__label,
.stack-panel--c2 .stack-panel__title,
.stack-panel--c4 .stack-panel__num,
.stack-panel--c4 .stack-panel__label,
.stack-panel--c4 .stack-panel__title {
  color: #ffffff;
}

.stack-panel--c2 .stack-panel__desc,
.stack-panel--c4 .stack-panel__desc {
  color: rgba(255, 255, 255, 0.85);
}

.stack-panel--c2 .stack-panel__num,
.stack-panel--c4 .stack-panel__num {
  border-right-color: rgba(255, 255, 255, 0.22);
}

.stack-panel--c2 .stack-panel__content,
.stack-panel--c4 .stack-panel__content {
  border-left-color: rgba(255, 255, 255, 0.22);
}

.stack-panel--c2 .stack-panel__image,
.stack-panel--c2 .stack-panel__image:hover,
.stack-panel--c4 .stack-panel__image,
.stack-panel--c4 .stack-panel__image:hover {
  color: #ffffff;
}

/* Panel 3 — green surface (#41e047), black ink for max contrast */
.stack-panel--c3 .stack-panel__num,
.stack-panel--c3 .stack-panel__label,
.stack-panel--c3 .stack-panel__title {
  color: #0a0a0a;
}

.stack-panel--c3 .stack-panel__desc {
  color: rgba(0, 0, 0, 0.78);
}

.stack-panel--c3 .stack-panel__num {
  border-right-color: rgba(0, 0, 0, 0.22);
}

.stack-panel--c3 .stack-panel__content {
  border-left-color: rgba(0, 0, 0, 0.22);
}

.stack-panel--c3 .stack-panel__image,
.stack-panel--c3 .stack-panel__image:hover {
  color: #0a0a0a;
}

.stack-panel--c2 .stack-panel__btn {
  background: #ffffff;
  border-color: #ffffff;
  color: #2e5ce1;
}

.stack-panel--c2 .stack-panel__btn:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
  color: #2e5ce1;
}

.stack-panel--c3 .stack-panel__btn {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #ffffff;
}

.stack-panel--c3 .stack-panel__btn:hover {
  background: #1f1f1f;
  border-color: #1f1f1f;
  color: #ffffff;
}

.stack-panel--c3 .stack-panel__btn-divider {
  background: rgba(255, 255, 255, 0.35);
}

.stack-panel--c4 .stack-panel__btn {
  background: #ffffff;
  border-color: #ffffff;
  color: #fb3d4c;
}

.stack-panel--c4 .stack-panel__btn:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
  color: #fb3d4c;
}

.stack-panel--c2 .stack-panel__btn-divider,
.stack-panel--c3 .stack-panel__btn-divider,
.stack-panel--c4 .stack-panel__btn-divider {
  background: rgba(0, 0, 0, 0.18);
}

/* ---------- col 1: number (full-height cell with vertical line on right) ---------- */
.stack-panel__num {
  grid-column: 1;
  align-self: stretch;
  padding: 28px 0 0 0;
  border-right: 1px solid var(--line);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ---------- col 2: image block — used either for an SVG mark or an
   embedded calculator widget (when modifier --tool is applied) ---------- */
.stack-panel__image {
  grid-column: 2;
  align-self: center;
  justify-self: center;
  margin: 32px clamp(16px, 2.5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: min(82%, 520px);
  aspect-ratio: 1 / 1;
  border: none;
  background: transparent;
  color: #FFFFFF;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.stack-panel__image:hover {
  color: #000000;
}


.stack-panel__image svg {
  width: 62%;
  height: auto;
  display: block;
}

.stack-panel__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ============= Embedded calculator tool widgets (cashbackforex iframes) =============
   Pattern mirrors fibo's working setup: a fixed-size outer container with
   overflow:hidden, and an absolutely positioned inner frame offset upward
   by 53px to crop the cashbackforex header bar. Each calculator type has a
   different natural height. */
.stack-panel__image--tool {
  background: #000000;
  color: var(--text);
  padding: 0;
  /* Break out of the inherited aspect-ratio/width constraints — the
     .tool-widget child defines its own fixed size to match the calculator
     iframe's natural rendered dimensions. */
  width: auto;
  max-width: 100%;
  aspect-ratio: auto;
  overflow: hidden;
}

.stack-panel__image--tool:hover {
  background: #000000;
  color: var(--text);
}

/* Outer container — fixed size per calculator, clips overflow so the
   cropped iframe edges stay hidden. */
.tool-widget {
  width: 37.5rem;
  /* 600px — matches fibo */
  max-width: 100%;
  overflow: hidden;
  background: #000;
  position: relative;
  margin: 0 auto;
}

/* Per-calculator heights — taken from fibo/aspire/static/.../xo-custom.css.
   These match the natural rendered height of the cashbackforex iframe for
   each Calculator type, so no scrollbars appear. */
.tool-widget--fibonacci {
  height: 36.875rem;
}

/* 590px */
.tool-widget--pip {
  height: 29.375rem;
}

/* 470px */
.tool-widget--lot {
  height: 37.5rem;
}

/* 600px */
.tool-widget--margin {
  height: 30.625rem;
}

/* 490px */
.tool-widget--drawdown {
  height: 47.5rem;
}

/* 760px */
.tool-widget--pivot {
  height: 35.625rem;
}

/* 570px */
.tool-widget--exchange {
  height: 33.125rem;
}

/* 530px */
.tool-widget--compound {
  height: 42rem;
}

/* 672px — taller to fit the built-in form */
.tool-widget--calendar {
  height: 37.5rem;
}

/* 600px — calendar list */

/* Inner frame — cashbackforex injects an iframe inside this div. Pulled
   up 53px to hide the widget's own top title strip, and stretched 5px
   wider than the container to mask the right edge. */
.tool-widget__frame {
  position: absolute;
  top: -53px;
  left: 50%;
  transform: translate(-50%, 0);
  width: calc(100% + 5px);
  max-width: 41.625rem;
  /* 666px */
}

.tool-widget__frame>iframe,
.tool-widget__frame iframe {
  width: 100% !important;
  border: 0;
  display: block;
}

/* Economic calendar uses RemoteCalendar — same pattern, no negative offset
   needed because the calendar widget has no decorative title bar. */
.tool-widget--calendar .tool-widget__frame {
  top: 0;
  width: 100%;
  max-width: none;
}

/* Built-in tools (custom Trade Corp calculators, not cashbackforex iframes)
   don't need the -53px header crop. Make the frame fill its container so
   the form renders normally inside the panel. */
.tool-widget__frame--builtin {
  position: relative;
  top: 0;
  left: auto;
  transform: none;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  overflow-y: auto;
}

/* Scale down at narrower viewports where col 2 < 600px. `zoom` is used
   because (unlike transform: scale) it shrinks the layout box too, so the
   widget doesn't overflow into col 3 / the content column. Supported in
   Chrome, Edge, Safari, and Firefox 126+. */
@media (max-width: 1200px) {
  .tool-widget {
    zoom: 0.85;
  }
}

@media (max-width: 1024px) {
  .tool-widget {
    zoom: 0.72;
  }
}

/* Mobile collapse — match fibo's small-screen behaviour. The sticky stack
   is already disabled at this breakpoint, so the widget gets full panel
   width and we let its natural height flow. */
@media (max-width: 900px) {
  .tool-widget {
    width: 100%;
    max-width: 37.5rem;
    height: auto;
    min-height: 28rem;
    transform: none;
  }

  .tool-widget--drawdown {
    min-height: 42rem;
  }

  .tool-widget__frame {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
  }
}

.tool {
  width: 100%;
  height: 100%;
  padding: clamp(20px, 2.2vw, 36px) clamp(22px, 2.4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 1.8vw, 28px);
  font-family: 'Iceland', system-ui, sans-serif;
  color: var(--text);
  box-sizing: border-box;
}

.tool__inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool__label {
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.tool__input {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 16px;
  border-radius: 0;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tool__input:focus {
  border-color: #fb5e47;
  background: rgba(251, 94, 71, 0.04);
}

select.tool__input {
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23a0a7b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px 7px;
  padding-right: 36px;
}

.tool__results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.tool__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 13px;
  padding: 5px 0;
}

.tool__row+.tool__row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tool__row-label {
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}

.tool__row-value {
  color: var(--text);
  font-weight: 600;
}

.tool__row--key .tool__row-value {
  color: #fb5e47;
  font-size: 14px;
}

/* Calculate button — orange-themed, sits between inputs and results */
.tool__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  background: var(--accent-2);
  color: #fff;
  border: 1px solid var(--accent-2);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.tool__submit:hover {
  background: var(--accent-2-hover);
  border-color: var(--accent-2-hover);
}

.tool__submit:active {
  transform: translateY(1px);
}

.tool__submit svg {
  display: block;
}

.tool__placeholder {
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 6px 0;
}

/* Inline checkbox row inside a .tool form (eg. Include regular deposits). */
.tool__check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 0;
}

.tool__check input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  margin: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tool__check input:checked {
  background: #fb5e47;
  border-color: #fb5e47;
}

.tool__check input:checked::after {
  content: "";
  width: 4px;
  height: 8px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg) translate(-1px, -1px);
}

.tool__check input:focus-visible {
  outline: 2px solid #fb5e47;
  outline-offset: 2px;
}

.tool__row--err .tool__row-label {
  color: #fb5e47;
}

/* Slight dim when inputs change after a calculation — hints that results are stale */
.tool__results.is-stale {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.tool__highlight {
  padding: 14px;
  background: rgba(251, 94, 71, 0.08);
  border: 1px solid rgba(251, 94, 71, 0.25);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.tool__highlight-label {
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fb5e47;
}

.tool__highlight-value {
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ---------- Economic Calendar widget (no inputs, just a row list) ---------- */
.tool--calendar .tool__cal-head {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.tool__row--cal {
  display: grid;
  grid-template-columns: 72px 38px 1fr 10px;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 12px;
}

.tool__cal-day {
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

.tool__cal-ccy {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tool__cal-event {
  color: var(--text);
  font-family: 'Iceland', system-ui, sans-serif;
  font-size: 14px;
}

.tool__cal-impact {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  justify-self: end;
}

/* Compact spacing tweaks on smaller panels */
@media (max-width: 1080px) {
  .tool {
    padding: 22px 24px;
    gap: 18px;
  }

  .tool__input {
    font-size: 15px;
    padding: 9px 12px;
  }

  .tool__highlight-value {
    font-size: 20px;
  }

  .tool__submit {
    padding: 10px 18px;
    font-size: 13px;
  }

  .tool__row--cal {
    grid-template-columns: 64px 32px 1fr 10px;
    gap: 10px;
    font-size: 11px;
  }

  .tool__cal-event {
    font-size: 13px;
  }
}

/* ---------- col 3: full-height cell with vertical line on left + content ---------- */
.stack-panel__content {
  grid-column: 3;
  align-self: stretch;
  padding: 28px 0 28px clamp(28px, 3vw, 44px);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.stack-panel__label {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}

.stack-panel__title {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 18ch;
  color: var(--text);
}

.stack-panel__desc {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
  max-width: 56ch;
}

.stack-panel__btn {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: stretch;
  border: 1px solid var(--accent-2);
  min-height: 44px;
  text-decoration: none;
  color: #fff;
  background: var(--accent-2);
  font-size: 14px;
  align-self: flex-start;
  margin-top: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.stack-panel__btn:hover {
  background: var(--accent-2-hover);
  border-color: var(--accent-2-hover);
  color: #fff;
}

.stack-panel__btn-label {
  padding: 0 22px;
  display: flex;
  align-items: center;
}

.stack-panel__btn-divider {
  width: 1px;
  background: var(--line);
}

.stack-panel__btn-icon {
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {

  /* Disable sticky stacking on small screens — panels become a normal stack */
  .stack-panel {
    position: relative;
    top: auto !important;
    min-height: auto;
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 24px clamp(20px, 4vw, 32px);
  }

  .stack-panel__num {
    padding-top: 0;
    border-right: none;
  }

  .stack-panel__image {
    grid-column: 1 / 3;
    margin: 0;
    aspect-ratio: 4 / 3;
    min-height: 320px;
    max-height: none;
    justify-self: stretch;
    width: 100%;
  }

  .stack-panel__image svg {
    width: 50%;
  }

  .stack-panel__content {
    grid-column: 1 / 3;
    padding: 0;
    border-left: none;
  }
}

/* =========================================================
   JOURNEY — 6 cards in a horizontal scroller (nav buttons in section-band)
   ========================================================= */

.journey {
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.journey__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.journey__viewport::-webkit-scrollbar {
  display: none;
}

.journey__track {
  display: flex;
}

.journey-card {
  /* Use --content-w (set by JS to body.clientWidth) so card width matches
     the press section's col 4 = body_width / 3, and vertical lines align. */
  flex: 0 0 calc(var(--content-w) / 3);
  scroll-snap-align: start;
  padding: 48px clamp(28px, 3vw, 44px) 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 380px;
  border-right: 1px solid var(--line);
  transition: background-color 0.25s ease;
}

.journey-card:last-child {
  border-right: none;
}

.journey-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.journey-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
}

.journey-card__icon svg {
  width: 100%;
  height: 100%;
}

.journey-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.journey-card__title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--text);
}

.journey-card__desc {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  max-width: 38ch;
}

/* CTA — small text link with arrow (matches reference's compact look) */
.journey-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--accent-2);
  background: var(--accent-2);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.01em;
  align-self: flex-start;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.journey-card__cta:hover {
  background: var(--accent-2-hover);
  border-color: var(--accent-2-hover);
  color: #fff;
}

.journey-card__cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- responsive (horizontal scroller) ---------- */
@media (max-width: 1080px) {
  .journey-card {
    flex-basis: calc(100vw / 2);
  }
}

@media (max-width: 720px) {
  .journey-card {
    flex-basis: calc(100vw - 56px);
    /* near-full width, small peek of next card */
    min-height: 320px;
  }
}

/* =========================================================
   PRESS — single 4-col × 2-row grid:
     Row 1: image (cols 1-3)  |  terminal (col 4)
     Row 2: 3 cards (col 1, 2, 3)  |  orange CTA (col 4)
   Orange CTA spans the full right column from below the terminal
   to the bottom of the section. Section locked to 100vh.
   ========================================================= */

.press {
  display: grid;
  /* Use the SAME --content-w as the journey card so col 4 is exactly
     `var(--content-w) / 3` (= one journey card width). Cols 1-3 share
     the remaining `2/3 * content-w`, split evenly. Vertical line between
     col 3 and col 4 lands at exactly `2/3 * content-w` from the section's
     left edge — same as journey card 2 / card 3 boundary. */
  grid-template-columns:
    calc(2 * var(--content-w) / 9) calc(2 * var(--content-w) / 9) calc(2 * var(--content-w) / 9) calc(var(--content-w) / 3);
  grid-template-rows: 3fr 2fr;
  height: 100vh;
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* ---------- row 1: image (cols 1-3) ---------- */
.press__image {
  grid-column: 1 / 4;
  grid-row: 1;
  margin: 0;
  background: #081136;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.press__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.press__image-placeholder {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- row 1: terminal (col 4) ---------- */
.press__terminal {
  grid-column: 4;
  grid-row: 1;
  background: #000000;
  border-bottom: 1px solid var(--line);
  padding: clamp(20px, 1.8vw, 32px) clamp(16px, 1.5vw, 28px);
  overflow: hidden;
}

.press__terminal-screen {
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  letter-spacing: 0.02em;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.press__terminal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.press__terminal-dot {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1;
}

.press__terminal-blocks {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.press__terminal-block {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--text-dim);
}

.press__terminal-block>div+div {
  margin-top: 2px;
}

/* ---------- live binary grid: row + byte cells with flip-flash ---------- */
.press__binary-row {
  display: flex;
  gap: clamp(10px, 1.4vw, 18px);
}
.press__byte {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: pre;
  /* Smooth fade BACK to the dimmed default colour after the flash class
     is removed; flash itself is instant via the .is-flipping override. */
  transition: color 0.7s ease, text-shadow 0.7s ease;
}
.press__byte.is-flipping {
  color: var(--accent-2);
  text-shadow: 0 0 8px rgba(59, 106, 248, 0.5);
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .press__byte,
  .press__byte.is-flipping {
    transition: none;
    color: var(--text-dim);
    text-shadow: none;
  }
}

/* ---------- live status rows: pulsing dots + glitch-char target ---------- */
.press__terminal-row {
  position: relative;
  transition: color 0.4s ease;
}
.press__terminal-row.is-active {
  color: var(--text);
}

.press__terminal-dot {
  display: inline-block;
  color: var(--lime);
  opacity: 0.4;
  animation: press-dot-pulse 2.4s ease-in-out infinite;
  transition: color 0.25s ease, text-shadow 0.25s ease, opacity 0.25s ease;
}

/* Stagger each row's dot pulse so the column reads as continuous activity
   rather than ten dots blinking in unison. */
.press__terminal-row:nth-of-type(1)  .press__terminal-dot { animation-delay:  0.00s; }
.press__terminal-row:nth-of-type(2)  .press__terminal-dot { animation-delay:  0.20s; }
.press__terminal-row:nth-of-type(3)  .press__terminal-dot { animation-delay:  0.40s; }
.press__terminal-row:nth-of-type(4)  .press__terminal-dot { animation-delay:  0.60s; }
.press__terminal-row:nth-of-type(5)  .press__terminal-dot { animation-delay:  0.80s; }
.press__terminal-row:nth-of-type(6)  .press__terminal-dot { animation-delay:  1.00s; }
.press__terminal-row:nth-of-type(7)  .press__terminal-dot { animation-delay:  1.20s; }
.press__terminal-row:nth-of-type(8)  .press__terminal-dot { animation-delay:  1.40s; }
.press__terminal-row:nth-of-type(9)  .press__terminal-dot { animation-delay:  1.60s; }
.press__terminal-row:nth-of-type(10) .press__terminal-dot { animation-delay:  1.80s; }

.press__terminal-dot.is-active {
  color: var(--accent-2);
  opacity: 1;
  text-shadow: 0 0 10px rgba(59, 106, 248, 0.6);
  animation: none;
}

@keyframes press-dot-pulse {
  0%, 100% { opacity: 0.32; text-shadow: none; }
  50%      { opacity: 0.95; text-shadow: 0 0 6px rgba(168, 251, 94, 0.55); }
}

@media (prefers-reduced-motion: reduce) {
  .press__terminal-dot,
  .press__terminal-dot.is-active {
    animation: none;
    opacity: 0.6;
    text-shadow: none;
    color: var(--lime);
  }
}

/* ---------- row 2: 3 cards (col 1, 2, 3) ---------- */
.press-card {
  grid-row: 2;
  padding: clamp(20px, 1.8vw, 32px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  transition: background-color 0.25s ease;
}

.press-card:nth-of-type(1) {
  grid-column: 1;
}

.press-card:nth-of-type(2) {
  grid-column: 2;
}

.press-card:nth-of-type(3) {
  grid-column: 3;
}

.press-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.press-card__title {
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
  max-width: 22ch;
}

.press-card__desc {
  font-size: 15px;
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
  text-transform: uppercase;
  max-width: 40ch;
}

/* ---------- row 2: orange CTA (col 4) — sits below terminal, runs to bottom ---------- */
.press__cta {
  grid-column: 4;
  grid-row: 2;
  background: var(--accent-2);
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 1.8vw, 32px);
  transition: background-color 0.2s ease;
}

.press__cta:hover {
  background: var(--accent-2-hover);
}

.press__cta-arrow {
  align-self: flex-end;
  width: clamp(44px, 5vw, 84px);
  height: clamp(44px, 5vw, 84px);
}

.press__cta-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.press__cta-label {
  font-size: clamp(20px, 1.8vw, 32px);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.1;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {

  /* 2-col layout: image+terminal in top row, cards+CTA tile in bottom rows */
  .press {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    height: auto;
    min-height: 100vh;
  }

  .press__image {
    grid-column: 1;
    grid-row: 1;
  }

  .press__terminal {
    grid-column: 2;
    grid-row: 1;
  }

  .press-card:nth-of-type(1) {
    grid-column: 1;
    grid-row: 2;
  }

  .press-card:nth-of-type(2) {
    grid-column: 1;
    grid-row: 3;
  }

  .press-card:nth-of-type(3) {
    grid-column: 1;
    grid-row: 4;
  }

  .press__cta {
    grid-column: 2;
    grid-row: 2 / 5;
  }

  .press-card {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .press-card:last-of-type {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .press {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
    height: auto;
    min-height: auto;
  }

  .press__image {
    grid-column: 1;
    grid-row: 1;
    min-height: 320px;
    border-right: none;
  }

  .press__terminal {
    grid-column: 1;
    grid-row: 2;
    min-height: 280px;
  }

  .press-card:nth-of-type(1) {
    grid-column: 1;
    grid-row: 3;
    border-right: none;
  }

  .press-card:nth-of-type(2) {
    grid-column: 1;
    grid-row: 4;
    border-right: none;
  }

  .press-card:nth-of-type(3) {
    grid-column: 1;
    grid-row: 5;
    border-right: none;
  }

  .press__cta {
    grid-column: 1;
    grid-row: 6;
    min-height: 200px;
  }
}

/* =========================================================
   PIXEL CURSOR TRAIL — fixed full-viewport canvas, on top, click-through
   ========================================================= */

.cursor-trail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
}

/* =========================================================
   FLOATING THEME TOGGLE
   ========================================================= */

.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--text-dim);
  transform: scale(1.05);
}

.theme-toggle__icon {
  position: absolute;
  font-size: 18px;
  line-height: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

[data-theme="dark"] [data-icon-dark] {
  opacity: 1;
  transform: scale(1);
}

[data-theme="dark"] [data-icon-light] {
  opacity: 0;
  transform: scale(0.6);
}

[data-theme="light"] [data-icon-dark] {
  opacity: 0;
  transform: scale(0.6);
}

[data-theme="light"] [data-icon-light] {
  opacity: 1;
  transform: scale(1);
}

.theme-toggle--floating {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 100;
}

/* Nav-bar variant — square button sized to sit beside .site-btn */
.theme-toggle--nav {
  width: 52px;
  height: 52px;
  min-height: 52px;
  border-radius: 0;
  flex: 0 0 auto;
}

.theme-toggle--nav .theme-toggle__icon {
  font-size: 20px;
}

/* =========================================================
   FOOTER (placeholder)
   ========================================================= */

/* =========================================================
   FAQ — 2-col: intro+contact on the left, numbered list on the right
   ========================================================= */

.faq {
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  --faq-px: clamp(20px, 3vw, 44px);
  --faq-num-w: 56px;
  --faq-gap: clamp(16px, 1.6vw, 28px);
}

/* ---------- left column: heading + helper + contact CTA ---------- */
.faq__intro {
  border-right: 1px solid var(--line);
  padding: clamp(48px, 6vw, 96px) clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(40px, 8vw, 120px);
}

.faq__title {
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
  color: var(--text);
  max-width: 14ch;
}

.faq__cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.faq__helper {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 36ch;
  margin: 0;
}

/* ---------- right column: list of items ---------- */
.faq__list {
  display: flex;
  flex-direction: column;
  border-top: 0;
}

.faq__item {
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease;
}

.faq__item:last-of-type {
  border-bottom: none;
}

.faq__item[open] {
  background: var(--accent-2-soft);
}

/* ---------- summary row: number · question text · icon ---------- */
.faq__question {
  display: grid;
  grid-template-columns: var(--faq-num-w) 1fr 44px;
  gap: var(--faq-gap);
  align-items: center;
  padding: clamp(22px, 2.6vw, 36px) var(--faq-px);
  cursor: pointer;
  list-style: none;
  color: var(--text);
  transition: background-color 0.2s ease;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  content: "";
}

.faq__question:hover {
  background: rgba(255, 255, 255, 0.025);
}

.faq__num {
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  transition: color 0.25s ease;
}

.faq__q-text {
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.22;
  max-width: 56ch;
  transition: color 0.25s ease;
}

/* Circular outlined button containing a + that rotates to × on open */
.faq__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.faq__icon svg {
  display: block;
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.faq__item[open] .faq__num {
  color: var(--accent-2);
}

/* ---------- animated answer panel (grid-template-rows trick) ---------- */
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__item[open] .faq__panel {
  grid-template-rows: 1fr;
}

.faq__answer {
  min-height: 0;
  overflow: hidden;
}

.faq__answer p {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
  max-width: 68ch;
  padding: 0 var(--faq-px) clamp(28px, 3vw, 44px) calc(var(--faq-px) + var(--faq-num-w) + var(--faq-gap));
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {

  /* Stack the 2 columns — intro on top, list below */
  .faq {
    grid-template-columns: 1fr;
  }

  .faq__intro {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 48px clamp(24px, 5vw, 40px);
    gap: 32px;
  }

  .faq__title {
    font-size: clamp(32px, 7.5vw, 56px);
    max-width: 18ch;
  }
}

@media (max-width: 720px) {
  .faq {
    --faq-num-w: 32px;
    --faq-gap: 14px;
    --faq-px: 20px;
  }

  .faq__intro {
    padding: 40px 20px;
    gap: 24px;
  }

  .faq__title {
    font-size: clamp(28px, 8vw, 44px);
  }

  .faq__helper {
    font-size: 14px;
  }

  .faq__question {
    padding: 22px var(--faq-px);
  }

  .faq__q-text {
    font-size: clamp(17px, 4.6vw, 22px);
  }

  .faq__num {
    font-size: 13px;
  }

  .faq__icon {
    width: 36px;
    height: 36px;
  }

  .faq__icon svg {
    width: 12px;
    height: 12px;
  }

  .faq__answer p {
    font-size: 14px;
    padding: 0 var(--faq-px) 22px calc(var(--faq-px) + var(--faq-num-w) + var(--faq-gap));
  }
}

/* =========================================================
   FOOTER — orange brand block: 3 columns + huge wordmark + legal row
   ========================================================= */

.footer {
  background: #fb5e47;
  color: #000000;
  border-top: 1px solid #000000;
  font-family: 'Iceland', system-ui, sans-serif;
}

/* ---------- 3-column link grid ---------- */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(0, 0, 0, 0.8);
}

.footer__col {
  padding: clamp(40px, 5vw, 72px) clamp(24px, 3.5vw, 56px);
  border-right: 1px solid rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 320px;
}

.footer__col:last-child {
  border-right: none;
}

.footer__list,
.footer__lang {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__list a,
.footer__lang a,
.footer__lang span {
  color: #000000;
  text-decoration: none;
  font-size: clamp(16px, 1.3vw, 22px);
  letter-spacing: -0.005em;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.footer__list a:hover,
.footer__lang a:hover {
  opacity: 0.6;
}

.footer__lang {
  flex-direction: row;
  gap: 16px;
  margin-top: auto;
}

.footer__lang span[aria-current="page"] {
  font-weight: 700;
}

.footer__address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.85);
  margin-top: auto;
}

.footer__address a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__address a:hover {
  opacity: 0.6;
}

/* ---------- huge wordmark ---------- */
.footer__wordmark {
  padding: clamp(40px, 4vw, 64px) clamp(20px, 3vw, 40px) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  line-height: 0.85;
}

.footer__wordmark-text {
  font-size: clamp(72px, 23vw, 380px);
  letter-spacing: -0.03em;
  line-height: 0.85;
  color: #000000;
  white-space: nowrap;
  display: inline-block;
}

.footer__wordmark-text sup {
  font-size: 0.18em;
  vertical-align: super;
  margin-left: 0.08em;
}

/* ---------- legal row ---------- */
.footer__legal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: clamp(18px, 1.6vw, 28px) clamp(24px, 3.5vw, 56px);
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
}

.footer__copy {
  margin: 0;
}

/* Separate black bar pinned to the very bottom of every page —
   sits outside the .footer so it reads as its own signature row. */
.site-signature {
  background: #000000;
  border-top: 1px solid var(--line);
  padding: 10px clamp(20px, 4vw, 48px);
  text-align: center;
}

/* Desoft attribution link — inherits the credit text style, picks up brand
   orange on hover so it reads as an interactive link without screaming. */
.footer__credit-link {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer__credit-link:hover,
.footer__credit-link:focus-visible {
  color: var(--accent, #fb5e47);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-signature .footer__credit {
  margin: 0;
  text-align: center;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

.footer__heart {
  color: #ff3b3b;
  display: inline-block;
  transform: translateY(2px);
  margin: 0 4px;
  font-size: 22px;
  line-height: 1;
}

.footer__credit {
  margin: 0;
  text-align: right;
}

.footer__legal-links {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.footer__legal-links a {
  color: #000000;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer__legal-links a:hover {
  opacity: 0.6;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__col:nth-of-type(2) {
    border-right: none;
  }

  .footer__col:nth-of-type(-n+2) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
  }

  .footer__col:nth-of-type(3) {
    grid-column: 1 / 3;
    border-right: none;
  }

  .footer__legal {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }

  .footer__credit {
    text-align: center;
  }

  .footer__legal-links {
    justify-content: center;
  }
}

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

  .footer__col {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
    min-height: auto;
  }

  .footer__col:last-child {
    border-bottom: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 860px) {

  /* Mobile header stacks vertically — bump --header-h so body padding-top
     and any other consumers (eg. hero min-height calc) match the taller
     stacked layout. */
  :root {
    --header-h: 134px;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header__brand {
    flex: 0 0 auto;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
  }

  .site-header__actions {
    padding: 14px 20px;
    justify-content: flex-start;
  }

  .site-btn {
    flex: 1;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    min-height: auto;
  }

  .hero__labels {
    grid-column: 1;
    grid-row: 1;
    border-right: none;
  }

  .hero__headline {
    grid-column: 1;
    grid-row: 2;
    border-right: none;
    padding: 32px 20px;
    font-size: clamp(48px, 14vw, 96px);
  }

  .hero__midmid {
    display: none;
  }

  .hero__mark {
    grid-column: 1;
    grid-row: 3;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    min-height: 260px;
  }

  .hero__mark-text {
    font-size: clamp(180px, 50vw, 280px);
  }

  .hero__sub {
    grid-column: 1;
    grid-row: 4;
    border-right: none;
    padding: 24px 20px;
  }

  .hero__botmid {
    display: none;
  }

  .hero__markbot {
    display: none;
  }
}

/* =========================================================
   MOBILE POLISH — overflow safety, small-phone breakpoint,
   tighter spacing + touch-friendly hit targets
   ========================================================= */

html,
body {
  /* `clip` keeps the horizontal-overflow guard but, unlike `hidden`, does
     not create a scroll container — so `position: sticky` on the stack
     section's panels keeps working. */
  overflow-x: clip;
}

@media (max-width: 720px) {

  /* Section bands — tighter padding + smaller headline so 2-line
     titles don't dominate the small viewport */
  .section-band {
    padding: clamp(14px, 3vw, 28px) clamp(16px, 4vw, 28px);
  }

  .section-band__heading {
    font-size: clamp(22px, 7vw, 36px);
  }

  .section-band__nav-btn {
    width: 44px;
    height: 44px;
  }

  /* AI section text density on tablet/phone */
  .ai__card-title {
    font-size: 20px;
  }

  .ai__card-desc {
    font-size: 14px;
  }

  /* Press terminal — denser text so the list fits */
  .press__terminal {
    padding: 18px 16px;
  }

  .press__terminal-screen {
    font-size: 10px;
    line-height: 1.55;
  }

  .press__terminal-blocks {
    margin-top: 12px;
    gap: 10px;
  }

  .press-card__title {
    font-size: 18px;
  }

  .press__cta-label {
    font-size: clamp(18px, 4.5vw, 24px);
  }

  /* Hero mark — smaller min-height so the section feels balanced */
  .hero__mark {
    min-height: 220px;
  }

  /* Footer huge wordmark scales down */
  .footer__wordmark {
    padding-top: clamp(28px, 4vw, 48px);
  }

  .footer__wordmark-text {
    font-size: clamp(56px, 22vw, 200px);
  }

  .footer__col {
    padding: 32px 24px;
    gap: 24px;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  /* Small-phone tightening */

  /* Site header — keep brand + buttons compact */
  .site-header__brand {
    font-size: 17px;
    padding: 14px 16px;
  }

  .site-header__actions {
    padding: 12px 16px;
    gap: 10px;
  }

  .site-btn {
    min-height: 48px;
  }

  .site-btn__label {
    padding: 0 18px;
    font-size: 14px;
    letter-spacing: 0;
  }

  .site-btn__icon {
    padding: 0 14px;
  }

  .theme-toggle--nav {
    width: 48px;
    height: 48px;
    min-height: 48px;
    flex: 0 0 48px;
  }

  /* Hero — smaller padding + headline */
  .hero__headline {
    font-size: clamp(40px, 13vw, 72px);
    padding: 24px 16px;
  }

  .hero__labels {
    padding: 0 16px;
    gap: 8px;
  }

  .hero__sub {
    padding: 20px 16px;
    font-size: 18px;
  }

  /* Touch-friendly buttons (min 44x44 hit target) */
  .btn,
  .platform__btn,
  .stack-panel__btn,
  .journey-card__cta,
  .ai__cta {
    min-height: 48px;
  }

  /* Card/section padding — uniform 20px horizontal */
  .ai__card,
  .ai__sub,
  .ai__feature,
  .journey-card,
  .platform__card,
  .press-card,
  .stack-panel,
  .footer__col {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Section bands — tighter font on tiny screens */
  .section-band__heading {
    font-size: clamp(20px, 7vw, 30px);
  }

  /* AI feature panel headline — keep the reveal headline readable */
  .ai__feature {
    padding: 28px 20px;
  }

  /* Stack panel image — give breathing room without dominating */
  .stack-panel__image {
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }

  .stack-panel__title {
    font-size: clamp(22px, 6vw, 32px);
  }

  /* Solutions stack feature description denser */
  .stack-panel__desc {
    font-size: 14px;
  }

  /* Press section — single col cards comfortable */
  .press-card {
    padding: 24px 20px;
    min-height: 200px;
  }

  .press__terminal-row {
    gap: 8px;
  }

  .press__terminal-blocks {
    font-size: 10px;
  }

  /* Footer */
  .footer__wordmark-text {
    font-size: clamp(48px, 22vw, 140px);
  }

  .footer__legal {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
    font-size: 13px;
    padding: 20px;
  }

  .footer__legal-links {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  /* Platform section — slightly shorter cards on phone */
  .platform__card {
    min-height: 56vh;
    padding: 40px 20px 32px;
  }

  .platform__svg svg {
    max-width: 220px;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* =========================================================
   AUTH + CONTACT PAGES — shared form / panel system
   Used by contact.html, signup.html, login.html.
   Grid-divided layout with the same line-rule aesthetic as
   the main landing.
   ========================================================= */

.page-shell {
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Subtle radial accent — reuses the orange highlight from the landing */
.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(251, 94, 71, 0.18), transparent 60%),
    radial-gradient(45% 40% at 100% 90%, rgba(251, 94, 71, 0.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.page-shell>* {
  position: relative;
  z-index: 1;
}

/* ---------- two-column grid (info / form) ---------- */

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: calc(100vh - var(--header-h));
}

/* Wider info panel variant used by the contact page */
.auth-grid--contact {
  grid-template-columns: 0.95fr 1.1fr;
}

/* ---------- left: info / marketing panel ---------- */

.auth-info {
  padding: clamp(48px, 6vw, 96px) clamp(28px, 5vw, 72px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
  position: relative;
}

.auth-info__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.auth-info__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: #fb5e47;
}

.auth-info__title {
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
  max-width: 14ch;
}

.auth-info__lede {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
  max-width: 46ch;
}

/* Feature pillars */
.auth-info__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.auth-info__list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.auth-info__list-num {
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #fb5e47;
}

.auth-info__list-body h4 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 6px 0;
  color: var(--text);
  letter-spacing: -0.005em;
}

.auth-info__list-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  max-width: 40ch;
}

/* Quote / testimonial */
.auth-info__quote {
  margin-top: auto;
  padding: clamp(20px, 1.8vw, 28px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.auth-info__quote p {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin: 0 0 14px 0;
  color: var(--text);
}

.auth-info__quote-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.auth-info__quote-meta::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--text-mute);
}

/* ---------- right: form panel ---------- */

.auth-form-panel {
  padding: clamp(40px, 5vw, 80px) clamp(28px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 40px);
  background: rgba(255, 255, 255, 0.015);
}

.auth-form-panel__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form-panel__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--text);
}

.auth-form-panel__sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  max-width: 50ch;
}

.auth-form-panel__sub a {
  color: #fb5e47;
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 94, 71, 0.4);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

.auth-form-panel__sub a:hover {
  border-color: #fb5e47;
}

/* ---------- form primitives ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form__row--single {
  grid-template-columns: 1fr;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form__label {
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.form__label .req {
  color: #fb5e47;
  margin-left: 4px;
}

.form__input,
.form__select,
.form__textarea {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  font-family: 'Iceland', system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: 0.005em;
  border-radius: 0;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-mute);
  font-family: inherit;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: #fb5e47;
  background: rgba(251, 94, 71, 0.05);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23a0a7b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 11px 7px;
  padding-right: 40px;
}

.form__select option {
  background: #0d0f15;
  color: var(--text);
}

/* Field with internal action (eg. show/hide password) */
.form__input--with-action {
  padding-right: 56px;
}

.form__field-action {
  position: absolute;
  right: 12px;
  bottom: 11px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.form__hint {
  font-size: 12px;
  color: var(--text-mute);
  margin: 0;
}

/* Checkboxes — custom square, orange tick */
.form__check {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  position: relative;
}

.form__check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.form__check-box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.form__check-box::after {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.form__check input:checked+.form__check-box {
  background: #fb5e47;
  border-color: #fb5e47;
}

.form__check input:checked+.form__check-box::after {
  opacity: 1;
}

.form__check input:focus-visible+.form__check-box {
  outline: 2px solid #fb5e47;
  outline-offset: 2px;
}

.form__check a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.form__check a:hover {
  border-color: #fb5e47;
  color: #fb5e47;
}

/* Inline row: remember-me on left, forgot link on right */
.form__inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form__link {
  font-size: 14px;
  color: #fb5e47;
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(251, 94, 71, 0.4);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

.form__link:hover {
  border-color: #fb5e47;
}

/* Primary submit — full width orange button using label·divider·icon pattern */
.form__submit {
  display: inline-grid;
  grid-template-columns: 1fr auto auto;
  align-items: stretch;
  background: var(--accent-2);
  color: #FFFFFF;
  text-decoration: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  min-height: 56px;
  border: 1px solid var(--accent-2);
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form__submit:hover {
  background: var(--accent-2-hover);
  border-color: var(--accent-2-hover);
}

.form__submit .btn__label {
  text-align: left;
  padding: 0 24px;
}

.form__submit .btn__divider {
  background: rgba(255, 255, 255, 0.35);
}

.form__submit .btn__icon {
  padding: 0 22px;
  color: #FFFFFF;
}

/* ---------- divider with label ---------- */

.form__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: var(--text-mute);
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

/* ---------- social / SSO buttons ---------- */

.sso-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  background: var(--accent-2);
  border: 1px solid var(--accent-2);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sso-btn:hover {
  background: var(--accent-2-hover);
  border-color: var(--accent-2-hover);
}

.sso-btn svg {
  flex-shrink: 0;
}

/* Form panel footer (already signed in? / no account? etc.) */
.auth-form-panel__foot {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

.auth-form-panel__foot a {
  color: #fb5e47;
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 94, 71, 0.4);
  padding-bottom: 1px;
}

.auth-form-panel__foot a:hover {
  border-color: #fb5e47;
}

/* ---------- CONTACT-specific blocks ---------- */

.contact-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-channel {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--line);
}

.contact-channel:nth-of-type(2n) {
  border-right: none;
  padding-right: 0;
  padding-left: 24px;
}

.contact-channel__label {
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.contact-channel__value {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--text);
  letter-spacing: -0.005em;
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.contact-channel__value:hover {
  color: #fb5e47;
}

.contact-channel__sub {
  font-size: 13px;
  color: var(--text-mute);
}

.contact-offices {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
}

.contact-office {
  padding: 22px 18px 22px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-office:nth-of-type(3n) {
  border-right: none;
  padding-right: 0;
}

.contact-office:not(:first-of-type) {
  padding-left: 18px;
}

.contact-office__city {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}

.contact-office__addr {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
  font-style: normal;
}

/* ---------- breadcrumb / back link strip ---------- */

.page-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: var(--bg);
}

.page-strip a {
  color: var(--text-mute);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.page-strip a:hover {
  color: var(--text);
}

.page-strip__crumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.page-strip__crumbs span {
  color: var(--text);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {

  .auth-grid,
  .auth-grid--contact {
    grid-template-columns: 1fr;
  }

  .auth-info {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 56px clamp(24px, 5vw, 48px);
  }

  .auth-form-panel {
    padding: 48px clamp(24px, 5vw, 48px);
  }

  .contact-offices {
    grid-template-columns: 1fr;
  }

  .contact-office {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }

  .contact-office:not(:first-of-type) {
    padding-left: 0;
  }

  .contact-office:last-of-type {
    border-bottom: none;
  }
}

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

  .sso-row {
    grid-template-columns: 1fr;
  }

  .contact-channels {
    grid-template-columns: 1fr;
  }

  .contact-channel {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }

  .contact-channel:nth-of-type(2n) {
    padding-left: 0;
  }

  .contact-channel:last-of-type {
    border-bottom: none;
  }

  .auth-info {
    padding: 40px 20px;
  }

  .auth-form-panel {
    padding: 36px 20px;
  }

  .auth-info__title {
    font-size: clamp(34px, 11vw, 56px);
  }

  .auth-form-panel__title {
    font-size: clamp(24px, 7vw, 32px);
  }
}

/* =========================================================
   SUB-PAGE SHARED — page hero band, line-grid, intro layout
   Used by propfirm.html, ai.html, features.html.
   ========================================================= */

.subpage-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Multi-layer hero ambient: orange flare top-left, cyan from bottom-right,
   plus a faint lime breath top-right and a subtle dot grid wash. */
.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 8% 0%, rgba(251, 94, 71, 0.32), transparent 60%),
    radial-gradient(45% 55% at 100% 100%, rgba(94, 226, 251, 0.18), transparent 65%),
    radial-gradient(30% 35% at 90% 0%, rgba(168, 251, 94, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Dot mesh — subtle structural background to give the hero "weight". */
.subpage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(70% 80% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.subpage-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 82vh;
}

.subpage-hero__copy {
  padding: clamp(56px, 6vw, 104px) clamp(32px, 5vw, 80px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.4vw, 40px);
  justify-content: center;
  position: relative;
}

/* Corner bracket — subtle "viewfinder" decoration. */
.subpage-hero__copy::before {
  content: "";
  position: absolute;
  top: clamp(32px, 4vw, 64px);
  left: clamp(32px, 5vw, 80px);
  width: 28px;
  height: 28px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  pointer-events: none;
}

.subpage-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
}

.subpage-hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: hero-pulse 1.6s ease-in-out infinite;
}

@keyframes hero-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

.subpage-hero__title {
  font-size: clamp(54px, 7.5vw, 116px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
  text-shadow: 0 4px 60px rgba(251, 94, 71, 0.12);
}

.subpage-hero__title .hl-orange {
  color: var(--accent);
}

.subpage-hero__title .hl-cyan {
  color: var(--cyan);
}

.subpage-hero__title .hl-lime {
  color: var(--lime);
}

.subpage-hero__title .hl-magenta {
  color: var(--magenta);
}

.subpage-hero__title .hl-violet {
  color: var(--violet);
}

.subpage-hero__lede {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
  max-width: 52ch;
}

.subpage-hero__cta {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--accent-2);
  background: var(--accent-2);
  color: #fff;
  align-self: flex-start;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.subpage-hero__cta:hover {
  background: var(--accent-2-hover);
  border-color: var(--accent-2-hover);
}

.subpage-hero__cta span:first-child {
  padding: 14px 22px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.subpage-hero__cta-divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.25);
}

.subpage-hero__cta-icon {
  width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Stats panel — bento 2x2 grid of glass cards (replaces the old thin row list). */
.subpage-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 22px);
  padding: clamp(36px, 4vw, 72px) clamp(28px, 4vw, 56px);
  position: relative;
}

.subpage-hero__stat {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.subpage-hero__stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 100% 0%, rgba(251, 94, 71, 0.14), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.subpage-hero__stat:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 22px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(251, 94, 71, 0.20);
}

.subpage-hero__stat--cyan {
  border-color: var(--cyan-line);
}

.subpage-hero__stat--lime {
  border-color: var(--lime-line);
}

.subpage-hero__stat--magenta {
  border-color: var(--magenta-line);
}

.subpage-hero__stat--violet {
  border-color: var(--violet-line);
}

.subpage-hero__stat--cyan::before {
  background: radial-gradient(80% 80% at 100% 0%, rgba(94, 226, 251, 0.14), transparent 65%);
}

.subpage-hero__stat--lime::before {
  background: radial-gradient(80% 80% at 100% 0%, rgba(168, 251, 94, 0.14), transparent 65%);
}

.subpage-hero__stat--magenta::before {
  background: radial-gradient(80% 80% at 100% 0%, rgba(251, 94, 226, 0.14), transparent 65%);
}

.subpage-hero__stat--violet::before {
  background: radial-gradient(80% 80% at 100% 0%, rgba(142, 94, 251, 0.14), transparent 65%);
}

.subpage-hero__stat-num {
  position: relative;
  font-size: clamp(40px, 4.4vw, 64px);
  color: var(--accent);
  letter-spacing: -0.025em;
  line-height: 1;
}

.subpage-hero__stat--cyan .subpage-hero__stat-num {
  color: var(--cyan);
}

.subpage-hero__stat--lime .subpage-hero__stat-num {
  color: var(--lime);
}

.subpage-hero__stat--magenta .subpage-hero__stat-num {
  color: var(--magenta);
}

.subpage-hero__stat--violet .subpage-hero__stat-num {
  color: var(--violet);
}

.subpage-hero__stat-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subpage-hero__stat-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}

.subpage-hero__stat-desc {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 960px) {
  .subpage-hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .subpage-hero__copy {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .subpage-hero__title {
    font-size: clamp(44px, 11vw, 76px);
  }

  .subpage-hero__stats {
    padding: clamp(24px, 5vw, 36px);
  }
}

@media (max-width: 560px) {
  .subpage-hero__stats {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .subpage-hero__stat-num {
    font-size: clamp(36px, 9vw, 52px);
  }
}

/* =========================================================
   SUBPAGE-HERO — CENTERED LAYOUT OVERRIDE
   Centred column with sparkle badge, big title, lede, dual CTAs,
   and a horizontal stats strip below — match the reference layout.
   ========================================================= */

.subpage-hero__grid {
  grid-template-columns: 1fr;
  min-height: auto;
}

.subpage-hero__copy {
  border-right: none;
  align-items: center;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(80px, 8vw, 140px) clamp(24px, 5vw, 64px) clamp(48px, 5vw, 80px);
  width: 100%;
}

.subpage-hero__copy::before {
  display: none;
}

/* hide left corner bracket */

/* Badge — sparkle-flanked pill (matches reference's "✦ POWERED BY AI ✦") */
.subpage-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  background: rgba(12, 15, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin: 0 auto;
}

.subpage-hero__eyebrow::before {
  content: "\2726";
  /* ✦ */
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  animation: none;
  color: var(--accent-2);
  font-size: 14px;
  line-height: 1;
}

.subpage-hero__eyebrow::after {
  content: "\2726";
  /* ✦ */
  color: var(--accent-2);
  font-size: 14px;
  line-height: 1;
}

.subpage-hero__title {
  text-align: center;
  margin: 0 auto;
  max-width: 16ch;
}

.subpage-hero__lede {
  max-width: 60ch;
  margin: 0 auto;
}

/* Wrap one or more CTAs in a flex row that centres horizontally */
.subpage-hero__ctas {
  display: inline-flex;
  align-items: stretch;
  gap: 14px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.subpage-hero__cta {
  align-self: auto;
  /* override flex-start from base */
}

/* Outlined "ghost" secondary CTA — matches reference's GET STARTED pill */
.subpage-hero__cta--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.30);
  color: var(--text);
}

.subpage-hero__cta--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.50);
}

.subpage-hero__cta--ghost .subpage-hero__cta-divider {
  background: rgba(255, 255, 255, 0.18);
}

/* Stats — horizontal strip under the CTAs (was 2x2 bento grid) */
.subpage-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: none;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.subpage-hero__stat {
  flex-direction: row;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 2.2vw, 32px) clamp(18px, 2vw, 28px);
  border: none;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  overflow: visible;
}

.subpage-hero__stat:last-child {
  border-right: none;
}

.subpage-hero__stat::before {
  display: none;
}

.subpage-hero__stat:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
  box-shadow: none;
}

.subpage-hero__stat-num {
  font-size: clamp(28px, 2.6vw, 38px);
  flex-shrink: 0;
}

.subpage-hero__stat-body {
  gap: 2px;
}

.subpage-hero__stat-label {
  font-size: 10px;
  letter-spacing: 0.20em;
}

.subpage-hero__stat-desc {
  display: none;
}

/* hide long blurb in strip mode */

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

  .subpage-hero__stat:nth-child(2) {
    border-right: none;
  }

  .subpage-hero__stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .subpage-hero__stats {
    grid-template-columns: 1fr;
  }

  .subpage-hero__stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .subpage-hero__stat:last-child {
    border-bottom: none;
  }
}

/* ---------- centered hero : phone polish ---------- */
@media (max-width: 720px) {
  .subpage-hero__copy {
    padding: clamp(56px, 12vw, 88px) 20px clamp(32px, 6vw, 48px);
    gap: 20px;
  }

  .subpage-hero__eyebrow {
    padding: 8px 16px;
    font-size: 11px;
    letter-spacing: 0.18em;
    gap: 10px;
  }

  .subpage-hero__eyebrow::before,
  .subpage-hero__eyebrow::after {
    font-size: 12px;
  }

  .subpage-hero__title {
    font-size: clamp(34px, 9vw, 56px);
    line-height: 1.02;
    max-width: 18ch;
  }

  .subpage-hero__lede {
    font-size: 14px;
    line-height: 1.55;
    max-width: 46ch;
  }
}

@media (max-width: 520px) {

  /* Stack the primary + ghost CTAs vertically so they fit edge-to-edge */
  .subpage-hero__ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    gap: 10px;
  }

  .subpage-hero__cta {
    width: 100%;
    justify-content: space-between;
  }

  .subpage-hero__cta-icon {
    width: 44px;
  }

  /* Hide the rightmost scattered tiles — they crash into the centered copy
     at this width. Keep three on the left, two on the right. */
  .hero-cell:nth-of-type(2),
  .hero-cell:nth-of-type(5),
  .hero-cell:nth-of-type(7) {
    display: none;
  }
}

/* ---------- broker marquee : tighten on phones ---------- */
@media (max-width: 720px) {
  .broker-marquee {
    padding: 24px 0 28px;
  }

  .broker-marquee__label {
    margin-bottom: 18px;
    font-size: 10px;
    gap: 12px;
  }

  .broker-marquee__item {
    padding: 0 clamp(20px, 5vw, 32px);
    font-size: clamp(18px, 4.4vw, 22px);
  }

  .broker-marquee__viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  }
}

/* =========================================================
   PROP FIRM — packages grid (priority section)
   ========================================================= */

.propfirm-packages {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.propfirm-packages__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px) clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}

.propfirm-packages__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.propfirm-packages__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cyan);
}

.propfirm-packages__title {
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 12px 0 0;
  color: var(--text);
}

.propfirm-packages__sub {
  font-size: 15px;
  color: var(--text-dim);
  margin: 14px 0 0;
  max-width: 64ch;
}

.propfirm-packages__toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 4px;
  gap: 4px;
}

.propfirm-packages__toggle button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 10px 18px;
  font: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.propfirm-packages__toggle button.is-active {
  background: var(--accent);
  color: #000;
}

.propfirm-packages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pkg {
  position: relative;
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 540px;
  transition: background-color 0.25s ease;
}

.pkg:last-child {
  border-right: none;
}

.pkg:hover {
  background: rgba(255, 255, 255, 0.025);
}

.pkg__flag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--cyan);
  color: #000;
  border-radius: 0;
}

.pkg--popular {
  border-top: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(94, 226, 251, 0.18);
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(94, 226, 251, 0.08), transparent 60%),
    var(--bg);
}

.pkg--popular:hover {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(94, 226, 251, 0.14), transparent 60%),
    var(--bg);
}

.pkg__amount {
  font-size: clamp(28px, 2.6vw, 38px);
  color: var(--text);
  letter-spacing: -0.01em;
}

.pkg__tier {
  display: block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 4px;
}

.pkg__price {
  font-size: clamp(34px, 3.4vw, 52px);
  color: var(--text);
  letter-spacing: -0.01em;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.pkg__price small {
  font-size: 13px;
  color: var(--text-mute);
  margin-left: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pkg--popular .pkg__price {
  color: var(--cyan);
}

.pkg__rules {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  flex: 1;
}

.pkg__rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-dim);
}

.pkg__rule:last-child {
  border-bottom: none;
}

.pkg__rule strong {
  color: var(--text);
  font-weight: 500;
}

.pkg__rule .pkg__val--good {
  color: var(--lime);
}

.pkg__rule .pkg__val--accent {
  color: var(--accent);
}

.pkg__rule .pkg__val--cyan {
  color: var(--cyan);
}

.pkg__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 16px 20px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pkg__cta:hover {
  background: var(--accent);
  color: #000;
}

.pkg--popular .pkg__cta {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #000;
}

.pkg--popular .pkg__cta:hover {
  background: #7debfd;
  border-color: #7debfd;
}

.propfirm-packages__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 28px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 14px;
}

.propfirm-packages__foot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

@media (max-width: 1080px) {
  .propfirm-packages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pkg {
    border-right: 1px solid var(--line);
  }

  .pkg:nth-child(2n) {
    border-right: none;
  }

  .pkg:nth-child(1),
  .pkg:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

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

  .pkg {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
    min-height: auto;
  }

  .pkg:last-child {
    border-bottom: none;
  }

  .propfirm-packages__head {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PROP FIRM — rules, scaling plan, payout cards
   ========================================================= */

.pf-rules {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.pf-rules__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pf-rules__cell {
  padding: clamp(32px, 4vw, 56px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}

.pf-rules__cell:nth-of-type(3n) {
  border-right: none;
}

.pf-rules__cell:nth-of-type(n+4) {
  border-top: 1px solid var(--line);
}

.pf-rules__num {
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

.pf-rules__cell--cyan .pf-rules__num {
  color: var(--cyan);
}

.pf-rules__cell--lime .pf-rules__num {
  color: var(--lime);
}

.pf-rules__cell--magenta .pf-rules__num {
  color: var(--magenta);
}

.pf-rules__cell--violet .pf-rules__num {
  color: var(--violet);
}

.pf-rules__title {
  font-size: 24px;
  font-weight: 400;
  margin: 0;
  color: var(--text);
}

.pf-rules__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
}

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

  .pf-rules__cell:nth-of-type(3n) {
    border-right: 1px solid var(--line);
  }

  .pf-rules__cell:nth-of-type(2n) {
    border-right: none;
  }

  .pf-rules__cell:nth-of-type(n+3) {
    border-top: 1px solid var(--line);
  }
}

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

  .pf-rules__cell {
    border-right: none !important;
    min-height: auto;
  }

  .pf-rules__cell:nth-of-type(n+2) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- scaling plan (4-step ladder) ---------- */
.pf-scale {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.pf-scale__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pf-scale__step {
  padding: clamp(28px, 3.5vw, 48px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.pf-scale__step:last-child {
  border-right: none;
}

.pf-scale__step::before {
  content: attr(data-step);
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 56px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.06);
}

.pf-scale__kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.pf-scale__step:nth-child(2) .pf-scale__kicker {
  color: var(--cyan);
}

.pf-scale__step:nth-child(3) .pf-scale__kicker {
  color: var(--lime);
}

.pf-scale__step:nth-child(4) .pf-scale__kicker {
  color: var(--magenta);
}

.pf-scale__amt {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--text);
}

.pf-scale__label {
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pf-scale__desc {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

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

  .pf-scale__step:nth-child(2) {
    border-right: none;
  }

  .pf-scale__step:nth-child(1),
  .pf-scale__step:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .pf-scale__steps {
    grid-template-columns: 1fr;
  }

  .pf-scale__step {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }

  .pf-scale__step:last-child {
    border-bottom: none;
  }
}

/* ---------- payouts strip ---------- */
.pf-payouts {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.pf-payouts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.pf-payouts__cell {
  padding: clamp(28px, 3.5vw, 48px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-payouts__cell:last-child {
  border-right: none;
}

.pf-payouts__num {
  font-size: clamp(32px, 3.5vw, 52px);
  letter-spacing: -0.01em;
  color: var(--text);
}

.pf-payouts__cell:nth-child(1) .pf-payouts__num {
  color: var(--accent);
}

.pf-payouts__cell:nth-child(2) .pf-payouts__num {
  color: var(--cyan);
}

.pf-payouts__cell:nth-child(3) .pf-payouts__num {
  color: var(--lime);
}

.pf-payouts__cell:nth-child(4) .pf-payouts__num {
  color: var(--magenta);
}

.pf-payouts__label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.pf-payouts__desc {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

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

  .pf-payouts__cell:nth-child(2) {
    border-right: none;
  }

  .pf-payouts__cell:nth-child(1),
  .pf-payouts__cell:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .pf-payouts__grid {
    grid-template-columns: 1fr;
  }

  .pf-payouts__cell {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }

  .pf-payouts__cell:last-child {
    border-bottom: none;
  }
}

/* =========================================================
   TRADECORP AI PAGE — capability matrix, chat preview,
   sentiment / portfolio / signal cards
   ========================================================= */

.ai-matrix {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.ai-matrix__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ai-matrix__cell {
  padding: clamp(28px, 3.2vw, 48px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  position: relative;
  transition: background-color 0.25s ease;
}

.ai-matrix__cell:last-child {
  border-right: none;
}

.ai-matrix__cell:hover {
  background: rgba(255, 255, 255, 0.025);
}

.ai-matrix__cell:nth-of-type(n+5) {
  border-top: 1px solid var(--line);
}

.ai-matrix__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--accent);
}

.ai-matrix__cell--cyan .ai-matrix__icon {
  color: var(--cyan);
  border-color: var(--cyan-line);
}

.ai-matrix__cell--lime .ai-matrix__icon {
  color: var(--lime);
  border-color: var(--lime-line);
}

.ai-matrix__cell--magenta .ai-matrix__icon {
  color: var(--magenta);
  border-color: var(--magenta-line);
}

.ai-matrix__cell--violet .ai-matrix__icon {
  color: var(--violet);
  border-color: var(--violet-line);
}

.ai-matrix__cell--accent .ai-matrix__icon {
  color: var(--accent);
  border-color: var(--accent-line);
}

.ai-matrix__title {
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin: 0;
}

.ai-matrix__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}

.ai-matrix__tag {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: auto;
}

@media (max-width: 1080px) {
  .ai-matrix__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-matrix__cell:nth-of-type(2n) {
    border-right: none;
  }

  .ai-matrix__cell:nth-of-type(2n+1) {
    border-right: 1px solid var(--line);
  }

  .ai-matrix__cell:nth-of-type(n+3) {
    border-top: 1px solid var(--line);
  }
}

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

  .ai-matrix__cell {
    border-right: none !important;
    min-height: auto;
  }

  .ai-matrix__cell:nth-of-type(n+2) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- AI chat preview ---------- */
.ai-chat {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.ai-chat__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.ai-chat__copy {
  padding: clamp(36px, 4vw, 72px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
}

.ai-chat__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
}

.ai-chat__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--magenta);
}

.ai-chat__title {
  font-size: clamp(32px, 3.6vw, 52px);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.05;
}

.ai-chat__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
  max-width: 50ch;
}

.ai-chat__hint {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ai-chat__hint .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.ai-chat__panel {
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-end;
}

.ai-msg {
  border: 1px solid var(--line);
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 80%;
  background: rgba(255, 255, 255, 0.02);
}

.ai-msg--user {
  align-self: flex-end;
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}

.ai-msg--ai {
  align-self: flex-start;
  border-color: var(--magenta-line);
  background: var(--magenta-soft);
}

.ai-msg__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.ai-msg--user .ai-msg__label {
  color: var(--accent);
}

.ai-msg--ai .ai-msg__label {
  color: var(--magenta);
}

.ai-chat__input {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.ai-chat__input input {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 16px 18px;
  font: inherit;
  outline: none;
}

.ai-chat__input button {
  background: var(--magenta);
  border: none;
  color: #000;
  padding: 0 22px;
  font: inherit;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
}

.ai-chat__input button:hover {
  background: #fc7eed;
}

@media (max-width: 960px) {
  .ai-chat__grid {
    grid-template-columns: 1fr;
  }

  .ai-chat__copy {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- sentiment / signal mini-cards ---------- */
.ai-signals {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.ai-signals__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.signal-card {
  padding: clamp(24px, 2.8vw, 36px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  transition: background-color 0.25s ease;
}

.signal-card:last-child {
  border-right: none;
}

.signal-card:nth-of-type(n+4) {
  border-top: 1px solid var(--line);
}

.signal-card:hover {
  background: rgba(255, 255, 255, 0.025);
}

.signal-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.signal-card__symbol {
  font-size: 22px;
  color: var(--text);
  letter-spacing: 0.01em;
}

.signal-card__dir {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  font-weight: 500;
}

.signal-card__dir--buy {
  background: var(--lime-soft);
  color: var(--lime);
  border: 1px solid var(--lime-line);
}

.signal-card__dir--sell {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}

.signal-card__rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.signal-card__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.signal-card__row-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.signal-card__row-val {
  font-size: 16px;
  color: var(--text);
}

.signal-card__row-val--tp {
  color: var(--lime);
}

.signal-card__row-val--sl {
  color: var(--accent);
}

.signal-card__row-val--cyan {
  color: var(--cyan);
}

.signal-card__meter {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signal-card__meter-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.signal-card__meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.signal-card__meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.signal-card__meter-label strong {
  color: var(--text);
  font-weight: 500;
}

.signal-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.signal-card__btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 1080px) {
  .ai-signals__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-card:nth-of-type(2n) {
    border-right: none;
  }

  .signal-card:nth-of-type(2n+1) {
    border-right: 1px solid var(--line);
  }

  .signal-card:nth-of-type(n+3) {
    border-top: 1px solid var(--line);
  }
}

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

  .signal-card {
    border-right: none !important;
    min-height: auto;
  }

  .signal-card:nth-of-type(n+2) {
    border-top: 1px solid var(--line);
  }
}

/* =========================================================
   FEATURES PAGE — copy trading, strategies, signals, tools
   ========================================================= */

.feat-block {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.feat-block--reverse {
  direction: rtl;
}

.feat-block--reverse>* {
  direction: ltr;
}

.feat-block__visual {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  padding: clamp(28px, 3.5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.feat-block--reverse .feat-block__visual {
  border-right: none;
  border-left: 1px solid var(--line);
}

.feat-block__copy {
  padding: clamp(36px, 4vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
}

.feat-block__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.feat-block__kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.feat-block--cyan .feat-block__kicker {
  color: var(--cyan);
}

.feat-block--lime .feat-block__kicker {
  color: var(--lime);
}

.feat-block--magenta .feat-block__kicker {
  color: var(--magenta);
}

.feat-block--violet .feat-block__kicker {
  color: var(--violet);
}

.feat-block__title {
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
}

.feat-block__desc {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0;
  max-width: 52ch;
}

.feat-block__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feat-block__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.5;
}

.feat-block__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.feat-block__list li::before {
  content: "+";
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}

.feat-block--cyan .feat-block__list li::before {
  color: var(--cyan);
}

.feat-block--lime .feat-block__list li::before {
  color: var(--lime);
}

.feat-block--magenta .feat-block__list li::before {
  color: var(--magenta);
}

.feat-block--violet .feat-block__list li::before {
  color: var(--violet);
}

.feat-block__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  color: var(--text);
  border-bottom: 1px solid var(--text-mute);
  padding-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.feat-block__cta:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

@media (max-width: 960px) {
  .feat-block {
    grid-template-columns: 1fr;
  }

  .feat-block__visual {
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid var(--line);
    min-height: 360px;
  }

  .feat-block--reverse {
    direction: ltr;
  }
}

/* ---------- strategy cards mini-grid (inside feat-block visual) ---------- */
.strat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.strat-card {
  border: 1px solid var(--line);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.strat-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.strat-card__name {
  font-size: 16px;
  color: var(--text);
}

.strat-card__type {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.strat-card__type--orange {
  color: var(--accent);
}

.strat-card__type--cyan {
  color: var(--cyan);
}

.strat-card__type--lime {
  color: var(--lime);
}

.strat-card__type--magenta {
  color: var(--magenta);
}

.strat-card__type--violet {
  color: var(--violet);
}

.strat-card__bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 28px;
}

.strat-card__bars span {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  display: block;
}

.strat-card__bars span:nth-child(1) {
  height: 30%;
}

.strat-card__bars span:nth-child(2) {
  height: 50%;
}

.strat-card__bars span:nth-child(3) {
  height: 40%;
}

.strat-card__bars span:nth-child(4) {
  height: 80%;
}

.strat-card__bars span:nth-child(5) {
  height: 60%;
}

.strat-card__bars span:last-child {
  background: var(--accent);
}

.strat-card:hover .strat-card__bars span:last-child {
  background: var(--lime);
}

/* ---------- risk slider preview ---------- */
.risk-slider {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 480px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
}

.risk-slider__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.risk-slider__track {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.risk-slider__fill {
  position: absolute;
  inset: 0 50% 0 0;
  background: linear-gradient(90deg, var(--lime), var(--accent));
}

.risk-slider__knob {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--accent);
}

.risk-slider__levels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.risk-slider__levels span.is-active {
  color: var(--text);
}

/* ---------- copy trading flow diagram ---------- */
.copy-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 540px;
}

.copy-flow__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copy-flow__card {
  border: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.copy-flow__card-name {
  font-size: 14px;
  color: var(--text);
}

.copy-flow__card-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.copy-flow__card--master {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.copy-flow__card--master .copy-flow__card-name {
  color: var(--accent);
}

.copy-flow__card--follower {
  border-color: var(--cyan-line);
  background: var(--cyan-soft);
}

.copy-flow__card--follower .copy-flow__card-name {
  color: var(--cyan);
}

.copy-flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--lime-line);
  background: var(--lime-soft);
  color: var(--lime);
}

/* ---------- courses card stack (features page) ----------
   Three overlapping/tilted course cards with a thumbnail strip on top and a
   compact body underneath. The MetaMask "Collect & trade NFTs" composition
   inspired the stagger + sticker badge + counter pill. */
.course-stack {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 0.92;
  margin: 0 auto;
}

.course-card {
  position: absolute;
  width: 78%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.course-card--1 {
  left: 11%;
  top: 28%;
  z-index: 3;
  transform: rotate(-2deg);
}

.course-card--2 {
  left: 24%;
  top: 10%;
  z-index: 2;
  transform: rotate(4deg);
  opacity: 0.92;
}

.course-card--3 {
  left: 4%;
  top: 4%;
  z-index: 1;
  transform: rotate(-7deg);
  opacity: 0.85;
}

.course-stack:hover .course-card--1 {
  transform: rotate(-2deg) translateY(-4px);
}

.course-stack:hover .course-card--2 {
  transform: rotate(6deg) translate(6px, -4px);
}

.course-stack:hover .course-card--3 {
  transform: rotate(-9deg) translate(-6px, -4px);
}

.course-card--orange {
  color: var(--accent);
}

.course-card--cyan {
  color: var(--cyan);
}

.course-card--lime {
  color: var(--lime);
}

.course-card--magenta {
  color: var(--magenta);
}

.course-card--violet {
  color: var(--violet);
}

.course-card--blue {
  color: var(--accent-2);
}

.course-card__cover {
  position: relative;
  height: 88px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, currentColor 0%, transparent 70%),
    rgba(255, 255, 255, 0.03);
  background-blend-mode: screen, normal;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.course-card__cover svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--text);
}

.course-card--orange .course-card__cover {
  background: linear-gradient(135deg, rgba(251, 94, 71, 0.55), rgba(251, 94, 71, 0.08));
}

.course-card--cyan .course-card__cover {
  background: linear-gradient(135deg, rgba(94, 226, 251, 0.50), rgba(94, 226, 251, 0.08));
}

.course-card--lime .course-card__cover {
  background: linear-gradient(135deg, rgba(168, 251, 94, 0.50), rgba(168, 251, 94, 0.08));
}

.course-card--magenta .course-card__cover {
  background: linear-gradient(135deg, rgba(251, 94, 226, 0.50), rgba(251, 94, 226, 0.08));
}

.course-card--violet .course-card__cover {
  background: linear-gradient(135deg, rgba(142, 94, 251, 0.50), rgba(142, 94, 251, 0.08));
}

.course-card--blue .course-card__cover {
  background: linear-gradient(135deg, rgba(59, 106, 248, 0.55), rgba(59, 106, 248, 0.08));
}

.course-card__cover svg {
  color: rgba(0, 0, 0, 0.78);
}

.course-card__cover-tag {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.78);
  background: rgba(255, 255, 255, 0.6);
  padding: 4px 8px;
  border-radius: 999px;
}

.course-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-card__title {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.course-card__meta {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.course-card__play {
  margin-top: 6px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: currentColor;
  border: none;
  color: #000;
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.course-card__play svg {
  color: #000;
}

.course-card__play:hover {
  filter: brightness(1.1);
}

.course-stack__sticker {
  position: absolute;
  top: 4%;
  right: 6%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: #000;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 8px 22px rgba(168, 251, 94, 0.28);
  transform: rotate(8deg);
}

.course-stack__counter {
  position: absolute;
  bottom: 4%;
  right: 4%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  text-align: right;
  transform: rotate(-3deg);
}

.course-stack__counter-num {
  font-size: 26px;
  color: var(--magenta);
  letter-spacing: -0.01em;
  line-height: 1;
}

.course-stack__counter-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.35;
}

@media (max-width: 720px) {
  .course-stack {
    max-width: 400px;
    aspect-ratio: 1 / 1.0;
  }

  .course-card {
    width: 82%;
  }

  .course-card__title {
    font-size: 16px;
  }
}

/* ---------- toolkit (features page) — single live Compound Interest
   Calculator, with an "Explore more tools" CTA that gates the full suite
   behind sign-in ---------- */
.feat-tools {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.feat-tools__calc {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: clamp(20px, 2.4vw, 36px);
}

/* Right-side column — calculator title/details stacked on top of the
   "explore more tools" CTA. Sticky so it stays in view while the user
   interacts with the calculator on the left. */
.feat-tools__side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}

.feat-tools__calc-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feat-tools__calc-eyebrow {
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.feat-tools__calc-title {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

.feat-tools__calc-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  max-width: 52ch;
}

.tool--compound {
  padding: 0;
}

.feat-tools__more {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 2.6vw, 40px);
  border: 1px solid var(--line);
  background: transparent;
}

.feat-tools__more-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  max-width: 42ch;
}

.feat-tools__more-btn {
  align-self: flex-start;
}

@media (max-width: 960px) {
  .feat-tools {
    grid-template-columns: 1fr;
  }

  .feat-tools__side {
    position: static;
  }
}

/* =========================================================
   FINAL CTA STRIP (used by all subpages)
   ========================================================= */

.cta-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 7vw, 120px) clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 100% 50%, rgba(251, 94, 71, 0.16), transparent 60%),
    radial-gradient(40% 40% at 0% 100%, rgba(94, 226, 251, 0.10), transparent 60%);
  pointer-events: none;
}

.cta-strip>* {
  position: relative;
}

.cta-strip__title {
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.0;
  margin: 0;
  color: var(--text);
}

.cta-strip__title .hl-orange {
  color: var(--accent);
}

.cta-strip__title .hl-cyan {
  color: var(--cyan);
}

.cta-strip__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.cta-strip__primary,
.cta-strip__secondary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cta-strip__primary {
  background: var(--accent-2);
  color: #fff;
  border: 1px solid var(--accent-2);
}

.cta-strip__primary:hover {
  background: var(--accent-2-hover);
  border-color: var(--accent-2-hover);
}

.cta-strip__secondary {
  background: var(--accent-2);
  color: #fff;
  border: 1px solid var(--accent-2);
}

.cta-strip__secondary:hover {
  background: var(--accent-2-hover);
  border-color: var(--accent-2-hover);
}

@media (max-width: 760px) {
  .cta-strip {
    grid-template-columns: 1fr;
  }

  .cta-strip__actions {
    align-items: flex-start;
  }
}

/* =========================================================
   NAV MENU OVERLAY — full-screen, line-divided futuristic nav
   ========================================================= */

.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: none;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.nav-menu.is-open {
  display: flex;
  animation: navIn 0.28s ease-out;
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.nav-menu__brand {
  font-size: clamp(18px, 1.4vw, 22px);
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-menu__close {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 18px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-menu__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-menu__close svg {
  display: block;
}

.nav-menu__body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  min-height: 0;
  overflow: hidden;
}

.nav-menu__primary {
  border-right: 1px solid var(--line);
  padding: clamp(20px, 3.2vh, 56px) clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Dissolve the group wrappers so every link is a direct flex child of the
   column. With each link set to grow, the 7 links share the full height
   evenly — filling the screen instead of clustering in the middle. */
.nav-menu__group {
  display: contents;
}

.nav-menu__group-label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 4px;
  flex: 0 0 auto;
}

/* breathing room before the second group label ("Account") */
.nav-menu__group+.nav-menu__group .nav-menu__group-label {
  margin-top: clamp(14px, 2.4vh, 36px);
}

.nav-menu__link {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 24px;
  flex: 1 1 0;
  min-height: 0;
  padding: clamp(10px, 1.6vh, 22px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: clamp(26px, 3.6vh, 48px);
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.nav-menu__link:hover {
  padding-left: 10px;
}

.nav-menu__link.is-current {
  color: var(--accent);
}

.nav-menu__link.is-current .nav-menu__link-num {
  color: var(--accent);
}

.nav-menu__link-num {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
}

.nav-menu__link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.nav-menu__link:hover .nav-menu__link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* per-link accent colors */
.nav-menu__link[data-color="orange"]:hover {
  color: var(--accent);
}

.nav-menu__link[data-color="cyan"]:hover {
  color: var(--cyan);
}

.nav-menu__link[data-color="lime"]:hover {
  color: var(--lime);
}

.nav-menu__link[data-color="magenta"]:hover {
  color: var(--magenta);
}

.nav-menu__link[data-color="violet"]:hover {
  color: var(--violet);
}

.nav-menu__link[data-color="orange"]:hover .nav-menu__link-arrow,
.nav-menu__link[data-color="orange"]:hover .nav-menu__link-num {
  color: var(--accent);
}

.nav-menu__link[data-color="cyan"]:hover .nav-menu__link-arrow,
.nav-menu__link[data-color="cyan"]:hover .nav-menu__link-num {
  color: var(--cyan);
}

.nav-menu__link[data-color="lime"]:hover .nav-menu__link-arrow,
.nav-menu__link[data-color="lime"]:hover .nav-menu__link-num {
  color: var(--lime);
}

.nav-menu__link[data-color="magenta"]:hover .nav-menu__link-arrow,
.nav-menu__link[data-color="magenta"]:hover .nav-menu__link-num {
  color: var(--magenta);
}

.nav-menu__link[data-color="violet"]:hover .nav-menu__link-arrow,
.nav-menu__link[data-color="violet"]:hover .nav-menu__link-num {
  color: var(--violet);
}

/* aside (contact / social) */
.nav-menu__aside {
  padding: clamp(20px, 3.2vh, 56px) clamp(28px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(14px, 2.4vh, 36px);
  background: rgba(255, 255, 255, 0.015);
  min-height: 0;
}

/* pin the CTA to the bottom so the aside fills its column top-to-bottom */
.nav-menu__cta {
  margin-top: auto;
}

.nav-menu__aside-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-menu__aside-label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 6px;
}

.nav-menu__aside-item {
  font-size: 15px;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-menu__aside-item a {
  color: inherit;
}

.nav-menu__aside-item a:hover {
  color: var(--accent);
}

.nav-menu__socials {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-menu__social {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 14px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav-menu__social:nth-child(1):hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.nav-menu__social:nth-child(2):hover {
  color: var(--magenta);
  border-color: var(--magenta);
  background: var(--magenta-soft);
}

.nav-menu__social:nth-child(3):hover {
  color: var(--violet);
  border-color: var(--violet);
  background: var(--violet-soft);
}

.nav-menu__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.nav-menu__cta:hover {
  background: #fc7867;
}

@media (max-width: 900px) {
  .nav-menu__body {
    grid-template-columns: 1fr;
  }

  /* the site --header-h jumps to 134px on mobile; the menu bar only needs
     room for the brand + close button, so keep it tight here. */
  .nav-menu__head {
    min-height: 72px;
  }

  /* Once stacked, the primary nav + aside would add up taller than the
     viewport. The nav links are the menu's purpose (Contact / Sign in /
     Create account already live there), so drop the secondary aside to
     guarantee a no-scroll fit. */
  .nav-menu__aside {
    display: none;
  }

  .nav-menu__primary {
    border-right: none;
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .nav-menu__head {
    min-height: 60px;
  }

  /* On phones the nav links are the menu — let them fill the height and
     drop the secondary contact aside so nothing needs scrolling. */
  .nav-menu__aside {
    display: none;
  }

  .nav-menu__primary {
    border-bottom: none;
  }

  .nav-menu__link {
    grid-template-columns: 46px 1fr auto;
    gap: 14px;
    font-size: clamp(20px, 4.6vh, 32px);
    padding: clamp(7px, 1.4vh, 16px) 0;
  }

  .nav-menu__link-num {
    font-size: 11px;
  }

  .nav-menu__close span {
    display: none;
  }

  .nav-menu__close {
    padding: 10px;
  }
}

/* Very short viewports (eg. landscape phones): never let the menu scroll. */
@media (max-height: 560px) {
  .nav-menu__head {
    min-height: 56px;
  }

  .nav-menu__aside {
    display: none;
  }

  .nav-menu__primary {
    border-right: none;
    border-bottom: none;
  }

  .nav-menu__body {
    grid-template-columns: 1fr;
  }

  .nav-menu__link {
    font-size: clamp(16px, 5.2vh, 26px);
    padding: clamp(4px, 1vh, 12px) 0;
  }

  .nav-menu__group-label {
    padding-bottom: 6px;
    margin-bottom: 2px;
  }
}

/* =========================================================
   AI PAGE — BENTO CAPABILITY GRID (replaces uniform matrix)
   ========================================================= */

.ai-bento {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.ai-bento__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  grid-template-areas:
    "insights  insights  strategy  strategy"
    "insights  insights  analysis  risk"
    "chat      sentiment portfolio risk"
    "signals   signals   signals   signals";
}

.ai-bento__cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background-color 0.25s ease;
  overflow: hidden;
}

.ai-bento__cell:hover {
  background: rgba(255, 255, 255, 0.025);
}

.ai-bento__cell--insights {
  grid-area: insights;
}

.ai-bento__cell--strategy {
  grid-area: strategy;
  border-right: none;
}

.ai-bento__cell--analysis {
  grid-area: analysis;
}

.ai-bento__cell--risk {
  grid-area: risk;
  border-right: none;
}

.ai-bento__cell--chat {
  grid-area: chat;
}

.ai-bento__cell--sentiment {
  grid-area: sentiment;
}

.ai-bento__cell--portfolio {
  grid-area: portfolio;
}

.ai-bento__cell--signals {
  grid-area: signals;
  border-right: none;
  border-bottom: none;
}

/* featured tiles get a soft accent wash */
.ai-bento__cell--insights {
  background:
    radial-gradient(70% 60% at 100% 100%, rgba(251, 94, 71, 0.10), transparent 70%);
}

.ai-bento__cell--insights:hover {
  background:
    radial-gradient(70% 60% at 100% 100%, rgba(251, 94, 71, 0.18), transparent 70%);
}

.ai-bento__cell--risk {
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(251, 94, 226, 0.08), transparent 70%);
}

.ai-bento__cell--signals {
  background:
    radial-gradient(40% 100% at 0% 50%, rgba(94, 226, 251, 0.08), transparent 70%);
}

.ai-bento__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--accent);
}

.ai-bento__cell--strategy .ai-bento__icon {
  color: var(--cyan);
  border-color: var(--cyan-line);
}

.ai-bento__cell--analysis .ai-bento__icon {
  color: var(--lime);
  border-color: var(--lime-line);
}

.ai-bento__cell--risk .ai-bento__icon {
  color: var(--magenta);
  border-color: var(--magenta-line);
}

.ai-bento__cell--chat .ai-bento__icon {
  color: var(--violet);
  border-color: var(--violet-line);
}

.ai-bento__cell--sentiment .ai-bento__icon {
  color: var(--cyan);
  border-color: var(--cyan-line);
}

.ai-bento__cell--portfolio .ai-bento__icon {
  color: var(--accent);
  border-color: var(--accent-line);
}

.ai-bento__cell--signals .ai-bento__icon {
  color: var(--lime);
  border-color: var(--lime-line);
}

.ai-bento__title {
  font-size: clamp(20px, 1.4vw, 24px);
  font-weight: 400;
  color: var(--text);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.ai-bento__cell--insights .ai-bento__title {
  font-size: clamp(28px, 2.4vw, 40px);
  max-width: 14ch;
}

.ai-bento__cell--signals .ai-bento__title {
  font-size: clamp(22px, 1.8vw, 28px);
}

.ai-bento__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  max-width: 50ch;
}

.ai-bento__tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: auto;
}

/* mini chart for the featured insights tile */
.ai-bento__chart {
  margin-top: auto;
  width: 100%;
  height: 78px;
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  gap: 2px;
  align-items: flex-end;
}

.ai-bento__chart span {
  display: block;
  background: linear-gradient(to top, rgba(251, 94, 71, 0.0), rgba(251, 94, 71, 0.55));
  border-top: 1px solid var(--accent);
}

/* risk co-pilot tile mini gauge */
.ai-bento__gauge {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-bento__gauge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-bento__gauge-row strong {
  color: var(--magenta);
  font-weight: 500;
}

.ai-bento__gauge-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}

.ai-bento__gauge-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--lime), var(--magenta));
}

/* mini signal cards in the signals bento tile */
.ai-bento__signals {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ai-bento__signal {
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-bento__signal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ai-bento__signal-sym {
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.ai-bento__signal-dir {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
}

.ai-bento__signal-dir--buy {
  background: var(--lime-soft);
  color: var(--lime);
  border: 1px solid var(--lime-line);
}

.ai-bento__signal-dir--sell {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}

.ai-bento__signal-conf {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .ai-bento__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "insights  insights"
      "strategy  strategy"
      "analysis  risk"
      "chat      risk"
      "sentiment portfolio"
      "signals   signals";
  }

  .ai-bento__cell--strategy {
    border-right: 1px solid var(--line);
  }

  .ai-bento__cell--analysis {
    border-right: 1px solid var(--line);
  }

  .ai-bento__cell--risk {
    border-right: 1px solid var(--line);
    border-left: none;
  }

  .ai-bento__cell--chat {
    border-right: 1px solid var(--line);
  }

  .ai-bento__cell--sentiment {
    border-right: 1px solid var(--line);
  }

  .ai-bento__cell--portfolio {
    border-right: 1px solid var(--line);
  }

  .ai-bento__signals {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ai-bento__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "insights"
      "strategy"
      "analysis"
      "risk"
      "chat"
      "sentiment"
      "portfolio"
      "signals";
  }

  .ai-bento__cell {
    border-right: none !important;
  }

  .ai-bento__signals {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   AI CHATBOT INTERFACE — Qubi-style centered chat screen
   ========================================================= */

/* Background is transparent — the #ai-gradient canvas in the parent .landing
   wrapper provides the visual backdrop and stays visible behind the header. */
.ai-chatbot {
  background: transparent;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
}

/* Soft vignette across the chatbot area so text contrast stays strong
   when the gradient sweeps into a corner. */
.ai-chatbot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(85% 95% at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  z-index: 0;
}

.ai-chatbot__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.ai-chatbot__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  color: var(--text);
  letter-spacing: 0.04em;
}

.ai-chatbot__brand-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--accent);
}

.ai-chatbot__actions {
  display: flex;
  gap: 10px;
}

.ai-chatbot__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.ai-chatbot__pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ai-chatbot__pill--update {
  color: var(--lime);
  border-color: var(--lime-line);
  background: var(--lime-soft);
}

.ai-chatbot__pill--update:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.ai-chatbot__stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 88px) clamp(20px, 4vw, 48px) 32px;
  text-align: center;
  position: relative;
  z-index: 1;
  gap: 20px;
}

.ai-chatbot__wordmark {
  font-family: 'Iceland', system-ui, sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(251, 94, 71, 0.35));
}

.ai-chatbot__title {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.1;
  max-width: 26ch;
}

.ai-chatbot__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-chatbot__desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0;
}

.ai-chatbot__prompts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 1120px;
  margin-top: 18px;
}

.ai-chatbot__prompt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  text-decoration: none;
  color: var(--text);
  position: relative;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.ai-chatbot__prompt:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.ai-chatbot__prompt--cyan:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.ai-chatbot__prompt--lime:hover {
  border-color: var(--lime);
  background: var(--lime-soft);
}

.ai-chatbot__prompt--magenta:hover {
  border-color: var(--magenta);
  background: var(--magenta-soft);
}

.ai-chatbot__prompt--violet:hover {
  border-color: var(--violet);
  background: var(--violet-soft);
}

.ai-chatbot__prompt-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-mute);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.ai-chatbot__prompt:hover .ai-chatbot__prompt-arrow {
  border-color: currentColor;
}

.ai-chatbot__prompt--cyan:hover .ai-chatbot__prompt-arrow {
  color: var(--cyan);
}

.ai-chatbot__prompt--lime:hover .ai-chatbot__prompt-arrow {
  color: var(--lime);
}

.ai-chatbot__prompt--magenta:hover .ai-chatbot__prompt-arrow {
  color: var(--magenta);
}

.ai-chatbot__prompt--violet:hover .ai-chatbot__prompt-arrow {
  color: var(--violet);
}

.ai-chatbot__prompt-title {
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 0;
  padding-right: 38px;
}

.ai-chatbot__prompt-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

.ai-chatbot__input-wrap {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3vw, 40px) clamp(20px, 4vw, 48px) clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.ai-chatbot__input {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.ai-chatbot__input-attach {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ai-chatbot__input-attach:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

.ai-chatbot__input-field {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 12px 12px;
  font: inherit;
  font-size: 15px;
  outline: none;
  width: 100%;
}

.ai-chatbot__input-field::placeholder {
  color: var(--text-mute);
}

.ai-chatbot__input-mic {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease;
}

.ai-chatbot__input-mic:hover {
  color: var(--magenta);
}

.ai-chatbot__input-send {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-2);
  border: none;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ai-chatbot__input-send:hover {
  background: var(--accent-2-hover);
  transform: translateX(2px);
}

@media (max-width: 900px) {
  .ai-chatbot__prompts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .ai-chatbot__prompts {
    grid-template-columns: 1fr;
  }

  .ai-chatbot__pill {
    padding: 8px 12px;
  }

  .ai-chatbot__pill span {
    display: none;
  }
}

/* =========================================================
   FEATURES — per-block illustrations (each visually distinct)
     - COPY TRADING : .trader-spot   (single spotlight card)
     - STRATEGIES   : .strat-phone   (phone-mockup library)
     - LIVE SIGNALS : .signal-thread (chat-bubble timeline)
     - COURSES      : .course-stack  (fanned card deck, already defined)
   ========================================================= */

/* ---------- Copy Trading : spotlight trader card ---------- */
.trader-spot {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.trader-spot__card {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(180deg, var(--accent-2-soft) 0%, transparent 40%),
    var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 50px rgba(0, 0, 0, 0.45);
}

.trader-spot__head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
}

.trader-spot__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--accent-2));
  color: #000;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.trader-spot__id {
  display: flex;
  flex-direction: column;
}

.trader-spot__name {
  font-size: 18px;
  color: var(--text);
}

.trader-spot__sub {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trader-spot__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid var(--lime-line);
  background: var(--lime-soft);
  padding: 5px 10px;
  border-radius: 999px;
}

.trader-spot__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: trader-spot-pulse 1.4s ease-in-out infinite;
}

@keyframes trader-spot-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.trader-spot__chart {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 10px;
  background: rgba(255, 255, 255, 0.02);
}

.trader-spot__chart svg {
  width: 100%;
  height: 100px;
  display: block;
}

.trader-spot__chart-tags {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.trader-spot__chart-tags .is-active {
  color: var(--accent-2);
}

.trader-spot__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.trader-spot__stat {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trader-spot__stat:last-child {
  border-right: none;
}

.trader-spot__stat-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.trader-spot__stat-val {
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.005em;
}

.trader-spot__stat-val--up {
  color: var(--lime);
}

.trader-spot__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-2);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.trader-spot__cta:hover {
  background: var(--accent-2-hover);
}

/* Sticker top-right */
.trader-spot__sticker {
  position: absolute;
  top: -12px;
  right: -8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cyan);
  color: #000;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 8px 22px rgba(94, 226, 251, 0.28);
  transform: rotate(8deg);
}

/* Floating rank pill */
.trader-spot__rank {
  position: absolute;
  bottom: -22px;
  left: -16px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  transform: rotate(-3deg);
}

.trader-spot__rank-num {
  font-size: 26px;
  color: var(--magenta);
  letter-spacing: -0.01em;
  line-height: 1;
}

.trader-spot__rank-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.35;
}

/* ---------- Strategies : phone-mockup library + risk dial ---------- */
.strat-phone {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.strat-phone__frame {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 20px 18px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 50px rgba(0, 0, 0, 0.45);
  position: relative;
}

.strat-phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.strat-phone__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.strat-phone__title {
  font-size: 20px;
  color: var(--text);
  display: block;
  letter-spacing: -0.005em;
}

.strat-phone__sub {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
}

.strat-phone__search {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.strat-phone__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.strat-row {
  display: grid;
  grid-template-columns: 36px 1fr 70px auto;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.strat-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.strat-row.is-active {
  background: var(--accent-2-soft);
  box-shadow: inset 2px 0 0 var(--accent-2);
}

.strat-row__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.strat-row--orange .strat-row__icon {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.strat-row--cyan .strat-row__icon {
  color: var(--cyan);
  border-color: var(--cyan-line);
  background: var(--cyan-soft);
}

.strat-row--lime .strat-row__icon {
  color: var(--lime);
  border-color: var(--lime-line);
  background: var(--lime-soft);
}

.strat-row--violet .strat-row__icon {
  color: var(--violet);
  border-color: var(--violet-line);
  background: var(--violet-soft);
}

.strat-row--magenta .strat-row__icon {
  color: var(--magenta);
  border-color: var(--magenta-line);
  background: var(--magenta-soft);
}

.strat-row--blue .strat-row__icon {
  color: var(--accent-2);
  border-color: var(--accent-2-line);
  background: var(--accent-2-soft);
}

.strat-row__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.strat-row__name {
  font-size: 14px;
  color: var(--text);
}

.strat-row__tag {
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.strat-row__spark {
  width: 70px;
  height: 24px;
  display: block;
}

.strat-row--orange .strat-row__spark {
  color: var(--accent);
}

.strat-row--cyan .strat-row__spark {
  color: var(--cyan);
}

.strat-row--lime .strat-row__spark {
  color: var(--lime);
}

.strat-row--violet .strat-row__spark {
  color: var(--violet);
}

.strat-row--magenta .strat-row__spark {
  color: var(--magenta);
}

.strat-row--blue .strat-row__spark {
  color: var(--accent-2);
}

.strat-row__pct {
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.strat-row--orange .strat-row__pct,
.strat-row--cyan .strat-row__pct,
.strat-row--lime .strat-row__pct,
.strat-row--violet .strat-row__pct,
.strat-row--magenta .strat-row__pct {
  color: var(--lime);
}

.strat-phone__foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.strat-phone__risk-pill {
  background: var(--cyan-soft);
  border: 1px solid var(--cyan-line);
  color: var(--cyan);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.12em;
}

/* Sticker top-right */
.strat-phone__sticker {
  position: absolute;
  top: 16px;
  right: -14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lime);
  color: #000;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 8px 22px rgba(168, 251, 94, 0.32);
  transform: rotate(8deg);
}

/* Risk dial bottom-left */
.strat-phone__dial {
  position: absolute;
  bottom: -18px;
  left: -22px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  transform: rotate(-4deg);
}

.strat-phone__dial-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.strat-phone__dial svg {
  display: block;
}

/* ---------- Live Signals : chat-bubble timeline ---------- */
.signal-thread {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 18px 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 50px rgba(0, 0, 0, 0.45);
}

.signal-thread__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.signal-thread__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.04em;
}

.signal-thread__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: trader-spot-pulse 1.4s ease-in-out infinite;
}

.signal-thread__count {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
}

.signal-thread__stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
}

.signal-bubble {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: flex-start;
}

.signal-bubble__time {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-top: 14px;
}

.signal-bubble__body {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signal-bubble--buy .signal-bubble__body {
  border-color: var(--lime-line);
  background: var(--lime-soft);
}

.signal-bubble--sell .signal-bubble__body {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.signal-bubble__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.signal-bubble__head strong {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.signal-bubble__dir {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.signal-bubble__dir--buy {
  background: var(--lime);
  color: #000;
}

.signal-bubble__dir--sell {
  background: var(--accent);
  color: #000;
}

.signal-bubble__rows {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.signal-bubble__rows strong {
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.signal-bubble__sl {
  color: var(--accent) !important;
}

.signal-bubble__tp {
  color: var(--lime) !important;
}

.signal-bubble__meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.signal-bubble__meter-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.signal-bubble__meter-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--cyan), var(--magenta));
}

.signal-bubble__meter-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* "Typing" indicator bubble */
.signal-bubble--typing .signal-bubble__time {
  color: var(--magenta);
}

.signal-bubble__body--typing {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  background: var(--magenta-soft);
  border-color: var(--magenta-line);
}

.signal-bubble__body--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  animation: signal-typing 1.2s ease-in-out infinite;
}

.signal-bubble__body--typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.signal-bubble__body--typing span:nth-child(3) {
  animation-delay: 0.30s;
}

.signal-bubble__body--typing em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-left: 6px;
}

@keyframes signal-typing {

  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 720px) {

  .trader-spot__rank,
  .trader-spot__sticker,
  .strat-phone__dial,
  .strat-phone__sticker {
    transform: rotate(0) scale(0.9);
  }

  .trader-spot__rank {
    left: 0;
    bottom: -16px;
  }

  .strat-phone__dial {
    left: 4px;
    bottom: -12px;
  }
}

/* =========================================================
   LIGHT MODE OVERRIDES
   Most of the site was built dark-first; these rules override
   hardcoded #000/#FFF and rgba(255,255,255,…) overlays so the
   layout reads correctly when [data-theme="light"] is set.
   ========================================================= */

/* (light-mode --text-mute already set globally in the base [data-theme="light"]
   block; this slot kept for any future palette tweaks.) */

/* ---------- sections that hardcode pure black bg ----------
   .stack-panel is intentionally excluded — the 4 panels carry their own
   per-panel color blocks (.stack-panel--c1..c4) that apply in both themes. */
[data-theme="light"] .ai,
[data-theme="light"] .platform,
[data-theme="light"] .press,
[data-theme="light"] .faq,
[data-theme="light"] .journey {
  background: var(--bg);
}

/* ---------- platform cards: black bg + white text invert ---------- */
[data-theme="light"] .platform__card {
  background: var(--bg);
  color: var(--text);
}

[data-theme="light"] .platform__svg {
  color: var(--text);
}

[data-theme="light"] .platform__card:hover {
  background: var(--accent);
  color: #fff;
}

[data-theme="light"] .platform__card:hover .platform__svg {
  color: #fff;
}

/* Frame around the platform image — softer borders, no inset white glow */
[data-theme="light"] .platform__svg {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.00) 100%),
    rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 4px 18px rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .platform__card:hover .platform__svg {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.00) 100%),
    rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 18px rgba(0, 0, 0, 0.18);
}

/* ---------- site header & buttons ----------
   .site-btn already has its own blue/orange accent backgrounds — DO NOT
   override the bg here, the white text needs the colored fill to stay
   readable. */

/* ---------- hero (landing) area ---------- */
[data-theme="light"] .hero {
  background: transparent;
  color: var(--text);
}

/* Grainient: colors are re-initialised with the page bg as the "black" stop
   in light mode (see main.js + the inline init in ai.html). The canvas now
   renders correctly without any blend-mode hack. */

/* Stack panels — SVG illustrations inherit `color` and were hardcoded to
   white. Override to dark text in light mode so the SVG outline reads. */
[data-theme="light"] .stack-panel__image,
[data-theme="light"] .stack-panel__image:hover {
  color: var(--text);
}

[data-theme="light"] .stack-panel__image--p4:hover {
  color: #ffffff;
  /* keep contrast on orange hover */
}

/* Landing hero headline reveal covers — the front cover used `var(--text)`
   which in light mode is BLACK. After reveal animation completes the cover
   is hidden, so no issue. But the orange (back) cover stays the same. OK. */

/* ---------- subpage hero (features / propfirm / ai) ---------- */
[data-theme="light"] .subpage-hero::before {
  background:
    radial-gradient(50% 60% at 8% 0%, rgba(251, 94, 71, 0.18), transparent 60%),
    radial-gradient(45% 55% at 100% 100%, rgba(59, 106, 248, 0.14), transparent 65%),
    radial-gradient(30% 35% at 90% 0%, rgba(168, 200, 80, 0.10), transparent 60%);
}

[data-theme="light"] .subpage-hero::after {
  background-image: radial-gradient(rgba(0, 0, 0, 0.10) 1px, transparent 1px);
  opacity: 0.6;
}

[data-theme="light"] .subpage-hero__title {
  text-shadow: 0 4px 60px rgba(251, 94, 71, 0.08);
}

/* hero stat glass cards — flip the white overlay/highlight to dark on light */
[data-theme="light"] .subpage-hero__stat {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.00) 100%),
    var(--bg-elev);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 28px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .subpage-hero__stat:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 36px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(251, 94, 71, 0.20);
}

/* ---------- press section ----------
   "Always in motion / Always in the headlines" — the panel is dark on
   purpose (it shows a dark headline image + a terminal mockup). Keep the
   dark surfaces dark in light mode and force the terminal text to stay
   light so it stays readable. */
[data-theme="light"] .press__image {
  background: #081136;
}

[data-theme="light"] .press__terminal {
  background: #000000;
  color: #e9ecf3;
}

[data-theme="light"] .press__terminal-screen {
  color: #e9ecf3;
}

[data-theme="light"] .press__terminal-row>span:first-child {
  color: #e9ecf3;
}

[data-theme="light"] .press__terminal-dot,
[data-theme="light"] .press__terminal-block {
  color: rgba(233, 236, 243, 0.65);
}

[data-theme="light"] .press__terminal-block {
  border-left-color: rgba(255, 255, 255, 0.18);
}

/* ---------- footer stays orange in both modes (no override needed) ---------- */

/* ---------- gradient text: chatbot title + wordmark ----------
   On dark bg the orange→magenta gradient reads. On the cream light bg
   the two warm tones blend into uniform pink — swap to a horizontal
   orange→magenta→blue ramp so the transition is actually visible. */
[data-theme="light"] .ai-chatbot__wordmark,
[data-theme="light"] .ai-chatbot__title em {
  background: linear-gradient(90deg, var(--accent) 0%, var(--magenta) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .ai-chatbot__wordmark {
  filter: none;
}

/* ---------- subpage-hero pulse-dot eyebrow text contrast ----------
   The eyebrow chip uses accent-soft bg + accent text — works on dark.
   On light bg, the soft alpha is very pale; tighten the border and bump
   the text contrast so it reads. */
[data-theme="light"] .subpage-hero__eyebrow {
  background: rgba(251, 94, 71, 0.10);
  border-color: rgba(251, 94, 71, 0.40);
  color: #c64530;
}

/* ---------- subpage-hero stat numbers : darker accents on light bg ----------
   The base accent palette (cyan #5EE2FB, lime #A8FB5E, magenta #FB5EE2)
   is tuned for dark mode and reads as washed-out white on cream. Override
   each stat-num + hl-* title accent with a darker, higher-contrast variant
   in light mode so the "icons" stay clearly coloured. */
[data-theme="light"] .subpage-hero__stat-num {
  color: #c64530;
}

[data-theme="light"] .subpage-hero__stat--cyan .subpage-hero__stat-num {
  color: #0e7c93;
}

[data-theme="light"] .subpage-hero__stat--lime .subpage-hero__stat-num {
  color: #4d7c0f;
}

[data-theme="light"] .subpage-hero__stat--magenta .subpage-hero__stat-num {
  color: #b8268e;
}

[data-theme="light"] .subpage-hero__stat--violet .subpage-hero__stat-num {
  color: #5b21b6;
}

/* Title accent spans (.hl-orange / .hl-cyan / .hl-lime / .hl-magenta / .hl-violet) */
[data-theme="light"] .subpage-hero__title .hl-orange,
[data-theme="light"] .cta-strip__title .hl-orange {
  color: #c64530;
}

[data-theme="light"] .subpage-hero__title .hl-cyan,
[data-theme="light"] .cta-strip__title .hl-cyan {
  color: #0e7c93;
}

[data-theme="light"] .subpage-hero__title .hl-lime {
  color: #4d7c0f;
}

[data-theme="light"] .subpage-hero__title .hl-magenta {
  color: #b8268e;
}

[data-theme="light"] .subpage-hero__title .hl-violet {
  color: #5b21b6;
}

/* ---------- ghost CTA border on light bg ----------
   The secondary outlined CTA used `rgba(255,255,255,0.30)` — invisible
   on cream. Give it a dark border in light mode so the button reads. */
[data-theme="light"] .subpage-hero__cta--ghost {
  border-color: rgba(0, 0, 0, 0.32);
  color: var(--text);
}

[data-theme="light"] .subpage-hero__cta--ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .subpage-hero__cta--ghost .subpage-hero__cta-divider {
  background: rgba(0, 0, 0, 0.18);
}

/* ---------- hero-cell floating glyphs (features-page hero bg) ----------
   The bordered tiles with crypto / FX glyphs (₿, Ξ, $, €, ¥, …) were
   styled with white text + white border for dark mode — they become
   invisible on cream. Flip every layer to its dark equivalent so the
   glyphs read as faint dark icons in bordered tiles. */
[data-theme="light"] .hero-cell {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.18);
  color: rgba(0, 0, 0, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* ---------- generic glass / bento cards : invert white overlays ---------- */
[data-theme="light"] .ai-chatbot,
[data-theme="light"] .signal-thread,
[data-theme="light"] .trader-spot__card,
[data-theme="light"] .strat-phone__frame,
[data-theme="light"] .course-card,
[data-theme="light"] .course-stack__counter,
[data-theme="light"] .trader-spot__rank,
[data-theme="light"] .strat-phone__dial,
[data-theme="light"] .bento-card {

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 18px 40px rgba(0, 0, 0, 0.10);
}

/* AI bento grid cells — restore visible separator lines on light bg */
[data-theme="light"] .ai-bento,
[data-theme="light"] .ai-bento__cell,
[data-theme="light"] .ai-bento__cell:hover {
  background: var(--bg);
}

[data-theme="light"] .ai-bento__cell--insights {
  background:
    radial-gradient(70% 60% at 100% 100%, rgba(251, 94, 71, 0.08), transparent 70%),
    var(--bg);
}

[data-theme="light"] .ai-bento__cell--risk {
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(251, 94, 226, 0.06), transparent 70%),
    var(--bg);
}

[data-theme="light"] .ai-bento__cell--signals {
  background:
    radial-gradient(40% 100% at 0% 50%, rgba(94, 226, 251, 0.06), transparent 70%),
    var(--bg);
}

/* AI chatbot pieces */
[data-theme="light"] .ai-chatbot__input,
[data-theme="light"] .ai-chatbot__prompt,
[data-theme="light"] .ai-chatbot__pill {
  background: var(--bg-elev);
}

[data-theme="light"] .ai-chatbot__input-attach {
  background: var(--bg);
}

/* Strategy phone rows + chrome */
[data-theme="light"] .strat-row.is-active,
[data-theme="light"] .strat-row:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .strat-phone__search {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .strat-phone__notch {
  background: rgba(0, 0, 0, 0.10);
}

/* Signal bubbles */
[data-theme="light"] .signal-bubble__body {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .signal-thread__count {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .signal-bubble__meter-track {
  background: rgba(0, 0, 0, 0.08);
}

/* ---------- forms (login / signup / contact) ---------- */
[data-theme="light"] .form__input,
[data-theme="light"] .form__select,
[data-theme="light"] .form__textarea {
  background: var(--bg-elev);
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .form__input::placeholder,
[data-theme="light"] .form__textarea::placeholder {
  color: var(--text-mute);
}

[data-theme="light"] .form__check-box {
  background: var(--bg-elev);
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .auth-info,
[data-theme="light"] .auth-form-panel {
  background: var(--bg);
}

/* ---------- propfirm packages ---------- */
[data-theme="light"] .pkg,
[data-theme="light"] .pkg:hover {
  background: var(--bg);
}

[data-theme="light"] .pkg--popular {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(94, 226, 251, 0.06), transparent 60%),
    var(--bg-elev);
}

[data-theme="light"] .pf-rules,
[data-theme="light"] .pf-scale,
[data-theme="light"] .pf-payouts {
  background: var(--bg);
}

[data-theme="light"] .pf-scale__step::before {
  color: rgba(0, 0, 0, 0.06);
}

/* CTA strip overlay gradient — soften in light mode */
[data-theme="light"] .cta-strip::before {
  background:
    radial-gradient(60% 50% at 100% 50%, rgba(251, 94, 71, 0.10), transparent 60%),
    radial-gradient(40% 40% at 0% 100%, rgba(59, 106, 248, 0.08), transparent 60%);
}

/* ---------- scrollbar ---------- */
[data-theme="light"] html {
  scrollbar-color: #fb5e47 var(--bg);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg);
}

/* ---------- nav menu overlay ---------- */
[data-theme="light"] .nav-menu__aside {
  background: rgba(0, 0, 0, 0.025);
}

[data-theme="light"] .nav-menu__close {
  background: var(--bg-elev);
}

/* ---------- FAQ ---------- */
[data-theme="light"] .faq__item,
[data-theme="light"] .faq__answer {
  background: var(--bg);
}

/* ---------- press cards / journey cards ---------- */
[data-theme="light"] .press-card,
[data-theme="light"] .journey-card {
  background: var(--bg);
}

/* ---------- AI matrix legacy cards ---------- */
[data-theme="light"] .ai-matrix__cell,
[data-theme="light"] .ai__card,
[data-theme="light"] .ai__sub {
  background: var(--bg);
}

[data-theme="light"] .ai-matrix__cell:hover,
[data-theme="light"] .ai__card:hover,
[data-theme="light"] .ai__sub:hover {
  background: rgba(0, 0, 0, 0.025);
}

/* ---------- tool tiles ---------- */
[data-theme="light"] .tool-tile:hover {
  background: rgba(0, 0, 0, 0.025);
}

/* ---------- compound interest legacy widget surface ---------- */
[data-theme="light"] .tool {
  background: var(--bg);
  color: var(--text);
}

/* ---------- CTAs / button text inheritance ----------
   .stack-panel__btn is excluded — buttons inherit color from their
   per-panel block (.stack-panel--c1..c4 .stack-panel__btn). */
[data-theme="light"] .pkg__cta,
[data-theme="light"] .feat-block__cta {
  color: var(--text);
}

/* =========================================================
   HERO STATIC GRID + LOGO CELLS
   Pure-CSS subtle background grid (.subpage-hero gets ::after lines)
   with absolutely-positioned square "logo tiles" scattered over it.
   No canvas, no animation — just a static decorative layer.
   ========================================================= */

/* Background grid lines — sits inside .subpage-hero via ::after.
   The existing ::before keeps the radial flares; this ::after adds
   the 60px thin-line grid on top of them. */
.subpage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: -1px -1px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(120% 110% at 50% 50%, #000 30%, transparent 95%);
  mask-image: radial-gradient(120% 110% at 50% 50%, #000 30%, transparent 95%);
}

/* Container for the scattered logo tiles */
.hero-cells {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Individual filled grid-cell tile with a centered glyph */
.hero-cell {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.42);
  font-family: 'Iceland', 'Segoe UI Symbol', system-ui, sans-serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Subtle staggered fade-in */
.hero-cell {
  animation: hero-cell-fade 0.7s ease both;
  animation-delay: 0.2s;
}

.hero-cell:nth-of-type(2) {
  animation-delay: 0.32s;
}

.hero-cell:nth-of-type(3) {
  animation-delay: 0.44s;
}

.hero-cell:nth-of-type(4) {
  animation-delay: 0.56s;
}

.hero-cell:nth-of-type(5) {
  animation-delay: 0.68s;
}

.hero-cell:nth-of-type(6) {
  animation-delay: 0.80s;
}

.hero-cell:nth-of-type(7) {
  animation-delay: 0.92s;
}

.hero-cell:nth-of-type(8) {
  animation-delay: 1.04s;
}

@keyframes hero-cell-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-cell--sm {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.hero-cell--lg {
  width: 72px;
  height: 72px;
  font-size: 28px;
}

@media (max-width: 720px) {

  /* thin out the densest tiles on small screens */
  .hero-cell:nth-of-type(2),
  .hero-cell:nth-of-type(5),
  .hero-cell:nth-of-type(7) {
    display: none;
  }

  .subpage-hero::after {
    background-size: 48px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cell {
    animation: none;
  }
}

/* =========================================================
   BROKER MARQUEE — infinite scrolling row of venue wordmarks
   Swap the <li> text for <img src="public/brokers/*.svg"> tags
   when real logo assets land.
   ========================================================= */

.broker-marquee {
  position: relative;
  background: #000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0 36px;
  overflow: hidden;
}

.broker-marquee__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 24px 0;
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
}

.broker-marquee__label::before,
.broker-marquee__label::after {
  content: "";
  height: 1px;
  width: clamp(48px, 8vw, 96px);
  background: linear-gradient(90deg, transparent, var(--line) 50%, transparent);
}

.broker-marquee__label::before {
  background: linear-gradient(90deg, transparent, var(--line));
}

.broker-marquee__label::after {
  background: linear-gradient(90deg, var(--line), transparent);
}

.broker-marquee__viewport {
  overflow: hidden;
  /* Soft fade-edge so the wordmarks ease in/out of the viewport */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.broker-marquee__track {
  display: flex;
  width: max-content;
  animation: broker-marquee-scroll 42s linear infinite;
}

.broker-marquee:hover .broker-marquee__track {
  animation-play-state: paused;
}

.broker-marquee__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-shrink: 0;
}

.broker-marquee__item {
  flex-shrink: 0;
  padding: 0 clamp(28px, 4vw, 56px);
  font-family: 'Iceland', system-ui, sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  transition: color 0.2s ease;
}

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

/* If the user drops <img> tags in, give them a sensible default size */
.broker-marquee__item img {
  display: block;
  height: clamp(22px, 2.4vw, 36px);
  width: auto;
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.broker-marquee__item:hover img {
  opacity: 1;
}

@keyframes broker-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .broker-marquee__track {
    animation: none;
  }
}

/* =========================================================
   LIGHT MODE — SWEEPING FALLBACKS
   Last layer of overrides for elements with white-on-bg
   overlays that lose visibility on light backgrounds.
   Adds visible structure (border) rather than reinventing
   the bg, so the line-grid stays intact.
   ========================================================= */

/* Featured visual containers (feature blocks on /features) */
[data-theme="light"] .feat-block__visual {
  background: rgba(0, 0, 0, 0.02);
}

/* Course card cover thumbnail strip — keep colored gradient strong */
[data-theme="light"] .course-card__cover {
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .course-card__cover-tag {
  background: rgba(255, 255, 255, 0.85);
  color: rgba(0, 0, 0, 0.85);
}

/* Strategy phone risk-pill needs darker text on light */
[data-theme="light"] .strat-phone__risk-pill {
  color: #1e6f87;
}

/* Trader spot card "Live" pill on light bg */
[data-theme="light"] .trader-spot__live {
  color: #5a8f1a;
}

/* AI chatbot input-attach icon */
[data-theme="light"] .ai-chatbot__input-attach {
  border-color: rgba(0, 0, 0, 0.12);
}

/* AI prompt cards on light */
[data-theme="light"] .ai-chatbot__prompt {
  border-color: rgba(0, 0, 0, 0.14);
}

/* Bento card hover wash */
[data-theme="light"] .ai-bento__cell:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Strat-row icons need dark text on light bg */
[data-theme="light"] .strat-row__pct {
  color: #2f7a18;
}

/* Make stack-panel SVG and title visible */
[data-theme="light"] .stack-panel__num {
  color: black;
}

/* Compound-interest legacy widget inputs */
[data-theme="light"] .tool__input,
[data-theme="light"] .tool__select {
  background: var(--bg-elev);
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.18);
}

/* Pkg flag (popular) — black-on-cyan stays the same, ok */

/* Press card titles need visible color */
[data-theme="light"] .press-card__title,
[data-theme="light"] .press-card__desc {
  color: var(--text);
}

/* Signal bubble "buy/sell" badges already have solid bg, no change */

/* AI chatbot brand-dot (orange pulsing dot) is visible — ok */

/* Hero (landing) headline reveal text — ensure it inherits the light text */
[data-theme="light"] .hero__headline,
[data-theme="light"] .hero__sub,
[data-theme="light"] .hero__label {
  color: var(--text);
}

/* CTA strip primary button is blue with white text — stays the same */

/* ---------- Broker marquee : light-mode flip ----------
   The marquee was hardcoded with a black bg + white wordmarks for the dark
   theme. In light mode it sat as a black strip in the middle of a cream
   page — invert to cream bg + dark wordmarks so it flows with the section. */
[data-theme="light"] .broker-marquee {
  background: var(--bg);
}

[data-theme="light"] .broker-marquee__item {
  color: rgba(0, 0, 0, 0.78);
}

[data-theme="light"] .broker-marquee__item:hover {
  color: var(--accent);
}

/* ---------- Subpage hero stat grid : visible borders + ambient ---------- */
[data-theme="light"] .subpage-hero__stat {
  border-width: 1.5px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.025) 0%, rgba(0, 0, 0, 0.00) 100%),
    var(--bg-elev);
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px rgba(0, 0, 0, 0.08);
}

/* per-card colored border in light mode (was lost since lines vanish on white) */
[data-theme="light"] .subpage-hero__stat--cyan {
  border-color: rgba(94, 226, 251, 0.50);
}

[data-theme="light"] .subpage-hero__stat--lime {
  border-color: rgba(94, 200, 80, 0.50);
}

[data-theme="light"] .subpage-hero__stat--magenta {
  border-color: rgba(251, 94, 226, 0.50);
}

[data-theme="light"] .subpage-hero__stat--violet {
  border-color: rgba(142, 94, 251, 0.50);
}

[data-theme="light"] .subpage-hero__stat:first-child {
  border-color: rgba(251, 94, 71, 0.50);
}

/* Subpage hero radial accents — fade the dots to a slightly darker tone so
   the mesh is readable on the cream bg. */
[data-theme="light"] .subpage-hero::after {
  background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1px, transparent 1px);
  opacity: 0.55;
}

/* Subpage hero copy column — corner bracket needs to be visible */
[data-theme="light"] .subpage-hero__copy::before {
  border-color: var(--accent);
}

/* CTA strip secondary button uses var(--text), should already work */

/* =========================================================
   AUTH 2-COL — login / signup screens (Databuddy-style)
   Left: WebGL iridescence canvas + brand tagline.
   Right: brand-mark + form + social auth + magic link.
   ========================================================= */

.page--auth-2col {
  background: #0c0c0c;
  color: var(--text);
  min-height: 100vh;
  padding: 0;
}

.auth-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---------- left hero column ---------- */
.auth-2col__hero {
  position: relative;
  /* Mono-dark fallback ambient (no colour) — matches the Databuddy
     reference, where the left panel reads as dark silk. The WebGL
     iridescence canvas sits on top and adds the animated texture. */
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(70% 70% at 80% 80%, rgba(255, 255, 255, 0.025), transparent 65%),
    #0a0a0a;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  color: #ffffff;
  min-height: 100vh;
}

/* The iridescence WebGL canvas is mounted into this host. It must actually
   fill the 50% panel — explicit width/height + zero offsets so layout never
   collapses it to a zero-sized box. */
.auth-2col__hero-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-2col__hero-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.auth-2col__hero>*:not(.auth-2col__hero-canvas) {
  position: relative;
  z-index: 1;
}

/* "Back" link top-left */
.auth-2col__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  align-self: flex-start;
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.auth-2col__back:hover {
  color: #ffffff;
}

.auth-2col__back svg {
  display: block;
}

.auth-2col__hero-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 540px;
}

.auth-2col__hero-title {
  font-size: clamp(36px, 3.6vw, 56px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: #ffffff;
  margin: 0;
}

.auth-2col__hero-title em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
}

.auth-2col__hero-lede {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  max-width: 52ch;
}

/* ---------- right form column ---------- */
.auth-2col__form {
  background: #0c0c0c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4vw, 64px) clamp(24px, 5vw, 80px);
  position: relative;
}

.auth-2col__brand {
  font-size: 24px;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: clamp(28px, 4vw, 48px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-2col__brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.auth-2col__panel {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.auth-2col__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-2col__title {
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0;
}

.auth-2col__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.5;
}

/* social row */
.auth-2col__socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Single-provider variant — used on the signup page now that GitHub is gone */
.auth-2col__socials--single {
  grid-template-columns: 1fr;
}

.auth-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.auth-social:hover {
  background: #242424;
  border-color: #353535;
}

.auth-social svg {
  display: block;
}

/* magic-link full-width button */
.auth-magic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.auth-magic:hover {
  background: #242424;
  border-color: #353535;
}

/* "Or" divider */
.auth-2col__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
  margin: 4px 0;
}

.auth-2col__divider::before,
.auth-2col__divider::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* form fields */
.auth-2col__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-2col__label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}

.auth-2col__label .req {
  color: var(--accent);
  margin-left: 2px;
}

.auth-2col__input {
  width: 100%;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.auth-2col__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.auth-2col__input:focus {
  border-color: var(--accent);
  background: #1f1f1f;
}

.auth-2col__password {
  position: relative;
}

.auth-2col__password .auth-2col__input {
  padding-right: 44px;
}

.auth-2col__eye {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-radius: 6px;
}

.auth-2col__eye:hover {
  color: #ffffff;
}

/* primary submit (white pill, like reference) */
.auth-2col__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #f5f5f5;
  color: #0a0a0a;
  border: none;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.auth-2col__submit:hover {
  background: #ffffff;
}

/* foot row : "Don't have an account? Sign up" + "Forgot password?" */
.auth-2col__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.auth-2col__foot a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-2col__foot a:hover {
  color: var(--accent);
}

.auth-2col__powered {
  position: absolute;
  bottom: 22px;
  right: 32px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
}

.auth-2col__powered strong {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- responsive : collapse to single column ---------- */
@media (max-width: 900px) {
  .auth-2col {
    grid-template-columns: 1fr;
  }

  .auth-2col__hero {
    min-height: 240px;
    padding: 24px;
  }

  .auth-2col__hero-title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .auth-2col__form {
    padding: 40px 24px 80px;
  }

  .auth-2col__powered {
    right: 50%;
    transform: translateX(50%);
    bottom: 18px;
  }
}

/* ---------- tablet / small laptop : pad form, smaller socials ---------- */
@media (max-width: 720px) {
  .auth-2col__hero {
    min-height: 200px;
    padding: 20px;
  }

  .auth-2col__hero-footer {
    gap: 8px;
  }

  .auth-2col__hero-lede {
    font-size: 13px;
    line-height: 1.5;
  }

  .auth-2col__back {
    top: 18px;
    left: 18px;
  }

  .auth-2col__form {
    padding: 32px 20px 72px;
    gap: 22px;
  }

  .auth-2col__panel {
    gap: 18px;
  }

  .auth-2col__title {
    font-size: clamp(22px, 5.4vw, 28px);
  }

  .auth-2col__sub {
    font-size: 13px;
  }

  .auth-2col__brand {
    font-size: 15px;
  }

  .auth-social,
  .auth-magic,
  .auth-2col__submit {
    padding: 11px 14px;
    font-size: 13px;
  }
}

/* ---------- phone : stack social pair, tighten everything ---------- */
@media (max-width: 480px) {
  .auth-2col__hero {
    min-height: 160px;
    padding: 16px;
  }

  .auth-2col__back {
    top: 14px;
    left: 14px;
    font-size: 12px;
  }

  .auth-2col__hero-title {
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.15;
  }

  .auth-2col__hero-lede {
    font-size: 12px;
  }

  .auth-2col__form {
    padding: 28px 16px 64px;
    gap: 20px;
  }

  .auth-2col__brand {
    gap: 8px;
    font-size: 14px;
  }

  .auth-2col__title {
    font-size: 22px;
    letter-spacing: -0.005em;
  }

  .auth-2col__sub {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Stack the GitHub / Google buttons */
  .auth-2col__socials {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .auth-social,
  .auth-magic {
    font-size: 13px;
    padding: 11px 12px;
  }

  .auth-2col__divider {
    font-size: 12px;
    gap: 10px;
  }

  .auth-2col__field {
    gap: 6px;
  }

  .auth-2col__label {
    font-size: 12px;
  }

  .auth-2col__input {
    font-size: 14px;
    padding: 11px 12px;
  }

  .auth-2col__submit {
    padding: 12px 14px;
    font-size: 14px;
  }

  /* Foot row stacks so "Forgot password?" / "Terms" don't crash into the
     cross-page link on narrow widths. */
  .auth-2col__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
  }

  .auth-2col__powered {
    bottom: 12px;
    font-size: 11px;
  }
}

/* ---------- light mode : invert form panel + hero stays dark ---------- */
[data-theme="light"] .page--auth-2col,
[data-theme="light"] .auth-2col__form {
  background: var(--bg);
}

[data-theme="light"] .auth-2col__brand,
[data-theme="light"] .auth-2col__title {
  color: var(--text);
}

[data-theme="light"] .auth-2col__sub,
[data-theme="light"] .auth-2col__foot {
  color: var(--text-dim);
}

[data-theme="light"] .auth-2col__foot a {
  color: var(--text);
}

[data-theme="light"] .auth-social,
[data-theme="light"] .auth-magic {
  background: var(--bg-elev);
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--text);
}

[data-theme="light"] .auth-social:hover,
[data-theme="light"] .auth-magic:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.24);
}

[data-theme="light"] .auth-2col__divider {
  color: var(--text-mute);
}

[data-theme="light"] .auth-2col__divider::before,
[data-theme="light"] .auth-2col__divider::after {
  background: rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .auth-2col__label {
  color: var(--text);
}

[data-theme="light"] .auth-2col__input {
  background: var(--bg-elev);
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--text);
}

[data-theme="light"] .auth-2col__input::placeholder {
  color: var(--text-mute);
}

[data-theme="light"] .auth-2col__eye {
  color: var(--text-mute);
}

[data-theme="light"] .auth-2col__eye:hover {
  color: var(--text);
}

[data-theme="light"] .auth-2col__submit {
  background: #0a0a0a;
  color: #ffffff;
}

[data-theme="light"] .auth-2col__submit:hover {
  background: #1f1f1f;
}

[data-theme="light"] .auth-2col__powered {
  color: var(--text-mute);
}

[data-theme="light"] .auth-2col__powered strong {
  color: var(--text-dim);
}

/* =========================================================
   MOBILE V2 — HAMBURGER HEADER, HERO 100VH,
   LAYOUT VARIETY, CHATBOT POLISH
   Appended block — overrides earlier rules where breakpoints overlap.
   ========================================================= */

@media (max-width: 860px) {

  /* ---------- Hamburger header — single row, icon-only menu button ---------- */
  :root {
    --header-h: 64px;
  }

  .site-header {
    flex-direction: row;
    align-items: stretch;
    min-height: 64px;
  }

  .site-header__brand {
    flex: 1 1 auto;
    padding: 0 18px;
    border-bottom: none;
    font-size: 17px;
    display: flex;
    align-items: center;
  }

  .site-header__actions {
    padding: 8px 10px 8px 0;
    gap: 8px;
    justify-content: flex-end;
    flex: 0 0 auto;
  }

  /* Hide every site-btn except the Menu hamburger */
  .site-header__actions>.site-btn:not([href*="#menu"]) {
    display: none;
  }

  /* Turn the Menu site-btn into a square icon hamburger */
  .site-header__actions .site-btn[href*="#menu"] {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    min-height: 48px;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .site-header__actions .site-btn[href*="#menu"] .site-btn__label,
  .site-header__actions .site-btn[href*="#menu"] .site-btn__divider {
    display: none;
  }

  .site-header__actions .site-btn[href*="#menu"] .site-btn__icon {
    padding: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .theme-toggle--nav {
    width: 48px;
    height: 48px;
    min-height: 48px;
    flex: 0 0 48px;
    border-radius: 0;
  }

  /* ---------- HOME HERO — fill viewport minus header ---------- */
  .hero {
    min-height: calc(100vh - var(--header-h));
    grid-template-rows: auto auto 1fr auto;
  }

  .hero__mark {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 60px;
  }

  .site-header {
    min-height: 60px;
  }

  .site-header__brand {
    padding: 0 14px;
    font-size: 16px;
  }

  .site-header__actions {
    padding: 6px 8px 6px 0;
    gap: 6px;
  }

  .site-header__actions .site-btn[href*="#menu"],
  .theme-toggle--nav {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
  }

  .site-header__actions .site-btn[href*="#menu"] .site-btn__icon {
    width: 44px;
    height: 44px;
  }
}

/* =========================================================
   MOBILE LAYOUT VARIETY — break the 1-col monotony with
   tasteful 2-col patterns at small-tablet/large-phone widths.
   ========================================================= */

/* Platform cards — 2x2 with the third spanning full width */
@media (min-width: 481px) and (max-width: 720px) {
  .platform__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform__card {
    min-height: 52vh;
    padding: 40px 22px 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .platform__card:nth-of-type(2n) {
    border-right: none;
  }

  .platform__card:last-child {
    grid-column: 1 / 3;
    border-right: none;
    border-bottom: none;
  }
}

/* Press cards — 2-col + featured row */
@media (min-width: 481px) and (max-width: 640px) {
  .press {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    min-height: auto;
  }

  .press__image {
    grid-column: 1 / 3;
    grid-row: 1;
    min-height: 260px;
  }

  .press__terminal {
    grid-column: 1 / 3;
    grid-row: 2;
    min-height: 220px;
  }

  .press-card:nth-of-type(1) {
    grid-column: 1;
    grid-row: 3;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .press-card:nth-of-type(2) {
    grid-column: 2;
    grid-row: 3;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .press-card:nth-of-type(3) {
    grid-column: 1 / 3;
    grid-row: 4;
    border-right: none;
  }

  .press__cta {
    grid-column: 1 / 3;
    grid-row: 5;
    min-height: 180px;
  }
}

/* AI section — keep the bottom row 2-col on small tablet too */
@media (min-width: 481px) and (max-width: 640px) {
  .ai__bottom {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .ai__image,
  .ai__feature {
    grid-column: 1 / 3;
  }

  .ai__sub--a {
    grid-column: 1;
    border-right: 1px solid var(--line);
    border-bottom: none;
  }

  .ai__sub--b {
    grid-column: 2;
  }
}

/* Footer grid — keep 2-col on small phones too (less bland than single) */
@media (max-width: 560px) and (min-width: 380px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__col {
    border-right: 1px solid rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
    padding: 28px 20px;
    gap: 22px;
    min-height: auto;
  }

  .footer__col:nth-of-type(2n) {
    border-right: none;
  }

  .footer__col:last-child {
    grid-column: 1 / 3;
    border-right: none;
    border-bottom: none;
  }
}

/* =========================================================
   AI CHATBOT — restyle as a real chat conversation on mobile.
   Bot avatar via wordmark pill, message-bubble title/desc,
   2-col suggestion chips, sticky chat input bar.
   ========================================================= */
@media (max-width: 720px) {
  .ai-chatbot {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
  }

  .ai-chatbot__stage {
    flex: 1;
    align-items: stretch;
    text-align: left;
    padding: 22px 16px 16px;
    gap: 12px;
    justify-content: flex-start;
  }

  /* Bot avatar + wordmark row */
  .ai-chatbot__wordmark {
    font-family: 'Iceland', system-ui, sans-serif;
    font-size: 15px;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 8px 14px 8px 36px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    background-clip: border-box;
    -webkit-background-clip: border-box;
    border-radius: 999px;
    align-self: flex-start;
    filter: none;
    position: relative;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
  }

  .ai-chatbot__wordmark::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--magenta));
    box-shadow: 0 0 10px rgba(251, 94, 71, 0.55);
  }

  /* Title becomes a chat bubble from bot */
  .ai-chatbot__title {
    font-size: 20px;
    line-height: 1.3;
    max-width: 88%;
    padding: 14px 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px 18px 18px 4px;
    align-self: flex-start;
    margin: 0;
    letter-spacing: -0.005em;
  }

  /* Desc — second bubble */
  .ai-chatbot__desc {
    font-size: 14px;
    line-height: 1.55;
    padding: 14px 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px 18px 18px 4px;
    align-self: flex-start;
    margin: 0;
    max-width: 92%;
  }

  /* Suggestion chips label */
  .ai-chatbot__prompts {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
    margin-top: 14px;
    width: 100%;
  }

  .ai-chatbot__prompts::before {
    content: "Suggested";
    grid-column: 1 / -1;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 2px;
  }

  .ai-chatbot__prompt {
    padding: 14px 12px;
    border-radius: 14px;
    gap: 6px;
    min-height: 108px;
  }

  .ai-chatbot__prompt-arrow {
    width: 22px;
    height: 22px;
    top: 10px;
    right: 10px;
  }

  .ai-chatbot__prompt-title {
    font-size: 14px;
    padding-right: 28px;
    line-height: 1.25;
  }

  .ai-chatbot__prompt-desc {
    font-size: 12px;
    line-height: 1.4;
  }

  /* Chat input — sticky to bottom, compact */
  .ai-chatbot__input-wrap {
    padding: 12px 14px 18px;
    position: sticky;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  [data-theme="light"] .ai-chatbot__input-wrap {
    background: rgba(245, 244, 239, 0.7);
  }

  .ai-chatbot__input {
    grid-template-columns: auto 1fr auto;
    padding: 5px;
  }

  .ai-chatbot__input-attach {
    width: 38px;
    height: 38px;
  }

  .ai-chatbot__input-field {
    font-size: 14px;
    padding: 10px 8px;
  }

  /* Drop the mic on phones to free space for the input */
  .ai-chatbot__input-mic {
    display: none;
  }

  .ai-chatbot__input-send {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .ai-chatbot__prompts {
    grid-template-columns: 1fr !important;
  }

  .ai-chatbot__prompt {
    min-height: 86px;
  }
}