/* ============ TOKENS ============ */
:root {
  --bg: #050607;
  --bg-soft: #0b0d10;
  --text: #f2f4f1;
  --text-dim: rgba(242, 244, 241, 0.55);
  --accent: #c8f542;          /* electric lime */
  --accent-2: #4de3ff;        /* cyan */
  --line: rgba(242, 244, 241, 0.12);

  --font-display: "Unbounded", sans-serif;
  --font-body: "Inter", sans-serif;

  --text-hero: clamp(2.6rem, 1rem + 7.5vw, 8.5rem);
  --text-h2: clamp(2rem, 1rem + 4.5vw, 5.5rem);
  --text-h3: clamp(2.2rem, 1rem + 5vw, 6rem);
  --text-base: clamp(1rem, 0.94rem + 0.35vw, 1.15rem);

  --space-section: clamp(6rem, 4rem + 10vw, 16rem);
  --pad-x: clamp(1.25rem, 4vw, 5rem);

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; }
.accent { color: var(--accent); }

::selection { background: var(--accent); color: #050607; }

/* ============ CANVAS + OVERLAYS ============ */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 60;
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-items: center;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.preloader-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 0.35em;
}
.preloader-count {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  backdrop-filter: blur(12px);
  background: linear-gradient(rgba(5, 6, 7, 0.65), rgba(5, 6, 7, 0));
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.nav-logo em { color: var(--accent); }
.logo-mark {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s var(--ease-expo);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-expo), background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.btn-arrow { transition: transform 0.35s var(--ease-expo); }
.btn:hover .btn-arrow, .btn:focus-visible .btn-arrow { transform: translateX(5px); }

.btn-primary {
  background: var(--accent);
  color: #060805;
  border-color: var(--accent);
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(200, 245, 66, 0.35);
}
.btn-ghost { color: var(--text-dim); }
.btn-ghost:hover, .btn-ghost:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.btn-nav { padding: 0.7rem 1.3rem; font-size: 0.72rem; background: rgba(200, 245, 66, 0.08); border-color: rgba(200, 245, 66, 0.35); color: var(--accent); }
.btn-nav:hover, .btn-nav:focus-visible { background: var(--accent); color: #060805; }
.btn-big { padding: 1.3rem 2.6rem; font-size: 1rem; }

/* ============ HERO ============ */
main { position: relative; z-index: 2; }

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--pad-x) 4rem;
  position: relative;
}
.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; will-change: transform; }
.hero-title .accent > span { color: var(--accent); text-shadow: 0 0 60px rgba(200, 245, 66, 0.35); }
.hero-sub {
  max-width: 32rem;
  margin-top: 2rem;
  color: var(--text-dim);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px; height: 56px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scroll-drip 1.8s var(--ease-expo) infinite;
}
@keyframes scroll-drip { to { top: 100%; } }

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  background: rgba(5, 6, 7, 0.5);
  backdrop-filter: blur(6px);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
}

/* ============ INTRO ============ */
.intro {
  padding: var(--space-section) var(--pad-x);
  text-align: center;
}
.intro-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-h2);
  text-transform: uppercase;
  line-height: 1.05;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35em;
}
.intro-title .word { display: inline-block; will-change: transform, opacity; }
.intro-sub { color: var(--text-dim); margin-top: 1.4rem; }

/* ============ SOURCES ============ */
.source {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 6rem var(--pad-x);
}
.source-right { justify-content: flex-end; text-align: right; }
.source-right .source-chips { justify-content: flex-end; }
.source-right .source-stat { flex-direction: row-reverse; }

.source-inner { max-width: 40rem; position: relative; }

.source-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 14vw, 13rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 244, 241, 0.14);
  position: absolute;
  top: -0.55em;
  left: -0.12em;
  z-index: -1;
  user-select: none;
}
.source-right .source-num { left: auto; right: -0.12em; }

.source-tag {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.9rem;
}
.source-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-h3);
  line-height: 0.98;
  text-transform: uppercase;
}
.source-title em { color: var(--accent); }
.source-desc { color: var(--text-dim); margin-top: 1.6rem; max-width: 30rem; }
.source-right .source-desc { margin-left: auto; }

.source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.source-chips li {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  transition: border-color 0.3s, color 0.3s;
}
.source-chips li:hover { border-color: var(--accent); color: var(--accent); }

.source-stat {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.source-stat strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--accent);
}
.source-stat span { color: var(--text-dim); max-width: 14rem; font-size: 0.9rem; line-height: 1.4; }

/* ============ RESULTS ============ */
.results {
  padding: var(--space-section) var(--pad-x);
  text-align: center;
}
.results-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-h2);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 4rem;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 70rem;
  margin: 0 auto;
}
.result-card {
  background: rgba(8, 10, 12, 0.82);
  backdrop-filter: blur(8px);
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.4s var(--ease-expo);
}
.result-card:hover { background: rgba(200, 245, 66, 0.06); }
.result-card strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  color: var(--accent);
}
.result-card span {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============ PROCESS ============ */
.process { padding: var(--space-section) var(--pad-x); }
.process-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-h2);
  text-transform: uppercase;
  margin-bottom: 4rem;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  counter-reset: step;
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  transition: border-color 0.4s;
}
.step:hover { border-color: var(--accent); }
.step-num {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.9rem 0 0.7rem;
}
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* ============ CTA ============ */
.cta {
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-section) var(--pad-x);
}
.cta-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.4rem;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-h2);
  text-transform: uppercase;
  line-height: 1.08;
}
.cta-sub {
  max-width: 34rem;
  color: var(--text-dim);
  margin: 1.8rem 0 2.6rem;
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 2rem var(--pad-x);
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.85rem;
  background: rgba(5, 6, 7, 0.6);
  backdrop-filter: blur(8px);
}
.footer-links a:hover { color: var(--accent); }

/* ============ WHATSAPP FLOATING BUTTON ============ */
.whatsapp-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 80;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.35s var(--ease-expo), box-shadow 0.35s;
}
.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: wa-pulse 2.2s var(--ease-expo) infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}
.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 44px rgba(37, 211, 102, 0.6);
}
.whatsapp-tip {
  position: absolute;
  right: calc(100% + 0.9rem);
  top: 50%;
  translate: 0 -50%;
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(11, 13, 16, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-expo), transform 0.3s var(--ease-expo);
}
.whatsapp-fab:hover .whatsapp-tip,
.whatsapp-fab:focus-visible .whatsapp-tip {
  opacity: 1;
  transform: translateX(0);
}

/* ============ LEAD POPUP FORM ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 5, 0.75);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(640px, 100%);
  max-height: 90svh;
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(16, 19, 23, 0.98), rgba(8, 10, 12, 0.98));
  border: 1px solid rgba(200, 245, 66, 0.22);
  border-radius: 20px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(200, 245, 66, 0.07);
  scrollbar-width: thin;
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-expo);
}
.modal-close:hover, .modal-close:focus-visible { color: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

.modal-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.8rem;
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

/* Fields */
#leadForm { display: flex; flex-direction: column; gap: 1.35rem; }

.field { display: flex; flex-direction: column; gap: 0.55rem; border: 0; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label, .field legend {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}
.field label em, .field legend em { color: var(--accent); }
.field legend small, .field label small { text-transform: none; letter-spacing: 0.02em; opacity: 0.7; }

.field input[type="text"],
.field input[type="tel"],
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(242, 244, 241, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(242, 244, 241, 0.28); }
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  background: rgba(200, 245, 66, 0.05);
  box-shadow: 0 0 0 3px rgba(200, 245, 66, 0.12);
}
.field input.invalid, .field textarea.invalid { border-color: #ff5d5d; box-shadow: 0 0 0 3px rgba(255, 93, 93, 0.12); }

/* Pill checkboxes / radios */
.pill-group { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pill { position: relative; cursor: pointer; }
.pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.pill span {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: all 0.25s var(--ease-expo);
  user-select: none;
}
.pill:hover span { border-color: rgba(200, 245, 66, 0.5); color: var(--text); }
.pill input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #060805;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(200, 245, 66, 0.3);
}
.pill input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.form-error {
  color: #ff5d5d;
  font-size: 0.88rem;
  background: rgba(255, 93, 93, 0.08);
  border: 1px solid rgba(255, 93, 93, 0.3);
  border-radius: 10px;
  padding: 0.7rem 1rem;
}

.btn-submit { justify-content: center; padding: 1.15rem 2rem; font-size: 0.9rem; border: 0; cursor: pointer; }

/* Success state */
.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  padding: 2.5rem 0.5rem;
}
.modal-success[hidden] { display: none; }
.success-ring {
  width: 84px; height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 2rem;
  box-shadow: 0 0 40px rgba(200, 245, 66, 0.35);
}
.success-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
}
.success-text { color: var(--text-dim); max-width: 26rem; }

body.modal-open { overflow: hidden; }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .source-right { justify-content: flex-start; text-align: left; }
  .source-right .source-chips { justify-content: flex-start; }
  .source-right .source-stat { flex-direction: row; }
  .source-right .source-num { right: auto; left: -0.12em; }
  .source-right .source-desc { margin-left: 0; }
  .scroll-hint { display: none; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-line::after, .whatsapp-fab::before { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
