/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 7, 12, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease;
}
.site-header.scrolled {
  background: rgba(4, 7, 12, 0.78);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  gap: 24px;
}
.site-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.site-brand-name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; font-size: 16px; line-height: 1; }
.site-brand-sub { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.site-nav {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.site-nav a {
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 999px;
  transition: color 160ms, background 160ms;
  font-weight: 450;
  letter-spacing: -0.005em;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active {
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.site-nav a.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(251, 113, 133, 0.08);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.3);
  padding: 6px 12px;
}
.site-nav a.nav-live:hover { background: rgba(251, 113, 133, 0.14); color: #fda4af; }
.nav-live-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #fb7185;
  box-shadow: 0 0 8px #fb7185;
  animation: nav-pulse 1.4s ease-in-out infinite;
}
@keyframes nav-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}
.site-header-actions { justify-self: end; display: inline-flex; gap: 10px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.hero-orb-1 { top: -200px; right: -100px; width: 700px; height: 700px; background: rgba(20, 184, 166, 0.22); }
.hero-orb-2 { top: 200px; left: -200px; width: 600px; height: 600px; background: rgba(34, 211, 238, 0.14); }
.hero-orb-3 { top: 60%; left: 50%; width: 800px; height: 400px; background: rgba(94, 234, 212, 0.07); transform: translateX(-50%); }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%);
  opacity: 0.65;
}
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

/* ===== Hero carousel ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  padding: 0 0 80px;
}
.hero-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 40px 24px;
}
.hero-slide--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 40px;
  min-height: 640px;
}

/* COPY column */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 540px;
  text-align: left;
}
.hero-eyebrows {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.hero-sub-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-headline {
  font-size: clamp(40px, 4.8vw, 68px);
  margin: 0 0 22px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-sub {
  font-size: 16.5px;
  color: var(--ink-3);
  margin: 0 0 28px;
  line-height: 1.55;
  max-width: 520px;
  text-wrap: pretty;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.hero-bullets svg { color: var(--cyan-2); flex-shrink: 0; }
.hero-ctas {
  display: inline-flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hero-stats > div { display: inline-flex; align-items: baseline; gap: 8px; }
.hero-stats strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-stats span { font-size: 12px; color: var(--ink-3); }
.hero-stats-sep { width: 1px; height: 14px; background: var(--line-strong); display: inline-block; }

/* Mini note under CTAs */
.hero-mini-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 12px 7px 10px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  font-size: 12px;
  color: var(--cyan-2);
  letter-spacing: -0.005em;
}
.hero-mini-note svg { color: var(--cyan-2); }

/* ===== Gaming showcase ===== */
.hero-visual--game { padding: 0; }
.game-stage {
  width: min(620px, 100%);
  aspect-ratio: 16 / 11;
  perspective: 1600px;
  perspective-origin: 50% 40%;
  filter: drop-shadow(0 50px 60px rgba(0,0,0,0.55));
}
.game-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(180deg, #0a1018 0%, #04070c 100%);
  transform: rotateX(6deg) rotateY(-10deg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 0 60px rgba(0,0,0,0.4);
}
.game-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,0) 70%, rgba(255,255,255,0.03) 100%);
  pointer-events: none;
  z-index: 6;
}
.game-hud {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(4, 7, 12, 0.5);
}
.game-hud-l { text-align: left; }
.game-hud-c { text-align: center; }
.game-hud-r { text-align: right; }
.game-hud-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-4);
}
.game-hud-val {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-top: 2px;
}
.game-hud-score {
  font-size: 22px;
  background: linear-gradient(180deg, #e8fdff 0%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.game-arena {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.game-hex {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.game-char {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
.game-char-body {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: #04141a;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 8px 20px -6px rgba(0,0,0,0.6);
  animation: char-bob 2.6s ease-in-out infinite;
}
.game-char-shadow {
  position: absolute;
  bottom: -10px;
  width: 38px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.6), transparent 70%);
  z-index: -1;
}
.game-char-hp {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.game-char-hp i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5eead4, #22d3ee);
  border-radius: inherit;
  animation: hp-flux 1.4s ease-in-out infinite;
}
.game-char-e1 .game-char-hp i { background: linear-gradient(90deg, #fb7185, #be123c); }
.game-char-e2 .game-char-hp i { background: linear-gradient(90deg, #fbbf24, #92400e); }

.game-char-p  { left: 18%; bottom: 22%; }
.game-char-e1 { left: 70%; top: 22%; animation-delay: 0.4s; }
.game-char-e2 { left: 78%; bottom: 28%; animation-delay: 0.7s; }

@keyframes char-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes hp-flux {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.game-laser {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  z-index: 1;
  box-shadow: 0 0 12px currentColor;
}
.game-laser-1 {
  width: 140px;
  top: 50%; left: 28%;
  background: linear-gradient(90deg, transparent, #5eead4, transparent);
  color: #5eead4;
  transform: rotate(-18deg);
  animation: laser 1.4s ease-out infinite;
}
.game-laser-2 {
  width: 120px;
  top: 56%; left: 50%;
  background: linear-gradient(90deg, transparent, #fb7185, transparent);
  color: #fb7185;
  transform: rotate(12deg);
  animation: laser 1.7s ease-out infinite 0.5s;
}
@keyframes laser {
  0%   { opacity: 0; transform: rotate(-18deg) scaleX(0.4); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(-18deg) translateX(40px) scaleX(1.4); }
}

.game-event {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  animation: event-pop 3s ease-in-out infinite;
}
@keyframes event-pop {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(-3px); }
}

.game-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(4, 7, 12, 0.6);
}
.game-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms;
}
.game-btn:hover { color: var(--ink); background: rgba(255,255,255,0.08); }
.game-btn-primary {
  background: linear-gradient(180deg, #5eead4, #22d3ee);
  color: #04141a;
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 16px -4px rgba(34, 211, 238, 0.45);
}
.game-btn-primary:hover { color: #04141a; transform: translateY(-1px); }
.game-btn svg { color: currentColor; }

/* VISUAL column */
.hero-visual {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Services constellation (slide 1) */
.svc-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
}
.svc-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.svc-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 128px; height: 128px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 30%, rgba(34, 211, 238, 0.25), rgba(10, 16, 24, 0.95) 70%);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow:
    0 0 0 6px rgba(4, 7, 12, 1),
    0 0 40px -5px rgba(34, 211, 238, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 3;
}
.svc-core-tag {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan-2);
  margin-top: 4px;
}
.svc-core-sub {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.svc-tile {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.7);
  z-index: 2;
  min-width: 170px;
}
.svc-tile-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--c) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--c) 30%, transparent);
  color: var(--c);
  flex-shrink: 0;
}
.svc-tile-text { display: flex; flex-direction: column; line-height: 1.15; }
.svc-tile-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.svc-tile-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }

.svc-tl { top: 6%;  left: 0%;   animation: float-1 6s ease-in-out infinite; }
.svc-tr { top: 6%;  right: 0%;  animation: float-2 7s ease-in-out infinite; }
.svc-ml { top: 44%; left: -6%;  animation: float-1 7.5s ease-in-out infinite; }
.svc-mr { top: 44%; right: -6%; animation: float-2 6.5s ease-in-out infinite; }
.svc-bl { bottom: 6%; left: 0%; animation: float-2 7s ease-in-out infinite; }
.svc-br { bottom: 6%; right: 0%; animation: float-1 6s ease-in-out infinite; }

/* Monitor visual */
.hero-visual--monitor { padding-bottom: 40px; }

/* Phone visual */
.phone-wrap.phone-wrap--centered {
  position: relative;
  right: auto;
  bottom: auto;
  width: 300px;
  transform: rotateX(4deg) rotateY(-6deg);
}

/* Floating chips */
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.7);
  color: var(--ink);
  z-index: 2;
  max-width: 220px;
}
.hero-chip-dot { width: 8px; height: 8px; border-radius: 999px; background: #5eead4; box-shadow: 0 0 8px #5eead4; }
.hero-chip-label { font-size: 10px; color: var(--ink-3); letter-spacing: 0.05em; text-transform: uppercase; }
.hero-chip-val { font-size: 12px; font-family: var(--font-mono); letter-spacing: -0.01em; }
.hero-chip svg { color: var(--cyan-2); }

.chip-mon-1 { top: 2%; left: 2%; animation: float-1 6s ease-in-out infinite; }
.chip-mon-2 { bottom: 2%; right: 2%; animation: float-2 7s ease-in-out infinite; }
.chip-mob-1 { top: 2%; left: 2%; animation: float-1 6s ease-in-out infinite; }
.chip-mob-2 { bottom: 2%; right: 2%; animation: float-2 7s ease-in-out infinite; }

@keyframes float-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Carousel Controls — anclados al indicator (no overlap con copy) */
.hero-arrow {
  position: absolute;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(10, 16, 24, 0.75);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  backdrop-filter: blur(12px);
  transition: background 240ms ease, color 240ms ease, transform 240ms ease, border-color 240ms ease;
  opacity: 0.85;
}
.hero-arrow:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--cyan-2);
  transform: scale(1.06);
  opacity: 1;
}
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }
@media (max-width: 700px) {
  .hero-arrow { width: 36px; height: 36px; }
  .hero-arrow-prev { left: 12px; }
  .hero-arrow-next { right: 12px; }
}

/* Indicator */
.hero-indicator {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(10, 16, 24, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  z-index: 5;
}
.hero-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border-radius: 999px;
  overflow: hidden;
  transition: color 200ms;
}
.hero-dot:hover { color: var(--ink); }
.hero-dot.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}
.hero-dot-index {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.05em;
}
.hero-dot.active .hero-dot-index { color: var(--cyan-2); }
.hero-dot-label { position: relative; z-index: 2; }
.hero-dot-fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #5eead4, #22d3ee);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1;
}
.hero-dot.active .hero-dot-fill {
  animation: hero-progress 8s linear forwards;
}
@keyframes hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-slide--split { grid-template-columns: 1fr; gap: 32px; min-height: auto; }
  .hero-copy { max-width: 100%; }
  .hero-visual { min-height: 460px; }
  .svc-tile { min-width: 0; padding: 8px 10px; }
  .svc-tile-sub { display: none; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header-inner { grid-template-columns: 1fr auto; }
  .hero-stats { gap: 14px; padding: 10px 14px; flex-wrap: wrap; justify-content: center; }
  .hero-stats-sep { display: none; }
  .hero-arrow-prev { left: 4px; }
  .hero-arrow-next { right: 4px; }
}
@media (max-width: 640px) {
  .hero-dot-label { display: none; }
  .hero-arrow { width: 36px; height: 36px; }
  .svc-tile { padding: 6px 8px; min-width: 0; }
  .svc-tile-icon { width: 26px; height: 26px; }
  .svc-tile-label { font-size: 11px; }
}
