/* ============================================================
   RIGEL FINANCE TECHNOLOGIES - styles.css
   ============================================================ */

/* ------------------------------------------------------------
   Design tokens
   ------------------------------------------------------------ */
:root {
  --void:        #000000;
  --deep:        #03030d;
  --surface:     #080814;
  --border:      #13132a;
  --border-2:    #1e1e3a;
  --rigel:       #0d7dff;
  --rigel-dim:   rgba(13, 125, 255, 0.08);
  --rigel-glow:  rgba(13, 125, 255, 0.25);
  --white:       #ffffff;
  --text:        #c2c8d8;
  --muted:       #7d8496;     /* 5.3:1+ on all backgrounds - WCAG AA */
  --green:       #22c55e;
  --gold:        #f59e0b;
  --red:         #ef4444;

  --font-display: "Gloock", Georgia, serif;
  --font-body:    "Schibsted Grotesk", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;

  --nav-height: 68px;
}

/* ------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400; /* Gloock ships a single weight - contrast comes from the face itself */
  letter-spacing: -0.01em;
  line-height: 1.06;
  color: var(--white);
}

h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  margin-bottom: 28px;
  max-width: 16em;
}

h3 {
  font-size: 21px;
}

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

img, svg, canvas {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  position: relative;
  padding: 130px 0;
}

.section--void { background: var(--void); }
.section--deep { background: var(--deep); }

/* WebGL shader backgrounds ([data-shader] sections); content sits above */
.shader-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

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

/* Eyebrow labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rigel);
  margin-bottom: 22px;
}

.prose p + p {
  margin-top: 20px;
}

.prose em {
  font-style: italic;
  color: var(--white);
}

.section-sub {
  color: var(--muted);
  max-width: 540px;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn--fill {
  background: var(--rigel);
  color: var(--void);
}

.btn--fill:hover {
  background: #3f97ff;
  box-shadow: 0 0 24px var(--rigel-glow);
}

.btn--ghost {
  border-color: var(--border-2);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--rigel);
  background: var(--rigel-dim);
}

.btn__arrow {
  font-family: var(--font-body);
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ------------------------------------------------------------
   Micro-interactions: custom cursor, spotlight, progress line
   ------------------------------------------------------------ */

/* Custom cursor (enabled by JS only for fine pointers) */
.has-cursor,
.has-cursor a,
.has-cursor button {
  cursor: none;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--white);
  transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(13, 125, 255, 0.45);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.cursor--hidden .cursor-dot,
.cursor--hidden .cursor-ring {
  opacity: 0;
}

.cursor--active .cursor-ring {
  width: 46px;
  height: 46px;
  border-color: rgba(13, 125, 255, 0.9);
}

.cursor--active .cursor-dot {
  width: 3px;
  height: 3px;
}

.cursor--press .cursor-ring {
  width: 24px;
  height: 24px;
  border-color: var(--white);
}

/* Cursor-tracked spotlight on cards */
.feature,
.brand-card,
.stack-card {
  position: relative;
  overflow: hidden;
}

.feature::after,
.brand-card::after,
.stack-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(13, 125, 255, 0.07), transparent 65%);
  transition: opacity 0.3s ease;
}

.feature:hover::after,
.brand-card:hover::after,
.stack-card:hover::after {
  opacity: 1;
}

/* Scroll-progress indicator beneath the nav */
.scroll-progress {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rigel);
  box-shadow: 0 0 8px var(--rigel-glow);
  opacity: 0.9;
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 99;
  pointer-events: none;
}

/* Status dots breathe slowly */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ------------------------------------------------------------
   Section 1 - Navigation
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav__inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logomark {
  width: 16px;
  height: 23px;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.12em;
  color: var(--white);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav__links a {
  color: var(--text);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--white);
}

/* Hairline underline slides in from the left, retreats to the right */
.nav__links a:not(.nav__cta) {
  position: relative;
}

.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--rigel);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.25s ease;
}

.nav__links a:not(.nav__cta):hover::after,
.nav__links a:not(.nav__cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.nav__links .nav__cta {
  background: var(--rigel);
  color: var(--void);
  padding: 9px 18px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav__links .nav__cta:hover {
  color: var(--void);
  background: #3f97ff;
  box-shadow: 0 0 18px var(--rigel-glow);
}

/* Mobile menu toggle - hidden on desktop */
.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: -10px;
}

.nav__toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child  { top: 25px; }

.nav--open .nav__toggle span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.nav--open .nav__toggle span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile menu panel */
.nav__menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0 18px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav__menu a {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  padding: 14px 32px;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav__menu a:hover,
.nav__menu a:focus-visible {
  color: var(--white);
  border-left-color: var(--rigel);
}

.nav--open .nav__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ------------------------------------------------------------
   Section 2 - Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--void);
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Layer 1 - radial gradient behind the constellation */
.hero__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 66% 45%, rgba(13, 125, 255, 0.04), transparent 70%);
  pointer-events: none;
}

/* Layer 2 - Three.js canvas, right two-thirds */
.hero__canvas-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 66.666%;
  height: 100%;
  pointer-events: none;
}

.hero__canvas-wrap canvas {
  width: 100%;
  height: 100%;
}

.star-tooltip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text);
  background: rgba(3, 3, 13, 0.85);
  border: 1px solid var(--border-2);
  padding: 7px 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.star-tooltip.is-visible {
  opacity: 1;
}

/* Layer 3 - hero text */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 32px;
}

.hero__title {
  font-size: clamp(48px, 6.6vw, 92px);
  margin-bottom: 30px;
}

.hero__sub {
  font-size: 18px;
  color: var(--text);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero__stats span {
  padding: 0 22px;
  border-left: 1px solid var(--border-2);
}

.hero__stats span:first-child {
  padding-left: 0;
  border-left: none;
}

/* ------------------------------------------------------------
   Section 3 - What is Rigel
   ------------------------------------------------------------ */
.infrastructure__grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 80px;
  align-items: start;
}

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

.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--rigel);
  padding: 26px 28px;
}

.stack-card__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--rigel);
  margin-bottom: 12px;
}

.stack-card h3 {
  margin-bottom: 10px;
}

.stack-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Section 4 - Brand story
   ------------------------------------------------------------ */
.story__grid {
  display: grid;
  grid-template-columns: 54fr 46fr;
  gap: 70px;
  align-items: center;
}

.story__text .prose p {
  font-size: 15.5px;
}

.story__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--rigel);
  padding: 9px 14px;
  white-space: nowrap;
}

.story__canvas-wrap {
  position: relative;
  height: 640px;
  border: 1px solid var(--border);
  background: var(--void);
  overflow: hidden;
}

.story__canvas-wrap canvas {
  width: 100%;
  height: 100%;
}

/* Rigel is the only labelled star - mono, Rigel blue, 11px */
.story__star-label {
  position: absolute;
  left: 24px;
  bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--rigel);
}

/* ------------------------------------------------------------
   Section 5 - Orion platform
   ------------------------------------------------------------ */
.platform__head {
  margin-bottom: 64px;
}

/* Orion interface mock */
.orion-mock {
  margin-bottom: 72px;
}

.orion-mock__frame {
  background: var(--surface);
  border: 1px solid var(--border-2);
}

.orion-mock__titlebar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.orion-mock__dots {
  display: flex;
  gap: 6px;
}

.orion-mock__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-2);
}

.orion-mock__app {
  color: var(--text);
}

.orion-mock__live {
  margin-left: auto;
  color: var(--green);
}

.orion-mock__live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  vertical-align: 1px;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.orion-mock__body {
  display: grid;
  grid-template-columns: 320px 1fr;
}

.orion-mock__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rigel);
  margin-bottom: 20px;
}

.orion-mock__deal {
  padding: 26px 24px;
  border-right: 1px solid var(--border);
}

.orion-mock__dealname {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}

.orion-mock__facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
}

.orion-mock__facts span:first-child {
  color: var(--muted);
  letter-spacing: 0.12em;
}

.orion-mock__facts span:last-child {
  color: var(--text);
  text-align: right;
}

.orion-mock__pack {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.06);
  padding: 9px 12px;
}

.orion-mock__matches {
  padding: 26px 24px;
}

.orion-mock__row {
  display: grid;
  grid-template-columns: 170px 1fr 34px 110px;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
}

.orion-mock__row:last-child {
  border-bottom: none;
}

.orion-mock__lender {
  color: var(--text);
}

.orion-mock__meter {
  position: relative;
  height: 3px;
  background: var(--border);
  overflow: hidden;
}

.orion-mock__meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--score);
  background: var(--rigel);
  transform-origin: 0 50%;
}

.orion-mock__score {
  color: var(--white);
  text-align: right;
}

.orion-mock__state {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-align: right;
}

.orion-mock__state--sent { color: var(--green); }
.orion-mock__state--review { color: var(--gold); }
.orion-mock__state--declined { color: var(--red); }

.orion-mock__caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

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

.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  padding: 34px 30px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-left-color: var(--rigel);
  box-shadow: 0 8px 32px rgba(13, 125, 255, 0.12);
}

.feature__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted);
  border: 1px solid var(--border-2);
  padding: 4px 9px;
  margin-bottom: 24px;
}

.feature__badge--new {
  color: var(--rigel);
  border-color: rgba(13, 125, 255, 0.35);
  background: var(--rigel-dim);
}

.feature__badge--live {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}

.feature__badge--gold {
  color: var(--gold);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}

.feature__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
}

.feature h3 {
  margin-bottom: 12px;
}

.feature p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Section 6 - Partners (brands built on Rigel)
   ------------------------------------------------------------ */
.partners__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  padding: 40px 32px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-2px);
  border-left-color: var(--rigel);
  box-shadow: 0 8px 32px rgba(13, 125, 255, 0.12);
}

.brand-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--rigel);
  margin-bottom: 18px;
}

.brand-card__name {
  font-size: 30px;
  margin-bottom: 16px;
}

.brand-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 26px;
}

.brand-card__status {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.brand-card__status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: 1px;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.brand-card__status--live {
  color: var(--green);
}

.brand-card__status--live::before {
  background: var(--green);
}

.brand-card__status--open {
  color: var(--rigel);
}

.brand-card__status--open::before {
  background: var(--rigel);
}

/* ------------------------------------------------------------
   Section 7 - For lenders
   ------------------------------------------------------------ */
.lenders__cta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 56px;
}

.lenders__note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Section 8 - The market (stats)
   ------------------------------------------------------------ */
.stats {
  padding: 110px 0 130px;
}

.market__head {
  margin-bottom: 72px;
}

/* ------------------------------------------------------------
   Section 7 - The trajectory
   ------------------------------------------------------------ */
.trajectory__prose {
  max-width: 720px;
}

.trajectory .story__pills {
  margin-top: 40px;
}

.pill--live {
  border-left-color: var(--green);
  color: var(--white);
}

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

.stat {
  padding: 10px 36px;
  border-left: 1px solid var(--border-2);
}

.stat:first-child {
  border-left: none;
  padding-left: 0;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: -0.01em;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 16px;
}

.stat__prefix,
.stat__suffix {
  font-size: 0.62em;
}

.stat__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: var(--muted);
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Section 9 - CTA
   ------------------------------------------------------------ */
.cta {
  overflow: hidden;
  text-align: center;
  padding: 170px 0;
}

.cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 42% 55% at 50% 55%, rgba(13, 125, 255, 0.07), transparent 70%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
}

.cta__inner h2 {
  margin-left: auto;
  margin-right: auto;
}

.cta__body {
  max-width: 560px;
  margin: 0 auto 44px;
  color: var(--text);
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Section 10 - Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--void);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 70px;
}

.footer__brand p {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 300px;
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}

.footer__col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer__col a:hover {
  color: var(--rigel);
  transform: translateX(3px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer__tagline {
  color: var(--rigel);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .infrastructure__grid,
  .story__grid {
    gap: 56px;
  }

  .stats__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 60px;
  }

  .stat:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 90px 0;
  }

  .nav__links a:not(.nav__cta) {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    margin-left: auto;
  }

  .nav__menu {
    display: block;
  }

  .nav__inner {
    gap: 14px;
  }

  .hero__canvas-wrap {
    width: 100%;
    opacity: 0.45;
  }

  .hero__gradient {
    background: radial-gradient(ellipse 80% 55% at 50% 40%, rgba(13, 125, 255, 0.04), transparent 70%);
  }

  .hero__title {
    font-size: clamp(42px, 11vw, 56px);
  }

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

  .hero__stats span:nth-child(odd) {
    padding-left: 0;
    border-left: none;
  }

  .infrastructure__grid,
  .story__grid {
    grid-template-columns: 1fr;
  }

  .story__canvas-wrap {
    height: 420px;
  }

  .platform__grid,
  .partners__grid {
    grid-template-columns: 1fr;
  }

  .stats__row {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .stat {
    border-left: none;
    padding-left: 0;
  }

  /* Orion mock stacks; matching rows rewrap with the meter full-width */
  .orion-mock__body {
    grid-template-columns: 1fr;
  }

  .orion-mock__deal {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .orion-mock__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }

  .orion-mock__lender {
    flex: 1 1 auto;
  }

  .orion-mock__meter {
    order: 4;
    flex-basis: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }
}

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

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
