/* ============================================================
   CHOOSE AND RISE — shared design tokens & utilities (light)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* — palette — */
  --bg: #f9fafb;
  --bg-2: #f1f5f9;
  --paper: #ffffff;
  --paper-solid: #ffffff;
  --ink: #0a1b33;
  --ink-2: #1e293b;
  --ink-3: #64748b;
  --mute: #94a3b8;
  --line: rgba(15,23,42,0.08);
  --line-2: rgba(15,23,42,0.16);
  --gold: #d97706;
  --gold-deep: #b45309;
  --cyan: #0891b2;
  --pink: #db2777;
  --indigo: #4f46e5;
  --leaf: #16a34a;
  /* legacy aliases */
  --lilac: var(--indigo);
  --lilac-deep: var(--cyan);
  --rose: var(--pink);

  /* — type — */
  --display: 'Outfit', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* — radii — */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* — shadow — */
  --shadow-1: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-2: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-3: 0 16px 48px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);

  /* — layout — */
  --container: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

::selection { background: var(--cyan); color: #fff; }

/* ============================================================
   Typography
   ============================================================ */

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.display em { font-style: italic; color: var(--cyan); }

.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ============================================================
   Pill nav (cross-site)
   ============================================================ */

.nx-nav {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 18px var(--pad) 0;
  transition: backdrop-filter .3s, background .3s, padding .3s;
}
.nx-nav.scrolled {
  backdrop-filter: blur(14px);
  background: rgba(249,250,251,0.88);
  padding-top: 10px; padding-bottom: 10px;
  box-shadow: 0 1px 0 var(--line);
}
.nx-logo-pill {
  width: 46px; height: 46px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1;
  flex-shrink: 0;
  transition: transform .2s;
}
.nx-logo-pill:hover { transform: rotate(-6deg); }
.nx-link-pill {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 18px;
  display: flex; align-items: center; gap: 22px;
  box-shadow: var(--shadow-1);
}
.nx-link-pill a { font-size: 13px; font-weight: 500; color: var(--ink-3); transition: color .2s; position: relative; }
.nx-link-pill a:hover { color: var(--ink); }
.nx-link-pill a.active { color: var(--cyan); }
.nx-cta-pill {
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 12px 18px; border-radius: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s, background .2s;
  box-shadow: var(--shadow-1);
}
.nx-cta-pill:hover { transform: translateY(-1px); background: var(--ink-2); }
.nx-cta-pill .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--cyan); }

@media (max-width: 720px) {
  .nx-link-pill { gap: 14px; padding: 8px 14px; }
  .nx-link-pill a { font-size: 12px; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; transition: all .2s; cursor: pointer; }
.btn-primary { background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow-1); }
.btn-primary:hover { transform: translateY(-1px); background: var(--ink-2); box-shadow: var(--shadow-2); }
.btn-gold { background: var(--gold); color: #fff; padding: 14px 22px; border-radius: 999px; }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(0,0,0,0.04); color: var(--ink);
  padding: 13px 21px; border: 1px solid var(--line-2); border-radius: 999px;
}
.btn-ghost:hover { background: rgba(0,0,0,.08); }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal-stagger].in > * { opacity: 1; transform: translateY(0); }
[data-reveal-stagger].in > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].in > *:nth-child(2) { transition-delay: 70ms; }
[data-reveal-stagger].in > *:nth-child(3) { transition-delay: 140ms; }
[data-reveal-stagger].in > *:nth-child(4) { transition-delay: 210ms; }
[data-reveal-stagger].in > *:nth-child(5) { transition-delay: 280ms; }
[data-reveal-stagger].in > *:nth-child(6) { transition-delay: 350ms; }
[data-reveal-stagger].in > *:nth-child(7) { transition-delay: 420ms; }
[data-reveal-stagger].in > *:nth-child(8) { transition-delay: 490ms; }

/* ============================================================
   Cursor glow
   ============================================================ */

.cursor-glow {
  pointer-events: none;
  position: fixed; top: 0; left: 0;
  width: 460px; height: 460px; margin: -230px 0 0 -230px;
  background: radial-gradient(closest-side, rgba(8,145,178,0.07), rgba(8,145,178,0));
  z-index: 1;
  transition: transform .12s cubic-bezier(.2,.7,.2,1);
  mix-blend-mode: multiply;
  opacity: 0;
}
body.cursor-on .cursor-glow { opacity: 1; }

/* ============================================================
   Floating helpers (3D)
   ============================================================ */
.scene { perspective: 1200px; transform-style: preserve-3d; }
.floaty { animation: floaty 6s ease-in-out infinite; will-change: transform; }
.floaty.slow { animation-duration: 9s; }
.floaty.fast { animation-duration: 4.5s; }
@keyframes floaty {
  0%, 100% { transform: translate3d(0,0,0) rotate(0); }
  50% { transform: translate3d(0,-14px,0) rotate(2deg); }
}

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  box-shadow: var(--shadow-1);
}
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }

/* ============================================================
   Misc helpers
   ============================================================ */

.divider { height: 1px; background: var(--line); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.05); color: var(--ink-3);
}
.tag.gold { background: rgba(217,119,6,.12); color: var(--gold); }
.tag.lilac { background: rgba(79,70,229,.12); color: var(--indigo); }
.tag.leaf { background: rgba(22,163,74,.12); color: var(--leaf); }

.bar { background: rgba(0,0,0,.07); height: 8px; border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--cyan); border-radius: 999px; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
  .floaty { animation: none !important; }
}

/* ============================================================
   NEW HERO & LOGO MARQUEE STYLES
   ============================================================ */
.hero-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 32px auto;
  border-radius: 48px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.03);
  overflow: hidden;
  height: 600px;
  display: flex;
  flex-direction: column;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  user-select: none;
}
.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1s ease-in-out;
}
.hero-content {
  position: relative;
  z-index: 20;
  flex: 1;
  padding: 64px 64px 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0a1b33;
  margin: 0 0 16px;
  max-width: 700px;
  text-align: left;
}
.hero-subtitle {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.5;
  color: #64748b;
  max-width: 580px;
  margin: 0 0 32px;
  text-align: left;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0a1b33;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 9999px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 12px rgba(10,27,51,0.08);
}
.hero-btn:hover {
  transform: scale(1.05);
  background: #1e293b;
  box-shadow: 0 6px 16px rgba(10,27,51,0.16);
}
.hero-btn svg {
  transition: transform 0.2s ease;
}
.hero-btn:hover svg {
  transform: translateX(4px);
}

.hero-pill-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 9999px;
  padding: 8px 12px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}
.hero-pill-logo {
  font-size: 18px;
  color: #0a1b33;
  margin-left: 8px;
  font-weight: bold;
}
.hero-pill-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-pill-links a {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  transition: color 0.2s;
}
.hero-pill-links a:hover {
  color: #0a1b33;
}
.hero-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #0a1b33;
  transition: all 0.2s;
}
.hero-pill-btn:hover {
  border-color: rgba(203, 213, 225, 1);
  background: #f8fafc;
}

/* Marquee Scroller */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 32px 0;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track {
  display: flex;
  gap: 16px;
  animation: marquee-anim 35s linear infinite;
  width: max-content;
}
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-anim {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.marquee-card {
  position: relative;
  height: 96px; /* h-24 */
  width: 160px; /* w-40 */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px; /* rounded-full */
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}
.marquee-card:hover {
  border-color: rgba(203, 213, 225, 1);
}
.marquee-card .grad-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.marquee-card:hover .grad-bg {
  opacity: 1;
  transform: scale(1);
}
.marquee-card img {
  position: relative;
  z-index: 2;
  height: 28px;
  max-width: 100px;
  object-fit: contain;
  transition: all 0.25s ease;
}
.marquee-card:hover img {
  filter: brightness(0) invert(0);
}
@media (max-width: 768px) {
  .hero-wrapper {
    height: auto;
    min-height: 520px;
    border-radius: 32px;
    margin: 16px auto;
  }
  .hero-content {
    padding: 32px 32px 120px;
  }
  .hero-pill-nav {
    width: calc(100% - 32px);
    justify-content: space-between;
  }
}

