:root {
  --bg: #050b14;
  --bg-soft: #081321;
  --card: rgba(12, 27, 45, 0.72);
  --text: #f5f8fc;
  --muted: #9eafc2;
  --line: rgba(255, 255, 255, 0.09);
  --blue: #1677ff;
  --cyan: #00d9ff;
  --max: 1180px;
  --radius: 24px;
}


/* =========================
   RESET
========================= */

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


html {
  scroll-behavior: smooth;
}


body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}


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


/* =========================
   CONTAINER
========================= */

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}


/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;

  background: rgba(5, 11, 20, 0.7);

  backdrop-filter: blur(18px);

  border-bottom:
    1px solid rgba(255, 255, 255, 0.05);
}


.navbar {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* =========================
   LOGO / BRAND
========================= */

.brand {
  display: inline-flex;
  align-items: center;

  gap: 11px;

  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 0.92rem;
}


/*
   LOGO OFICIAL APPTENEA

   El tamaño está limitado para que
   no ocupe toda la cabecera.
*/

.brand-logo {
  width: 42px;
  height: 42px;

  object-fit: contain;

  display: block;

  flex-shrink: 0;
}


/* =========================
   NAVIGATION
========================= */

.nav-links {
  display: flex;
  align-items: center;

  gap: 28px;

  color: var(--muted);

  font-size: 0.92rem;
}


.nav-links a {
  transition: color 0.2s ease;
}


.nav-links a:hover {
  color: white;
}


/* Botón Hablemos */

.nav-cta {
  padding: 10px 17px;

  border:
    1px solid rgba(0, 217, 255, 0.35);

  border-radius: 999px;

  color: white !important;
}


/* =========================
   MOBILE MENU
========================= */

.menu-toggle {
  display: none;

  background: none;
  border: 0;

  cursor: pointer;
}


.menu-toggle span {
  display: block;

  width: 25px;
  height: 2px;

  margin: 5px 0;

  background: white;
}


/* =========================
   HERO
========================= */

.hero {
  min-height: 100vh;

  position: relative;

  display: grid;
  place-items: center;

  overflow: hidden;

  padding: 120px 0 70px;

  background:
    radial-gradient(
      circle at 78% 42%,
      rgba(0, 180, 255, 0.12),
      transparent 32%
    ),
    radial-gradient(
      circle at 15% 75%,
      rgba(22, 119, 255, 0.09),
      transparent 30%
    );
}


.hero-content {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  align-items: center;

  gap: 70px;
}


/* =========================
   HERO TEXT
========================= */

.eyebrow {
  display: inline-block;

  color: var(--cyan);

  font-size: 0.73rem;

  font-weight: 800;

  letter-spacing: 0.2em;

  margin-bottom: 18px;
}


.hero h1 {
  max-width: 750px;

  font-size: clamp(3.3rem, 7vw, 6.5rem);

  line-height: 0.98;

  letter-spacing: -0.065em;
}


h1 span,
h2 span {
  background:
    linear-gradient(
      90deg,
      var(--cyan),
      #5b8dff
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}


.hero-copy p {
  max-width: 650px;

  margin-top: 28px;

  color: var(--muted);

  font-size: 1.13rem;
}


/* =========================
   HERO BUTTONS
========================= */

.hero-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 13px;

  margin-top: 34px;
}


.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 50px;

  padding: 0 22px;

  border-radius: 999px;

  font-weight: 750;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.btn:hover {
  transform: translateY(-2px);
}


.btn-primary {
  background:
    linear-gradient(
      135deg,
      var(--cyan),
      var(--blue)
    );

  color: #02101c;

  box-shadow:
    0 12px 35px rgba(0, 150, 255, 0.2);
}


.btn-secondary {
  border:
    1px solid var(--line);

  color: white;

  background:
    rgba(255, 255, 255, 0.025);
}


/* =========================
   HERO VISUAL
========================= */

.hero-visual {
  display: grid;

  place-items: center;
}


.visual-card {
  width: min(410px, 100%);

  aspect-ratio: 1 / 1.12;

  position: relative;

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 30px;

  border:
    1px solid rgba(0, 217, 255, 0.18);

  border-radius: 32px;

  background:
    linear-gradient(
      145deg,
      rgba(15, 40, 65, 0.9),
      rgba(3, 12, 23, 0.88)
    );

  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.45),
    inset 0 0 60px rgba(0, 217, 255, 0.03);

  transform: rotate(2deg);
}


.visual-card::before {
  content: "";

  position: absolute;

  inset: 15%;

  border-radius: 50%;

  background:
    rgba(0, 217, 255, 0.08);

  filter: blur(50px);
}


.visual-top {
  position: absolute;

  top: 25px;
  left: 28px;
  right: 28px;

  display: flex;

  justify-content: space-between;

  color: #c4d4e6;

  font-size: 0.72rem;

  letter-spacing: 0.15em;
}


.status-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #23e7a4;

  box-shadow:
    0 0 15px #23e7a4;

  margin-right: auto;
}


.visual-code {
  color: var(--cyan);
}


.visual-logo {
  position: relative;

  z-index: 1;

  align-self: center;

  font-size: 10rem;

  line-height: 1;

  font-weight: 900;

  font-style: italic;

  background:
    linear-gradient(
      135deg,
      var(--cyan),
      var(--blue)
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;

  text-shadow:
    0 0 50px rgba(0, 217, 255, 0.15);
}


.visual-lines {
  position: relative;

  z-index: 1;

  display: grid;

  gap: 8px;

  margin: 20px 0;
}


.visual-lines span {
  height: 3px;

  border-radius: 99px;

  background:
    rgba(255, 255, 255, 0.12);
}


.visual-lines span:nth-child(1) {
  width: 75%;
}


.visual-lines span:nth-child(2) {
  width: 52%;
}


.visual-lines span:nth-child(3) {
  width: 65%;
}


.visual-card p {
  position: relative;

  z-index: 1;

  color: var(--muted);

  text-align: center;

  font-size: 0.9rem;
}


/* =========================
   HERO GLOW
========================= */

.hero-glow {
  position: absolute;

  border-radius: 50%;

  filter: blur(80px);

  pointer-events: none;
}


.glow-one {
  width: 260px;
  height: 260px;

  top: 20%;
  right: -100px;

  background:
    rgba(0, 217, 255, 0.1);
}


.glow-two {
  width: 220px;
  height: 220px;

  bottom: 0;
  left: -100px;

  background:
    rgba(22, 119, 255, 0.1);
}


/* =========================
   SCROLL HINT
========================= */

.scroll-hint {
  position: absolute;

  bottom: 28px;

  left: 50%;

  transform:
    translateX(-50%);

  color: var(--muted);

  animation:
    float 2s ease-in-out infinite;
}


.scroll-hint span {
  font-size: 1.5rem;
}


/* =========================
   SECTIONS
========================= */

.section {
  padding: 120px 0;

  background: var(--bg);
}


.section-dark {
  background: var(--bg-soft);

  border-block:
    1px solid var(--line);
}


/* =========================
   SECTION HEADINGS
========================= */

.section-heading {
  max-width: 760px;

  margin-bottom: 55px;
}


.section-heading h2 {
  font-size:
    clamp(2.4rem, 5vw, 4.3rem);

  line-height: 1.02;

  letter-spacing: -0.05em;
}


.section-heading p {
  margin-top: 22px;

  color: var(--muted);

  font-size: 1.05rem;

  max-width: 680px;
}


/* =========================
   FEATURE CARDS
========================= */

.feature-grid,
.apps-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;
}


.feature-card,
.app-card {
  border:
    1px solid var(--line);

  border-radius: var(--radius);

  background:
    rgba(255, 255, 255, 0.025);

  padding: 30px;
}


.feature-card {
  min-height: 260px;
}


.feature-icon {
  color: var(--cyan);

  font-size: 0.78rem;

  font-weight: 900;

  letter-spacing: 0.12em;

  margin-bottom: 55px;
}


.feature-card h3,
.app-card h3 {
  font-size: 1.45rem;

  margin-bottom: 10px;
}


.feature-card p,
.app-card p {
  color: var(--muted);
}


/* =========================
   SOCIAL ICONS (NAVBAR)
========================= */

.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border-radius: 50%;

  color: var(--muted);

  transition:
    color 0.2s ease,
    background 0.2s ease;
}


.nav-social:hover {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}


/* =========================
   APPLICATIONS
========================= */

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


.app-card {
  min-height: 360px;

  display: flex;
  flex-direction: column;

  position: relative;

  overflow: hidden;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}


.app-card p {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 16px;
}


.app-card:hover {
  transform: translateY(-5px);

  border-color:
    rgba(0, 217, 255, 0.3);
}


.app-badge {
  width: 58px;
  height: 58px;

  display: grid;

  place-items: center;

  border-radius: 17px;

  font-size: 1.7rem;

  font-weight: 900;

  margin-bottom: 22px;

  background:
    linear-gradient(
      135deg,
      rgba(0, 217, 255, 0.2),
      rgba(22, 119, 255, 0.15)
    );

  color: var(--cyan);
}


.app-status {
  position: absolute;

  top: 30px;
  right: 30px;

  color: #7f93aa;

  font-size: 0.65rem;

  letter-spacing: 0.13em;

  font-weight: 800;
}


.app-link {
  margin-top: auto;

  color: var(--cyan);

  font-weight: 750;
}


.app-link span {
  display: inline-block;

  transition:
    transform 0.2s ease;
}


.app-link:hover span {
  transform: translateX(5px);
}


/* Logo image inside app badge */

.app-badge.motivappte {
  padding: 0;
  overflow: hidden;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.app-badge-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}


/* Live status dot */

.live-dot {
  display: inline-block;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #23e7a4;

  box-shadow: 0 0 8px #23e7a4;

  margin-right: 5px;

  vertical-align: middle;
}


/* Games badge variants */

.badge-faro {
  background:
    linear-gradient(
      135deg,
      rgba(255, 180, 50, 0.25),
      rgba(255, 120, 0, 0.18)
    );
  color: #ffb432;
}


.badge-ecos {
  background:
    linear-gradient(
      135deg,
      rgba(160, 80, 255, 0.25),
      rgba(100, 40, 200, 0.18)
    );
  color: #b87aff;
}


.badge-gods {
  background:
    linear-gradient(
      135deg,
      rgba(255, 215, 0, 0.25),
      rgba(200, 150, 0, 0.18)
    );
  color: #ffd700;
}


/* Games section grid (3 columns) */

.games-grid {
  grid-template-columns: repeat(3, 1fr);
}


.app-card-empty {
  border-style: dashed;
}


.plus {
  font-size: 2rem;

  color: var(--cyan);

  margin-bottom: 15px;
}


/* =========================
   PROCESS
========================= */

.process {
  position: relative;

  max-width: 850px;
}


.process-line {
  position: absolute;

  left: 24px;

  top: 28px;
  bottom: 28px;

  width: 1px;

  background:
    linear-gradient(
      var(--cyan),
      rgba(0, 217, 255, 0)
    );
}


.process-step {
  display: grid;

  grid-template-columns:
    50px 1fr;

  gap: 25px;

  align-items: start;

  position: relative;

  margin-bottom: 45px;
}


.process-step > span {
  width: 50px;
  height: 50px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  border:
    1px solid rgba(0, 217, 255, 0.35);

  background: var(--bg);

  color: var(--cyan);

  font-size: 0.72rem;

  font-weight: 900;

  z-index: 1;
}


.process-step h3 {
  font-size: 1.35rem;

  margin: 4px 0 6px;
}


.process-step p {
  color: var(--muted);
}


/* =========================
   CTA
========================= */

.cta-section {
  padding-top: 40px;
}


.cta-card {
  position: relative;

  overflow: hidden;

  text-align: center;

  padding: 85px 30px;

  border-radius: 32px;

  border:
    1px solid rgba(0, 217, 255, 0.18);

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(0, 217, 255, 0.12),
      transparent 45%
    ),
    rgba(255, 255, 255, 0.025);
}


.cta-card h2 {
  max-width: 850px;

  margin: 0 auto;

  font-size:
    clamp(2.4rem, 5vw, 4.5rem);

  line-height: 1;

  letter-spacing: -0.05em;
}


.cta-card p {
  max-width: 650px;

  margin: 24px auto 30px;

  color: var(--muted);
}


/* =========================
   CONTACT
========================= */

.contact-section {
  padding-bottom: 90px;
}


.contact-grid {
  display: grid;

  grid-template-columns:
    1fr 0.8fr;

  gap: 80px;

  align-items: start;
}


.contact-grid h2 {
  font-size:
    clamp(2.5rem, 5vw, 4rem);

  line-height: 1;

  letter-spacing: -0.05em;
}


.contact-grid p {
  max-width: 600px;

  margin-top: 22px;

  color: var(--muted);
}


.contact-card {
  border:
    1px solid var(--line);

  border-radius: var(--radius);

  overflow: hidden;

  background:
    rgba(255, 255, 255, 0.025);
}


.contact-item {
  display: block;

  padding: 24px;

  border-bottom:
    1px solid var(--line);
}


.contact-item:last-child {
  border-bottom: 0;
}


.contact-item span {
  display: block;

  color: var(--muted);

  font-size: 0.67rem;

  letter-spacing: 0.15em;

  margin-bottom: 4px;
}


.contact-item strong {
  font-size: 1rem;
}


/* =========================
   FOOTER
========================= */

.footer {
  border-top:
    1px solid var(--line);

  padding: 30px 0;

  color: var(--muted);
}


.footer-inner {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;
}


.footer .brand {
  color: white;
}


/* =========================
   SCROLL ANIMATIONS
========================= */

.reveal {
  opacity: 0;

  transform:
    translateY(25px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}


.reveal.visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* =========================
   FLOAT ANIMATION
========================= */

@keyframes float {

  0%,
  100% {
    transform:
      translate(-50%, 0);
  }

  50% {
    transform:
      translate(-50%, 8px);
  }
}


/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 850px) {

  .nav-links {
    position: fixed;

    top: 76px;

    left: 20px;
    right: 20px;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 5px;

    padding: 15px;

    border:
      1px solid var(--line);

    border-radius: 18px;

    background:
      rgba(5, 11, 20, 0.96);
  }


  .nav-links.open {
    display: flex;
  }


  .nav-links a {
    padding: 12px;
  }


  .menu-toggle {
    display: block;
  }


  .hero-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }


  .hero {
    padding-top: 130px;
  }


  .hero-visual {
    max-width: 500px;

    margin-inline: auto;

    width: 100%;
  }


  .feature-grid,
  .apps-grid,
  .games-grid {
    grid-template-columns: 1fr;
  }


  .footer-inner {
    flex-direction: column;

    text-align: center;
  }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 520px) {

  .container {
    width:
      min(
        calc(100% - 28px),
        var(--max)
      );
  }


  .section {
    padding: 85px 0;
  }


  .hero h1 {
    font-size: 3.2rem;
  }


  .hero-actions {
    flex-direction: column;
  }


  .btn {
    width: 100%;
  }


  /*
     Logo ligeramente más pequeño
     en móviles.
  */

  .brand-logo {
    width: 38px;
    height: 38px;
  }


  .visual-logo {
    font-size: 7rem;
  }


  .app-status {
    position: static;

    margin-bottom: 20px;
  }


  .app-card {
    min-height: 330px;
  }
}


/* =========================
   RIBBON
========================= */

.ribbon-section {
  padding: 56px 0 52px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ribbon-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.ribbon-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.ribbon-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.ribbon-tab {
  padding: 8px 26px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ribbon-tab:hover {
  color: var(--text);
}

.ribbon-tab.active {
  background: rgba(0, 217, 255, 0.15);
  color: var(--cyan);
}

.ribbon-panel {
  display: none;
}

.ribbon-panel.active {
  display: block;
}

.ribbon-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.ribbon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 28px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  width: 155px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

a.ribbon-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 217, 255, 0.4);
  background: rgba(0, 217, 255, 0.06);
}

.ribbon-card--inactive {
  opacity: 0.55;
  cursor: default;
}

.ribbon-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(22, 119, 255, 0.15));
  color: var(--cyan);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ribbon-icon-img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  display: block;
}

.ribbon-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.ribbon-pill {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-live {
  background: rgba(0, 217, 100, 0.14);
  color: #00d96a;
  border: 1px solid rgba(0, 217, 100, 0.28);
}

.pill-dev {
  background: rgba(255, 165, 0, 0.11);
  color: #ffaa33;
  border: 1px solid rgba(255, 165, 0, 0.22);
}

.pill-soon {
  background: rgba(140, 155, 175, 0.1);
  color: #8a9bb0;
  border: 1px solid rgba(140, 155, 175, 0.18);
}
