/* ============================================
   Auxinova OEC — Global Design System
   ============================================ */

:root {
  /* Color tokens */
  --bg-0: #05070F;
  --bg-1: #0A0E1A;
  --bg-2: #0F1426;
  --bg-3: #151B33;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);

  --ink-0: #FFFFFF;
  --ink-1: #E6E9F2;
  --ink-2: #A8AFC4;
  --ink-3: #6B7390;
  --ink-4: #404867;

  --blue: #3B82F6;
  --violet: #8B5CF6;
  --pink: #EC4899;
  --mint: #10D9C4;
  --amber: #F59E0B;

  --grad-1: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%);
  --grad-2: linear-gradient(135deg, #10D9C4 0%, #3B82F6 100%);
  --grad-3: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  --grad-warm: linear-gradient(135deg, #F59E0B 0%, #EC4899 100%);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Sizes — intentionally moderate, not giant */
  --fs-xs: 0.75rem;     /* 12 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.125rem;    /* 18 */
  --fs-lg: 1.375rem;    /* 22 */
  --fs-xl: 1.75rem;     /* 28 */
  --fs-2xl: 2.25rem;    /* 36 */
  --fs-3xl: 2.875rem;   /* 46 */
  --fs-4xl: 3.5rem;     /* 56 — max display */

  /* Spacing */
  --rad-sm: 8px;
  --rad: 14px;
  --rad-lg: 20px;
  --rad-xl: 28px;
  --rad-full: 999px;

  --shadow-glow-blue: 0 10px 40px -10px rgba(59,130,246,0.55);
  --shadow-glow-violet: 0 10px 40px -10px rgba(139,92,246,0.55);
  --shadow-glow-mint: 0 10px 40px -10px rgba(16,217,196,0.45);
  --shadow-card: 0 30px 60px -30px rgba(0,0,0,0.6);

  --container: 1440px;
  --nav-h: 72px;
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto; }
body {
  font-family: var(--font-body);
  background: var(--bg-1);
  color: var(--ink-1);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--violet); color: white; }

/* ============================================
   Layout primitives
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink-0); font-weight: 600; }
h1 { font-size: clamp(2.25rem, 5.5vw, var(--fs-4xl)); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 4vw, var(--fs-3xl)); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.4rem, 2.5vw, var(--fs-xl)); }
h4 { font-size: var(--fs-lg); }
p { color: var(--ink-2); }
.lead { font-size: var(--fs-md); color: var(--ink-2); line-height: 1.65; max-width: 60ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mint);
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--mint);
}
.eyebrow.center::before, .eyebrow.center::after { content: ''; width: 28px; height: 1px; background: var(--mint); }
.eyebrow.center::after { display: inline-block; }

.grad-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradShift 8s ease infinite;
}
.grad-text.mint {
  background: linear-gradient(135deg, #10D9C4 0%, #3B82F6 50%, #8B5CF6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats__head h2 .grad-text,
.stats__head h2 .grad-text.mint {
  background: linear-gradient(135deg, #FFE066 0%, #FFFFFF 50%, #10D9C4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================
   Navbar
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex; align-items: center;
  transition: backdrop-filter .3s, background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,14,26,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: 100%; max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-0);
}
.logo__img {
  height: 30px;
  width: auto;
  max-width: 100%;
  display: block;
}
@media (max-width: 520px) {
  .logo__img { height: 24px; }
}

.nav__links {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--rad-full);
  padding: 6px;
}
.nav__links a {
  padding: 8px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--rad-full);
  transition: color .2s, background .2s;
  position: relative;
}
.nav__links a:hover { color: var(--ink-0); }
.nav__links a.active {
  color: var(--ink-0);
  background: rgba(255,255,255,0.08);
}

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--grad-1);
  border-radius: var(--rad-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: white;
  position: relative;
  box-shadow: 0 8px 24px -8px rgba(139,92,246,0.65);
  transition: transform .25s, box-shadow .25s;
}
.nav__cta::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: var(--rad-full);
  background: var(--grad-1);
  filter: blur(14px);
  opacity: 0.55;
  z-index: -1;
  animation: pulseGlow 2.6s ease-in-out infinite;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -8px rgba(139,92,246,0.75); }
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.75; }
}

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  position: relative;
}
.nav__burger span {
  position: absolute; left: 11px; right: 11px;
  height: 2px;
  background: var(--ink-0);
  border-radius: 2px;
  transition: transform .3s, opacity .2s, top .3s;
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav__burger span:nth-child(3) { top: 26px; }
.nav__burger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0;
  z-index: 99;
  background: rgba(5,7,15,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute; top: 0; right: 0;
  height: 100%; width: min(360px, 88vw);
  background: linear-gradient(180deg, #0A0E1A 0%, #0F1426 100%);
  border-left: 1px solid var(--line);
  padding: 88px 28px 28px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.65,.05,.36,1);
  display: flex; flex-direction: column;
}
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__links { display: flex; flex-direction: column; gap: 4px; }
.drawer__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-radius: var(--rad);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--ink-1);
  border: 1px solid transparent;
  transition: all .2s;
}
.drawer__links a:hover, .drawer__links a.active {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: var(--ink-0);
}
.drawer__links a span { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.drawer__cta {
  margin-top: 24px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px;
  border-radius: var(--rad-full);
  background: var(--grad-1);
  font-weight: 600; color: white;
}
.drawer__foot { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--fs-sm); }
.drawer__foot strong { color: var(--ink-1); display: block; margin-bottom: 4px; }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ============================================
   Buttons / Links
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--rad-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: transform .25s, box-shadow .25s, background .25s;
  position: relative;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-1);
  color: white;
  box-shadow: var(--shadow-glow-violet);
}
.btn--primary::before {
  content: '';
  position: absolute; inset: -3px;
  border-radius: var(--rad-full);
  background: var(--grad-1);
  filter: blur(18px);
  opacity: .4;
  z-index: -1;
  animation: pulseGlow 2.8s ease-in-out infinite;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(139,92,246,0.7); }
.btn--ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: var(--ink-0);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
.btn--mint {
  background: var(--mint);
  color: #042b27;
  box-shadow: var(--shadow-glow-mint);
}
.btn--mint:hover { transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink-0);
  font-family: var(--font-display);
  letter-spacing: -0.005em;
}
.link-arrow svg { transition: transform .3s; }
.link-arrow:hover svg { transform: translateX(6px); }
.link-arrow.mint { color: var(--mint); }

/* ============================================
   Cards
   ============================================ */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .25s, box-shadow .25s;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-1);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.card:hover::before { opacity: 1; }

.icon-orb {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--grad-1);
  display: grid; place-items: center;
  color: white;
  position: relative;
  box-shadow: 0 10px 24px -8px rgba(139,92,246,0.55);
}
.icon-orb::after {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 22px;
  background: var(--grad-1);
  filter: blur(20px);
  opacity: 0.25;
  z-index: -1;
}
.icon-orb.mint { background: var(--grad-2); box-shadow: var(--shadow-glow-mint); }
.icon-orb.warm { background: var(--grad-warm); }
.icon-orb.violet { background: var(--grad-3); }

/* ============================================
   Background atmospherics
   ============================================ */
.atmos {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.atmos__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}
.atmos__orb.blue { background: radial-gradient(circle, var(--blue), transparent 70%); }
.atmos__orb.violet { background: radial-gradient(circle, var(--violet), transparent 70%); }
.atmos__orb.pink { background: radial-gradient(circle, var(--pink), transparent 70%); }
.atmos__orb.mint { background: radial-gradient(circle, var(--mint), transparent 70%); }

.atmos__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center, black 30%, transparent 80%);
}
.atmos__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: overlay;
}

#particles-canvas,
[data-particles] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Floating curve SVG */
.curve {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}
.curve path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawCurve 4s ease-out forwards;
}
@keyframes drawCurve {
  to { stroke-dashoffset: 0; }
}

/* ============================================
   Reveal animations (intersection)
   ============================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-32px); }
.reveal--left.in { transform: none; }
.reveal--right { transform: translateX(32px); }
.reveal--right.in { transform: none; }
.reveal--scale { transform: scale(0.94); }
.reveal--scale.in { transform: none; }
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ============================================
   Tags / chips
   ============================================ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--rad-full);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.chip.mint { color: var(--mint); border-color: rgba(16,217,196,0.3); background: rgba(16,217,196,0.08); }
.chip.violet { color: #C4B5FD; border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.1); }
.chip.pink { color: #FBCFE8; border-color: rgba(236,72,153,0.35); background: rgba(236,72,153,0.1); }

/* ============================================
   Rotating badge
   ============================================ */
.rotor {
  position: relative;
  width: 132px; height: 132px;
  display: grid; place-items: center;
}
.rotor__ring {
  position: absolute; inset: 0;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.rotor__arrow {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-1);
  display: grid; place-items: center;
  color: white;
  box-shadow: 0 12px 30px -8px rgba(139,92,246,0.7);
}

/* ============================================
   Marquee
   ============================================ */
.marquee {
  position: relative;
  overflow: hidden;
  --gap: 48px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex; gap: var(--gap);
  animation: marquee 36s linear infinite;
  width: max-content;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  background: var(--bg-0);
  padding: 96px 0 32px;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}
.footer h5 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-2); font-family: var(--font-mono); margin-bottom: 20px; font-weight: 500; }
.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer ul a { color: var(--ink-2); font-size: var(--fs-sm); transition: color .2s; }
.footer ul a:hover { color: var(--ink-0); }
.footer__hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; z-index: 1; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer__bottom { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--ink-3); font-size: var(--fs-xs); font-family: var(--font-mono); }
.social {
  display: flex; gap: 10px;
}
.social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: all .25s;
}
.social a:hover { color: white; background: var(--grad-1); border-color: transparent; box-shadow: var(--shadow-glow-violet); transform: translateY(-2px); }

@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================
   Forms
   ============================================ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); font-family: var(--font-mono); font-weight: 500; }
.field input, .field textarea, .field select {
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  color: var(--ink-0);
  font-size: var(--fs-sm);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--violet);
  background: rgba(255,255,255,0.05);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ============================================
   Custom cursor (desktop only)
   ============================================ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: white;
}
.cursor-ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  transition: width .25s, height .25s, border-color .25s;
}
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--mint); }
@media (max-width: 1024px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================
   Utility
   ============================================ */
.gradient-bleed {
  position: relative;
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 60%, #EC4899 100%);
}
.gradient-bleed::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt > * { transform-style: preserve-3d; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
