/* =========================================================
   EGOverse — Landing
   Paleta: azul profundo, negro espacial, dorado cálido,
   blanco roto, grises suaves.
   ========================================================= */

:root {
  --space-black: #05060d;
  --space-black-2: #0a0d1a;
  --deep-blue: #0e1730;
  --deep-blue-2: #141f42;
  --gold: #d8a857;
  --gold-bright: #f3cd85;
  --off-white: #f3efe6;
  --gray-soft: #8f95a8;
  --gray-line: rgba(216, 168, 87, 0.18);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--space-black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, var(--deep-blue) 0%, var(--space-black) 55%, var(--space-black-2) 100%);
}

main { position: relative; z-index: 1; }

/* ---------- Brand mark ---------- */

.brand-mark {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--off-white);
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}

.brand-mark:hover { opacity: 1; }

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-mark span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 20px 22px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1000px, 140vw);
  height: min(1000px, 140vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(216, 168, 87, 0.22) 0%, rgba(14, 23, 48, 0.3) 45%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
  animation: hero-glow-pulse 5s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Floating funko particles */

.floating-funkos {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.f-funko {
  position: absolute;
  top: var(--top);
  left: var(--left);
  z-index: var(--z, 1);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.f-funko img {
  display: block;
  width: auto;
  height: var(--size);
  opacity: var(--opacity, 1);
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5)) blur(var(--blur, 0px));
  animation: float-bob var(--dur) ease-in-out var(--delay) infinite,
    funko-fade-in 1s var(--ease) calc(var(--delay) * 0.4) both;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease), opacity 0.35s var(--ease);
  cursor: pointer;
}

.f-funko:hover img,
.f-funko:focus-visible img {
  transform: scale(1.18);
  opacity: 1;
  filter: drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55)) blur(0) brightness(1.15) saturate(1.15);
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

@keyframes funko-fade-in {
  0% { opacity: 0; scale: 0.4; }
  100% { opacity: var(--opacity, 1); scale: 1; }
}

/* Phone mockup */

.phone-mockup-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(18px, 3.6vmin, 32px);
  animation: core-burst-in 1.1s var(--ease) both;
}

.phone-glow {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(216, 168, 87, 0.65) 0%, rgba(216, 168, 87, 0.22) 45%, transparent 72%);
  filter: blur(24px);
  z-index: -1;
  animation: core-breathe 4.5s ease-in-out infinite;
}

@keyframes core-burst-in {
  0% { opacity: 0; transform: scale(0.6) translateY(20px); filter: brightness(2); }
  60% { opacity: 1; transform: scale(1.03) translateY(-4px); filter: brightness(1.2); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: brightness(1); }
}

@keyframes core-breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1.05; }
}

.phone-mockup {
  position: relative;
  width: clamp(168px, 22vmin, 228px);
  aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, #24262d, #08090c);
  border-radius: 42px;
  padding: 9px;
  box-shadow: 0 40px 90px -25px rgba(0, 0, 0, 0.75), inset 0 0 0 1.5px rgba(255, 255, 255, 0.07);
  animation: phone-float 6s ease-in-out infinite;
}

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

.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 16px;
  background: #050609;
  border-radius: 12px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 33px;
  background: radial-gradient(circle at 50% 32%, #16214a 0%, #05060d 72%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vmin, 16px);
  padding: 34px 12px 22px;
  overflow: hidden;
}

.phone-header {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-soft);
}

.phone-header img {
  width: 15px;
  height: 15px;
  border-radius: 4px;
}

.phone-voice-orb {
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--gold-bright), var(--gold) 65%, rgba(216, 168, 87, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--space-black);
  box-shadow: 0 0 36px rgba(216, 168, 87, 0.65);
  animation: orb-pulse 2.4s ease-in-out infinite;
}

.phone-voice-orb svg {
  width: 36%;
  height: 36%;
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 36px rgba(216, 168, 87, 0.55); }
  50% { transform: scale(1.07); box-shadow: 0 0 54px rgba(216, 168, 87, 0.8); }
}

.phone-caption {
  font-size: 0.68rem;
  color: var(--gray-soft);
  letter-spacing: 0.02em;
  margin: 0;
}

.phone-wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 18px;
}

.phone-wave span {
  width: 3px;
  background: var(--gold-bright);
  border-radius: 2px;
  animation: bar-bounce 1.1s ease-in-out infinite;
}

.phone-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.phone-wave span:nth-child(2) { height: 100%; animation-delay: 0.1s; }
.phone-wave span:nth-child(3) { height: 65%; animation-delay: 0.2s; }
.phone-wave span:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.phone-wave span:nth-child(5) { height: 50%; animation-delay: 0.4s; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-tagline {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(216, 168, 87, 0.4);
  background: rgba(216, 168, 87, 0.08);
  border-radius: 100px;
  padding: 6px 16px;
  margin: 0 0 10px;
}

.hero-question {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(243, 205, 133, 0.4);
  margin: 0 0 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  color: var(--off-white);
  text-shadow: 0 0 40px rgba(216, 168, 87, 0.25);
}

.hero-title span {
  color: var(--gold-bright);
  font-style: italic;
  text-shadow: 0 0 30px rgba(243, 205, 133, 0.55);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 300;
  color: var(--gray-soft);
  max-width: 460px;
  margin: 0 auto 16px;
}

.cta-btn {
  position: relative;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--space-black);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border: none;
  border-radius: 100px;
  padding: 22px 52px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(216, 168, 87, 0.4), 0 20px 50px -15px rgba(216, 168, 87, 0.55);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: cta-pulse 2.6s ease-in-out infinite;
}

.cta-btn:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 0 1px rgba(216, 168, 87, 0.55), 0 30px 70px -12px rgba(216, 168, 87, 0.8);
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(216, 168, 87, 0.4), 0 20px 50px -15px rgba(216, 168, 87, 0.55); }
  50% { box-shadow: 0 0 0 1px rgba(216, 168, 87, 0.55), 0 20px 60px -10px rgba(216, 168, 87, 0.85); }
}

.cta-btn:active {
  transform: translateY(-1px) scale(0.99);
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gray-soft);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease);
  animation: cue-float 2.6s ease-in-out infinite;
}

.scroll-cue:hover { opacity: 1; }

@keyframes cue-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: 90px 20px;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(14, 23, 48, 0.35) 20%, rgba(14, 23, 48, 0.35) 80%, transparent);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 50px;
  color: var(--off-white);
}

/* Steps */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}

.step-line {
  position: absolute;
  top: 68px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 168, 87, 0.55) 20%, rgba(216, 168, 87, 0.55) 80%, transparent);
  z-index: 0;
}

.step {
  position: relative;
  padding: 40px 32px;
  border: 1px solid var(--gray-line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 31, 66, 0.4), rgba(10, 13, 26, 0.25));
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.step:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 168, 87, 0.45);
}

.step-index {
  position: absolute;
  top: -0.3em;
  right: 18px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 168, 87, 0.25);
  z-index: 0;
  pointer-events: none;
}

.step-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 168, 87, 0.16), transparent 70%);
  border: 1px solid rgba(216, 168, 87, 0.35);
  color: var(--gold-bright);
}

.step-icon svg {
  width: 26px;
  height: 22px;
  margin: 0 auto;
  overflow: visible;
}

.icon-neural svg { width: 28px; height: 24px; }
.icon-neural line { stroke: rgba(216, 168, 87, 0.5); stroke-width: 1; }
.icon-neural .node { fill: var(--gold-bright); }

.icon-chart .chart-line {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 62;
  stroke-dashoffset: 62;
  transition: stroke-dashoffset 1.4s var(--ease) 0.3s;
}

.icon-chart .chart-dot { fill: var(--gold-bright); }

.icon-wave .bar { fill: var(--gold-bright); transform-box: fill-box; transform-origin: center; }

.step.in-view .icon-chart .chart-line { stroke-dashoffset: 0; }

.step.in-view .icon-wave .bar { animation: bar-bounce 1.1s ease-in-out infinite; }
.step.in-view .icon-wave .bar:nth-child(1) { animation-delay: 0s; }
.step.in-view .icon-wave .bar:nth-child(2) { animation-delay: 0.1s; }
.step.in-view .icon-wave .bar:nth-child(3) { animation-delay: 0.2s; }
.step.in-view .icon-wave .bar:nth-child(4) { animation-delay: 0.3s; }
.step.in-view .icon-wave .bar:nth-child(5) { animation-delay: 0.4s; }

.step.in-view .icon-neural .node { animation: node-pulse 2.2s ease-in-out infinite; }
.step.in-view .icon-neural .node:nth-child(7) { animation-delay: 0s; }
.step.in-view .icon-neural .node:nth-child(8) { animation-delay: 0.2s; }
.step.in-view .icon-neural .node:nth-child(9) { animation-delay: 0.4s; }
.step.in-view .icon-neural .node:nth-child(10) { animation-delay: 0.6s; }
.step.in-view .icon-neural .node:nth-child(11) { animation-delay: 0.8s; }

@keyframes bar-bounce {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.step h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--off-white);
}

.step p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--gray-soft);
  font-size: 0.95rem;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.feature-card {
  padding: 32px 26px;
  border: 1px solid var(--gray-line);
  border-radius: 18px;
  background: rgba(10, 13, 26, 0.3);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 168, 87, 0.45);
  background: rgba(20, 31, 66, 0.4);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--gold);
}

.feature-card p {
  margin: 0;
  color: var(--gray-soft);
  font-size: 0.92rem;
}

/* Privacy */

.privacy {
  text-align: center;
  overflow: hidden;
}

.privacy-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  max-width: 140vw;
  max-height: 140vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(216, 168, 87, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.privacy-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.25;
  margin: 0 0 24px;
}

.privacy-title span {
  color: var(--gold);
  font-style: italic;
}

.privacy-sub {
  position: relative;
  color: var(--gray-soft);
  max-width: 480px;
  margin: 0 auto;
  font-size: 1rem;
}

/* CTA final */

.cta-final .section-title {
  margin-bottom: 44px;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 40px 20px 50px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-soft);
  border-top: 1px solid var(--gray-line);
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.steps .step.reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .step.reveal:nth-child(3) { transition-delay: 0.2s; }

.features .feature-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.features .feature-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.features .feature-card.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step-line { display: none; }
  .step-index { font-size: 3.6rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .brand-mark span { display: none; }
  .hero { padding: 44px 20px 32px; }
  .phone-mockup { width: clamp(150px, 42vmin, 200px); }
  .f-funko.is-minor { display: none; }
  .f-funko img { height: calc(var(--size) * 0.62); }
  .section { padding: 64px 18px; }
  .section-title { margin-bottom: 36px; }
  .features { grid-template-columns: 1fr; }
  .cta-btn { padding: 19px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .f-funko img,
  .phone-mockup,
  .phone-mockup-wrap,
  .phone-glow,
  .phone-voice-orb,
  .phone-wave span,
  .hero-glow,
  .cta-btn,
  .scroll-cue {
    animation: none !important;
  }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- iOS install modal ---------- */

.ios-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 13, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.ios-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.ios-modal {
  position: relative;
  max-width: 380px;
  width: calc(100% - 40px);
  padding: 36px 28px 28px;
  background: var(--deep-blue);
  border: 1px solid var(--gray-line);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s var(--ease);
}

.ios-modal-overlay.visible .ios-modal {
  transform: translateY(0) scale(1);
}

.ios-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--gray-soft);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}

.ios-modal-close:hover { color: var(--off-white); }

.ios-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(216, 168, 87, 0.12);
  border-radius: 14px;
  color: var(--gold);
}

.ios-modal h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--off-white);
}

.ios-modal > p {
  color: var(--gray-soft);
  font-size: 0.92rem;
  margin: 0 0 16px;
  line-height: 1.5;
}

.ios-modal ol {
  text-align: left;
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--off-white);
  font-size: 0.92rem;
  line-height: 1.7;
}

.ios-modal ol li { margin-bottom: 6px; }

.ios-share-icon {
  display: inline-flex;
  vertical-align: middle;
  color: var(--gold);
}

.ios-modal-alt {
  font-size: 0.82rem !important;
  color: rgba(143, 149, 168, 0.7) !important;
  margin-top: 8px !important;
}
