:root {
  --navy: #232450;
  --navy-2: #1a1b3d;
  --orange: #e85a2a;
  --white: #ffffff;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--white);
  background: radial-gradient(circle at 50% 35%, #2b2c5e 0%, var(--navy) 45%, var(--navy-2) 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Wordmark de fondo, centrado y difuminado */
.bg-mark {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
}

.bg-mark svg {
  width: min(120vw, 1400px);
  height: auto;
  opacity: 0.07;
  animation: breathe 9s ease-in-out infinite;
}

/* Escenario central */
.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vh, 2.75rem);
  padding: 2rem;
}

/* Celular */
.phone {
  position: relative;
  width: clamp(200px, 62vw, 280px);
  aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, #34356b 0%, #1c1d40 100%);
  border-radius: clamp(28px, 8vw, 40px);
  padding: 10px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.65),
    0 0 0 2px rgba(255, 255, 255, 0.06);
  animation: floatY 5.5s ease-in-out infinite;
}

.phone__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 18px;
  background: #14152f;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: clamp(20px, 6vw, 30px);
  background: linear-gradient(160deg, #f4f5fb 0%, #dfe2f2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Icono KI dentro de la pantalla */
.ki-app {
  width: 46%;
  aspect-ratio: 1;
  border-radius: 22%;
  box-shadow: 0 12px 24px -8px rgba(35, 36, 80, 0.55);
  animation: pop 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ki-mark {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 22%;
}

/* Texto */
.tagline {
  font-size: clamp(1.05rem, 3.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.footer {
  position: fixed;
  bottom: 1.1rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 1;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
}

/* Animaciones */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.06; transform: scale(1); }
  50% { opacity: 0.09; transform: scale(1.02); }
}

@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .phone { width: clamp(240px, 26vw, 300px); }
}

@media (prefers-reduced-motion: reduce) {
  .phone, .bg-mark svg, .ki-app, .tagline { animation: none; }
  .tagline { opacity: 1; }
}
