/* ============================================
   GlossMind Landing Page - Styles
   ============================================ */

/* --- CSS Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: rgb(120, 80, 70);
  background-color: var(--cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
}

/* --- Root Variables --- */
:root {
  --rose-dark: rgb(212, 149, 136);
  --rose-light: rgb(242, 200, 191);
  --cream: rgb(249, 247, 242);
  --white: rgb(255, 255, 255);

  --rose-dark-alpha-40: rgba(212, 149, 136, 0.4);
  --rose-light-alpha-30: rgba(242, 200, 191, 0.3);
  --white-alpha-15: rgba(255, 255, 255, 0.15);
  --white-alpha-60: rgba(255, 255, 255, 0.6);
  --white-alpha-80: rgba(255, 255, 255, 0.8);

  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;

  --fs-hero-title: clamp(2.5rem, 6vw, 4.5rem);
  --fs-section-title: clamp(1.8rem, 4vw, 3rem);
  --fs-body: clamp(0.95rem, 1.5vw, 1.1rem);
  --fs-small: 0.875rem;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --transition: 0.3s ease;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--rose-dark);
}

h1 { font-size: var(--fs-hero-title); }
h2 { font-size: var(--fs-section-title); }
h3 { font-size: 1.3rem; }

p {
  font-size: var(--fs-body);
}

/* --- Glassmorphism Utility --- */
.glass-card {
  background: var(--white-alpha-15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--rose-light-alpha-30);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(212, 149, 136, 0.1);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Section Base --- */
section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* ============================================
   Canvas Background
   ============================================ */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, rgb(200, 140, 130), rgb(232, 185, 175), rgb(215, 160, 150));
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.hero-content {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 700px;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--rose-light-alpha-30);
  box-shadow: 0 12px 40px rgba(212, 149, 136, 0.15);
}

.hero-logo {
  margin: 0 auto 0.5rem;
  border-radius: 0;
  width: 220px;
  height: auto;
  object-fit: contain;
}

.hero-title {
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--rose-dark);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  color: rgb(160, 120, 110);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* --- Countdown --- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.25rem;
  min-width: 70px;
}

.countdown-value {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--rose-dark);
  line-height: 1;
}

.countdown-label {
  font-size: var(--fs-small);
  font-weight: 300;
  color: rgb(160, 120, 110);
  margin-top: 0.25rem;
}

@keyframes countdownFade {
  0% { opacity: 0.4; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

.countdown-expired {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--rose-dark);
  text-align: center;
  padding: 1rem;
}

/* ============================================
   Pain Points Section
   ============================================ */
.pain-points-section {
  background: linear-gradient(135deg, var(--rose-light), var(--white));
}

.pain-points-list {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pain-point-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--white-alpha-80);
  border-radius: var(--radius-sm);
}

.pain-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ============================================
   Solution Section
   ============================================ */
.solution-section {
  background: var(--white);
}

.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  perspective: 1000px;
}

.feature-card {
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  position: relative;
  background: var(--white);
  border: 1px solid var(--rose-light-alpha-30);
  overflow: visible;
}

.feature-card:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-2deg);
  box-shadow:
    0 20px 40px rgba(212, 149, 136, 0.25),
    0 0 30px rgba(212, 149, 136, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* 3D floating icon */
.card-icon-3d {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-dark), var(--rose-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 20px rgba(212, 149, 136, 0.4),
    0 2px 6px rgba(212, 149, 136, 0.2);
  transform: translateZ(30px);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}

.feature-card:hover .card-icon-3d {
  transform: translateZ(50px) scale(1.1);
  box-shadow:
    0 14px 30px rgba(212, 149, 136, 0.5),
    0 4px 10px rgba(212, 149, 136, 0.3);
}

.icon-inner {
  font-size: 1.6rem;
  line-height: 1;
  filter: grayscale(1) brightness(10);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  transform: translateZ(15px);
}

.feature-card p {
  transform: translateZ(10px);
  color: rgb(140, 100, 90);
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(212, 149, 136, 0.15);
}

/* ============================================
   VIP Offer Section
   ============================================ */
.vip-offer-section {
  background: linear-gradient(135deg, var(--rose-dark), var(--rose-light));
}

.vip-offer-section .section-title {
  color: var(--white);
}

.vip-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--white-alpha-15);
  border: 2px solid var(--rose-light-alpha-30);
}

.vip-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.price-old {
  font-size: 1.2rem;
  text-decoration: line-through;
  color: var(--white-alpha-60);
}

.price-new {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
}

.vip-badge {
  background: var(--white);
  color: var(--rose-dark);
  font-weight: 700;
  font-size: var(--fs-small);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  box-shadow: 0 0 15px var(--rose-dark-alpha-40);
}

.vip-perks {
  text-align: left;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: var(--fs-body);
}

/* ============================================
   CTA Form Section
   ============================================ */
.cta-section {
  background: var(--white);
}

.vip-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: var(--white-alpha-80);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--rose-dark);
  margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--rose-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: var(--fs-body);
  color: rgb(120, 80, 70);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}

.form-group input::placeholder {
  color: var(--rose-light);
}

.form-group input:focus {
  outline: none;
  border-color: var(--rose-dark);
  box-shadow: 0 0 12px rgba(212, 149, 136, 0.25);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--rose-dark);
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
}

.error-message {
  display: block;
  font-size: 0.8rem;
  color: var(--rose-dark);
  min-height: 1.2em;
  margin-top: 0.25rem;
}

.cta-button {
  width: 100%;
  padding: 1rem;
  background: var(--rose-dark);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  min-height: 44px;
  margin-top: 0.5rem;
}

.cta-button:hover {
  background: var(--white);
  color: var(--rose-dark);
  box-shadow: 0 0 20px var(--rose-dark-alpha-40);
}

.form-success {
  text-align: center;
  padding: 1.5rem;
  margin-top: 1rem;
  color: var(--rose-dark);
  font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */
.footer-section {
  background: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--rose-dark);
  transition: transform var(--transition), color var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.social-links a:hover {
  transform: scale(1.15);
  color: var(--rose-light);
}

.legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.legal-link {
  font-size: var(--fs-small);
  color: rgb(160, 120, 110);
  transition: color var(--transition);
  padding: 0.5rem;
}

.legal-link:hover {
  color: var(--rose-dark);
}

.separator {
  color: rgb(200, 160, 150);
  font-size: var(--fs-small);
}

.copyright {
  font-size: var(--fs-small);
  font-weight: 300;
  color: rgb(160, 120, 110);
  margin-bottom: 0.5rem;
}

.built-by {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgb(180, 140, 130);
}

.built-by a {
  color: var(--rose-dark);
  font-weight: 500;
  transition: color var(--transition);
}

.built-by a:hover {
  color: var(--rose-light);
}

/* ============================================
   Scroll Animations (base state)
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive — Desktop (768px+)
   ============================================ */
@media (min-width: 768px) {
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-content {
    padding: 4rem 3rem;
  }

  .countdown-block {
    padding: 1.25rem 1.75rem;
    min-width: 90px;
  }
}

@media (min-width: 1024px) {
  .feature-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
