/* =========================================================
   Talking Gon and Killua — Estilo anime oscuro
   ========================================================= */

:root {
  --bg: #07070e;
  --bg-elevated: #0e0e1a;
  --bg-card: rgba(18, 18, 32, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f8;
  --text-muted: #9a9ab0;
  --gon: #7dffb3;
  --gon-deep: #2ecc71;
  --killua: #7ec8ff;
  --killua-deep: #4aa8ff;
  --accent: #c9a0ff;
  --gold: #ffd56a;
  --danger: #ff6b8a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, sans-serif;
  --font-jp: "Zen Maru Gothic", "Outfit", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Fondo —— */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 12s ease-in-out infinite;
}

.orb-gon {
  width: 420px;
  height: 420px;
  background: var(--gon-deep);
  top: -80px;
  right: -60px;
}

.orb-killua {
  width: 380px;
  height: 380px;
  background: var(--killua-deep);
  bottom: 10%;
  left: -100px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 7, 14, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(125, 255, 179, 0.25);
}

.brand-name {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(125, 255, 179, 0.15), rgba(126, 200, 255, 0.15));
  border: 1px solid rgba(125, 255, 179, 0.3);
  color: var(--gon) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}

/* Letrero Más apps: estilos principales van inline en index.php
   (capa fixed independiente de la web) */

/* —— Hero —— */
.hero {
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(125, 255, 179, 0.08);
  border: 1px solid rgba(125, 255, 179, 0.2);
  color: var(--gon);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gon);
  box-shadow: 0 0 10px var(--gon);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-jp);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gon { color: var(--gon); }
.text-killua { color: var(--killua); }
.text-muted { color: var(--text-muted); font-weight: 400; }
.text-gradient {
  background: linear-gradient(120deg, var(--gon), var(--killua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download {
  padding: 1rem 1.4rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #2ecc71 0%, #1a9f5a 45%, #3d8bfd 100%);
  color: #fff;
  box-shadow:
    0 12px 40px rgba(46, 204, 113, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  min-width: 220px;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 48px rgba(46, 204, 113, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-download.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.btn-download.btn-disabled:hover {
  transform: none;
}

.btn-download span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.btn-download strong {
  font-size: 1.1rem;
  font-weight: 700;
}

.btn-download small {
  font-size: 0.78rem;
  opacity: 0.9;
  font-weight: 400;
}

.btn-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.btn-lg {
  padding: 1.15rem 1.6rem;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-width: 100px;
}

.stat-pill strong {
  font-size: 1.35rem;
  color: var(--killua);
  line-height: 1.2;
}

.stat-pill span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* —— Phone mockup —— */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.phone-frame {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 9 / 18.5;
  background: #12121c;
  border-radius: 32px;
  border: 3px solid #2a2a3d;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  z-index: 2;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0a0a12;
  border-radius: 20px;
  z-index: 3;
}

.phone-screen {
  height: 100%;
  background: linear-gradient(160deg, #0d1a14, #0a1220 50%, #12102a);
}

.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.phone-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(125, 255, 179, 0.2), transparent 60%);
  z-index: -1;
  animation: pulse 4s ease infinite;
}

.floating-chip {
  position: absolute;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.chip-gon {
  top: 12%;
  left: 0;
  background: rgba(46, 204, 113, 0.2);
  color: var(--gon);
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.2);
}

.chip-killua {
  bottom: 18%;
  right: 0;
  background: rgba(74, 168, 255, 0.2);
  color: var(--killua);
  box-shadow: 0 8px 24px rgba(74, 168, 255, 0.2);
  animation-delay: -2s;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(18, 18, 32, 0.6), transparent);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 255, 179, 0.25);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.fi-1 { background: rgba(125, 255, 179, 0.12); }
.fi-2 { background: rgba(126, 200, 255, 0.12); }
.fi-3 { background: rgba(201, 160, 255, 0.12); }
.fi-4 { background: rgba(255, 213, 106, 0.12); }

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

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

/* —— Screenshots —— */
.shots-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.shot-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s;
}

.shot-card:hover {
  transform: scale(1.03);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  background: #12121c;
}

.shot-card figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.shots-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 1.5rem 0 0;
}

/* —— CTA —— */
.cta-section {
  padding-top: 2rem;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2.5rem;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(46, 204, 113, 0.12), rgba(74, 168, 255, 0.12)),
    var(--bg-elevated);
  border: 1px solid rgba(125, 255, 179, 0.2);
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.cta-box p {
  margin: 0;
  color: var(--text-muted);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-note,
.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.35rem 0;
  max-width: 520px;
  margin-inline: auto;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shots-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .floating-chip {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 18, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.5rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1rem;
    border-radius: 10px;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.05);
  }



  .nav-toggle {
    display: flex;
  }

  .features-grid,
  .shots-track {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
  }

  .brand-name {
    font-size: 0.8rem;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
