/* VEXA landing page and opening sequence. Follows the site theme (html[data-theme], set by mode.js before paint);
   motion is driven by static/js/intro.js. */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('../fonts/inter-500.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.woff') format('woff'); }
:root {
  --ink: #050505; --line: rgba(255,255,255,.06); --text: #f4f4f5; --text-2: #a6a6a6; --text-3: #8f8f8f;
  --chrome: linear-gradient(180deg, #ffffff 0%, #e6e6e6 32%, #8e8e8e 52%, #f4f4f4 68%, #b4b4b4 100%);
  --ease-out: cubic-bezier(.16,1,.3,1); --ease-io: cubic-bezier(.65,0,.35,1);
  --mx: 0; --my: 0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body.wl { background: var(--ink); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: #f4f4f5; color: #050505; }
:focus-visible { outline: 2px solid #f4f4f5; outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #f4f4f5; color: #050505; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* ---------- opening-sequence tokens (dark default, light below); intro.js reads the --intro-rain-* ones ---------- */
:root { --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --accent-hi: #36c995; --up: #36c995; --dn: #f87171; --dn-line: #ef4444; }
html[data-theme="light"] { --accent-hi: #0d8b63; --up: #0a7a52; --dn: #c0272d; --dn-line: #dc3b3b; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:root { --intro-bg-1: #0f1411; --intro-bg-2: #060807; --intro-halo: rgba(54,201,149,.12); --intro-line: #36c995;
  --intro-ctl-bg: rgba(255,255,255,.06); --intro-ctl-edge: rgba(255,255,255,.22);
  --intro-rain-head: #e9efeb; --intro-rain-tail: #a9b4ad; --intro-rain-g: #36c995; --intro-rain-g2: #2f8f6c; --intro-rain-alpha: 1; }
html[data-theme="light"] { --intro-bg-1: #ffffff; --intro-bg-2: #eef2ef; --intro-halo: rgba(13,139,99,.10); --intro-line: #0b7a57;
  --intro-ctl-bg: #ffffff; --intro-ctl-edge: #cfd6d2;
  --intro-rain-head: #3f4a44; --intro-rain-tail: #8e9892; --intro-rain-g: #0b7a57; --intro-rain-g2: #4fa585; --intro-rain-alpha: .55; }


/* ---------- stage (landing hero) ---------- */
.stage { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  background: radial-gradient(900px 520px at 72% 30%, rgba(255,255,255,.06), transparent 65%), var(--ink); }
.bg-grid { position: absolute; inset: -40px; z-index: -3; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  transform: translate3d(calc(var(--mx) * -6px), calc(var(--my) * -6px), 0); }
.bg-chart { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: -2; pointer-events: none; transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -8px), 0); }
.bg-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
#hcLine { fill: none; stroke: url(#hcStroke); stroke-width: 1.5; stroke-opacity: .7; vector-effect: non-scaling-stroke; }
html.anim #hcGroup { clip-path: inset(0 100% 0 0); }
#hcArea, #hcDot { opacity: 0; }
#hcDot { fill: #fff; }
.vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 75% 60% at 45% 40%, transparent 0%, rgba(5,5,5,.5) 72%, var(--ink) 100%), linear-gradient(180deg, rgba(5,5,5,.6) 0%, transparent 22%, transparent 70%, var(--ink) 100%); }

.wl-nav { display: flex; align-items: center; gap: 28px; padding: 22px clamp(16px, 4vw, 48px); position: relative; z-index: 3; }
.wl-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .26em; font-size: 15px; }
.wl-brand span { color: var(--text); }
.wl-links { display: flex; gap: 4px; margin-left: 12px; }
.wl-links a, .wl-ghost { text-decoration: none; font-size: 13.5px; color: var(--text-2); padding: 8px 12px; border-radius: 8px; position: relative; transition: color .2s; }
.wl-links a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.wl-links a:hover, .wl-ghost:hover { color: var(--text); }
.wl-links a:hover::after { transform: scaleX(1); }
.wl-acct { margin-left: auto; display: flex; gap: 6px; }
.wl-out { display: inline; margin: 0; }
button.wl-ghost { background: none; border: 0; font: inherit; cursor: pointer; }
.wl-ghost.on { color: var(--text); border: 1px solid rgba(255,255,255,.18); }
.wl-ghost.on:hover { border-color: rgba(255,255,255,.4); }

.hero { position: relative; z-index: 3; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 24px;
  padding: clamp(16px, 5vh, 64px) clamp(16px, 6vw, 96px) 32px; max-width: 1360px; width: 100%; margin: 0 auto; }
.hero-copy { transform: translate3d(calc(var(--mx) * 5px), calc(var(--my) * 4px), 0); }
.eyebrow { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--text-3); margin-bottom: 22px; }
.headline { font-weight: 600; font-size: clamp(40px, 6.1vw, 104px); line-height: .94; letter-spacing: -0.045em; }
.headline .ln { display: block; overflow: hidden; padding-bottom: .05em; }
.headline .ln > span { display: inline-block; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--text-2); margin-top: 26px; max-width: 520px; line-height: 1.5; }
.cta-row { display: flex; align-items: center; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px 0 28px;
  background: linear-gradient(180deg, #ffffff 0%, #e4e4e4 46%, #c2c2c2 54%, #ececec 100%); color: #050505; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15.5px;
  transition: transform .18s var(--ease-out), box-shadow .3s; box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.2), 0 10px 30px -10px rgba(255,255,255,.25); }
.cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.95) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.cta:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.2), 0 0 0 6px rgba(255,255,255,.07), 0 18px 40px -12px rgba(255,255,255,.3); }
.cta:hover::before { transform: translateX(120%); }
.cta:hover svg { transform: translateX(4px); }
.cta:active { transform: scale(.97); }
.cta > * { position: relative; }
.cta .ripple { position: absolute; border-radius: 50%; background: rgba(0,0,0,.18); transform: scale(0); animation: ripple .55s var(--ease-out) forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.cta-2 { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text);
  border: 1px solid rgba(255,255,255,.2); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.01)); transition: border-color .2s, background .2s, transform .18s var(--ease-out); }
.cta-2:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.07); }
.cta-2:active { transform: scale(.97); }
.wl-foot { position: relative; z-index: 3; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px) 18px; font-size: 12px; color: var(--text-3); }
.replay { background: none; border: 1px solid rgba(255,255,255,.16); color: var(--text-2); border-radius: 999px; padding: 6px 12px; font: inherit; cursor: pointer; transition: color .2s, border-color .2s; margin-left: auto; }
.replay:hover { color: var(--text); border-color: rgba(255,255,255,.4); }

/* ---------- below the fold ---------- */
.sec-in { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px); }
.glance { padding: 56px 0 24px; border-top: 1px solid rgba(255,255,255,.06); background: linear-gradient(180deg, #080808, var(--ink)); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head .note { font-size: 12.5px; color: var(--text-3); }
.idx-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.idx { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 18px 20px; min-height: 104px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.idx.ph { background: linear-gradient(90deg, #0d0d0d, #151515, #0d0d0d); background-size: 220% 100%; animation: shimmer 1.6s ease-in-out infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.idx .n { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.idx .p { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.idx .c { font-size: 13px; font-weight: 600; }
.idx .c.up { color: #36c995; } .idx .c.dn { color: #f87171; }
.idx .d { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.features { padding: 40px 0 64px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feat { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 14px; text-decoration: none; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  transition: transform .25s var(--ease-out), border-color .25s, background .25s; }
.feat:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.22); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.015)); }
.feat .k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.feat b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.feat p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.legal-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px clamp(16px, 5vw, 64px) 26px; font-size: 12px; color: var(--text-3); border-top: 1px solid rgba(255,255,255,.06); }
.legal-foot a { color: var(--text-2); }

/* ---------- opening sequence ---------- */
.intro, .intro-skip { display: none; }
html.intro-on body { overflow: hidden; }
html.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 50; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 45%, var(--intro-bg-1) 0%, var(--intro-bg-2) 70%); }
html.intro-on .intro-skip { display: block; position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 28px); z-index: 60;
  background: var(--intro-ctl-bg); border: 1px solid var(--intro-ctl-edge); color: var(--text); border-radius: 999px; padding: 10px 18px;
  font: 500 13px 'Inter', sans-serif; letter-spacing: .04em; cursor: pointer; transition: border-color .2s, background .2s; }
.intro-skip:hover { border-color: var(--intro-line); }
html.intro-on .stage { clip-path: circle(0% at 50% 44%); }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; }
.core { position: absolute; left: 50%; top: 44%; width: clamp(150px, 28vmin, 280px); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0; }
.core .halo { position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(closest-side, var(--intro-halo), transparent 72%); }
.word { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); display: flex;
  font-weight: 600; font-size: clamp(52px, 11vw, 132px); line-height: 1; letter-spacing: .22em; padding-left: .22em; will-change: transform, opacity; }
.word span { display: block; overflow: hidden; padding-bottom: .04em; }
.word span i { display: block; font-style: normal; transform: translateY(105%); color: var(--text); }
.word .word-rule { position: absolute; left: 50%; bottom: calc(-1 * clamp(16px, 2.4vw, 26px)); width: clamp(64px, 12vw, 140px); height: 2px; margin-left: calc(clamp(64px, 12vw, 140px) / -2 + .11em);
  border-radius: 2px; background: var(--intro-line); transform: scaleX(0); }
.tag { position: absolute; left: 50%; top: calc(44% + clamp(84px, 13vw, 156px)); transform: translateX(-50%); white-space: nowrap;
  font-size: 11px; letter-spacing: .48em; text-transform: uppercase; color: var(--text-3); opacity: 0; padding-left: .48em; }

/* hero entrance pieces start hidden only while JS is driving them */
html.anim [data-in] { opacity: 0; transform: translateY(18px); }
html.anim .headline .ln > span { transform: translateY(105%); }
html.anim .headline .ln { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
    .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .wl-links { display: none; }
  .wl-nav { gap: 12px; }
  .bg-chart { height: 42%; }
  .idx-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .feat-grid { grid-template-columns: 1fr; }
  .wl-acct a.wl-ghost[href="/account"] { display: none; }
  .cta, .cta-2 { width: 100%; justify-content: center; }
  }
@media (prefers-reduced-motion: reduce) {
  .cta, .cta::before, .cta svg, .wl-links a::after, .feat { transition: none; }
  .bg-grid, .bg-chart, .hero-copy,   .idx.ph { animation: none; }
}



/* emerald detail: the hero line ends on the brand green */
#hcDot { fill: #36c995; filter: drop-shadow(0 0 6px rgba(54,201,149,.7)); }
.theme-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid rgba(255,255,255,.16);
  background: transparent; color: var(--text-2); cursor: pointer; transition: color .2s, border-color .2s; }
.theme-btn:hover { color: #36c995; border-color: rgba(54,201,149,.6); }
.theme-btn svg { grid-area: 1 / 1; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out), opacity .25s; }
.theme-btn .i-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
html[data-theme="light"] .theme-btn .i-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
html[data-theme="light"] .theme-btn .i-moon { opacity: 1; transform: none; }
:focus-visible { outline-color: #36c995; }

/* ---------- light theme for the landing page (the opening sequence itself stays dark) ---------- */
html[data-theme="light"] { color-scheme: light;
  --ink: #f3f5f3; --line: rgba(16,24,20,.06); --text: #121814; --text-2: #46504a; --text-3: #5c6660;
  --chrome: linear-gradient(180deg, #0f1411 0%, #2b332e 34%, #5f6a64 52%, #1c221f 70%, #3b4540 100%); }
html[data-theme="light"] ::selection { background: #bfe8d6; color: #121814; }
html[data-theme="light"] :focus-visible { outline-color: #0b7a57; }
html[data-theme="light"] .stage { background: radial-gradient(900px 520px at 72% 30%, rgba(13,139,99,.08), transparent 65%), var(--ink); }
html[data-theme="light"] .vignette { background: radial-gradient(ellipse 75% 60% at 45% 40%, transparent 0%, rgba(243,245,243,.5) 72%, var(--ink) 100%), linear-gradient(180deg, rgba(243,245,243,.6) 0%, transparent 22%, transparent 70%, var(--ink) 100%); }
html[data-theme="light"] #hcLine { stroke: #0b7a57; stroke-opacity: .55; }
html[data-theme="light"] #hcDot { fill: #0b7a57; }
html[data-theme="light"] .wl-ghost.on, html[data-theme="light"] .theme-btn, html[data-theme="light"] .cta-2, html[data-theme="light"] .replay { border-color: rgba(16,24,20,.18); }
html[data-theme="light"] .wl-ghost.on:hover, html[data-theme="light"] .cta-2:hover, html[data-theme="light"] .replay:hover { border-color: rgba(16,24,20,.45); }
html[data-theme="light"] .theme-btn:hover { color: #0b7a57; border-color: #0b7a57; }
html[data-theme="light"] .cta-2 { background: #fff; }
html[data-theme="light"] .cta { background: linear-gradient(180deg, #1c221f 0%, #0f1411 100%); color: #f5f7f5; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 26px -12px rgba(16,24,20,.5); }
html[data-theme="light"] .cta:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 5px rgba(13,139,99,.14), 0 16px 34px -12px rgba(16,24,20,.5); }
html[data-theme="light"] .cta::before { background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); }
html[data-theme="light"] .glance { border-top-color: rgba(16,24,20,.08); background: linear-gradient(180deg, #eaeeeb, var(--ink)); }
html[data-theme="light"] .idx, html[data-theme="light"] .feat { border-color: #dbe1dd; background: #fff; box-shadow: 0 1px 2px rgba(16,24,20,.05); }
html[data-theme="light"] .feat:hover { border-color: #0b7a57; background: #fff; }
html[data-theme="light"] .idx.ph { background: linear-gradient(90deg, #eef2ef, #e3e8e4, #eef2ef); background-size: 220% 100%; }
html[data-theme="light"] .idx .c.up { color: #0a7a52; } html[data-theme="light"] .idx .c.dn { color: #c0272d; }
html[data-theme="light"] .legal-foot { border-top-color: rgba(16,24,20,.08); }
html[data-theme="light"] .skip-link { background: #121814; color: #fff; }
