/* ============================================================
   INNOVEXA — v2 (Softvira-inspired)
   Dark charcoal + lime accent, bold geometric sans
   ============================================================ */

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

:root {
  /* Base */
  --bg: #0F0F0F;
  --bg-2: #161616;
  --bg-3: #1C1C1C;
  --fg: #F4F4F0;
  --muted: rgba(244, 244, 240, 0.55);
  --line: rgba(244, 244, 240, 0.12);
  --line-strong: rgba(244, 244, 240, 0.22);

  /* Accent — Softvira lime */
  --lime: #D4FF3C;
  --lime-deep: #B8E632;
  --lime-soft: rgba(212, 255, 60, 0.12);

  /* Type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
}

[data-theme="light"] {
  --bg: #F4F4F0;
  --bg-2: #ECECE6;
  --bg-3: #E2E2DC;
  --fg: #0F0F0F;
  --muted: rgba(15, 15, 15, 0.55);
  --line: rgba(15, 15, 15, 0.12);
  --line-strong: rgba(15, 15, 15, 0.22);
  --lime-soft: rgba(212, 255, 60, 0.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ----- Type primitives ----- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--lime);
}
.eyebrow.no-line::before { display: none; }
.eyebrow .lime-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-soft);
}

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}
h1.display { font-size: clamp(56px, 10vw, 200px); }
h2.display { font-size: clamp(48px, 7.5vw, 140px); }
h3.display { font-size: clamp(36px, 4vw, 64px); }
.display .lime { color: var(--lime); }
.display .out {
  -webkit-text-stroke: 1.5px var(--fg);
  color: transparent;
}

.lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: padding .3s, background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 14px 0;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.brand {
  display: inline-block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-dot {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--lime);
  vertical-align: 0.16em;
  margin: 0 2px;
  box-shadow: 0 0 0 3px var(--lime-soft);
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 8px 0;
  color: var(--fg);
  opacity: 0.7;
  transition: opacity .2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--lime);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--lime);
  color: #0F0F0F;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform .25s;
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-cta svg { width: 12px; height: 12px; }

.theme-toggle {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color .2s, transform .2s;
}
.theme-toggle:hover { border-color: var(--lime); transform: rotate(15deg); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all .25s cubic-bezier(.2,.7,.3,1);
  white-space: nowrap;
}
.btn-primary {
  background: var(--lime);
  color: #0F0F0F;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(212, 255, 60, 0.4); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-dark {
  background: var(--fg);
  color: var(--bg);
}
.btn-dark:hover { transform: translateY(-2px); }
.btn .arrow {
  width: 18px; height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15,15,15,0.12);
  transition: transform .25s;
}
.btn-ghost .arrow { background: var(--line); }
.btn:hover .arrow { transform: rotate(-45deg); }

/* ----- Section primitives ----- */
.section { padding: 140px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.section-head h2 { margin-top: 18px; }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 100px 0; }
}

/* ----- Footer ----- */
.site-footer {
  background: #0a0a0a;
  color: var(--fg);
  padding: 100px 0 40px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .site-footer { background: #0F0F0F; color: #F4F4F0; }
.footer-mega {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(80px, 18vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 80px;
  -webkit-text-stroke: 1.5px rgba(244,244,240,0.4);
  color: transparent;
  position: relative;
}
.footer-mega .lime { color: var(--lime); -webkit-text-stroke: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(244,244,240,0.12);
}
.footer-tagline {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  margin: 24px 0 32px;
  max-width: 20ch;
  letter-spacing: -0.015em;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,244,240,0.5);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: rgba(244,244,240,0.78);
  transition: color .2s;
  font-size: 14px;
}
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(244,244,240,0.45);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nav-links { display: none; }
}

/* ----- Reveal ----- */
.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-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .10s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .22s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .34s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .40s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .46s; }

/* ----- Marquee ----- */
.marquee {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: scroll 40s linear infinite;
  flex-shrink: 0;
  padding-right: 60px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 64px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  align-items: center;
  color: var(--fg);
}
.marquee-track > span { display: inline-flex; align-items: center; gap: 60px; flex-shrink: 0; }
.marquee-track > span::after {
  content: '✱';
  color: var(--lime);
  font-size: 0.6em;
}
@keyframes scroll {
  to { transform: translateX(calc(-100% - 60px)); }
}

/* ----- Crumb ----- */
.crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}
.crumb a { color: var(--lime); }

.lime { color: var(--lime); }

/* ----- Page intro ----- */
.page-intro {
  position: relative;
  padding: 200px 0 120px;
  border-bottom: 1px solid var(--line);
}
.page-intro h1 { margin: 32px 0 40px; }
