/* ============================================
   ESCALA — Arquitectura de Ingresos
   Tech oscuro premium · Bloomberg-grade
   ============================================ */

:root {
  /* Core palette */
  --bg: #04060B;
  --bg-1: #070A12;
  --bg-2: #0B0F1A;
  --bg-3: #11172A;
  --line: rgba(120, 160, 255, 0.10);
  --line-strong: rgba(120, 160, 255, 0.22);

  /* Blues */
  --blue-50: #EAF2FF;
  --blue-100: #C7DAFF;
  --blue-200: #8FB4FF;
  --blue-300: #5C8DFF;
  --blue-400: #2E6BFF;
  --blue-500: #0A4DFF;        /* primary */
  --blue-600: #0036CC;
  --blue-glow: #4D7BFF;

  /* Money green (very subtle accent only for up-arrows / positive deltas) */
  --money: #2DD498;
  --money-dim: rgba(45, 212, 152, 0.55);

  --warn: #F59E0B;

  /* Type */
  --ink-1: #F2F5FB;
  --ink-2: #B6C0D6;
  --ink-3: #6E7A93;
  --ink-4: #424B62;

  --font-display: "Geist", "Inter", system-ui, sans-serif;
  --font-body: "Geist", "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(10, 77, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(10, 77, 255, 0.10), transparent 60%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ----- Selection ----- */
::selection { background: var(--blue-500); color: white; }

/* ============================================
   GRID BACKGROUND (subtle terminal feel)
   ============================================ */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 90%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================
   LAYOUT
   ============================================ */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 10vw, 140px) var(--pad);
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-200);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 77, 255, 0.06);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-300);
  box-shadow: 0 0 10px var(--blue-300);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink-1);
}

h1 {
  font-size: clamp(44px, 6.4vw, 88px);
  letter-spacing: -0.035em;
  font-weight: 500;
}

h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  letter-spacing: -0.028em;
}

h3 {
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 500;
}

p { color: var(--ink-2); margin: 0; }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.mono { font-family: var(--font-mono); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #1a5cff, #0a4dff);
  color: white;
  border-color: rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 8px 24px -8px rgba(10, 77, 255, 0.7),
    0 0 40px -10px rgba(77, 123, 255, 0.5);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 12px 32px -8px rgba(10, 77, 255, 0.8),
    0 0 60px -10px rgba(77, 123, 255, 0.7);
}
.btn-ghost {
  background: rgba(255,255,255,0.02);
  color: var(--ink-1);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(120, 160, 255, 0.06);
  border-color: rgba(120, 160, 255, 0.36);
}
.btn .arrow {
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 12px 8px 18px;
  background: rgba(7, 10, 18, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
  width: max-content;
  max-width: calc(100vw - 32px);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .dot {
  width: 8px; height: 8px;
  background: var(--blue-400);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--blue-400);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.nav-links {
  display: flex;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-2);
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--ink-1); background: rgba(255,255,255,0.04); }
.nav-cta {
  padding: 8px 16px !important;
  font-size: 13px !important;
}
@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ============================================
   FADE-IN ON SCROLL
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fade-in.in { opacity: 1; transform: translateY(0); }

.stagger > * { transition-delay: calc(var(--i, 0) * 60ms); }

/* ============================================
   UTILITIES
   ============================================ */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 0;
}

.glow-blue {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  background: radial-gradient(circle, rgba(10, 77, 255, 0.5), transparent 60%);
  z-index: 0;
}

footer {
  position: relative;
  z-index: 1;
  padding: 60px var(--pad) 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}
footer .footer-row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
