/* =========================================================================
   MarketLens Global — public website
   Brand chrome (navy/teal) matches the dashboard's design tokens so the
   marketing site and the product read as one system.
   ========================================================================= */

:root {
  color-scheme: light;

  --navy-deep: #0b1f33;
  --navy: #123a5c;
  --navy-mid: #17496f;
  --teal: #1f9c8f;
  --teal-bright: #2fc3b2;
  /* #1f9c8f clears only 3.38:1 on white — backgrounds/buttons only.
     Text and links use this darker shade to hold WCAG AA. */
  --teal-text: #157064;

  --surface-page: #ffffff;
  --surface-alt: #f6f8fa;
  --surface-card: #ffffff;
  --surface-sunken: #f0f2f5;
  --border: rgba(11, 31, 51, 0.10);
  --border-strong: rgba(11, 31, 51, 0.18);

  --text-primary: #101828;
  --text-secondary: #4b5768;
  --text-muted: #8a94a3;
  --text-on-dark: #eef4f8;
  --text-on-dark-muted: #a9bccc;

  --up: #0ca30c;
  --down: #d03b3b;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 6px 20px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 44px rgba(11, 31, 51, .16);

  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1160px;
  --gutter: 24px;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --surface-page: #0d1117;
    --surface-alt: #121821;
    --surface-card: #151b23;
    --surface-sunken: #1a2129;
    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .18);

    --text-primary: #f0f3f7;
    --text-secondary: #b7c0cc;
    --text-muted: #7c8798;
    --teal-text: #2fc3b2;

    --up: #16c116;
    --down: #e66767;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, .55);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-page: #0d1117;
  --surface-alt: #121821;
  --surface-card: #151b23;
  --surface-sunken: #1a2129;
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);
  --text-primary: #f0f3f7;
  --text-secondary: #b7c0cc;
  --text-muted: #7c8798;
  --teal-text: #2fc3b2;
  --up: #16c116;
  --down: #e66767;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, .55);
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--surface-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.4rem);
}

h3 {
  font-size: 1.16rem;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-deep);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Headings that label a section for screen readers where the design carries no
   visible heading — keeps the h1 → h2 → h3 order unbroken. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section-alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin: 0 0 12px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.lede {
  font-size: 1.09rem;
  color: var(--text-secondary);
}

.muted {
  color: var(--text-secondary);
}

.small {
  font-size: .875rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 156, 143, .3);
}

.btn-primary:hover {
  background: #1b8a7e;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface-sunken);
}

.btn-on-dark {
  background: rgba(255, 255, 255, .09);
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, .17);
}

.btn-sm {
  padding: 9px 18px;
  font-size: .88rem;
}

/* ---------- price ticker (home page only) ----------
   Illustrative sample figures, static — the pinned tag says so. It sits above
   the sticky header, so it scrolls away with the page. */

.ticker {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  overflow: hidden;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.ticker-view {
  flex: 1;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  /* one full pass of the list; raise the seconds to slow it down */
  animation: ticker-scroll 60s linear infinite;
}

/* hover or keyboard focus holds a row still long enough to read it */
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0 14px;
  list-style: none;
}

.ticker-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tk-sym {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}

.tk-name {
  color: var(--text-secondary);
}

.tk-val {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.tk-chg {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tk-chg.up { color: var(--up); }
.tk-chg.down { color: var(--down); }

/* pinned label — floats over the moving rows, same as the reference design */
.ticker-tag {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 156, 143, .22);
}

/* soften both ends so rows fade rather than clip */
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 1;
}

.ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--surface-alt), transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--surface-alt), transparent);
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }

  /* no motion — let it be swiped instead, and drop the duplicate copy */
  .ticker-view {
    overflow-x: auto;
    padding-left: 178px;
  }

  .ticker-list + .ticker-list {
    display: none;
  }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* opaque fallback first — browsers without color-mix drop the next line */
  background: var(--surface-page);
  background: color-mix(in srgb, var(--surface-page) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text b {
  font-size: 1.02rem;
}

.brand-text span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: .93rem;
  font-weight: 500;
}

.nav-links a:hover {
  background: var(--surface-sunken);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* The CTA is a button first. `.nav-links a` outranks `.btn-primary` on
   specificity, so restate the button's own colour and padding here. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
  padding: 9px 18px;
}

.nav-links a.btn-primary:hover {
  background: #1b8a7e;
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 8px;
  color: var(--text-primary);
  cursor: pointer;
}

.nav-toggle svg {
  display: block;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface-page);
    border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 20px;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 10px;
    font-size: 1rem;
  }

  .nav-cta {
    margin: 8px 0 0;
    justify-content: center;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    linear-gradient(150deg, rgba(11, 31, 51, .93) 0%, rgba(18, 58, 92, .90) 45%, rgba(23, 73, 111, .86) 100%),
    url("../img/hero-bg.jpg") center/cover no-repeat;
  color: var(--text-on-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 20%, transparent 75%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
  padding: clamp(60px, 8vw, 104px) 0;
}

@media (max-width: 940px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero h1 {
  color: #fff;
  margin-bottom: 18px;
}

.hero h1 .accent {
  background: linear-gradient(92deg, var(--teal-bright), #7fe6d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  color: var(--text-on-dark);
  font-size: 1.14rem;
  max-width: 56ch;
  opacity: .94;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  background: rgba(47, 195, 178, .14);
  border: 1px solid rgba(47, 195, 178, .38);
  color: #bff2e9;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 0 rgba(47, 195, 178, .7);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(47, 195, 178, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(47, 195, 178, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 18px;
  font-size: .85rem;
  color: var(--text-on-dark-muted);
}

/* live price panel */

.panel {
  background: rgba(10, 24, 39, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem;
  color: var(--text-on-dark-muted);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.panel-rows {
  padding: 6px 8px 10px;
}

.prow {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 10px;
}

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

.prow .nm {
  color: #fff;
  font-weight: 600;
  font-size: .93rem;
}

.prow .sub {
  color: var(--text-on-dark-muted);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.prow .val {
  font-family: var(--font-mono);
  font-size: .95rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.chip {
  font-size: .78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  min-width: 66px;
  text-align: center;
}

.chip-up {
  background: rgba(22, 193, 22, .16);
  color: #7ce87c;
}

.chip-down {
  background: rgba(230, 103, 103, .16);
  color: #ffa8a8;
}

.panel-foot {
  padding: 11px 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .75rem;
  color: var(--text-on-dark-muted);
}

/* ---------- stat band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.stat {
  background: var(--surface-card);
  padding: 26px 22px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  font-size: .84rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---------- cards / grids ---------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

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

@media (max-width: 980px) {

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

@media (max-width: 640px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  text-decoration: none;
}

a.card {
  color: inherit;
  display: block;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(140deg, var(--navy), var(--teal));
  color: #fff;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--teal-text);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.tags li {
  font-size: .77rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ---------- steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, 1fr);
}

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

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

.step {
  position: relative;
  padding-top: 18px;
  border-top: 2px solid var(--border-strong);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  color: var(--teal-text);
  letter-spacing: .08em;
}

.step h3 {
  margin: 8px 0 6px;
  font-size: 1.05rem;
}

.step p {
  color: var(--text-secondary);
  font-size: .94rem;
  margin: 0;
}

/* ---------- split feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

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

.checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 13px;
}

.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text-secondary);
}

.checklist svg {
  width: 20px;
  height: 20px;
  color: var(--teal-text);
  margin-top: 2px;
}

.checklist b {
  color: var(--text-primary);
}

/* mock dashboard */

.mock {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-card);
  box-shadow: var(--shadow-lg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
}

.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mock-bar span {
  margin-left: 10px;
  font-size: .76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.mock-body {
  padding: 18px;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.mock-kpi {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.mock-kpi small {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mock-kpi b {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.spark {
  width: 100%;
  height: 132px;
  display: block;
}

.mock-rows {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.mock-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  font-size: .85rem;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-sunken);
}

.mock-row b {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.up {
  color: var(--up);
  font-weight: 700;
  font-size: .8rem;
}

.down {
  color: var(--down);
  font-weight: 700;
  font-size: .8rem;
}

/* ---------- CTA band ---------- */

.cta {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid) 70%, #1c6b7d);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  color: #fff;
  max-width: 20ch;
  margin-inline: auto;
}

.cta p {
  color: rgba(255, 255, 255, .86);
  max-width: 60ch;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  color: var(--text-on-dark);
  padding: clamp(48px, 6vw, 78px) 0 clamp(44px, 6vw, 70px);
}

.page-hero h1 {
  color: #fff;
  max-width: 20ch;
}

.page-hero p {
  color: rgba(255, 255, 255, .88);
  max-width: 62ch;
  font-size: 1.06rem;
  margin-bottom: 0;
}

.crumbs {
  font-size: .82rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 14px;
}

.crumbs a {
  color: var(--text-on-dark-muted);
}

.crumbs a:hover {
  color: #fff;
}

/* ---------- tables ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: .93rem;
}

th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-sunken);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-secondary);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

details.qa {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

details.qa summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

details.qa summary::-webkit-details-marker {
  display: none;
}

details.qa summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--teal-text);
  line-height: 1;
}

details.qa[open] summary::after {
  content: "\2013";
}

details.qa p {
  margin: 12px 0 0;
  color: var(--text-secondary);
}

/* ---------- contact form ---------- */

.form-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-page);
  color: var(--text-primary);
  font: inherit;
  font-size: .95rem;
}

.field textarea {
  min-height: 122px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 620px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.contact-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.contact-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  align-items: start;
}

.contact-item .ci {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  color: var(--teal-text);
}

.contact-item b {
  display: block;
  font-size: .93rem;
}

.contact-item span {
  font-size: .9rem;
  color: var(--text-secondary);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--text-on-dark-muted);
  padding: 56px 0 26px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
}

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

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

.site-footer h3 {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}

.site-footer a {
  color: var(--text-on-dark-muted);
  font-size: .92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-brand p {
  font-size: .92rem;
  max-width: 38ch;
  margin-top: 14px;
}

.footer-brand .brand-text b {
  color: #fff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  /* single line of copy now, so it sits centred rather than pinned left */
  justify-content: center;
  text-align: center;
  font-size: .84rem;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social a {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.social a:hover {
  background: var(--teal);
}

.social svg {
  width: 17px;
  height: 17px;
}

/* ---------- reveal on scroll ----------
   Scoped to .js so the page stays fully readable when scripts don't run —
   without it, everything below the fold would be permanently invisible. */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================================
   Modern sections — numbered feed cards, scenario spotlights, impact
   metrics and the positioning comparison.
   ========================================================================= */

/* ---------- numbered feed cards ---------- */

.feed-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feed-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  opacity: 0;
  transition: opacity .18s ease;
}

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

.feed-card:hover::before {
  opacity: 1;
}

.feed-num {
  display: block;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--teal-text);
  margin-bottom: 12px;
}

.feed-card h3 {
  font-size: 1.04rem;
  margin-bottom: 8px;
}

.feed-card p:last-child {
  margin-bottom: 0;
}

.feed-card-cta {
  background: linear-gradient(150deg, var(--surface-sunken), var(--surface-card));
  border-style: dashed;
}

/* ---------- scenario spotlight (case study) ---------- */

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(26px, 3.5vw, 44px);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.spotlight+.spotlight {
  margin-top: 24px;
}

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

  .spotlight.flip>.spotlight-visual {
    order: 0;
  }
}

.spotlight.flip>.spotlight-visual {
  order: -1;
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 14px;
}

.spotlight-tag::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.spotlight h3 {
  font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem);
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.spotlight p {
  color: var(--text-secondary);
}

.pull-quote {
  margin: 0 0 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--teal);
  background: var(--surface-sunken);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.04rem;
  font-style: italic;
  color: var(--text-primary);
}

.pull-quote p {
  margin: 0;
  color: inherit;
}

.spotlight-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-sunken);
  padding: 20px;
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.flow li {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 0 0 22px;
}

.flow li:last-child {
  padding-bottom: 0;
}

.flow li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 26px;
  bottom: 2px;
  width: 2px;
  background: var(--border-strong);
}

.flow li:last-child::before {
  display: none;
}

.flow .node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-card);
  border: 2px solid var(--teal);
  color: var(--teal-text);
  font-size: .74rem;
  font-weight: 700;
  font-family: var(--font-mono);
  z-index: 1;
}

.flow b {
  display: block;
  font-size: .95rem;
  margin-bottom: 2px;
}

.flow span {
  font-size: .87rem;
  color: var(--text-secondary);
}

/* ---------- impact metrics ---------- */

.impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

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

.impact-card {
  background: linear-gradient(140deg, var(--navy-deep), var(--navy-mid));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-md);
}

.impact-card b {
  display: block;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  background: linear-gradient(92deg, #7fe6d6, var(--teal-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.impact-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 1rem;
  color: #fff;
}

.impact-card span {
  font-size: .88rem;
  color: rgba(255, 255, 255, .78);
}

/* ---------- positioning comparison ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

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

.compare-col {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}

.compare-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.compare-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.compare-col li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .94rem;
  color: var(--text-secondary);
}

.compare-col li svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.compare-yes {
  border-color: color-mix(in srgb, var(--teal) 34%, var(--border));
}

.compare-yes h3 svg,
.compare-yes li svg {
  color: var(--teal-text);
}

.compare-no h3 svg,
.compare-no li svg {
  color: var(--text-muted);
}

/* ---------- hero trust row ---------- */

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 22px;
}

.hero-trust div {
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid rgba(255, 255, 255, .16);
}

.hero-trust div:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.hero-trust b {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.hero-trust span {
  font-size: .8rem;
  color: var(--text-on-dark-muted);
}

/* Once the row wraps, the dividers strand themselves at the end of a line —
   swap to a plain two-column grid instead. */
@media (max-width: 560px) {
  .hero-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
  }

  .hero-trust div {
    padding-right: 0;
    margin-right: 0;
    border-right: none;
  }

  .hero-trust b {
    font-size: 1.25rem;
  }
}

/* =========================================================================
   Forward view — historical path plus a volatility cone.
   Dark instrument panel; the cone widens with the square root of time,
   which is the honest shape of price uncertainty.
   ========================================================================= */

.outlook {
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(47, 195, 178, .16) 0%, transparent 58%),
    linear-gradient(160deg, #0a1824 0%, #0d2233 55%, #102b3d 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-lg);
  color: #eef4f8;
}

.outlook-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.outlook-series {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

.outlook-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8fb3c4;
}

.outlook-sub {
  font-size: .82rem;
  color: #9dbccd;
  margin: 0 0 14px;
}

.outlook-chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.outlook-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .78rem;
  color: #9dbccd;
}

.outlook-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.outlook-legend i {
  width: 15px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

.lg-95 { background: rgba(47, 195, 178, .16); border: 1px solid rgba(47, 195, 178, .3); }
.lg-80 { background: rgba(47, 195, 178, .34); }
.lg-hist { background: none; border-top: 2px solid #cfe6ef; height: 0; border-radius: 0; }

.outlook-foot {
  margin: 13px 0 0;
  font-size: .76rem;
  line-height: 1.55;
  color: #86a6b8;
}

.band-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 18px;
}

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

.band-fig {
  background: rgba(8, 20, 31, .6);
  padding: 14px 16px;
}

.band-fig small {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #86a6b8;
  margin-bottom: 5px;
}

.band-fig b {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.band-fig span {
  display: block;
  font-size: .76rem;
  color: #9dbccd;
  margin-top: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .node-pulse { animation: nodeGlow 3.2s ease-in-out infinite; transform-origin: center; }
  .node-pulse:nth-of-type(2) { animation-delay: .8s; }
  .node-pulse:nth-of-type(3) { animation-delay: 1.6s; }
}

@keyframes nodeGlow {
  0%, 100% { opacity: .35; r: 5; }
  50%      { opacity: .05; r: 12; }
}
