/* =========================================================
   SANADAY — PHASE 2 / APP-ALIGNED PRODUCT PRESENTATION
   ---------------------------------------------------------
   Requires Phase 1 sanaday-neon-theme.css.
   Focus: new app screenshots, hero/product hierarchy,
   premium neon device presentation, employee experience.
   ========================================================= */

:root {
  --p2-pink: #ff63c6;
  --p2-pink-soft: #ff9ddd;
  --p2-violet: #8b6cff;
  --p2-violet-2: #b46dff;
  --p2-night: #10071f;
  --p2-panel: rgba(28, 14, 53, .82);
  --p2-line: rgba(235, 205, 255, .18);
}

/* ---------- Stronger app identity in the first screen ---------- */
.phase2-app-aligned .hero {
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  gap: clamp(24px, 4vw, 72px);
  padding-top: clamp(64px, 7vw, 108px);
  padding-bottom: clamp(72px, 8vw, 124px);
}

.phase2-app-aligned .hero-copy {
  position: relative;
  z-index: 10;
}

.phase2-app-aligned .hero-title {
  max-width: 780px;
}

.phase2-app-aligned .hero-title strong {
  background-image: linear-gradient(95deg, #ff9fdf 0%, #ff62c5 28%, #c270ff 62%, #8e75ff 100%);
  filter: drop-shadow(0 13px 35px rgba(236, 88, 255, .22));
}

.phase2-app-aligned .hero-actions .btn-primary {
  box-shadow: 0 18px 48px rgba(187, 83, 255, .24), 0 0 36px rgba(255, 84, 187, .13);
}

.phase2-app-aligned .hero-ecosystem {
  min-height: 700px;
}

.phase2-app-aligned .hero-ecosystem::before {
  width: min(680px, 92vw);
  height: min(680px, 92vw);
  background:
    radial-gradient(circle at 45% 46%, rgba(255, 94, 197, .28), transparent 34%),
    radial-gradient(circle at 52% 52%, rgba(143, 99, 255, .28), transparent 63%);
  filter: blur(10px);
}

.phase2-app-aligned .ecosystem-orbit {
  width: min(610px, 90vw);
  height: min(610px, 90vw);
  border-color: rgba(232, 196, 255, .20);
  box-shadow:
    inset 0 0 0 18px rgba(173, 105, 255, .028),
    0 0 120px rgba(167, 82, 255, .18);
}

.phase2-app-aligned .ecosystem-dashboard {
  right: -1%;
  top: 43%;
  width: min(500px, 73vw);
  opacity: .88;
  transform: translateY(-50%) rotateY(-10deg) rotateX(2deg) scale(.98);
}

.phase2-app-aligned .ecosystem-phone {
  width: min(286px, 61vw);
  transform: translate3d(-78px, 18px, 100px) rotateZ(-1.5deg);
  border: 5px solid rgba(239, 214, 255, .34);
  background: linear-gradient(180deg, rgba(53, 28, 92, .98), rgba(12, 5, 26, .98));
  box-shadow:
    0 44px 110px rgba(1, 0, 14, .68),
    0 0 62px rgba(193, 85, 255, .22),
    0 0 110px rgba(255, 84, 187, .10),
    inset 0 0 0 1px rgba(255,255,255,.08);
}

.phase2-app-aligned .ecosystem-phone::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 52px;
  border: 1px solid rgba(255, 124, 212, .11);
  box-shadow: 0 0 45px rgba(255, 85, 190, .09);
  pointer-events: none;
}

.phase2-app-aligned .ecosystem-phone-glow {
  inset: 2% -24%;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 100, 203, .40), transparent 46%),
    radial-gradient(circle at 50% 72%, rgba(134, 95, 255, .36), transparent 52%);
  filter: blur(46px);
}

.phase2-app-aligned .ecosystem-phone-notch {
  top: 10px;
  width: 31%;
  height: 15px;
  background: #0c0619;
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}

.phase2-app-aligned .ecosystem-phone-screen,
.phase2-app-aligned .ecosystem-phone-screen img {
  border-radius: 30px;
}

.phase2-app-aligned .ecosystem-kpi,
.phase2-app-aligned .ecosystem-caption {
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

/* ---------- Product section hierarchy ---------- */
.phase2-app-aligned .showcase-section {
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 91, 196, .16), transparent 28%),
    radial-gradient(circle at 88% 34%, rgba(127, 91, 255, .18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.014), rgba(17, 7, 35, .26));
}

.phase2-app-aligned .product-showcase-grid {
  grid-template-columns: 1fr;
  gap: 34px;
}

.phase2-app-aligned .product-showcase-card {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(255px, .72fr) minmax(520px, 1.28fr);
  grid-template-areas:
    "copy visual"
    "tabs tabs";
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  padding: clamp(26px, 3vw, 42px);
  border-radius: 38px;
  overflow: visible;
}

.phase2-app-aligned .product-showcase-card::before {
  border-radius: inherit;
  overflow: hidden;
}

.phase2-app-aligned .showcase-copy-block {
  grid-area: copy;
  align-self: center;
  max-width: 520px;
}

.phase2-app-aligned .showcase-copy-block h3 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.phase2-app-aligned .showcase-copy-block p {
  font-size: 1.02rem;
}

.phase2-app-aligned .showcase-tabs {
  grid-area: tabs;
  margin-top: 2px;
  padding-top: 22px;
  border-top: 1px solid rgba(225, 191, 255, .10);
}

.phase2-app-aligned .app-showcase-tabs {
  justify-content: center;
}

/* ---------- New app stage ---------- */
.neon-app-stage {
  grid-area: visual;
  position: relative;
  min-height: 640px;
  border-radius: 34px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 93, 196, .20), transparent 30%),
    radial-gradient(circle at 52% 48%, rgba(128, 89, 255, .24), transparent 48%),
    linear-gradient(150deg, rgba(43, 21, 79, .76), rgba(14, 6, 30, .92));
  border: 1px solid rgba(229, 198, 255, .16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 36px 90px rgba(2,0,18,.42);
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .22s ease;
}

.neon-app-stage::before,
.neon-app-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.neon-app-stage::before {
  inset: 0;
  background:
    linear-gradient(118deg, rgba(255,255,255,.07), transparent 24%, transparent 70%, rgba(255, 97, 197, .07)),
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.07) 0 1px, transparent 1.4px);
  background-size: auto, 64px 64px;
  opacity: .78;
}

.neon-app-stage::after {
  left: 10%;
  right: 10%;
  bottom: 18px;
  height: 90px;
  border-radius: 50%;
  background: rgba(154, 74, 255, .28);
  filter: blur(38px);
  z-index: -1;
}

.neon-stage-aurora {
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 46% 42%, rgba(255,255,255,.16), transparent 9%),
    radial-gradient(circle at 50% 48%, rgba(255, 113, 206, .34), transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(136, 98, 255, .28), transparent 61%);
  filter: blur(7px);
  animation: phase2Aurora 7s ease-in-out infinite alternate;
}

.neon-stage-stars i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 11px rgba(255,255,255,.78), 0 0 22px rgba(210, 143, 255, .5);
  animation: phase2Twinkle 3.2s ease-in-out infinite;
}
.neon-stage-stars i:nth-child(1){left:10%;top:14%;}
.neon-stage-stars i:nth-child(2){left:18%;top:60%;animation-delay:.6s;}
.neon-stage-stars i:nth-child(3){right:14%;top:19%;animation-delay:1.2s;}
.neon-stage-stars i:nth-child(4){right:10%;top:64%;animation-delay:1.7s;}
.neon-stage-stars i:nth-child(5){left:31%;bottom:12%;animation-delay:2.1s;}
.neon-stage-stars i:nth-child(6){right:31%;bottom:8%;animation-delay:2.6s;}

.neon-device-shell {
  position: absolute;
  z-index: 5;
  width: min(292px, 42vw);
  aspect-ratio: 9 / 17.85;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  padding: 8px;
  border-radius: 44px;
  background: linear-gradient(165deg, #6f4d94 0%, #25133f 32%, #0d061b 82%);
  border: 2px solid rgba(241, 217, 255, .48);
  box-shadow:
    0 44px 100px rgba(0,0,0,.58),
    0 0 55px rgba(182, 87, 255, .28),
    0 0 100px rgba(255, 86, 190, .12),
    inset 0 0 0 1px rgba(255,255,255,.10);
}

.neon-device-shell::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 54px;
  border: 1px solid rgba(255, 131, 217, .16);
  box-shadow: inset 0 0 32px rgba(255, 89, 196, .04);
  pointer-events: none;
}

.neon-device-glow {
  position: absolute;
  inset: 13% -26%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 89, 199, .33), rgba(139, 93, 255, .20) 45%, transparent 70%);
  filter: blur(30px);
}

.neon-device-camera {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 10px;
  width: 30%;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
  background: #0b0517;
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}

.neon-app-screen {
  height: 100%;
  width: 100%;
  border-radius: 35px;
  background: #100720;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.neon-app-screen .showcase-img {
  object-fit: cover;
}

.neon-mini-screen {
  position: absolute;
  z-index: 2;
  width: min(188px, 28vw);
  aspect-ratio: 9/16;
  overflow: hidden;
  border-radius: 28px;
  padding: 5px;
  background: rgba(43, 21, 76, .88);
  border: 1px solid rgba(237, 207, 255, .20);
  box-shadow: 0 30px 80px rgba(0,0,0,.42), 0 0 36px rgba(156, 81, 255, .12);
  opacity: .80;
  filter: saturate(.92) brightness(.85);
}

.neon-mini-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 23px;
  display: block;
}

.neon-mini-screen.mini-booking {
  left: 6%;
  top: 16%;
  transform: rotate(-7deg) scale(.96);
}

.neon-mini-screen.mini-games {
  right: 6%;
  top: 21%;
  transform: rotate(7deg) scale(.96);
}

.neon-stage-pill {
  position: absolute;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  color: #fff;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: -.01em;
  background: rgba(20, 9, 40, .74);
  border: 1px solid rgba(238, 206, 255, .18);
  box-shadow: 0 14px 36px rgba(2,0,14,.30), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.neon-stage-pill span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p2-violet), var(--p2-pink));
  box-shadow: 0 0 18px rgba(255, 91, 196, .28);
}

.neon-stage-pill.pill-ai { left: 7%; bottom: 18%; }
.neon-stage-pill.pill-private { right: 6%; bottom: 21%; }

.neon-stage-signature {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(18, 8, 37, .68);
  border: 1px solid rgba(238, 207, 255, .14);
  box-shadow: 0 18px 40px rgba(0,0,0,.26);
  backdrop-filter: blur(18px);
}

.neon-stage-signature img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 95, 198, .30);
}

.neon-stage-signature strong,
.neon-stage-signature span {
  display: block;
}

.neon-stage-signature strong {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.neon-stage-signature span {
  color: #bcb0d3;
  font-size: .66rem;
  margin-top: 1px;
}

/* ---------- Dashboard product card gets the same editorial layout ---------- */
.phase2-app-aligned .dashboard-product-card .rh-glass-cockpit {
  grid-area: visual;
  margin: 0;
}

.phase2-app-aligned .dashboard-product-card .dashboard-rps-tabs {
  grid-area: tabs;
}

.phase2-app-aligned .rh-glass-cockpit {
  min-height: 560px;
}

/* ---------- Employee experience now uses real new app screens ---------- */
.phase2-employee-collage {
  position: relative;
  height: 290px !important;
  overflow: hidden !important;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 88, 194, .24), transparent 28%),
    radial-gradient(circle at 48% 52%, rgba(128, 91, 255, .28), transparent 58%),
    linear-gradient(145deg, #24113f, #10071f) !important;
  border: 1px solid rgba(228, 196, 255, .14);
}

.phase2-employee-collage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.52) 0 1px, transparent 1.2px);
  background-size: 58px 58px;
  opacity: .25;
}

.phase2-employee-collage .employee-shot {
  position: absolute;
  top: 22px;
  width: 122px !important;
  height: 238px !important;
  object-fit: cover !important;
  border-radius: 21px !important;
  border: 3px solid rgba(236, 211, 255, .28);
  box-shadow: 0 24px 58px rgba(0,0,0,.46), 0 0 30px rgba(169, 81, 255, .13);
}

.phase2-employee-collage .employee-shot-main {
  left: 50%;
  z-index: 4;
  width: 136px !important;
  height: 250px !important;
  top: 15px;
  transform: translateX(-50%);
  filter: none;
}

.phase2-employee-collage .employee-shot-left {
  left: calc(50% - 174px);
  z-index: 2;
  transform: rotate(-7deg) scale(.92);
  filter: brightness(.78) saturate(.88);
}

.phase2-employee-collage .employee-shot-right {
  right: calc(50% - 174px);
  z-index: 2;
  transform: rotate(7deg) scale(.92);
  filter: brightness(.78) saturate(.88);
}

.employee-collage-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 48%;
  width: 330px;
  height: 180px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(201, 81, 255, .28);
  filter: blur(34px);
}

/* ---------- Small details that now match the app better ---------- */
.phase2-app-aligned .glass-card i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-style: normal;
  background: linear-gradient(145deg, rgba(139, 103, 255, .22), rgba(255, 96, 198, .18));
  border: 1px solid rgba(235, 203, 255, .15);
  box-shadow: 0 12px 32px rgba(5,0,20,.22), 0 0 24px rgba(255, 91, 196, .08);
}

.phase2-app-aligned .experience,
.phase2-app-aligned .module-grid article,
.phase2-app-aligned .faq details,
.phase2-app-aligned .privacy-card,
.phase2-app-aligned .roi-card {
  border-radius: 28px;
}

@keyframes phase2Aurora {
  from { transform: translate(-50%, -50%) scale(.94); opacity: .78; }
  to { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}

@keyframes phase2Twinkle {
  0%, 100% { opacity: .28; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .phase2-app-aligned .hero {
    grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
  }

  .phase2-app-aligned .product-showcase-card {
    grid-template-columns: minmax(230px, .72fr) minmax(460px, 1.28fr);
  }

  .neon-app-stage { min-height: 600px; }
  .neon-mini-screen { width: min(160px, 25vw); }
}

@media (max-width: 1060px) {
  .phase2-app-aligned .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .phase2-app-aligned .hero-copy {
    max-width: 790px;
  }

  .phase2-app-aligned .hero-ecosystem {
    min-height: 640px;
  }

  .phase2-app-aligned .product-showcase-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "tabs";
  }

  .phase2-app-aligned .showcase-copy-block {
    max-width: 760px;
  }

  .neon-app-stage { min-height: 620px; }
}

@media (max-width: 760px) {
  .phase2-app-aligned .hero-ecosystem {
    min-height: 570px;
  }

  .phase2-app-aligned .ecosystem-dashboard {
    width: min(430px, 78vw);
    right: -8%;
  }

  .phase2-app-aligned .ecosystem-phone {
    width: min(245px, 58vw);
    transform: translate3d(-47px, 18px, 100px) rotateZ(-1.5deg);
  }

  .phase2-app-aligned .product-showcase-card {
    padding: 20px;
    border-radius: 30px;
    overflow: hidden;
  }

  .neon-app-stage {
    min-height: 560px;
    border-radius: 26px;
  }

  .neon-device-shell {
    width: min(250px, 56vw);
  }

  .neon-mini-screen {
    width: min(145px, 31vw);
    opacity: .68;
  }

  .neon-mini-screen.mini-booking { left: -1%; }
  .neon-mini-screen.mini-games { right: -1%; }

  .neon-stage-pill.pill-ai { left: 3%; bottom: 15%; }
  .neon-stage-pill.pill-private { right: 3%; bottom: 18%; }

  .neon-stage-signature {
    min-width: 0;
    width: calc(100% - 34px);
    max-width: 330px;
  }
}

@media (max-width: 560px) {
  .phase2-app-aligned .hero {
    padding-top: 42px;
  }

  .phase2-app-aligned .hero-ecosystem {
    min-height: 515px;
  }

  .phase2-app-aligned .ecosystem-dashboard {
    width: 82vw;
    opacity: .60;
    top: 45%;
    right: -14%;
  }

  .phase2-app-aligned .ecosystem-dashboard-glass {
    display: none;
  }

  .phase2-app-aligned .ecosystem-phone {
    width: min(230px, 61vw);
    transform: translate3d(-42px, 8px, 100px) rotateZ(-1deg);
  }

  .phase2-app-aligned .ecosystem-kpi {
    transform: scale(.88);
  }

  .phase2-app-aligned .ecosystem-caption {
    max-width: 86%;
  }

  .neon-app-stage {
    min-height: 515px;
  }

  .neon-device-shell {
    width: min(235px, 63vw);
    top: 46%;
  }

  .neon-mini-screen {
    width: 118px;
    top: 22% !important;
    opacity: .48;
  }

  .neon-mini-screen.mini-booking { left: -9%; }
  .neon-mini-screen.mini-games { right: -9%; }

  .neon-stage-pill {
    display: none;
  }

  .neon-stage-signature {
    bottom: 14px;
    padding: 9px 11px;
  }

  .phase2-app-aligned .app-showcase-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .phase2-app-aligned .app-showcase-tabs::-webkit-scrollbar { display: none; }
  .phase2-app-aligned .app-showcase-tabs button { flex: 0 0 auto; width: auto; }

  .phase2-employee-collage {
    height: 250px !important;
  }

  .phase2-employee-collage .employee-shot {
    width: 104px !important;
    height: 204px !important;
  }

  .phase2-employee-collage .employee-shot-main {
    width: 116px !important;
    height: 218px !important;
  }

  .phase2-employee-collage .employee-shot-left { left: calc(50% - 145px); }
  .phase2-employee-collage .employee-shot-right { right: calc(50% - 145px); }
}

@media (prefers-reduced-motion: reduce) {
  .neon-stage-aurora,
  .neon-stage-stars i {
    animation: none !important;
  }
}
