/* ==========================================================================
   SHREE SKANDA SOLUTIONS
   ========================================================================== */

:root {
  --mx: 0;
  --my: 0;
  --scroll-depth: 0;
  --journey-progress: 0;
  --gold: #f3c05b;
  --gold-light: #fff0be;
  --gold-glow: rgba(243, 192, 91, 0.45);
  --maroon-deep: #2a0000;
  --maroon-rich: #680502;
  --silk: cubic-bezier(0.16, 1, 0.3, 1);
  --calm: cubic-bezier(0.25, 1, 0.35, 1);
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

/* ==========================================================================
   1. HERO 3D SCENE & CAMERA STAGING
   ========================================================================== */
.hero {
  isolation: isolate;
  perspective: 1200px;
  overflow: hidden;
  position: relative;
  transition: background 0.6s ease;
}

/* Desktop atmospheric lighting pass */
@media (min-width: 769px) {
  .hero::before {
    content: "";
    position: absolute;
    inset: -15%;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(ellipse at 70% 35%, rgba(180, 35, 15, 0.35), transparent 45%),
                radial-gradient(circle at 20% 70%, rgba(243, 192, 91, 0.08), transparent 30%);
    transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), -100px);
    transition: transform 0.35s ease-out;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(118deg, transparent 38%, rgba(243, 192, 91, 0.07) 49%, transparent 60%);
    transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 6px), -40px) translateX(-60%) skewX(-12deg);
    animation: lightPass 14s var(--silk) 1.5s infinite;
  }
}

@keyframes lightPass {
  0%, 55% {
    opacity: 0;
    transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 6px), -40px) translateX(-60%) skewX(-12deg);
  }
  65% {
    opacity: 1;
  }
  85%, 100% {
    opacity: 0;
    transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 6px), -40px) translateX(60%) skewX(-12deg);
  }
}


.header {
  position: fixed;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background: rgba(28, 1, 1, 0.88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.app-preview {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1200px;
  will-change: transform;
}

.app-phone {
  transform-style: preserve-3d;
  will-change: transform, opacity;
  box-shadow: 0 25px 60px rgba(10, 0, 0, 0.7);
  transition: box-shadow 0.4s ease, filter 0.4s ease;
}


.app-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.22), transparent 22%, transparent 75%, rgba(255, 255, 255, 0.08));
  mix-blend-mode: screen;
  border-radius: inherit;
}

@media (min-width: 769px) {
  .left-phone {
    transform: translate3d(0, 0, -25px) rotate(-3deg);
  }
  .center-phone {
    transform: translate3d(-50%, 0, 45px);
    box-shadow: 0 32px 75px rgba(0, 0, 0, 0.82), 0 0 32px rgba(243, 192, 91, 0.14);
  }
  .right-phone {
    transform: translate3d(0, 0, -25px) rotate(3deg);
  }
}

/* ==========================================================================
   2. HERO FEATURES INTEGRATED COMPOSITIONAL TRANSITION
   ========================================================================== */
.feature-strip {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(243, 192, 91, 0.38);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 -10px 32px rgba(243, 192, 91, 0.08);
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

/* ==========================================================================
   3. FEATURES
   ========================================================================== */
.feature-card {
  transition: transform 0.45s var(--silk), opacity 0.45s ease, border-color 0.4s ease, box-shadow 0.45s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
}

@media (min-width: 769px) {
  /* Default unselected state when focus tracking is active */
  .strip-grid.has-focus .feature-card:not(.is-dominant):not(.is-prev):not(.is-next) {
    transform: translate3d(0, 2px, -6px) scale(0.98);
    opacity: 0.72;
  }


  .feature-card.is-dominant,
  .feature-card.is-active {
    transform: translate3d(0, -6px, 20px) scale(1.025);
    opacity: 1 !important;
    filter: none !important;
    z-index: 10;
    border-color: rgba(243, 192, 91, 0.7) !important;
    background: rgba(243, 192, 91, 0.08) !important;
    box-shadow: 0 20px 42px rgba(53, 0, 0, 0.24), 0 0 22px rgba(243, 192, 91, 0.22) !important;
  }

  .feature-card.is-dominant .round,
  .feature-card.is-active .round {
    transform: scale(1.08);
    border-color: #f3c05b;
    box-shadow: 0 0 16px rgba(243, 192, 91, 0.4);
  }


  .strip-grid.has-focus .feature-card.is-prev {
    transform: translate3d(0, 2px, -8px) scale(0.97);
    opacity: 0.66;
    filter: brightness(0.96);
  }

 
  .strip-grid.has-focus .feature-card.is-next {
    transform: translate3d(0, 0, -4px) scale(0.985);
    opacity: 0.82;
    filter: brightness(0.98);
  }
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(53, 0, 0, 0.16);
  background-color: rgba(243, 192, 91, 0.06);
}

/* ==========================================================================
   4. HOW IT WORKS 
   ========================================================================== */
.steps {
  position: relative;
}

/* Progression Track (Desktop) */
@media (min-width: 769px) {
  .steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .steps-progress-track {
    position: absolute;
    top: 36px;
    left: calc(12.5% + 36px);
    right: calc(12.5% + 36px);
    height: 3px;
    background: rgba(243, 192, 91, 0.22);
    border-radius: 3px;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
  }

  .progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4af37 0%, #f3c05b 60%, #fff2be 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(243, 192, 91, 0.7);
    transition: width 0.35s ease-out;
  }

  .progress-pulse {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fffdf5;
    box-shadow: 0 0 8px 2px rgba(243, 192, 91, 0.75), 0 0 16px 3px rgba(243, 192, 91, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: left 0.35s ease-out, opacity 0.3s ease;
    animation: pulseHeartbeat 2s ease-in-out infinite alternate;
  }

  .steps article {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 220px;
    margin: 0 auto;
    transition: transform 0.4s var(--calm), opacity 0.4s ease;
  }
}

@keyframes pulseHeartbeat {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    box-shadow: 0 0 6px 1px rgba(243, 192, 91, 0.5);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    box-shadow: 0 0 12px 3px rgba(243, 192, 91, 0.8);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.92);
    box-shadow: 0 0 7px 2px rgba(243, 192, 91, 0.6);
  }
}


.steps article.is-current .step-icon {
  border-color: #f3c05b;
  box-shadow: 0 0 24px rgba(243, 192, 91, 0.7), 0 0 0 2px rgba(243, 192, 91, 0.35);
  transform: scale(1.1);
}

.steps article.is-current h3 {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(243, 192, 91, 0.4);
}

.steps article.is-current p {
  color: #fff4e0;
}

.steps article.is-settled .step-icon {
  border-color: rgba(243, 192, 91, 0.7);
  box-shadow: 0 0 12px rgba(243, 192, 91, 0.28);
  transform: scale(1);
}

.steps article.is-settled h3 {
  color: #ecdac2;
}

.steps article.is-approaching {
  opacity: 0.65;
}

.steps article.is-approaching .step-icon {
  border-color: rgba(243, 192, 91, 0.25);
  transform: scale(0.96);
}

/* Fallback general is-active */
.steps article.is-active .step-icon {
  border-color: #f3c05b;
  box-shadow: 0 0 24px rgba(243, 192, 91, 0.65), 0 0 0 2px rgba(243, 192, 91, 0.3);
}

.step-icon {
  transition: transform 0.4s var(--silk), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* ==========================================================================
   5. BENEFITS  WELLNESS PRINCIPLES
   ========================================================================== */
.benefit-grid article,
.poster-benefit-item {
  transition: transform 0.45s var(--calm), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease, opacity 0.4s ease;
}

.benefit-grid article.is-active,
.benefit-grid article:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(243, 192, 91, 0.08);
  border-color: rgba(243, 192, 91, 0.65) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 18px rgba(243, 192, 91, 0.16);
  opacity: 1 !important;
}

.benefit-grid article.is-active h3,
.benefit-grid article:hover h3 {
  color: #ffffff;
}

.benefit-grid article.is-active .benefit-icon,
.benefit-grid article:hover .benefit-icon {
  border-color: #f3c05b;
  box-shadow: 0 0 16px rgba(243, 192, 91, 0.45);
}

.benefit-grid.has-focus article:not(.is-active) {
  opacity: 0.72;
  transform: scale(0.98);
}

.poster-benefit-item.is-active,
.poster-benefit-item:hover {
  transform: translateX(6px) translateY(-2px);
  box-shadow: -8px 12px 28px rgba(0, 0, 0, 0.28);
  border-color: rgba(243, 192, 91, 0.65);
  background: rgba(243, 192, 91, 0.08);
  opacity: 1 !important;
}

.poster-benefits-list.has-focus .poster-benefit-item:not(.is-active) {
  opacity: 0.75;
  transform: translateX(0);
}

/* ==========================================================================
   6. REGISTRATION 
   ========================================================================== */
.interest-pill {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s var(--silk),
              background 0.22s ease,
              border-color 0.22s ease,
              color 0.22s ease,
              box-shadow 0.22s ease,
              opacity 0.22s ease;
  will-change: transform, opacity;
}

.interest-pill:not(.active) {
  background: #faf5ee !important;
  background-image: none !important;
  color: #4a1c12 !important;
  border-color: #e6d6c6 !important;
  box-shadow: none !important;
}

.interest-pill:not(.active) .pill-label {
  color: #4a1c12 !important;
}

.interest-pill:not(.active) .pill-icon svg {
  stroke: #7a1d17 !important;
}

.interest-pill:not(.active) .pill-check {
  opacity: 0 !important;
  transform: scale(0.5) !important;
}

.interest-pills-grid.has-selection .interest-pill:not(.active),
.interest-pills-grid:has(.interest-pill.active) .interest-pill:not(.active) {
  opacity: 0.76;
  transform: scale(0.98);
  border-color: rgba(243, 192, 91, 0.25) !important;
}

.interest-pill:not(.active):hover {
  transform: translateY(-2px);
  border-color: rgba(243, 192, 91, 0.6) !important;
  box-shadow: 0 6px 16px rgba(104, 5, 2, 0.16) !important;
  opacity: 1 !important;
}

.interest-pill:active {
  transform: scale(0.975);
}

.interest-pill.active {
  background: linear-gradient(135deg, #7a0c07 0%, #4a0000 100%) !important;
  color: #ffffff !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(243, 192, 91, 0.35), 0 8px 24px rgba(74, 0, 0, 0.38) !important;
  transform: scale(1.02) translateY(-1px) !important;
  opacity: 1 !important;
  z-index: 2;
}

.interest-pill.active .pill-label {
  color: #ffffff !important;
}

.interest-pill.active .pill-icon svg {
  stroke: var(--gold) !important;
}

.interest-pill.active .pill-check {
  opacity: 1 !important;
  transform: scale(1) !important;
  color: var(--gold) !important;
}

.poster-input:focus,
.phone-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(243, 192, 91, 0.22);
}


.poster-register-btn,
.gold-button {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--silk), box-shadow 0.25s ease, filter 0.2s ease;
  will-change: transform;
}

.poster-register-btn::after,
.gold-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--silk);
  pointer-events: none;
}

.poster-register-btn:hover::after,
.gold-button:hover::after {
  transform: translateX(120%);
}

.poster-register-btn:active,
.gold-button:active {
  transform: translateY(2px) scale(0.985);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   7. SUCCESS MODAL
   ========================================================================== */
.success-check-bloom {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}

.bloom-aura {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 192, 91, 0.48) 0%, rgba(23, 129, 75, 0.22) 48%, transparent 74%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.9s ease 0.12s, transform 0.9s var(--calm) 0.12s;
}

.success-check-svg {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.check-circle {
  fill: #17814b;
  stroke: #17814b;
  transform-origin: center;
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.55s var(--silk) 0.1s, opacity 0.55s ease 0.1s;
}

.check-glow-ring {
  stroke: #f3c05b;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  transition: stroke-dashoffset 0.95s var(--calm) 0.22s;
}

.check-path {
  stroke: #ffffff;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset 0.7s var(--silk) 0.42s;
}

.success-modal.show .bloom-aura {
  opacity: 1;
  transform: scale(1.2);
  animation: bloomPulse 3.5s ease-in-out infinite alternate;
}

.success-modal.show .check-circle {
  opacity: 1;
  transform: scale(1);
}

.success-modal.show .check-glow-ring {
  stroke-dashoffset: 0;
}

.success-modal.show .check-path {
  stroke-dashoffset: 0;
}

@keyframes bloomPulse {
  0% { transform: scale(1.05); opacity: 0.82; }
  100% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 14px rgba(243, 192, 91, 0.65)); }
}

.success-subtitle {
  color: var(--gold) !important;
  font-size: 15px;
  font-weight: 600;
  margin: -2px 0 10px;
  letter-spacing: 0.3px;
}

.success-detail {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ==========================================================================
   8. RESPONSIVE ARCHITECTURE 
   ========================================================================== */


@media (max-width: 768px) {
 
  .hero::before,
  .hero::after {
    display: none !important;
  }

  .handoff-bridge {
    display: none;
  }

  .steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    padding-left: 10px;
  }

  .steps-progress-track {
    position: absolute;
    top: 36px;
    bottom: 36px;
    left: 46px;
    width: 3px;
    height: auto;
    background: rgba(243, 192, 91, 0.22);
    border-radius: 3px;
    z-index: 1;
  }

  .progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #d4af37 0%, #f3c05b 60%, #fff2be 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(243, 192, 91, 0.7);
    transition: height 0.35s ease-out;
  }

  .progress-pulse {
    position: absolute;
    left: 50%;
    top: 0%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px 3px rgba(243, 192, 91, 0.9);
    opacity: 0;
    transition: top 0.35s ease-out, opacity 0.3s ease;
  }

  .steps article {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 18px;
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0;
  }

  .steps article .step-icon {
    flex: 0 0 72px;
    margin: 0;
  }

  .steps article h3 {
    margin-bottom: 2px;
  }

  .poster-benefit-item:hover {
    transform: translateX(2px) translateY(-1px);
  }
}


@media (max-width: 480px) {

  .hero::before,
  .hero::after {
    display: none !important;
  }

  
  .left-phone,
  .right-phone {
    display: none !important;
  }

  .app-preview {
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 0 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
  }

  .center-phone {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    width: min(205px, 64vw) !important;
    height: auto !important;
    aspect-ratio: 236 / 525 !important;
    max-height: 430px !important;
    border-radius: 28px !important;
    border-width: 5px !important;
  }

  .steps-progress-track {
    left: 42px;
  }

  .steps article .step-icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }

  .steps article .step-icon svg {
    width: 32px;
    height: 32px;
  }
}


@media (max-width: 360px) {
  .center-phone {
    width: min(185px, 60vw) !important;
    border-radius: 24px !important;
    border-width: 4.5px !important;
  }

  .steps-progress-track {
    left: 38px;
  }

  .steps article .step-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
  }

  .steps article .step-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   9. REDUCED MOTION SAFETY 
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero::before,
  .hero::after,
  .bloom-aura,
  .progress-pulse,
  .handoff-bridge {
    display: none !important;
  }

  .check-path,
  .check-glow-ring {
    stroke-dashoffset: 0 !important;
  }

  .check-circle {
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  .progress-line-fill {
    width: 100% !important;
    height: 100% !important;
  }
}
