/* -----------------------------------------
   APPLICATIONS PAGE — CINEMATIC VERSION
----------------------------------------- */

.apps {
  padding: 7rem 2rem;
  background: linear-gradient(180deg, #0f1e3c 0%, #142850 100%);
  color: #fff;
  position: relative;
}

/* Cinematic Intro */
.apps-hero {
  text-align: center;
  margin-bottom: 5rem;
}

.apps-hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0px 4px 10px rgba(0,0,0,0.45);
}

.apps-hero p {
  font-size: 1.3rem;
  opacity: 0.92;
  max-width: 700px;
  margin: 0 auto;
}

/* -----------------------------------------
   HORIZON — CRYSTAL GLASS REVEAL
----------------------------------------- */

.app-reveal {
  position: relative;
  max-width: 650px;
  margin: 0 auto 6rem auto;
  animation: fadeUp 1.2s ease-out forwards;
  opacity: 0;

  overflow: hidden;
  padding-bottom: 2rem;
}

/* Directional vignette — lowered + shorter */
.vignette {
  position: absolute;
  top: -20px;          /* lowered to avoid corner artifacts */
  left: 0;
  width: 100%;
  height: 180px;       /* reduced height for shorter card */

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.22) 0%,
    rgba(0,0,0,0.16) 35%,
    rgba(0,0,0,0.08) 70%,
    transparent 100%
  );

  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

/* Spotlight glow — centered for shorter card */
.spotlight {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 300px;

  background: radial-gradient(
    ellipse at center,
    rgba(255,200,120,0.38) 0%,
    rgba(255,200,120,0.12) 40%,
    transparent 100%
  );

  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
  animation: spotlightPulse 6s ease-in-out infinite;
}

/* Crystal glass panel — shorter */
.app-panel {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;     /* reduced from 4rem */
  text-align: center;
  border-radius: 28px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 18px 50px rgba(0,0,0,0.50);
  overflow: hidden;
}

/* Narrative micro‑copy */
.app-tagline {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1rem;      /* reduced */
}

/* Horizon logo — tighter spacing */
.app-logo {
  width: 150px;             /* slightly smaller */
  margin-bottom: 1.2rem;    /* reduced */
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  opacity: 0.95;
  position: relative;
  overflow: hidden;
}

.app-logo::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: translateX(-100%);
  opacity: 0;
}

.app-panel:hover .app-logo::after {
  animation: shimmer 1.8s ease-out forwards;
  opacity: 1;
}

.app-panel h3 {
  font-size: 2.2rem;        /* reduced */
  margin-bottom: 0.6rem;
  text-shadow: 0px 3px 8px rgba(0,0,0,0.45);
}

.app-panel p {
  font-size: 1.2rem;
  opacity: 0.92;
  max-width: 480px;
  margin: 0 auto;
}

/* Status badge — tighter */
.app-status {
  display: inline-block;
  margin-top: 1.2rem;       /* reduced */
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
}

/* Gradient line — tighter */
.panel-line {
  display: block;
  height: 2px;
  width: 110%;
  margin: 1.5rem auto 0 auto;   /* reduced */
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  opacity: 0.9;
}

/* -----------------------------------------
   ANIMATIONS
----------------------------------------- */

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes spotlightPulse {
  0% { opacity: 0.9; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.03); }
  100% { opacity: 0.9; transform: translateX(-50%) scale(1); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* -----------------------------------------
   FUTURE TOOLS — MINI GLASS PANEL REVEAL
----------------------------------------- */

.future-tools-reveal {
  position: relative;
  max-width: 500px;
  margin: 0 auto 5rem auto;
  text-align: center;
  animation: fadeUp 1.2s ease-out forwards;
  opacity: 0;

  overflow: hidden;
  padding-bottom: 2rem;
}

/* Directional vignette — already correct */
.future-vignette {
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 180px;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.26) 0%,
    rgba(0,0,0,0.18) 40%,
    rgba(0,0,0,0.08) 70%,
    transparent 100%
  );

  pointer-events: none;
  z-index: 0;
  opacity: 0.26;
}

/* Glow — centered for shorter card */
.future-glow {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;

  background: radial-gradient(
    ellipse at center,
    rgba(255,200,120,0.26) 0%,
    rgba(255,200,120,0.10) 40%,
    transparent 100%
  );

  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
  animation: spotlightPulse 7s ease-in-out infinite;
}

/* Mini glass panel — shorter */
.future-panel {
  position: relative;
  z-index: 1;
  padding: 2rem 1.8rem;     /* reduced */
  border-radius: 24px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}

.future-panel h3 {
  font-size: 1.8rem;        /* reduced */
  margin-bottom: 0.5rem;
  text-shadow: 0px 3px 8px rgba(0,0,0,0.45);
}

.future-panel p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 400px;
  margin: 0 auto;
}

/* Status badge — tighter */
.future-panel .app-status {
  margin-top: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9px;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
}

/* Gradient line — tighter */
.future-line {
  display: block;
  height: 2px;
  width: 100%;
  margin: 1.5rem auto 0 auto;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  opacity: 0.85;
}

/* -----------------------------------------
   MOBILE ADJUSTMENTS
----------------------------------------- */

@media (max-width: 900px) {
  .apps {
    padding: 5rem 1.5rem;
  }

  .app-panel {
    padding: 2rem;
  }

  .app-logo {
    width: 120px;
  }

  .apps-hero h2 {
    font-size: 2.3rem;
  }

  .apps-hero p {
    font-size: 1.1rem;
  }
}
