/* ============================================================
   Dark tech — cool ink, electric accent, Linear/Vercel register
   ============================================================ */
:root {
  --bg: #05070d;
  --bg-2: #090d17;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.05);
  --ink: #eef1f8;
  /* One shared style for all secondary text: white at 80% */
  --text: rgba(255, 255, 255, 0.8);
  --muted: rgba(255, 255, 255, 0.8);
  --accent: #6a8bff;
  --accent-2: #38d9f5;
  --green: #3ddc97;
  --glow: rgba(106, 139, 255, 0.35);

  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "Consolas", monospace;

  --w-max: 1200px;
  --pad-x: clamp(20px, 4vw, 48px);
  /* Matches the html zoom on very wide screens; viewport units
     render in visual pixels, so full-height blocks divide by it */
  --page-zoom: 1;
}

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

html { scroll-behavior: smooth; }
/* When Lenis drives the scroll, native smooth scrolling must be off */
html.lenis, html.lenis-smooth { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

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

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

h1, h2, h3 { color: var(--ink); }

.h-display {
  font-family: var(--font-display), sans-serif;
  font-stretch: 118%;
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-transform: uppercase;
}

/* Flowing gradient text: first and last stops match, so the tile
   repeats seamlessly while the position loops one full period. */
.grad {
  font-style: normal;
  background: linear-gradient(100deg,
    var(--accent) 0%,      /* blue */
    var(--accent-2) 18%,   /* cyan */
    var(--green) 36%,      /* green */
    #b8e05a 50%,           /* lime */
    #ee6bd8 68%,           /* pink */
    #a06bff 84%,           /* violet */
    var(--accent) 100%);   /* back to blue for a seamless loop */
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradFlow 6s linear infinite;
}
@keyframes gradFlow {
  from { background-position: 0 50%; }
  to { background-position: 200% 50%; }
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2233; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2a3350; }

/* ============================================================
   Overlays: curtain, progress, grain, pointer glow
   ============================================================ */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.curtain.off { transform: scaleY(0); pointer-events: none; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.grain {
  position: fixed;
  inset: -100px;
  z-index: 80;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* One global cursor light over everything: background and elements alike.
   Invisible until the pointer actually moves — no static spot on load. */
.pointer-glow {
  /* Updated from JS as the pointer moves */
  --px: 50%;
  --py: 30%;
  position: fixed;
  inset: 0;
  z-index: 85;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(620px circle at var(--px) var(--py), rgba(106, 139, 255, 0.09), transparent 70%);
}
.pointer-glow.on { opacity: 1; }

/* Beams: occasional light streaks running down the texture lines.
   Sits above the body background but below section content (z-index 2). */
.beams {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  /* Tech texture: a faint 128px square grid. It lives on this fixed
     layer (not on body via background-attachment: fixed, which smears
     and drifts under CSS zoom), so the beams always sit on its lines
     and neither moves while the page scrolls. */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 128px 128px;
}
.beams i {
  position: absolute;
  top: 0;
  width: 1px;
  height: 12vh;
  background: linear-gradient(180deg, transparent, rgba(106, 139, 255, 0.5) 55%, rgba(56, 217, 245, 0.8));
  opacity: 0.5;
  transform: translateY(-30vh);
  animation: beamFall linear forwards;
  will-change: transform;
}
@keyframes beamFall {
  to { transform: translateY(130vh); }
}

/* Upward beams: bright edge leads at the top */
.beams i.up {
  background: linear-gradient(0deg, transparent, rgba(106, 139, 255, 0.5) 55%, rgba(56, 217, 245, 0.8));
  transform: translateY(130vh);
  animation-name: beamRise;
}
@keyframes beamRise {
  to { transform: translateY(-30vh); }
}

/* Horizontal beams: left-to-right by default, .rev runs right-to-left */
.beams i.h {
  left: 0;
  width: 12vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(106, 139, 255, 0.5) 55%, rgba(56, 217, 245, 0.8));
  transform: translateX(-30vw);
  animation-name: beamRun;
}
@keyframes beamRun {
  to { transform: translateX(130vw); }
}
.beams i.h.rev {
  background: linear-gradient(270deg, transparent, rgba(106, 139, 255, 0.5) 55%, rgba(56, 217, 245, 0.8));
  transform: translateX(130vw);
  animation-name: beamRunBack;
}
@keyframes beamRunBack {
  to { transform: translateX(-30vw); }
}

/* Keep page content above the beam layer */
.section-inner, .stats-inner, .cta-inner, .footer-inner, .ticker {
  position: relative;
  z-index: 2;
}

/* ============================================================
   Shared atoms
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono), monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 8px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-big { padding: 17px 32px; font-size: 15px; }

.btn-primary {
  background: #fff;
  color: #0a0d16;
  border: 1px solid #fff;
}
.btn-primary:hover {
  background: #e8ecff;
  box-shadow: 0 8px 32px -8px var(--glow);
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo { height: 21px; display: block; }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  position: relative;
  font-family: var(--font-mono), monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { padding: 9px 18px; font-size: 13px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh / var(--page-zoom) - 70px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 110px) var(--pad-x) clamp(48px, 7vh, 90px);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "eyebrow"
    "title"
    "sub";
  width: 100%;
}

.hero-eyebrow { grid-area: eyebrow; text-transform: none; }

.hero h1 {
  grid-area: title;
  font-size: clamp(2.9rem, 8.2vw, 7.4rem);
  margin-bottom: clamp(28px, 4vh, 48px);
  white-space: nowrap;
}

/* Kinetic line reveal */
.line-mask { display: block; overflow: hidden; }
.line {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.loaded .line { transform: translateY(0); }
.line-mask:nth-child(2) .line { transition-delay: 0.12s; }

.hero-sub { grid-area: sub; align-self: center; }
.lede {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  max-width: 46ch;
  color: var(--text);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ============================================================
   Ticker
   ============================================================ */
.ticker {
  overflow: hidden;
  background: var(--bg-2);
}
/* Two identical groups; -50% shifts exactly one group width, so the
   loop restart is seamless (a flat gap list made it jump half a gap). */
.ticker-track {
  display: flex;
  width: max-content;
  padding: 16px 0;
  animation: ticker 20s linear infinite;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}
.ticker span {
  font-family: var(--font-mono), monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker i { color: var(--accent); font-style: normal; font-size: 11px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Stats
   ============================================================ */

.stats-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: clamp(48px, 7vh, 72px) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num {
  font-family: var(--font-display), sans-serif;
  font-stretch: 116%;
  font-weight: 720;
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ============================================================
   Sections
   ============================================================ */

.section-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: clamp(80px, 11vh, 140px) var(--pad-x);
}

.section h2, .cta-final h2 {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  margin-bottom: clamp(44px, 6vh, 72px);
  max-width: 22ch;
}

/* ---- Bento sources ---- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bento-wide { grid-column: span 2; }

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 28px 26px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.card:hover { border-color: var(--border); background: var(--surface-2); }

.card-index {
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 40px;
}
.card h3 {
  font-size: 1.06rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p { font-size: 0.93rem; color: var(--muted); position: relative; z-index: 1; }

.spark {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 70px;
  opacity: 0.8;
}

/* ---- Trust ---- */
.trust-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.trust-inner h2 { margin-bottom: 24px; }
.trust-lede { color: var(--muted); max-width: 42ch; }

.trust-list { list-style: none; display: flex; flex-direction: column; }
.trust-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.97rem;
  color: var(--muted);
}
.trust-list li:first-child { padding-top: 6px; }
.trust-list strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; }

/* ---- Deals ---- */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Each deal card: rotating conic border in its own color */
.deal-card {
  --dc1: var(--accent);
  --dc2: var(--accent-2);
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 1px;
}
.deal-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from var(--spin, 0deg), transparent 12%, var(--dc1) 26%, var(--dc2) 34%, transparent 48%, transparent 62%, var(--dc1) 78%, transparent 92%);
  animation: spin 6s linear infinite;
}
.deal-cpa { --dc1: var(--accent); --dc2: var(--accent-2); }
.deal-hybrid { --dc1: #a06bff; --dc2: #ee6bd8; }
.deal-hybrid::before { animation-delay: -2s; }
.deal-rev { --dc1: var(--green); --dc2: #b8e05a; }
.deal-rev::before { animation-delay: -4s; }
@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin { to { --spin: 360deg; } }

.deal-card-body {
  position: relative;
  z-index: 1;
  background: linear-gradient(170deg, #10182b, #0a0e19);
  border-radius: 13px;
  padding: 31px 27px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deal-name {
  font-family: var(--font-display), sans-serif;
  font-stretch: 118%;
  font-weight: 740;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--dc1) 0%, var(--dc2) 50%, var(--dc1) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradFlow 5s linear infinite;
}
.deal-desc { font-size: 0.95rem; color: var(--muted); flex-grow: 1; position: relative; z-index: 1; }
.deal-meta {
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dc1);
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  position: relative;
  z-index: 1;
}

/* ============================================================
   Final CTA
   ============================================================ */
.cta-final {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(96px, 15vh, 180px) var(--pad-x);
}
.cta-inner .eyebrow { margin-bottom: 24px; }
.cta-inner h2 { margin-left: auto; margin-right: auto; margin-bottom: 28px; }
.cta-inner .lede { margin: 0 auto; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: 36px 0; }
.footer-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand-small .brand-logo { height: 16.5px; }
.footer-note {
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}
.footer-copy { font-family: var(--font-mono), monospace; font-size: 12px; color: var(--muted); }

/* ============================================================
   Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* Reduced motion: skip entrance choreography, but keep the ambient
   effects (marquee, borders, cursor light) the site is built around. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .line { opacity: 1; transform: none; transition: none; }
  .curtain { display: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .hero { min-height: 0; }
  .hero h1 { font-size: clamp(2rem, 9.3vw, 7.4rem); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .deals-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-cta { margin-left: auto; }
  .footer-note { margin-left: 0; }
  .spark { display: none; }
}

/* Very wide screens (QHD, ultrawide, 4K): scale the whole layout up.
   The design is px-based and tuned for ~1440–1920, so we zoom it
   proportionally — typography, grid texture and beams stay in sync. */
@media (min-width: 1920px) {
  :root { zoom: 1.5; --page-zoom: 1.5; }
}
@media (min-width: 3000px) {
  :root { zoom: 1.5; --page-zoom: 1.5; }
}
@media (min-width: 3600px) {
  :root { zoom: 2; --page-zoom: 2; }
}

/* ============================================================
   404
   ============================================================ */
.error-hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh / var(--page-zoom) - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px var(--pad-x);
}
.error-code {
  font-size: clamp(7rem, 24vw, 16rem);
  line-height: 0.9;
}
.error-title {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  margin-top: 14px;
}
.error-hero .lede { margin-top: 18px; }
.error-actions { margin-top: 36px; }
