/* =====================================================================
   Oranetix Design System v3 — White + Subtle Blue, Editorial, Minimalist
   ===================================================================== */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-2: #f7f8fb;
  --bg-3: #eef1f7;
  --bg-brand: #f3f6ff;
  --bg-dark: #07101f;
  --bg-dark-2: #0d1a32;

  /* Lines */
  --line: rgba(10,14,30,0.07);
  --line-2: rgba(10,14,30,0.14);
  --line-strong: rgba(10,14,30,0.28);
  --line-on-dark: rgba(255,255,255,0.10);

  /* Ink */
  --ink: #0a0e1c;
  --ink-2: #1a2240;
  --ink-dim: #4a5577;
  --muted: #8893ad;
  --on-dark: #f5f7ff;
  --on-dark-dim: #a8b3d1;

  /* Blue accent — subtle, sophisticated */
  --brand: #4cb537;
  --brand-2: #2d7c1f;
  --brand-3: #6dc63f;
  --brand-soft: #ecf8e7;
  --brand-tint: #f4fbf0;
  --brand-grad: linear-gradient(135deg, #6dc63f 0%, #2d7c1f 100%);
  
  
  
  

  /* Status */
  --green: #10b981;
  --orange: #ff7a18;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10,14,30,0.04);
  --shadow: 0 8px 24px rgba(10,14,30,0.06), 0 2px 6px rgba(10,14,30,0.04);
  --shadow-lg: 0 30px 70px rgba(10,14,30,0.10);
  --shadow-xl: 0 50px 120px rgba(10,14,30,0.14);

  /* Radii */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Layout */
  --max: 1440px;
  --max-narrow: 1180px;
  --max-wide: 1620px;

  /* Type */
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01" 1, "cv11" 1;
}
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

.container { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.container-narrow { width: min(var(--max-narrow), calc(100% - 48px)); margin-inline: auto; }
.container-wide { width: min(var(--max-wide), calc(100% - 32px)); margin-inline: auto; }

/* =====================  TYPE  ===================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ink);
}

.h-mega { font-size: clamp(64px, 11.5vw, 232px); letter-spacing: -0.055em; line-height: 0.86; font-weight: 500; }
.h-xxl  { font-size: clamp(54px, 9vw, 168px);  letter-spacing: -0.05em;  line-height: 0.9;  font-weight: 500; }
.h-xl   { font-size: clamp(44px, 6.5vw, 116px);letter-spacing: -0.045em; line-height: 0.92; font-weight: 500; }
.h-lg   { font-size: clamp(36px, 4.6vw, 80px); letter-spacing: -0.04em;  line-height: 0.95; font-weight: 500; }
.h-md   { font-size: clamp(28px, 3vw, 48px);  letter-spacing: -0.03em;  line-height: 1;    font-weight: 500; }
.h-sm   { font-size: clamp(22px, 2vw, 32px);  letter-spacing: -0.025em; font-weight: 500; }

.body-lg { font-size: 20px; line-height: 1.55; color: var(--ink-dim); font-weight: 400; }
.body    { font-size: 16px; line-height: 1.6;  color: var(--ink-dim); font-weight: 400; }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--ink-dim); font-weight: 400; }
.lede    { font-size: 24px; line-height: 1.4;  color: var(--ink-2);   font-weight: 400; letter-spacing: -0.015em; }

.serif    { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.text-brand{ color: var(--brand); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* =====================  BUTTONS  ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .3s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  font-family: var(--font-body);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-2); transform: translateY(-1px); }

.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-on-dark { border-color: rgba(255,255,255,0.25); color: #fff; }
.btn-on-dark:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

.btn .arr {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 11px;
  background: rgba(255,255,255,0.18);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.btn-ghost .arr, .btn-light .arr { background: var(--brand); color: #fff; }
.btn:hover .arr { transform: translate(3px, -3px); }

/* =====================  HEADER  ===================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 0;
  transition: padding .35s ease, background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
  padding: 14px 0;
}
.site-header.over-dark:not(.scrolled) .nav-links > li > a { color: rgba(255,255,255,0.78); }
.site-header.over-dark:not(.scrolled) .nav-links > li > a:hover,
.site-header.over-dark:not(.scrolled) .nav-links > li.active > a { color: #fff; }
.site-header.over-dark:not(.scrolled) .brand { color: #fff; }
.site-header.over-dark:not(.scrolled) .brand-mark { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.site-header.over-dark:not(.scrolled) .brand-mark .b-dot { background: #fff; }
.site-header.over-dark:not(.scrolled) .locale { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.2); }
.site-header.over-dark:not(.scrolled) .btn-primary { background: #fff; color: var(--ink); }
.site-header.over-dark:not(.scrolled) .btn-primary .arr { background: var(--brand); color: #fff; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  position: relative;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.035em;
  color: var(--ink);
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink);
  border: 1px solid transparent;
  display: grid; place-items: center;
  position: relative;
  transition: background .3s, border-color .3s;
}
.brand-mark .b-ring { width: 18px; height: 18px; border: 1.5px solid var(--brand); border-radius: 50%; position: absolute; }
.brand-mark .b-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); position: relative; z-index: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 5px;
  font-family: var(--font-mono);
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: static; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-dim);
  border-radius: 8px;
  transition: color .25s ease;
}
.nav-links > li > a:hover, .nav-links > li.active > a { color: var(--ink); }
.nav-links .caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); }

.megamenu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(1080px, 92vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: var(--shadow-xl);
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 24px;
}
/* Invisible bridge so the cursor stays "hovered" while crossing the gap */
.megamenu::before {
  content: "";
  position: absolute;
  top: -20px; left: 0; right: 0;
  height: 22px;
  pointer-events: auto;
  background: transparent;
}
/* Keep hover state while pointer is inside the trigger OR the menu */
.nav-links > li > a { padding-bottom: 16px; margin-bottom: -6px; }
.nav-links > li:hover .megamenu,
.nav-links > li:focus-within .megamenu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.megamenu .mega-feature {
  background: var(--bg-brand);
  border: 1px solid var(--brand-soft);
  border-radius: 16px;
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px;
  position: relative; overflow: hidden;
}
.megamenu .mega-feature .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--brand); text-transform: uppercase; font-weight: 500; }
.megamenu .mega-feature h4 { font-family: var(--font-display); font-size: 22px; line-height: 1.05; letter-spacing: -0.025em; margin-top: 14px; }
.megamenu .mega-feature p { color: var(--ink-dim); font-size: 13px; margin-top: 10px; }
.megamenu .mega-feature .mini-link { color: var(--brand); font-weight: 500; font-size: 13px; margin-top: auto; }
.mega-col h6 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.mega-col a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  transition: color .25s, padding .25s;
  font-weight: 500;
}
.mega-col a:hover { color: var(--brand); padding-left: 6px; }
.mega-col a:last-child { border-bottom: 0; }

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

.locale {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px; color: var(--ink-dim);
  border: 1px solid var(--line);
  font-weight: 500;
}
.locale .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* =====================  SECTIONS  ===================== */
section { position: relative; }
.section { padding: 180px 0; }
.section-tight { padding: 120px 0; }
.section-loose { padding: 220px 0; }

.bg-soft { background: var(--bg-2); }
.bg-brand-tint { background: var(--brand-tint); }
.bg-dark { background: var(--bg-dark); color: var(--on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--on-dark); }
.bg-dark .body, .bg-dark .body-lg, .bg-dark .lede { color: var(--on-dark-dim); }

.section-head {
  margin-bottom: 100px;
  max-width: 980px;
}
.section-head .meta { margin-bottom: 24px; }

/* =====================  FOOTER  ===================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--on-dark);
  padding: 160px 0 40px;
  position: relative;
  overflow: hidden;
}
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 48px; }
.footer-col h6 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand-3); margin-bottom: 22px;
  font-weight: 500;
}
.footer-col a {
  display: block; padding: 8px 0; font-size: 14px; color: rgba(255,255,255,0.65);
  transition: color .25s, padding-left .25s;
}
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-cta { display: flex; flex-direction: column; gap: 18px; }
.footer-cta p { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 320px; }
.footer-cta .brand { color: #fff; }
.footer-cta .brand small { color: rgba(255,255,255,0.5); }
.footer-cta .brand .brand-mark { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); }
.footer-cta .brand .brand-mark .b-dot { background: var(--brand-3); }
.footer-cta .brand .brand-mark .b-ring { border-color: var(--brand-3); }

.footer-bottom {
  margin-top: 100px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.5); font-family: var(--font-mono);
  gap: 24px; flex-wrap: wrap;
}
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12); display: grid; place-items: center;
  color: rgba(255,255,255,0.7); transition: all .25s;
}
.footer-bottom .socials a:hover { border-color: var(--brand-3); color: var(--brand-3); background: rgba(109,198,63,0.08); }

.site-footer .brand-huge-wrap {
  position: relative;
  margin: 80px 0 -40px;
  padding: 0;
  width: 100%;
  left: 0; right: 0;
  line-height: 0;
}
.site-footer .brand-huge-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* =====================  CHIPS / CARDS  ===================== */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  background: #fff;
  font-weight: 500;
}
.chip.on-dark { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.85); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.chip-brand { background: var(--brand-soft); color: var(--brand); border: 0; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* =====================  MARQUEE  ===================== */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track {
  display: flex; gap: 80px;
  animation: marquee 60s linear infinite;
  width: max-content;
  align-items: center;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================  REVEAL (parallax-aware)  ===================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="1"].in { transition-delay: 0.08s; }
[data-reveal][data-delay="2"].in { transition-delay: 0.16s; }
[data-reveal][data-delay="3"].in { transition-delay: 0.24s; }
[data-reveal][data-delay="4"].in { transition-delay: 0.32s; }

/* Parallax containers */
[data-parallax] { will-change: transform; }
.parallax-bg { will-change: transform; }

/* Word reveal */
.split-text { display: inline; }
.split-text .word {
  display: inline-block; overflow: hidden; vertical-align: top;
  margin-right: 0.2em;
}
.split-text .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.split-text.in .word > span { transform: translateY(0); }
.split-text.in .word:nth-child(1) > span { transition-delay: 0.00s; }
.split-text.in .word:nth-child(2) > span { transition-delay: 0.05s; }
.split-text.in .word:nth-child(3) > span { transition-delay: 0.10s; }
.split-text.in .word:nth-child(4) > span { transition-delay: 0.15s; }
.split-text.in .word:nth-child(5) > span { transition-delay: 0.20s; }
.split-text.in .word:nth-child(6) > span { transition-delay: 0.25s; }
.split-text.in .word:nth-child(7) > span { transition-delay: 0.30s; }
.split-text.in .word:nth-child(8) > span { transition-delay: 0.35s; }

/* =====================  PAGE HERO  ===================== */
.page-hero {
  position: relative;
  padding: 240px 0 140px;
  overflow: hidden;
}
.page-hero h1 { max-width: 1300px; }
.page-hero .body-lg { max-width: 760px; margin-top: 40px; }
.page-hero .crumbs {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-dim); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 40px;
  font-weight: 500;
}
.page-hero .crumbs span { color: var(--muted); }
.page-hero.dark { background: var(--bg-dark); color: var(--on-dark); }
.page-hero.dark h1 { color: #fff; }
.page-hero.dark .body-lg { color: var(--on-dark-dim); }
.page-hero.dark .crumbs { color: var(--on-dark-dim); }

/* ==== WALLET STACK ==== */
.stack-section { padding: 200px 0; position: relative; }
.stack-section .stack-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.stack-section h2 { font-size: clamp(48px, 7vw, 128px); letter-spacing: -0.05em; line-height: 0.92; font-weight: 500; }
.stack-section h2 .serif { color: var(--brand-2); }
@media (max-width: 900px){ .stack-section .stack-head { grid-template-columns: 1fr; gap: 32px; } }

.stack-list { display: flex; flex-direction: column; padding-bottom: 80px; }
.stack-card {
  position: sticky;
  border-radius: 28px;
  padding: 64px;
  min-height: 460px;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  transform-origin: center top;
  will-change: transform;
  transition: box-shadow .3s;
  border: 1px solid transparent;
}
.stack-card .sc-peek {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  display: none;
  align-items: center; justify-content: space-between;
  padding: 0 64px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  pointer-events: none;
}
.stack-card .sc-peek .lhs { display: inline-flex; align-items: center; gap: 8px; }
.stack-card .sc-peek .lhs .pip { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stack-card .sc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.stack-card h3 {
  font-size: clamp(36px, 4.6vw, 76px);
  letter-spacing: -0.045em;
  line-height: 0.96;
  font-weight: 500;
  margin: 20px 0 0;
}
.stack-card h3 .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.stack-card .sc-desc {
  margin-top: 32px;
  font-size: 18px;
  line-height: 1.5;
  max-width: 560px;
}
.stack-card .sc-bullets {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 36px;
}
.stack-card .sc-bullets li {
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.stack-card .sc-aside {
  font-family: var(--font-display);
  font-size: clamp(80px, 9vw, 168px);
  letter-spacing: -0.05em;
  line-height: 0.85;
  font-weight: 500;
  text-align: right;
  opacity: 0.9;
}
.stack-card .sc-aside em { font-style: normal; }
.stack-card .sc-aside .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 20px;
}

/* Light variant */
.stack-card.light { background: #fff; border-color: var(--line); box-shadow: 0 30px 60px rgba(10,14,30,0.08); }
.stack-card.light .sc-num { color: var(--brand); }
.stack-card.light h3 { color: var(--ink); }
.stack-card.light h3 .serif { color: var(--brand-2); }
.stack-card.light .sc-desc { color: var(--ink-dim); }
.stack-card.light .sc-bullets li { background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }
.stack-card.light .sc-aside { color: var(--brand-2); }
.stack-card.light .sc-aside .sub { color: var(--ink-dim); }

/* Dark variant */
.stack-card.dark { background: var(--ink); color: #fff; border-color: rgba(255,255,255,0.06); box-shadow: 0 30px 70px rgba(10,14,30,0.4); position: sticky; overflow: hidden; }
.stack-card.dark::after { content: ""; position: absolute; bottom: -40%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(76,181,55,0.18), transparent 60%); filter: blur(60px); pointer-events: none; }
.stack-card.dark > * { position: relative; z-index: 1; }
.stack-card.dark .sc-num { color: var(--brand-3); }
.stack-card.dark h3 { color: #fff; }
.stack-card.dark h3 .serif { color: var(--brand-3); }
.stack-card.dark .sc-desc { color: rgba(255,255,255,0.75); }
.stack-card.dark .sc-bullets li { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.1); }
.stack-card.dark .sc-aside { color: var(--brand-3); }
.stack-card.dark .sc-aside .sub { color: rgba(255,255,255,0.6); }

/* Brand variant — green */
.stack-card.brand { background: var(--brand-grad); color: #fff; box-shadow: 0 30px 70px rgba(76,181,55,0.35); position: sticky; overflow: hidden; }
.stack-card.brand::after { content: ""; position: absolute; top: -20%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 60%); pointer-events: none; }
.stack-card.brand > * { position: relative; z-index: 1; }
.stack-card.brand .sc-num { color: rgba(255,255,255,0.9); }
.stack-card.brand h3 { color: #fff; }
.stack-card.brand h3 .serif { color: #fff; }
.stack-card.brand .sc-desc { color: rgba(255,255,255,0.92); }
.stack-card.brand .sc-bullets li { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.stack-card.brand .sc-aside { color: rgba(255,255,255,0.92); }
.stack-card.brand .sc-aside .sub { color: rgba(255,255,255,0.85); }

@media (max-width: 900px) {
  .stack-card { padding: 40px 28px; grid-template-columns: 1fr; min-height: 380px; gap: 24px; }
  .stack-card .sc-aside { text-align: left; font-size: clamp(48px, 14vw, 80px); }
}
.divider-on-dark { height: 1px; background: rgba(255,255,255,0.08); }

/* 3D perspective for parallax tilt */
[data-parallax-3d], [data-parallax-rotate] { transform-style: preserve-3d; }
.perspective { perspective: 2000px; }
.perspective-near { perspective: 1200px; }
section.perspective, section.perspective-near { perspective-origin: center center; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.35); }
}
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

/* =====================  HAMBURGER / MOBILE NAV  ===================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 7px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header.over-dark:not(.scrolled) .nav-toggle span { background: rgba(255,255,255,0.85); }

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(10,14,30,0.08);
  background: #fff;
}
.site-header.over-dark:not(.scrolled) .mobile-menu { background: rgba(7,16,31,0.96); border-top-color: rgba(255,255,255,0.1); }
.mobile-menu.open { display: block; }
.mobile-menu .mob-inner {
  padding: 12px 0 24px;
}
.mobile-menu .mob-links a {
  display: block;
  padding: 13px 0;
  font-size: 17px; font-weight: 500;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
  transition: color .2s, padding-left .2s;
}
.site-header.over-dark:not(.scrolled) .mobile-menu .mob-links a { color: var(--on-dark); border-bottom-color: rgba(255,255,255,0.09); }
.mobile-menu .mob-links a:last-child { border-bottom: 0; }
.mobile-menu .mob-links a:hover { color: var(--brand); padding-left: 4px; }
.mobile-menu .mob-cta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

/* =====================  MOBILE  ===================== */
@media (max-width: 1200px) {
  .nav-links, .nav-actions .locale { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .container { width: min(var(--max), calc(100% - 32px)); }
  .section { padding: 110px 0; }
  .section-tight { padding: 80px 0; }
  .section-loose { padding: 140px 0; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section-tight { padding: 56px 0; }
  .section-loose { padding: 96px 0; }
  /* Disable parallax transforms on mobile so cards stay visible */
  [data-parallax-rotate], [data-parallax-3d], [data-parallax] {
    transform: none !important;
    will-change: auto;
  }
}
