/* ==========================================================================
   Creative Team - Coming Soon Cinematic Landing Page
   Design Doctrine: Dark Luxury, Organic Atmospheric Floating, Deep Space Parallax
   ========================================================================== */

:root {
  --color-bg: #030509;
  --color-sky-top: #04040c;
  --color-sky-bottom: #121824;
  --color-brand-green: #7ac142;
  --color-brand-green-glow: rgba(122, 193, 66, 0.45);
  --color-brand-cyan-glow: rgba(90, 160, 240, 0.25);
  
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.72);
  --color-text-muted: rgba(255, 255, 255, 0.45);

  --font-family-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --ease-cinematic: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   Viewport Wrapper & Global Frame
   ========================================================================== */

.viewport-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 10%, #080d1a 0%, #030509 70%, #010205 100%);
}

/* ==========================================================================
   Sky Header & Centered Responsive Logo with White Outer Glow
   ========================================================================== */

.sky-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: clamp(20px, 4vh, 48px);
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 60;
  pointer-events: none;
}

.logo-container {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-cinematic);
  cursor: pointer;
}

/* Responsive Logo with 275px desktop target and crisp finish (no glow) */
.brand-logo {
  width: min(275px, 78vw);
  height: auto;
  max-height: 14vh;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.65));
  opacity: 0; /* Animated in by GSAP */
  transform: translateY(-20px);
  transition: transform 0.35s var(--ease-cinematic);
}

.brand-logo:hover {
  transform: translateY(-2px) scale(1.025);
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.8));
}

/* ==========================================================================
   Scene Stage (Composite 5-Layer Cinematic Cloud & Star System)
   ========================================================================== */

.scene-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* Base properties for all composite scenery layers */
.scene-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  display: block;
}

/* Specific Layer Ordering from back to front:
   10: night sky.jpg (stays in its place, no Y slide)
   15: stars-canvas (glowing floating stars)
   20: back fog.webp (comes from down)
   30: back clouds.webp (comes from down)
   40: Coming soon text.webp (comes from down, then floats)
   50: front clouds.webp (comes from down)
*/

.layer-night-sky {
  z-index: 10;
}

.layer-night-sky .scene-img {
  object-position: center top;
  filter: brightness(1.04) contrast(1.02);
}

/* Glowing floating stars canvas */
.stars-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
}

.layer-back-fog {
  z-index: 20;
  mix-blend-mode: normal;
  opacity: 0.96;
}

.layer-back-clouds {
  z-index: 30;
}

/* Layer 40: Floating 3D "Coming soon" Text */
.layer-coming-soon {
  z-index: 40;
}

.floating-text-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.text-img {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.75))
          drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transform-origin: center center;
}

/* Layer 50: Foreground Clouds (covers bottom of text) */
.layer-front-clouds {
  z-index: 50;
}

.layer-front-clouds .scene-img {
  filter: contrast(1.02);
}

/* ==========================================================================
   Responsive Logic: Never Crop 'Coming soon text.webp' on Mobile Viewports
   ========================================================================== */

/* On mobile and narrower-than-16:9 screens, contain the text and cloud deck
   proportionally so COMING SOON text is 100% visible with natural side margins */
@media (max-aspect-ratio: 16/10) {
  .layer-back-fog,
  .layer-back-clouds,
  .layer-coming-soon,
  .layer-front-clouds {
    align-items: center;
    justify-content: center;
  }

  /* Center the atmospheric deck in lower-mid viewport on tall screens */
  .layer-back-fog .scene-img,
  .layer-back-clouds .scene-img,
  .layer-front-clouds .scene-img,
  .floating-text-wrapper .scene-img {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    object-position: center 54%;
  }

  /* Keep the background starry sky filling 100% full bleed */
  .layer-night-sky .scene-img {
    object-fit: cover;
    object-position: center top;
  }
}

@media (max-width: 600px) {
  .layer-back-fog .scene-img,
  .layer-back-clouds .scene-img,
  .layer-front-clouds .scene-img,
  .floating-text-wrapper .scene-img {
    /* Slightly lower center position to give dark sky more room for logo */
    object-position: center 52%;
  }
}

/* ==========================================================================
   Bottom Call To Action Section (Subtle, High-End & Configurable)
   ========================================================================== */

.bottom-cta-section {
  position: relative;
  z-index: 70;
  width: 100%;
  margin-top: auto;
  padding: 0 20px clamp(18px, 3.5vh, 36px);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cta-container {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 580px;
  width: 100%;
}

/* Pulsing Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(14, 22, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(12px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-brand-green);
  box-shadow: 0 0 10px var(--color-brand-green), 0 0 2px #ffffff;
  animation: pulseGreen 2.4s infinite ease-in-out;
}

.status-text {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

/* Action Buttons Group */
.action-buttons-group {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(16px);
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s var(--ease-cinematic);
  text-decoration: none;
}

/* Primary Button (Green Accent Glow) */
.primary-btn {
  background: linear-gradient(135deg, #8ad44e 0%, #6dae3a 100%);
  color: #0c1806;
  box-shadow: 0 4px 18px rgba(122, 193, 66, 0.35),
              0 1px 2px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(122, 193, 66, 0.55),
              0 2px 4px rgba(0, 0, 0, 0.4);
}

.primary-btn:hover .btn-glow {
  opacity: 1;
}

.primary-btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* Secondary Button (Frosted Glass with subtle WhatsApp accent on hover) */
.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.secondary-btn:hover {
  background: rgba(37, 211, 102, 0.16);
  border-color: rgba(37, 211, 102, 0.45);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.25);
  transform: translateY(-2px);
}

.secondary-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Footer Utilities */
.footer-utilities {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-secondary);
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-icon:hover {
  color: #ffffff;
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 0 16px rgba(24, 119, 242, 0.55);
  transform: translateY(-2px);
}

.copyright-tag {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Interactive Notify Modal with 3 Inputs
   ========================================================================== */

.notify-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.notify-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(25, 34, 52, 0.95), rgba(12, 17, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 
              0 0 0 1px rgba(122, 193, 66, 0.15);
  border-radius: 20px;
  padding: 32px 26px;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s var(--ease-elastic);
}

.notify-modal.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(122, 193, 66, 0.15);
  border: 1px solid rgba(122, 193, 66, 0.35);
  color: var(--color-brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.modal-icon-badge svg {
  width: 22px;
  height: 22px;
}

.modal-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.modal-body p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.notify-form .input-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-group {
  width: 100%;
}

.notify-form input[type="text"],
.notify-form input[type="email"],
.notify-form input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.notify-form input:focus {
  border-color: var(--color-brand-green);
  box-shadow: 0 0 0 3px rgba(122, 193, 66, 0.25);
}

.notify-form button[type="submit"] {
  width: 100%;
  margin-top: 4px;
  padding: 13px 18px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, #8ad44e, #6dae3a);
  color: #0c1806;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.notify-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(122, 193, 66, 0.45);
}

.notify-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.form-feedback {
  margin-top: 10px;
  font-size: 0.82rem;
  min-height: 1.2em;
  text-align: center;
  transition: all 0.3s ease;
}

.form-feedback.success {
  color: #7ae44c;
}

.form-feedback.error {
  color: #ff6b6b;
}

.form-feedback.info {
  color: #64b5f6;
}

/* ==========================================================================
   Responsive Adaptations (Tablet, Mobile)
   ========================================================================== */

@media (max-width: 768px) {
  .sky-header {
    padding-top: 24px;
  }

  .status-pill {
    padding: 5px 12px;
  }

  .status-text {
    font-size: 0.72rem;
  }

  .action-buttons-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 10px;
  }

  .cta-button {
    width: 100%;
    padding: 12px 20px;
  }

  .footer-utilities {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .sky-header {
    padding-top: 20px;
  }

  .bottom-cta-section {
    padding-bottom: 22px;
  }

  .modal-card {
    padding: 24px 20px;
  }
}

/* Landscape Mobile */
@media (max-height: 550px) and (orientation: landscape) {
  .sky-header {
    padding-top: 12px;
  }

  .brand-logo {
    width: min(180px, 40vw);
  }

  .bottom-cta-section {
    padding-bottom: 10px;
  }

  .status-pill {
    display: none;
  }

  .action-buttons-group {
    transform: scale(0.85);
  }

  .footer-utilities {
    display: none;
  }
}

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes pulseGreen {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
    box-shadow: 0 0 10px var(--color-brand-green), 0 0 2px #ffffff;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
    box-shadow: 0 0 18px var(--color-brand-green), 0 0 5px #ffffff;
  }
}
