/* Majinx Capital — landing styles */

:root {
  --bg: #f3f6f4;
  --panel: #ffffff;
  --tint: #e6f3ee;
  --ink: #12171a;
  --muted: #5b646b;
  --line: rgba(10, 30, 40, 0.1);
  --accent: #1d9a7a;
  --accent-ink: #14735b;
  --mint: #7fd9bf;
  --lime: #e2ff3d;
  --dark: #0d1315;
  --dark-panel: #151d20;
  --dark-line: rgba(200, 240, 225, 0.14);
  --dark-muted: #9fb0ad;

  /* Theme-dependent surfaces and the primary button. */
  --fixed-ink: #12171a;
  --text-2: #2c363b;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --glass-stuck: rgba(255, 255, 255, 0.82);
  --hi: #fff;
  --hover-bg: rgba(10, 30, 40, 0.05);
  --btn1: linear-gradient(135deg, #222c30, #0d1315);
  --btn1-fg: #fff;
  --btn1-hi: rgba(255, 255, 255, 0.22);
  --btn1-glow: rgba(29, 154, 122, 0.2);
  --btn1-glow-hover: rgba(29, 154, 122, 0.42);
  color-scheme: light;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --shadow: 0 1px 2px rgba(13, 19, 21, 0.04), 0 12px 32px -12px rgba(13, 19, 21, 0.12);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Dark theme: set by the inline script in <head> (saved choice, else the system setting). */
:root[data-theme='dark'] {
  --bg: #0a0f11;
  --panel: #141b1e;
  --tint: #0f1d19;
  --ink: #eef3f1;
  --muted: #9fb0ad;
  --line: rgba(200, 240, 225, 0.14);
  --accent-ink: #7fd9bf;
  --dark: #151e21;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --text-2: #c5d2ce;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(18, 25, 28, 0.78);
  --glass-stuck: rgba(14, 20, 22, 0.86);
  --hi: rgba(255, 255, 255, 0.14);
  --hover-bg: rgba(255, 255, 255, 0.06);
  --btn1: linear-gradient(135deg, #edff72, #d3f01c);
  --btn1-fg: #12171a;
  --btn1-hi: rgba(255, 255, 255, 0.6);
  --btn1-glow: rgba(226, 255, 61, 0.2);
  --btn1-glow-hover: rgba(226, 255, 61, 0.42);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.4vw, 54px); }
h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; }
mark {
  background: var(--lime);
  color: var(--fixed-ink);
  padding: 0 0.18em;
  border-radius: 0.22em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fixed-ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent-ink); margin-bottom: 14px; }
.kicker--pad { margin: 56px 0 0; }
.num { font-size: 14px; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; padding: 7px 14px 7px 12px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(8px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(29, 154, 122, 0.18); }

/* Buttons: pill with an inner top highlight and a soft glow; lift on hover, press on active. */
.btn { --ease: cubic-bezier(0.22, 1, 0.36, 1); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px; white-space: nowrap; cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s ease, filter 0.3s ease, border-color 0.3s ease, background-color 0.3s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.985); filter: brightness(0.98); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--btn1); color: var(--btn1-fg); box-shadow: inset 0 1px var(--btn1-hi), 0 0 22px var(--btn1-glow); }
.btn--dark:hover { filter: brightness(1.12); box-shadow: inset 0 1px var(--btn1-hi), 0 0 32px var(--btn1-glow-hover); }
.btn--lime { background: linear-gradient(135deg, #edff72, #d3f01c); color: var(--fixed-ink); box-shadow: inset 0 1px rgba(255, 255, 255, 0.6), 0 0 22px rgba(226, 255, 61, 0.22); }
.btn--lime:hover { filter: brightness(1.06); box-shadow: inset 0 1px rgba(255, 255, 255, 0.7), 0 0 32px rgba(226, 255, 61, 0.45); }
.btn--glass { background: rgba(23, 31, 34, 0.5); border-color: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: inset 0 1px rgba(255, 255, 255, 0.08); backdrop-filter: blur(12px) saturate(1.3); }
.btn--glass:hover { border-color: rgba(127, 217, 191, 0.5); background: rgba(31, 42, 46, 0.72); }
.btn--light, .btn--ghost { background: var(--glass); border-color: var(--line); box-shadow: inset 0 1px var(--hi); }
.btn--light:hover, .btn--ghost:hover { border-color: rgba(29, 154, 122, 0.5); background: var(--panel); }

/* Header: glass pill, wider than the content at the top of the page; once scrolled it
   narrows to the content width and gains an accent hairline. */
.hdr { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.hdr__bar { position: relative; pointer-events: auto; max-width: calc(var(--wrap) + 120px); min-height: 62px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; background: var(--glass-strong); border: 1px solid var(--line); border-radius: 999px; box-shadow: inset 0 1px var(--hi), 0 14px 40px -22px rgba(13, 19, 21, 0.35); backdrop-filter: blur(18px) saturate(1.5); transition: max-width 0.6s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.5s ease, box-shadow 0.5s ease; }
.hdr__bar::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(100deg, transparent 12%, rgba(29, 154, 122, 0.25) 28%, rgba(29, 154, 122, 0.85) 50%, rgba(127, 217, 191, 0.35) 68%, transparent 88%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.hdr.is-stuck .hdr__bar { max-width: var(--wrap); background: var(--glass-stuck); box-shadow: inset 0 1px var(--hi), 0 18px 50px -18px rgba(13, 19, 21, 0.4), 0 8px 32px -14px rgba(29, 154, 122, 0.45); backdrop-filter: blur(26px) saturate(1.6); }
.hdr.is-stuck .hdr__bar::after { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
.brand img { height: 22px; width: auto; }
.brand__logo--light { display: none; }
[data-theme='dark'] .brand__logo--dark { display: none; }
[data-theme='dark'] .brand__logo--light { display: block; }
.theme { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color 0.25s ease, background-color 0.25s ease; }
.theme:hover { color: var(--ink); background: var(--hover-bg); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme__sun, [data-theme='dark'] .theme__moon { display: none; }
[data-theme='dark'] .theme__sun { display: block; }
.brand__sub { font-size: 14px; color: var(--muted); letter-spacing: 0.01em; padding-top: 3px; }
.hdr__actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.hdr__cta-short { display: none; }

.menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.menu a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color 0.25s ease; }
.menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 999px; background: var(--accent); opacity: 0; transform: scaleX(0.4); transition: opacity 0.25s ease, transform 0.25s ease; }
.menu a:hover { color: var(--ink); }
.menu a[aria-current='page'] { color: var(--ink); font-weight: 600; }
.menu a[aria-current='page']::after { opacity: 0.9; transform: scaleX(1); }

/* Narrow screens: the menu collapses into a switcher that names the current page. */
.pagesw, .pagemenu { display: none; }
.pagesw { align-items: center; gap: 6px; min-height: 44px; padding: 0 4px 0 14px; border: 0; border-left: 1px solid var(--line); background: none; font-size: 14px; font-weight: 600; color: var(--accent-ink); cursor: pointer; white-space: nowrap; }
.pagesw svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.pagesw[aria-expanded='true'] svg { transform: rotate(180deg); }
.pagemenu { position: absolute; top: calc(100% + 10px); left: 0; right: 0; max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -24px rgba(13, 19, 21, 0.45); visibility: hidden; opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: top center; transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.3s; }
.pagemenu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.pagemenu a, .pagemenu button { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 10px 14px; border-radius: 13px; font-size: 15px; font-weight: 600; color: var(--muted); transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease; }
.pagemenu a:hover, .pagemenu button:hover { color: var(--ink); background: var(--hover-bg); }
.pagemenu a:active { transform: scale(0.985); }
.pagemenu a[aria-current] { color: var(--ink); background: var(--tint); }
.pagemenu i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(29, 154, 122, 0.6); opacity: 0; transform: scale(0.65); }
.pagemenu a[aria-current] i { opacity: 1; transform: scale(1); }
.pagemenu__extra::before { content: ''; display: block; height: 1px; margin: 8px 14px; background: var(--line); }
.pagemenu__extra a, .pagemenu__extra button { min-height: 44px; font-weight: 500; }
.pagemenu button { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; }
.pagemenu button[aria-pressed='true'] { color: var(--ink); }
.pagemenu button[aria-pressed='true'] i { opacity: 1; transform: scale(1); }

.lang { display: flex; padding: 3px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.lang a { padding: 6px 9px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current='true'] { color: var(--ink); background: var(--hover-bg); }

/* Hero */
.hero { position: relative; margin-top: -76px; padding: clamp(132px, 15vw, 184px) 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(40px, 6.2vw, 78px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 24px 0 22px; }
.hero__title--page { max-width: 18ch; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.8); }
.chips li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

.hero__visual { position: relative; }
/* The browser mock-up stays light in both themes: it frames a light screenshot. */
.frame { --muted: #5b646b; --line: rgba(10, 30, 40, 0.1); color: var(--fixed-ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 2px 4px rgba(13, 19, 21, 0.04), 0 40px 80px -32px rgba(13, 50, 40, 0.35); overflow: hidden; }
.frame--hero { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; width: 122%; }
.frame__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #f7f9f8; }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5dcd9; }
.frame__bar span { margin-left: 10px; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.frame img { width: 100%; }
.frame figcaption { padding: 12px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.frame__stack { display: grid; }
.frame__stack img { grid-area: 1 / 1; opacity: 0; transition: opacity 0.4s; }
.frame__stack img.is-active { opacity: 1; }

.float { position: absolute; display: grid; gap: 2px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.float__label { font-size: 12px; font-weight: 600; color: var(--muted); }
.float__value { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.float__value small { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.float--b { right: -8px; top: -26px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 104px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.stats__item { display: flex; flex-direction: column-reverse; gap: 4px; padding: clamp(20px, 3vw, 36px); }
.stats__item + .stats__item { border-left: 1px solid var(--line); }
.stats dd { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--accent-ink); }
.stats dt { font-size: 15px; color: var(--muted); }

/* Full-screen product hero: night sky with a WebGL aurora (see aurora.js). */
.hero--full { isolation: isolate; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: 112px 0 28px; background: #0d1315; color: #fff; overflow: hidden; }
.hero--full .hero__grid { flex: 1 0 auto; padding-top: 16px; padding-bottom: 44px; }
/* The gradient below is the static fallback shown until (or instead of) the canvas. */
.hero__aurora { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(55% 45% at 72% 30%, rgba(127, 217, 191, 0.42) 0%, rgba(127, 217, 191, 0) 70%),
    radial-gradient(40% 30% at 48% 46%, rgba(226, 255, 61, 0.2) 0%, rgba(226, 255, 61, 0) 70%),
    radial-gradient(60% 50% at 95% 8%, rgba(29, 154, 122, 0.45) 0%, rgba(29, 154, 122, 0) 70%),
    #0d1315;
}
.hero__aurora canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.hero__aurora canvas.is-on { opacity: 1; animation: hero-settle 2.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes hero-settle { from { transform: scale(1.12); } to { transform: none; } }
/* Keeps the copy readable over the brightest parts of the sky. */
.hero__aurora::after { content: ''; position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(13, 19, 21, 0.6) 0%, rgba(13, 19, 21, 0.22) 45%, rgba(13, 19, 21, 0) 70%),
    linear-gradient(0deg, rgba(13, 19, 21, 0.7) 0%, rgba(13, 19, 21, 0) 26%);
}
.hero--full .hero__title { font-size: clamp(36px, min(4.8vw, 7.6vh), 68px); }
.hero--full .hero__cta { margin-top: 28px; }
.hero--full .chips { margin-top: 24px; }
.hero--full .hero__lead { color: #cdd9d5; }
.hero--full .eyebrow { background: rgba(255, 255, 255, 0.08); border-color: var(--dark-line); }
.hero--full .dot { background: var(--lime); box-shadow: 0 0 0 4px rgba(226, 255, 61, 0.18); }
.hero--full .chips li { background: rgba(255, 255, 255, 0.07); border-color: var(--dark-line); }
.hero--full .chips li::before { background: var(--mint); }
.hero--full .frame { border-color: transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 90px -30px rgba(0, 0, 0, 0.75); }
.hero--full .float { color: var(--ink); }
.hero--full .stats { margin-top: 0; background: rgba(255, 255, 255, 0.06); border-color: var(--dark-line); border-radius: var(--r-md); box-shadow: none; backdrop-filter: blur(14px); }
.hero--full .stats__item { padding: clamp(14px, 2vw, 22px) clamp(20px, 3vw, 36px); }
.hero--full .stats__item + .stats__item { border-color: var(--dark-line); }
.hero--full .stats dd { font-size: clamp(28px, 3vw, 40px); color: #fff; }
.hero--full .stats dt { color: var(--dark-muted); }

/* Sections */
.section { padding: var(--section) 0; }
.section--tight { padding-top: clamp(40px, 5vw, 64px); }
.section--flush { padding-top: 0; }
.section--gap { padding-top: var(--section); }
.section.section--top { padding-top: clamp(24px, 3vw, 40px); }
.section--tint { background: var(--tint); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head__lead { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }

/* Goal and principles */
.mission { padding: clamp(28px, 5vw, 60px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.mission__text { font-size: clamp(24px, 3.5vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.16; text-wrap: balance; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 20px; border-top: 1px solid var(--line); }
.principles li { padding: 28px 28px 0 0; }
.principles li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.principles h3 { margin: 14px 0 8px; font-size: 24px; }
.principles p { color: var(--muted); }

/* Instruments (dark) */
.section--dark { position: relative; margin: 0 clamp(8px, 1.5vw, 20px); border-radius: clamp(24px, 4vw, 48px); background:
    radial-gradient(50% 60% at 15% 0%, rgba(29, 154, 122, 0.45) 0%, rgba(29, 154, 122, 0) 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(226, 255, 61, 0.16) 0%, rgba(226, 255, 61, 0) 70%),
    var(--dark);
  color: #f1f5f3; }
/* Directly under a page hero the dark section continues it: full width, square top, hero colour at the seam. */
.hero--sky + .section--dark { margin: 0; padding-top: clamp(8px, 2vw, 24px); border-radius: 0 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px); background:
    radial-gradient(40% 50% at 100% 100%, rgba(226, 255, 61, 0.16) 0%, rgba(226, 255, 61, 0) 70%),
    #0d1315; }
/* On the dark page the section has no visible edge, so it blends in and the next section sets the gap. */
[data-theme='dark'] .hero--sky + .section--dark { padding-bottom: 0; border-radius: 0; background: linear-gradient(#0d1315, rgba(13, 19, 21, 0) 320px); box-shadow: none; }
/* On the dark page the card and the tinted section below are nearly the same colour, so a strip of page
   background as wide as the card's side margin keeps them apart. */
[data-theme='dark'] .section--dark + .section--tint { margin-top: clamp(8px, 1.5vw, 20px); }
.section--dark .kicker { color: var(--lime); }
.section--dark .head__lead { color: var(--dark-muted); }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool { position: relative; display: flex; flex-direction: column; padding: 28px 24px 30px; min-height: 320px; border-radius: var(--r-md); background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid var(--dark-line); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease; }
.tool:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(127, 217, 191, 0.5); box-shadow: 0 36px 80px -40px rgba(0, 0, 0, 0.9); }
.tool__icon { width: 48px; height: 48px; margin: 0 0 auto; fill: none; stroke: var(--lime); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tool h3 { margin: 28px 0 10px; font-size: 22px; }
.tool p { font-size: 15.5px; color: var(--dark-muted); }
.note { margin-top: 16px; padding: 26px 28px; border-radius: var(--r-md); }
.note--dark { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--dark-line); }
.note p:last-child { font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; max-width: 70ch; }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; padding: 28px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease; }
.tier:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(29, 154, 122, 0.5); box-shadow: 0 36px 70px -40px rgba(13, 50, 40, 0.55); }
.tier h3 { font-size: 20px; color: var(--accent-ink); }
.tier dl { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.tier dl div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tier dt { color: var(--muted); }
.tier dd { font-weight: 600; text-align: right; }
.tier__for { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.tier__badge { position: absolute; top: 22px; right: 20px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--lime); color: var(--fixed-ink); }
.tier--main { background: var(--tint); border-color: rgba(29, 154, 122, 0.35); }
.tier--angel { background: var(--dark); color: #fff; border-color: transparent; }
.tier--angel h3 { color: var(--lime); }
.tier--angel dl, .tier--angel dl div { border-color: var(--dark-line); }
.tier--angel dt, .tier--angel .tier__for { color: var(--dark-muted); }

.trial { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 28px clamp(20px, 3vw, 36px); border-radius: var(--r-md); background: linear-gradient(100deg, var(--lime) 0%, #c9f7a0 45%, var(--mint) 100%); }
.trial { color: var(--fixed-ink); --btn1: linear-gradient(135deg, #222c30, #0d1315); --btn1-fg: #fff; --btn1-hi: rgba(255, 255, 255, 0.22); --btn1-glow: rgba(13, 19, 21, 0.25); --btn1-glow-hover: rgba(13, 19, 21, 0.4); }
.trial .kicker { color: var(--fixed-ink); margin-bottom: 6px; }
.trial__text { font-size: clamp(17px, 1.7vw, 20px); max-width: 62ch; }

/* Investor Hub */
.hubs { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hubs__tabs { display: grid; gap: 10px; margin: 32px 0; }
.hubtab { display: block; text-align: left; padding: 18px 20px; background: transparent; border: 1px solid transparent; border-radius: var(--r-md); cursor: pointer; transition: background 0.25s, border-color 0.25s, box-shadow 0.25s; }
.hubtab strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.hubtab strong + span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.hubtab:hover { border-color: rgba(29, 154, 122, 0.4); }
.hubtab[aria-selected='true'] { background: var(--panel); border-color: var(--line); box-shadow: var(--shadow); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: step; }
.step { position: relative; padding: 22px 18px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); }
.step__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }
.step h3 { margin: 40px 0 8px; font-size: 18px; }
.step p { font-size: 14.5px; color: var(--muted); }
.step--hl { background: var(--fixed-ink); color: #fff; border-color: var(--line); }
.step--hl .step__n { background: var(--lime); color: var(--fixed-ink); }
.step--hl p { color: var(--lime); font-weight: 600; }

/* Partners */
.partner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.partner__lead { padding: clamp(28px, 4vw, 56px); background: radial-gradient(90% 90% at 0% 100%, rgba(226, 255, 61, 0.9) 0%, rgba(226, 255, 61, 0) 60%), var(--tint); }
.partner__lead h2 { font-size: clamp(26px, 3vw, 38px); }
.partner__hint { margin: 18px 0 28px; font-size: 15px; color: #37423f; max-width: 44ch; }
/* On the dark panel the hint takes a light colour, and the glow stays faint so no text lands on lime. */
[data-theme='dark'] .partner__hint { color: var(--dark-muted); }
[data-theme='dark'] .partner__lead { background: radial-gradient(90% 90% at 0% 100%, rgba(226, 255, 61, 0.2) 0%, rgba(226, 255, 61, 0) 60%), var(--tint); }
.partner__list { padding: clamp(12px, 2vw, 28px) clamp(28px, 4vw, 56px); display: grid; align-content: center; }
.partner__list li { padding: 24px 0; }
.partner__list li + li { border-top: 1px solid var(--line); }
.partner__list p { margin-top: 6px; color: var(--muted); }

/* About */
/* Compact version of the home hero for the inner pages. */
.hero--sky { isolation: isolate; overflow: hidden; padding: clamp(150px, 15vw, 196px) 0 clamp(56px, 7vw, 88px); background: #0d1315; color: #fff; }
.hero--sky .hero__lead, .hero--sky .hero__meta { color: #cdd9d5; }
.hero__meta { margin-top: 18px; font-size: 14px; }
/* Error page: the hero is the whole page, so it also sets the gap above the footer. */
.hero--end { padding-bottom: var(--section); margin-bottom: clamp(48px, 7vw, 88px); }
.hero__code { font-size: clamp(64px, 12vw, 148px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--lime); }
.story { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.story__arrow { align-self: center; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); }
.story__arrow svg { width: 22px; fill: none; stroke: var(--fixed-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.era { padding: clamp(24px, 3.5vw, 44px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.era__years { font-size: 14px; font-weight: 700; color: var(--accent-ink); margin-bottom: 10px; }
.era h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.era > p:not(.era__years) { color: var(--muted); max-width: 46ch; }
.era__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.era__stats dd { font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--accent-ink); }
.era__stats dt { margin-top: 8px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.era--now { background: var(--dark); color: #fff; border-color: transparent; background-image: radial-gradient(70% 80% at 100% 0%, rgba(29, 154, 122, 0.5), rgba(29, 154, 122, 0) 70%); }
.era--now .era__years, .era--now .era__stats dd { color: var(--lime); }
.era--now > p:not(.era__years), .era--now .era__stats dt { color: var(--dark-muted); }
.era--now .era__stats { border-color: var(--dark-line); }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.why__item { padding: 26px 28px; border-radius: var(--r-md); background: var(--tint); }
.why__item p:last-child { font-size: clamp(18px, 1.9vw, 22px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }

.network { display: grid; gap: 40px; }
.network__group h3 { margin-bottom: 16px; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.logos li { display: grid; place-items: center; height: 84px; padding: 0 16px; background: #f2f2f2; border-radius: 14px; }
.logos img { max-width: 100%; max-height: 32px; width: auto; }
.logos__white img { filter: brightness(0); }
.logos__blend img { mix-blend-mode: multiply; }
.logos__crop img, .logos__big img { max-height: 56px; }

/* Partner logos moving in one line; the list is rendered twice so the loop has no seam. */
.partners { padding-top: clamp(40px, 5vw, 72px); }
.partners__title { margin-bottom: 28px; font-size: clamp(26px, 3vw, 40px); }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; flex: none; gap: 10px; padding-right: 10px; animation: marquee 80s linear infinite; }
.marquee__row li { flex: none; width: 150px; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.member { display: grid; grid-template-columns: 200px 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.member img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: center 20%; filter: grayscale(1); }
.member__body { display: flex; flex-direction: column; padding: 28px; }
.member__body h3 { font-size: 24px; }
.member__role { margin: 6px 0 20px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.member__body p:not(.member__role) { color: var(--muted); }
.member__in { margin-top: auto; padding-top: 24px; font-size: 15px; font-weight: 600; }
.member__in { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: color 0.25s ease, text-decoration-color 0.25s ease; }
.member__in:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
/* Closing call to action shared by the pages */
.band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 52px); border-radius: clamp(24px, 4vw, 48px); color: #f1f5f3; background:
    radial-gradient(60% 120% at 100% 0%, rgba(29, 154, 122, 0.5) 0%, rgba(29, 154, 122, 0) 70%),
    var(--dark);
}
.band h2 { font-size: clamp(26px, 3.4vw, 42px); }
.band p { margin-top: 12px; color: var(--dark-muted); max-width: 52ch; }
.band__cta { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* Home: links to the other pages */
.explore { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.explore__card { display: flex; flex-direction: column; min-height: 300px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease; }
.explore__card:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(29, 154, 122, 0.5); box-shadow: 0 36px 70px -40px rgba(13, 50, 40, 0.55); }
.explore__more { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color 0.25s ease; }
.explore__card:hover .explore__more { text-decoration-color: currentColor; }
.explore__fig { font-size: clamp(36px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--accent-ink); margin-bottom: auto; padding-bottom: 32px; }
.explore__fig small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 8px; }
.explore__card p { margin-top: 10px; color: var(--muted); }
.explore__more { margin-top: 22px; font-size: 15px; font-weight: 600; }
.explore__card--dark { background: var(--dark); border-color: transparent; color: #fff; }
.explore__card--dark .explore__fig { color: var(--lime); }
.explore__card--dark p, .explore__card--dark small { color: var(--dark-muted); }
.explore__card--dark .explore__more { color: var(--lime); }

/* Contact */
.section--contact { padding-top: 0; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(24px, 5vw, 64px); border-radius: clamp(24px, 4vw, 48px); color: #f1f5f3; background:
    radial-gradient(55% 70% at 0% 100%, rgba(29, 154, 122, 0.55) 0%, rgba(29, 154, 122, 0) 70%),
    radial-gradient(40% 50% at 100% 0%, rgba(226, 255, 61, 0.14) 0%, rgba(226, 255, 61, 0) 70%),
    var(--dark); }
.contact .kicker { color: var(--lime); }
.contact h1 { font-size: clamp(30px, 4.4vw, 54px); }
.contact__copy > p:not(.kicker) { margin-top: 18px; color: var(--dark-muted); max-width: 44ch; }
.contact__links { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--dark-line); }
.contact__links li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--dark-line); }
.contact__links span { font-size: 14px; color: var(--dark-muted); }
.contact__links a { font-size: 18px; font-weight: 600; }
.contact__links a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: color 0.25s ease, text-decoration-color 0.25s ease; }
.contact__links a:hover { color: var(--lime); text-decoration-color: currentColor; }

.form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--dark-line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg legend, .field > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--dark-muted); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span { display: block; text-align: center; padding: 12px 10px; border-radius: 14px; border: 1px solid var(--dark-line); font-size: 15px; font-weight: 600; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.seg input:checked + span { background: #fff; color: var(--fixed-ink); border-color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--dark-line); background: rgba(0, 0, 0, 0.25); color: #fff; resize: vertical; transition: border-color 0.2s; }
.field input::placeholder { color: #6f807c; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); }
.field .is-invalid { border-color: #ff8f7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { min-height: 1.4em; font-size: 14.5px; font-weight: 600; }
.form__status[data-state='error'] { color: #ff9c8a; }
.form__status[data-state='ok'] { color: var(--lime); }
.form__legal { font-size: 12.5px; line-height: 1.5; color: var(--dark-muted); }
.form__legal a { text-decoration: underline; text-underline-offset: 2px; }

/* Footer */
.ftr { padding: 0 0 36px; }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; padding-bottom: 40px; }
.ftr__brand p { margin-top: 14px; color: var(--muted); max-width: 34ch; font-size: 15px; }
.ftr__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ftr__nav div { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.ftr__nav a { color: var(--muted); width: fit-content; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: color 0.25s ease, text-decoration-color 0.25s ease; }
.ftr__nav a:hover { color: var(--ink); text-decoration-color: currentColor; }
.ftr__h { font-weight: 700; margin-bottom: 4px; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.ftr__bottom a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tools, .tiers { grid-template-columns: repeat(2, 1fr); }
  .tool { min-height: 260px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .member { grid-template-columns: 160px 1fr; }
  /* Compact header: brand, page switcher, call to action. */
  .hdr__bar { grid-template-columns: 1fr auto auto; padding-left: 16px; }
  .menu, .hdr__actions .lang, .hdr__hub, .hdr__actions .theme { display: none; }
  .pagesw { display: inline-flex; }
  .pagemenu { display: block; }
  .band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .hero__grid, .hubs, .partner, .contact, .ftr__top { grid-template-columns: minmax(0, 1fr); }
  .frame--hero { transform: none; width: 100%; }
  .float--b { right: 12px; top: -28px; }
  .hero__visual { margin: 28px 0 20px; }
  .story { grid-template-columns: 1fr; }
  .story__arrow { justify-self: center; transform: rotate(90deg); }
  .team { grid-template-columns: 1fr; }
  .trial { flex-direction: column; align-items: flex-start; }
  .explore { grid-template-columns: 1fr; }
  .marquee__row li { width: 124px; height: 68px; padding: 0 14px; }
  .explore__card { min-height: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__sub { display: none; }
  .hdr__actions .btn { padding: 0 14px; }
  .hdr__cta-full { display: none; }
  .hdr__cta-short { display: inline; }
  .hdr__bar { min-height: 56px; gap: 10px; padding: 5px 5px 5px 14px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr; }
  .stats__item { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .stats__item + .stats__item { border-left: 0; border-top: 1px solid var(--line); }
  .principles { grid-template-columns: 1fr; border-top: 0; margin-top: 8px; }
  .principles li, .principles li + li { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .tools, .tiers, .why { grid-template-columns: 1fr; }
  .tool { min-height: 0; }
  .tool__icon { margin-bottom: 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; padding: 18px 16px; border-radius: 0; border-bottom-width: 0; }
  .step:first-child { border-radius: var(--r-md) var(--r-md) 0 0; }
  .step:last-child { border-radius: 0 0 var(--r-md) var(--r-md); border-bottom-width: 1px; }
  .step__n { grid-row: 1 / span 2; }
  .step h3 { margin: 0 0 4px; }
  .member { grid-template-columns: 112px 1fr; }
  .member img { min-height: 0; }
  .member__body { padding: 20px; }
  .era__stats { grid-template-columns: 1fr; gap: 14px; }
  .era__stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .era__stats dt { margin: 0; text-align: right; }
  .ftr__nav { grid-template-columns: 1fr 1fr; }
  .trial .btn, .band__cta, .band__cta .btn { width: 100%; }
}

/* Short desktop screens: keep the whole hero above the fold. */
@media (min-width: 1101px) and (max-height: 820px) {
  .hero--full { padding-top: 100px; padding-bottom: 20px; }
  .hero--full .hero__grid { padding-top: 8px; padding-bottom: 28px; }
  .hero--full .chips { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Without motion the logos become a plain wrapped grid. */
  .marquee { -webkit-mask-image: none; mask-image: none; padding: 0 20px; }
  .marquee__row { flex: 1; flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .marquee__row[aria-hidden] { display: none; }
}

/* ---------- Legal page ---------- */
.ftr__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
/* Full content width; two columns keep the lines readable on wide screens. */
.legal__body { padding: clamp(24px, 4vw, 48px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); columns: 2; column-gap: clamp(32px, 5vw, 64px); }
.legal__body p { color: var(--text-2); break-inside: avoid; margin-bottom: 14px; }
.legal__body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .legal__body { columns: 1; } }
.legal__body strong { color: var(--ink); }
.legal__body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Dark theme: details ---------- */
/* Blocks that are dark in both themes get an outline so they still read as panels. */
[data-theme='dark'] :is(.section--dark, .contact, .band, .era--now, .tier--angel, .explore__card--dark) { box-shadow: inset 0 0 0 1px var(--dark-line); }
