/* =================================================================
   NOXIS AI — Apple × Palantir
   Refined display serif × tactical mono labels
   ================================================================= */

:root {
  /* Surfaces — warm-leaning near-black, no pure Apple cool grays */
  --bg: #0a0a0b;
  --bg-elev: #111113;
  --surface: #141416;
  --surface-2: #1a1a1c;
  --border: rgba(240, 235, 225, 0.07);
  --border-strong: rgba(240, 235, 225, 0.14);
  --border-bright: rgba(240, 235, 225, 0.24);

  /* Text — warm whites, editorial */
  --text: #f1ece2;
  --text-dim: #a6a09a;
  --text-muted: #807a73;
  --text-faint: #565049;

  /* Accent — subtle champagne, our signature warm highlight */
  --accent: #d9c89e;
  --accent-dim: #b5a37a;
  --accent-soft: rgba(217, 200, 158, 0.08);

  /* Subtle alert tone — muted, no harsh orange */
  --tac: var(--accent);

  /* Geometry */
  --max: 1440px;
  --pad: clamp(20px, 5vw, 64px);
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Type */
  --font-sans: 'Space Grotesk', ui-sans-serif, sans-serif;
  --font-serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

body {
  overflow-x: hidden;
  background:
    /* Very subtle ambient glow w/ warm tint */
    radial-gradient(900px 700px at 85% -10%, rgba(217, 200, 158, 0.05), transparent 60%),
    radial-gradient(700px 600px at -10% 30%, rgba(255, 245, 230, 0.018), transparent 60%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.serif {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--accent);
}
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

/* =================================================================
   LAYOUT
   ================================================================= */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section {
  padding-top: clamp(80px, 12vw, 180px);
  padding-bottom: clamp(80px, 12vw, 180px);
  position: relative;
}

/* Palantir-flavoured bracketed mono section label */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
  white-space: nowrap;
  align-self: flex-start;
}
.section-eyebrow > span { white-space: nowrap; }
.section-eyebrow .bracket {
  color: var(--text-faint);
}
.section-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in oklab, var(--accent) 60%, transparent);
  border-radius: 50%;
  animation: liveDot 1.8s infinite;
}

/* Apple-scale serif-flavoured display heading */
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 400;
  max-width: 24ch;
  margin-bottom: 28px;
  color: var(--text);
  text-wrap: balance;
}
.section-title .serif {
  color: var(--accent);
  display: inline;
}
.section-title em { font-style: normal; color: color-mix(in oklab, var(--accent) 90%, white); }

.section-subtitle {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-dim);
  max-width: 56ch;
  line-height: 1.55;
}

.section-head {
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(56px, 7vw, 96px);
}

/* Tactical cross-hair markers on big surfaces */
.tac-mark {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.tac-mark::before, .tac-mark::after {
  content: '';
  position: absolute;
  background: var(--border-bright);
}
.tac-mark::before { left: 5px; top: 0; bottom: 0; width: 1px; }
.tac-mark::after { top: 5px; left: 0; right: 0; height: 1px; }

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(8, 8, 10, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-logo {
  height: 22px;
  width: auto;
  display: block;
}
.footer-brand .brand-logo { height: 26px; }
.brand-mark {
  width: 24px;
  height: 24px;
  border: 1px solid var(--text);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 600;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0;
}
.brand-mark::before, .brand-mark::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid var(--text);
  background: var(--bg);
}
.brand-mark::before { top: -3px; left: -3px; }
.brand-mark::after  { bottom: -3px; right: -3px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
  font-weight: 400;
}
.nav-links a:hover { color: var(--text); }
.nav-cta-group { display: flex; align-items: center; gap: 10px; }
@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* =================================================================
   BUTTONS — squarish Palantir + Apple-pill mix
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.btn-primary:hover { background: #fff; box-shadow: 0 6px 20px rgba(255,255,255,0.12); }
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--border-bright); }
.btn-tac {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-tac::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: inherit;
}
.btn-tac:hover::before { opacity: 1; }
.btn-lg { padding: 14px 22px; font-size: 14px; }
.btn-sm { padding: 8px 13px; font-size: 12px; }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(3px); }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(80px, 10vw, 160px);
  position: relative;
  overflow: visible;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(40px, 5vw, 70px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 36px;
  background: rgba(255, 255, 255, 0.02);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-tag .pill {
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: var(--r-xs);
  text-transform: uppercase;
  font-family: var(--font-mono);
  border: 1px solid color-mix(in oklab, var(--accent) 50%, transparent);
}
.hero-tag .pill::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  margin-right: 7px;
  vertical-align: 1px;
  animation: liveDot 1.8s infinite;
}

/* Apple-scale display headline */
.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.045em;
  font-weight: 400;
  margin-bottom: 32px;
  color: var(--text);
  text-wrap: balance;
}
.hero h1 .serif {
  display: inline;
  color: var(--accent);
  letter-spacing: -0.045em;
}
.hero p.lead {
  font-size: clamp(17px, 1.45vw, 20px);
  color: var(--text-dim);
  max-width: 50ch;
  margin-bottom: 40px;
  line-height: 1.5;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Tactical stats strip */
.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  max-width: 480px;
}
.hero-trust .stat {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-trust .stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.hero-trust .stat-num {
  color: var(--text);
  font-weight: 400;
  font-size: 28px;
  font-family: var(--font-sans);
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-trust .stat span:last-child {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-trust .sep { display: none; }

/* Hero visual — operational console */
.hero-visual {
  position: relative;
  height: clamp(440px, 50vw, 580px);
}
.hv-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}
.hv-card::before, .hv-card::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--border-bright);
  background: var(--bg);
  z-index: 5;
}
.hv-card::before { top: -4px; left: -4px; }
.hv-card::after  { bottom: -4px; right: -4px; }
.hv-terminal {
  top: 0; left: 0;
  width: 80%;
  height: 60%;
  z-index: 2;
  transform: rotate(0deg);
}
.hv-terminal-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.hv-dots { display: flex; gap: 5px; }
.hv-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.hv-dots span:first-child { background: rgba(255, 255, 255, 0.3); }
.hv-dots span:nth-child(2) { background: rgba(255, 255, 255, 0.22); }
.hv-dots span:nth-child(3) { background: rgba(255, 255, 255, 0.18); }
.hv-terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.hv-terminal-body {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--text-dim);
  letter-spacing: 0;
}
.hv-terminal-body .ln-prompt { color: var(--accent); }
.hv-terminal-body .ln-out { color: var(--text); }
.hv-terminal-body .ln-mute { color: var(--text-muted); }
.hv-terminal-body .ln-tac { color: var(--tac); }
.hv-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hv-chat {
  bottom: 0; right: 0;
  width: 64%;
  height: 56%;
  z-index: 3;
}
.hv-chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.hv-avatar {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: var(--text);
  display: grid; place-items: center;
  color: var(--bg);
  font-weight: 600;
  font-size: 12px;
  font-family: var(--font-mono);
}
.hv-chat-meta { display: flex; flex-direction: column; }
.hv-chat-name { font-size: 12.5px; font-weight: 500; }
.hv-chat-status {
  font-size: 10.5px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hv-chat-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hv-chat-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Reserve space for the tallest of the rotating conversations so the
     hero doesn't reshuffle every 4.5s when the script changes. */
  min-height: 168px;
}
.hv-bubble {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: var(--r-md);
  font-size: 12.5px;
  line-height: 1.45;
}
.hv-bubble.in {
  background: var(--surface-2);
  border: 1px solid var(--border);
  align-self: flex-start;
}
.hv-bubble.out {
  background: var(--text);
  color: var(--bg);
  align-self: flex-end;
}
.hv-typing {
  display: inline-flex; gap: 3px;
  padding: 11px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  align-self: flex-start;
}
.hv-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.4s infinite ease-in-out;
}
.hv-typing span:nth-child(2) { animation-delay: 0.15s; }
.hv-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Tactical floating pill — Palantir data badge */
.hv-pill {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  border-radius: var(--r-sm);
  font-size: 11px;
  font-family: var(--font-mono);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}
.hv-pill .ico {
  width: 16px; height: 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.hv-pill-1 { top: 8%; right: 4%; }
.hv-pill-2 { bottom: 16%; left: -2%; }

@media (max-width: 980px) {
  .hero-visual { width: 100%; height: 480px; max-width: 540px; margin: 0 auto; }
}

/* =================================================================
   LOGO STRIP
   ================================================================= */
.logos {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.008);
}
.logos-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.logos-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.logos-row {
  display: flex;
  gap: clamp(20px, 4vw, 50px);
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.75;
}
.logo-ph {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.logo-ph::before {
  content: '';
  width: 14px; height: 14px;
  border: 1px solid var(--border-bright);
}

/* =================================================================
   SERVICES — Apple grid with Palantir labels
   ================================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: transparent;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 32px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.service-card:hover {
  background: rgba(255, 255, 255, 0.015);
}
.service-card .num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  margin-bottom: 36px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.service-card .num::before {
  content: '[ ';
  color: var(--text-faint);
}
.service-card .num::after {
  content: ' ]';
  color: var(--text-faint);
}
.service-card .ico {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  color: var(--text);
  margin-bottom: 28px;
}
.service-card h3 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.15;
  color: var(--text);
}
.service-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 36ch;
}
.service-card .for {
  margin-top: auto;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-top: 20px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.service-card .for b { color: var(--text); font-weight: 500; }

/* Featured */
.service-card.feat {
  grid-column: span 2;
  background:
    radial-gradient(500px 280px at 80% 20%, color-mix(in oklab, var(--accent) 6%, transparent), transparent 70%);
  flex-direction: row;
  gap: 36px;
}
.service-card.feat .feat-left { flex: 1; display: flex; flex-direction: column; }
.service-card.feat .feat-right {
  flex: 0 0 260px;
  display: grid;
  place-items: center;
  position: relative;
}
@media (max-width: 820px) {
  .service-card.feat { grid-column: span 1; flex-direction: column; }
  .service-card.feat .feat-right { flex: 0; width: 100%; height: 200px; }
}

/* Voice orb — more refined */
.voice-orb {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 65%);
  display: grid; place-items: center;
  position: relative;
}
.voice-orb::before, .voice-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  animation: pulseRing 3s infinite;
}
.voice-orb::after { animation-delay: 1.5s; }
@keyframes pulseRing {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.voice-wave {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 90px;
}
.voice-wave span {
  width: 3px;
  background: var(--text);
  animation: wave 1.2s infinite ease-in-out;
}
.voice-wave span:nth-child(1) { height: 30%; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 95%; animation-delay: 0.2s; background: var(--accent); }
.voice-wave span:nth-child(4) { height: 70%; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 100%; animation-delay: 0.15s; background: var(--accent); }
.voice-wave span:nth-child(6) { height: 50%; animation-delay: 0.25s; }
.voice-wave span:nth-child(7) { height: 80%; animation-delay: 0.05s; }
.voice-wave span:nth-child(8) { height: 35%; animation-delay: 0.3s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* =================================================================
   DEMO
   ================================================================= */
.demo-wrap {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
}
.demo-wrap::before, .demo-wrap::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--border-bright);
  background: var(--bg);
}
.demo-wrap::before { top: -5px; left: -5px; }
.demo-wrap::after { bottom: -5px; right: -5px; }
@media (max-width: 880px) {
  .demo-wrap { grid-template-columns: 1fr; }
}
.demo-left .badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-bright);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  margin-bottom: 28px;
}
.demo-left h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: -0.04em;
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 20px;
}
.demo-left h2 .serif { color: var(--accent); }
.demo-left p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 28px;
}
.demo-left ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.demo-left li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.demo-left li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--accent);
}

.chat-shell {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  height: 540px;
  display: flex;
  flex-direction: column;
}
.chat-shell-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.chat-shell-head .av {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--text);
  display: grid; place-items: center;
  color: var(--bg);
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-mono);
}
.chat-shell-head .meta { display: flex; flex-direction: column; flex: 1; }
.chat-shell-head .meta .name { font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em; }
.chat-shell-head .meta .role {
  font-size: 10.5px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.chat-shell-head .meta .role::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border-strong); }

.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  line-height: 1.5;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.bot {
  background: var(--surface);
  border: 1px solid var(--border);
  align-self: flex-start;
}
.msg.user {
  background: var(--text);
  color: var(--bg);
  align-self: flex-end;
  font-weight: 500;
}
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}
.chat-input input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input input:focus { border-color: var(--accent); }
.chat-input button {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-sm);
  padding: 0 18px;
  font-weight: 600;
  font-size: 12.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.chat-input button:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-suggest {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 0 12px 10px;
}
.chat-suggest button {
  font-size: 11.5px;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-dim);
  font-family: var(--font-mono);
  transition: all 0.2s;
}
.chat-suggest button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.persona-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  flex-wrap: wrap;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  width: max-content;
  overflow: hidden;
}
.persona-tab {
  font-size: 11.5px;
  padding: 8px 14px;
  border-right: 1px solid var(--border-strong);
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.persona-tab:last-child { border-right: none; }
.persona-tab.active {
  background: var(--text);
  color: var(--bg);
}
.persona-tab:hover:not(.active) {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

/* =================================================================
   INDUSTRIES — sharper grid
   ================================================================= */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (max-width: 980px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .industries-grid { grid-template-columns: 1fr; } }
.industry {
  padding: 28px 24px;
  background: transparent;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.industry:hover {
  background: rgba(255,255,255,0.015);
}
.industry .ico {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: var(--text);
}
.industry h4 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.industry .pain {
  font-size: 11px;
  color: var(--tac);
  margin-bottom: 18px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.industry ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.industry li {
  display: flex;
  gap: 10px;
  padding-left: 14px;
  position: relative;
}
.industry li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 1px;
  background: var(--text-faint);
}

/* =================================================================
   METHOD — tactical timeline
   ================================================================= */
.method-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border);
}
@media (max-width: 820px) { .method-timeline { grid-template-columns: 1fr; } }
.method-step {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.25s;
}
.method-step:hover { background: rgba(255,255,255,0.015); }
.method-step::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.5s ease;
}
.method-step:hover::before { width: 100%; }
.method-step .step-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 11px;
  margin-bottom: 32px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.method-step h3 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.method-step p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 20px;
}
.method-step .meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* =================================================================
   STATS — bigger, refined
   ================================================================= */
.stats-band {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: clamp(48px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  position: relative;
  background:
    radial-gradient(400px 200px at 50% 0%, color-mix(in oklab, var(--accent) 4%, transparent), transparent 70%),
    var(--surface);
}
@media (max-width: 820px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stat-block {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.stat-block:first-child { border-left: none; padding-left: 0; }
@media (max-width: 820px) {
  .stat-block:nth-child(3) { border-left: none; padding-left: 0; }
}
.stat-block .num {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
  font-family: var(--font-sans);
  margin-bottom: 12px;
}
.stat-block .lbl {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 22ch;
}

/* =================================================================
   FAQ
   ================================================================= */
.faq-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.faq-q .toggle {
  width: 24px; height: 24px;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all 0.2s;
  color: var(--text-dim);
  border-radius: var(--r-xs);
}
.faq-item.open .faq-q .toggle {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  transition: max-height 0.4s ease, padding 0.3s, opacity 0.3s;
  opacity: 0;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-top: 14px;
  opacity: 1;
}

/* =================================================================
   FINAL CTA
   ================================================================= */
.final-cta {
  background:
    radial-gradient(700px 400px at 50% 100%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: clamp(64px, 9vw, 140px) clamp(28px, 5vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
  pointer-events: none;
}
.final-cta-inner { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.045em;
  line-height: 1.0;
  font-weight: 400;
  max-width: 20ch;
  margin: 0 auto 24px;
  text-wrap: balance;
}
.final-cta h2 .serif { color: var(--accent); display: inline; }
.final-cta p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  max-width: 54ch;
  margin: 0 auto 36px;
}
.final-cta-ctas {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 28px;
}
.final-cta .micro {
  font-size: 11px;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.final-cta .micro::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 60px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 36ch;
  font-family: var(--font-mono);
  line-height: 1.55;
}
.footer-cols {
  display: flex;
  gap: clamp(28px, 5vw, 72px);
  flex-wrap: wrap;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =================================================================
   TESIS — antes / después comparison
   ================================================================= */
.tesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 820px) { .tesis-grid { grid-template-columns: 1fr; } }
.tesis-col {
  background: var(--bg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.tesis-col-good { background: var(--bg-elev); }
.tesis-col-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.tesis-col-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tesis-col-bad .tesis-col-tag { color: var(--text-muted); }
.tesis-col-good .tesis-col-tag { color: var(--accent); }
.tesis-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tesis-col li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--text-dim);
  letter-spacing: -0.005em;
}
.tesis-col-good li { color: var(--text); }
.tesis-col .bullet {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}
.tesis-col .bullet.bad { color: var(--text-muted); }
.tesis-col .bullet.good {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.tesis-bottom {
  margin-top: 48px;
  text-align: center;
  padding: 0 5%;
}
.tesis-bottom p {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 32ch;
  margin: 0 auto;
}

/* =================================================================
   PRODUCTOS — two big verticals with capabilities + tiers
   ================================================================= */
.products {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.product {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.product::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 100% 0%, color-mix(in oklab, var(--accent) 4%, transparent), transparent 70%);
  pointer-events: none;
}
.product > * { position: relative; z-index: 1; }
.product-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.product-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xs);
}
.product-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.product-title {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 24ch;
  text-wrap: balance;
}
.product-title .serif { color: var(--accent); }
.product-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 64ch;
  margin-bottom: 40px;
}

.product-caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-bottom: 32px;
}
.product-caps-2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .product-caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  {
  .product-caps,
  .product-caps-2col {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 0;
    gap: 12px;
  }
  .product-caps .cap {
    border: 1px solid var(--border);
    border-radius: 8px;
  }
}
.cap {
  padding: 28px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.012);
}
.cap-ico {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.cap h4 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}
.cap p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Tiers */
.product-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.product-tiers.single { grid-template-columns: 1fr; }
@media (max-width: 720px) { .product-tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier-feat {
  background: linear-gradient(180deg, rgba(217, 200, 158, 0.04), transparent),
              var(--bg);
  border-color: var(--accent);
}
.tier-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 3px 8px;
  border-radius: var(--r-xs);
  font-weight: 600;
}
.tier-name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.tier-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}
.tier-price {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.tier-period {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tier-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}
.tier-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.45;
}
.tier-feats li svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}
.tier .btn { width: 100%; }

/* =================================================================
   MÉTODO — 5 columns
   ================================================================= */
.method-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .method-5 { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 540px)  { .method-5 { grid-template-columns: 1fr !important; } }

/* =================================================================
   FILOSOFÍA — 5 principles
   ================================================================= */
.philo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (max-width: 1080px) { .philo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .philo-grid { grid-template-columns: 1fr; } }
.philo {
  padding: 32px 26px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.philo-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}
.philo h3 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
  max-width: 12ch;
}
.philo p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* =================================================================
   DYNAMICS — scroll reveal, spotlight, floating CTA
   ================================================================= */

/* Mouse spotlight — soft cursor-tracked surface highlight */
.mouse-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      540px circle at var(--mx, 50%) var(--my, 50%),
      color-mix(in oklab, var(--accent) 14%, transparent),
      transparent 60%
    );
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* Ensure content sits above the spotlight */
.nav, .hero, .section, .footer, .scroll-progress, .floating-aria,
#root > section, #root > nav, #root > footer {
  position: relative;
  z-index: 1;
}

/* Floating Aria CTA — bottom-right pulse button */
.floating-aria {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  background: rgba(15, 15, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: faIn 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition: transform 0.25s cubic-bezier(0.2, 0.6, 0.2, 1), border-color 0.2s, box-shadow 0.25s;
}
@keyframes faIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.floating-aria:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7),
              0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent);
}
.fa-pulse, .fa-pulse-2 {
  position: absolute;
  left: 28px;
  top: 50%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  animation: faPulse 2.4s infinite cubic-bezier(0.2, 0.6, 0.2, 1);
}
.fa-pulse-2 { animation-delay: 1.2s; }
@keyframes faPulse {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}
.fa-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  z-index: 1;
}
.fa-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.fa-eyebrow {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent);
  letter-spacing: 0.16em;
}
.fa-msg {
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.fa-arr {
  display: grid;
  place-items: center;
  color: var(--text-dim);
  margin-left: 4px;
  transition: transform 0.2s, color 0.2s;
}
.floating-aria:hover .fa-arr { transform: translateX(3px); color: var(--accent); }

@media (max-width: 540px) {
  .floating-aria {
    right: 12px;
    bottom: 12px;
    padding: 8px 14px 8px 8px;
  }
  .fa-text { display: none; }
  .fa-arr { display: none; }
}

/* Magnetic buttons */
.btn-primary {
  transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1), background 0.2s, box-shadow 0.25s;
}

/* Scroll progress bar at top */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.scroll-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: calc(var(--scroll-progress, 0) * 100%);
  background: linear-gradient(90deg, transparent, var(--accent));
  transition: width 0.1s linear;
}

/* Word-by-word reveal (Apple-style) */
.split-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}
.split-reveal.in .word {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Bigger entrance for product cards */
.product {
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.product.reveal {
  opacity: 0;
  transform: translate3d(0, 48px, 0) scale(0.985);
}
.product.reveal.in {
  opacity: 1;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(1);
}

/* Cap (capability) stagger inside products */
.cap.reveal {
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* Method steps slide in from left, staggered */
.method-step.reveal {
  transform: translateX(-20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.method-step.reveal.in {
  transform: translateX(0);
}

/* Philo cards alternate direction */
.philo.reveal {
  transform: translateY(28px);
}
.philo.reveal:nth-child(even) {
  transform: translateY(36px);
}
.philo.reveal.in { transform: translateY(0); }

/* Final CTA larger entrance */
.final-cta.reveal {
  transform: translateY(40px) scale(0.97);
  transition: opacity 1.1s cubic-bezier(0.2, 0.6, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.final-cta.reveal.in {
  transform: translateY(0) scale(1);
}

/* Hero visual gets parallax-applied transform; no .reveal class on it.
   But we want a fade-in on first paint. */
.hero-visual {
  animation: heroVisIn 1.2s 0.3s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}
@keyframes heroVisIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Live Ops Widget — Palantir-style status panel */
.live-ops {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  background: rgba(15, 15, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  min-width: 280px;
  max-width: 340px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  animation: loIn 0.6s 0.8s both cubic-bezier(0.2, 0.6, 0.2, 1);
  opacity: 0;
}
@keyframes loIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.live-ops.min { min-width: auto; }
.live-ops-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  width: 100%;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.live-ops.min .live-ops-head { border-bottom: none; }
.live-ops-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent);
  animation: loPulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes loPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 12px transparent; }
}
.live-ops-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  text-align: left;
}
.lo-label {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.lo-status {
  font-size: 11.5px;
  color: var(--text);
  letter-spacing: 0;
}
.lo-status-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.lo-status-mini .lo-tag {
  font-size: 8.5px;
  padding: 1px 4px;
}
.lo-status-mini .lo-msg {
  font-size: 11px;
  color: var(--text-dim);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-ops.min .live-ops-head { padding: 8px 12px; }
.live-ops.min { min-width: 280px; max-width: 320px; }
.live-ops-tog {
  font-size: 14px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  line-height: 1;
}
.live-ops-feed {
  padding: 8px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow: hidden;
}
.lo-event {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--text-dim);
  padding: 6px 0;
  animation: loEvent 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
  border-top: 1px solid var(--border);
}
.lo-event:first-child { border-top: none; }
@keyframes loEvent {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.lo-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 2px 5px;
  border-radius: 3px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid var(--border-strong);
}
.lo-tag-retail { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.lo-tag-re     { color: #b8c5d6; border-color: rgba(184, 197, 214, 0.4); }
.lo-tag-ops    { color: var(--text-dim); }
.lo-msg {
  color: var(--text);
  letter-spacing: 0;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lo-time {
  color: var(--text-faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 540px) {
  .live-ops {
    right: 12px;
    bottom: 12px;
    min-width: auto;
    max-width: calc(100vw - 24px);
  }
}

/* Hero SVG data paths */
.hero-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hp-anim {
  animation: hpDash 4s linear infinite;
}
.hp-anim-2 {
  animation: hpDash 5.5s linear infinite reverse;
}
@keyframes hpDash {
  to { stroke-dashoffset: -200; }
}

/* Capability cards stagger on reveal */
.product .cap.reveal {
  transition-delay: calc(var(--reveal-delay, 0ms) + 100ms);
}

/* Hero stat numbers — animate-in feel */
.hero-trust .stat-num {
  display: inline-block;
}

/* Pulse on live indicators in chat heads */
.hv-chat-status::before,
.chat-shell-head .role::before {
  animation: liveDot 1.8s infinite;
}
@keyframes liveDot {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

/* =================================================================
   UTILS
   ================================================================= */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* =================================================================
   MOBILE — concentrated overrides for phones (≤640 / ≤480 / ≤380)
   Appended at end so order-specificity wins without !important.
   ================================================================= */

/* — Phones (≤640px): the bulk of fixes — */
@media (max-width: 640px) {
  :root {
    --pad: clamp(16px, 5vw, 24px);
  }

  /* Nav: keep brand left + CTA right, tighten the CTA */
  .nav-inner { height: 56px; }
  .brand-logo { height: 20px; }
  .nav-cta-group .btn-sm { padding: 7px 11px; font-size: 11.5px; }
  .nav-cta-group .btn-sm svg { width: 12px; height: 12px; }

  /* Hero: reclaim breathing room, neutralise overflow */
  .hero { padding-top: 32px; padding-bottom: 0; }
  /* First section after hero (Tesis) — drop its top padding to close the gap.
     Other sections keep their normal rhythm via the generic .section rule. */
  .hero + .section { padding-top: 32px; }
  .hero-tag { margin-bottom: 24px; padding: 5px 5px 5px 10px; font-size: 10px; }
  .hero h1 { margin-bottom: 24px; }
  .hero p.lead { margin-bottom: 28px; }
  .hero-ctas { margin-bottom: 36px; gap: 8px; }
  .hero-ctas .btn-lg { padding: 12px 18px; font-size: 13px; flex: 1; min-width: 0; }
  .hero-trust {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    max-width: 100%;
  }
  .hero-trust .stat {
    padding-right: 12px;
    margin-right: 12px;
    min-width: 0;
  }
  .hero-trust .stat-num { font-size: 22px; }
  .hero-trust .stat span:last-child { font-size: 9.5px; letter-spacing: 0.08em; }

  /* Hero visual: break out of the desktop's absolute-positioning layout.
     In mobile we let both cards flow in normal block order — terminal first,
     chat second, container sizes to content. Zero phantom whitespace. */
  .hero-visual {
    position: relative;
    height: auto;        /* container hugs its children */
    max-width: 100%;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: visible;   /* allow pills/animations to render fully */
  }
  .hv-terminal,
  .hv-chat {
    position: relative;  /* override desktop's position:absolute */
    width: 100%;
    height: auto;
    top: auto; left: auto; right: auto; bottom: auto;
  }
  .hv-terminal-head { padding: 8px 12px; }
  .hv-terminal-title { font-size: 9.5px; }
  .hv-terminal-body {
    padding: 12px 14px;
    font-size: 10.5px;
    line-height: 1.65;
    word-break: break-word;
    /* Reserve room for the tallest terminal block so wrapping doesn't
     bump the rest of the page when the command rotates. */
    min-height: 180px;
  }
  .hv-chat-head { padding: 9px 12px; }
  .hv-chat-head .hv-avatar { width: 26px; height: 26px; font-size: 12px; }
  .hv-chat-name { font-size: 12px; }
  .hv-chat-status { font-size: 9.5px; }
  /* Reserve enough vertical room for the tallest of the 4 rotating
     conversations (≈3 bubbles of 2 lines each + gaps). Prevents the
     page from jumping every 4.5s when the chat script changes. */
  .hv-chat-body { padding: 12px; gap: 7px; min-height: 168px; }
  .hv-bubble {
    font-size: 12px;
    padding: 8px 11px;
    line-height: 1.4;
    max-width: 85%;
  }
  /* Pills: bring them back but as floating overlay (out of flex flow).
     They sit on the corners of .hero-visual, layered above the stacked
     cards via z-index. No layout impact, pure visual accent. */
  .hv-pill {
    display: inline-flex;
    position: absolute;
    z-index: 4;
    font-size: 9px;
    padding: 5px 9px;
    gap: 6px;
    letter-spacing: 0.05em;
  }
  .hv-pill .ico { width: 12px; height: 12px; font-size: 8px; }
  .hv-pill-1 { top: -8px; right: 4px; }       /* peeks above the terminal */
  .hv-pill-2 { bottom: -8px; left: 4px; }     /* peeks below the chat */
  /* SVG data paths: keep hidden in mobile — they were drawn for the
     desktop's absolute-positioned cards. In a vertical stack they'd
     point to wrong coordinates. */
  .hero-paths { display: none; }

  /* Section heads: tighter rhythm */
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-head { margin-bottom: 40px; }
  .section-eyebrow { margin-bottom: 20px; font-size: 10px; }

  /* Products: kill the radial gradient pulling the eye sideways */
  .product { padding: 28px 22px; }
  .product-head { margin-bottom: 16px; flex-wrap: wrap; }
  .product-title { font-size: 26px; margin-bottom: 14px; }
  .product-desc { font-size: 14.5px; margin-bottom: 28px; }
  .cap { padding: 22px 18px; }
  .cap h4 { font-size: 15px; }
  .cap p { font-size: 13px; }

  /* Tiers: the only place tier-price could overflow with a long period */
  .tier { padding: 24px 22px; }
  .tier-price-row { flex-wrap: wrap; gap: 6px; }
  .tier-price { font-size: 36px; }
  .tier-period { font-size: 11px; }
  .tier-feats li { font-size: 13.5px; }

  /* Tesis: tighter padding for the antes/después cards */
  .tesis-col { padding: 28px 22px; }
  .tesis-col li { font-size: 14.5px; gap: 12px; }
  .tesis-bottom { margin-top: 32px; padding: 0; }

  /* Method steps: cleaner stack */
  .method-step { padding: 28px 24px; }
  .method-step h3 { font-size: 22px; }

  /* Filosofía cards */
  .philo { padding: 24px 20px; }
  .philo h3 { font-size: 18px; max-width: none; }

  /* Demo wrap: kill the side padding crush */
  .demo-wrap { padding: 24px 18px; gap: 24px; }
  .demo-left h2 { font-size: 30px; }
  .demo-left p { font-size: 14.5px; margin-bottom: 22px; }

  /* Persona tabs: were width:max-content → would overflow.
     Allow horizontal scroll inside the tab strip instead. */
  .persona-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .persona-tabs::-webkit-scrollbar { display: none; }
  .persona-tab { flex-shrink: 0; padding: 8px 12px; font-size: 11px; }

  /* Chat shell: reclaim vertical space — desktop's 540px is too much */
  .chat-shell { height: 480px; }
  .chat-body { padding: 16px; }
  .msg { font-size: 13px; max-width: 88%; }
  .chat-suggest { padding: 0 10px 8px; }
  .chat-suggest button { font-size: 10.5px; padding: 4px 8px; }
  .chat-input { padding: 10px; }
  .chat-input input { font-size: 14px; padding: 10px 12px; }
  .chat-input button { padding: 0 14px; font-size: 11.5px; }

  /* FAQ */
  .faq-q { font-size: 16px; }
  .faq-a { font-size: 14px; }

  /* Final CTA: reduce huge padding that was crushing copy */
  .final-cta { padding: 56px 22px; }
  .final-cta-ctas { gap: 8px; }
  .final-cta-ctas .btn-lg { flex: 1; min-width: 0; }
  .final-cta h2 { margin-bottom: 18px; }
  .final-cta p { margin-bottom: 26px; font-size: 15px; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 28px; margin-bottom: 28px; }
  .footer-cols { gap: 24px; }
  .footer-col h5 { margin-bottom: 12px; }
  .footer-col ul { gap: 8px; }

  /* Live Ops widget: pure decoration → hide on phones to free real estate
     for the Floating Aria CTA (the actual conversion driver). */
  .live-ops { display: none; }

  /* Floating Aria CTA: respect iOS home-indicator safe area, keep on top */
  .floating-aria {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    padding: 8px 16px 8px 8px;
  }
  /* Pulse rings: recenter on mobile avatar (padding 8px + avatar/2 = 24px) */
  .fa-pulse, .fa-pulse-2 {
    width: 30px;
    height: 30px;
    left: 24px;
  }
  .fa-av {
    width: 32px;
    height: 32px;
    font-size: 13px;
    padding-top: 0;
  }
}

/* — Very small phones (≤380px): iPhone SE, older Androids — */
@media (max-width: 380px) {
  .nav-cta-group .btn-sm { padding: 6px 9px; font-size: 11px; }
  .nav-cta-group .btn-sm svg { display: none; }   /* arrow eats space */

  .hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .hero p.lead { font-size: 15.5px; }

  /* Trust stats: 3 columns crushes at this width → stack 2+1 cleanly */
  .hero-trust {
    grid-template-columns: 1fr 1fr;
    gap: 14px 0;
  }
  .hero-trust .stat {
    border-right: 1px solid var(--border);
    padding-right: 12px;
    margin-right: 0;
  }
  .hero-trust .stat:nth-child(2) { border-right: none; padding-right: 0; }
  .hero-trust .stat:last-child { grid-column: 1 / -1; border-right: none; }

  .hero-visual { height: 340px; }
  .hv-terminal { width: 92%; }
  .hv-chat { width: 78%; }

  .product-title { font-size: 23px; }
  .tier-price { font-size: 32px; }
  .final-cta h2 { font-size: clamp(30px, 9vw, 44px); }
}

/* — Landscape phones: hero visual would dominate full viewport — */
@media (max-width: 880px) and (orientation: landscape) and (max-height: 500px) {
  .hero { padding-top: 24px; padding-bottom: 32px; }
  .hero-visual { height: 320px; }
  .live-ops, .floating-aria { display: none; }   /* no room */
}
