/* ============================================================
   HifzGuide Marketing Site — Styles
   Color palette derived from app logo:
     Navy:  #011434 / #032642 / #06597e
     Gold:  #E1BF71 / #F0D48E / #9A7038
     Teal:  #67EAD4
   ============================================================ */

:root {
  --navy-deep:   #011434;
  --navy:        #032642;
  --navy-light:  #06597e;
  --gold:        #E1BF71;
  --gold-light:  #F0D48E;
  --gold-dark:   #9A7038;
  --teal:        #67EAD4;
  --white:       #FFFFFF;
  --white-muted: rgba(255,255,255,0.7);
  --card-bg:     rgba(255,255,255,0.04);
  --card-border: rgba(225,191,113,0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--navy-deep);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Section Titles ---- */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.4em;
  color: var(--gold-light);
}

.section-subtitle {
  text-align: center;
  color: var(--white-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
  background: radial-gradient(ellipse at 50% 15%, #06597e 0%, #032642 40%, #011434 100%);
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(103,234,212,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo img {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-description {
  color: var(--white-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
}

.hero-divider svg {
  width: 100%;
  height: 100%;
}

/* ---- CTA Button ---- */
.cta-button {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 4px 20px rgba(225,191,113,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(225,191,113,0.45);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button-large {
  padding: 18px 48px;
  font-size: 1.15rem;
  border-radius: 14px;
}

/* ============================================================
   FEATURES CAROUSEL
   ============================================================ */
.features {
  padding: 100px 0 40px;
  background: var(--navy-deep);
}

/* Carousel wrapper */
.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 60px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-viewport:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

/* Phone in slide */
.slide-phone {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.slide-phone .phone-frame {
  width: 240px;
}

.slide-phone-pair .phone-sm {
  width: 200px;
}

/* Phone frame mockup */
.phone-frame {
  position: relative;
  padding: 12px;
  background: #1a1a2e;
  border-radius: 32px;
  border: 3px solid rgba(225,191,113,0.2);
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  overflow: hidden;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #0d0d1a;
  border-radius: 12px;
  z-index: 2;
}

.phone-frame img {
  border-radius: 20px;
  width: 100%;
  display: block;
}

/* Slide text */
.slide-text {
  text-align: center;
  max-width: 520px;
}

.slide-badge {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.slide-text p {
  color: var(--white-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(225,191,113,0.2);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-arrow:hover {
  background: rgba(225,191,113,0.12);
  border-color: rgba(225,191,113,0.4);
}

.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 28px 0 40px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.carousel-dot:hover:not(.active) {
  background: rgba(255,255,255,0.4);
}

/* Highlight card */
.highlights {
  display: flex;
  justify-content: center;
  padding: 20px 0 20px;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 36px;
  max-width: 560px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.highlight-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.highlight-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.highlight-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.highlight-card p {
  color: var(--white-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 80px 0 100px;
  background: var(--navy-deep);
}

.cta-card {
  background: linear-gradient(135deg, rgba(6,89,126,0.3) 0%, rgba(3,38,66,0.6) 100%);
  border: 1px solid rgba(103,234,212,0.15);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.cta-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-card h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--teal);
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--white-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-requirements {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  font-size: 0.85rem !important;
  color: rgba(255,255,255,0.4) !important;
  letter-spacing: 0.02em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--navy-deep);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold);
}

.footer-logo img {
  border-radius: 8px;
}

.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 40px;
  }

  .hero-logo img {
    width: 110px;
    height: 110px;
  }

  .features {
    padding: 60px 0 20px;
  }

  .carousel {
    padding: 0 48px;
  }

  .slide-phone .phone-frame {
    width: 210px;
  }

  .slide-phone-pair .phone-sm {
    width: 160px;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .carousel-prev { left: 2px; }
  .carousel-next { right: 2px; }

  .highlight-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .cta-section {
    padding: 40px 0 60px;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-logo img {
    width: 90px;
    height: 90px;
  }

  .carousel {
    padding: 0 40px;
  }

  .slide-phone .phone-frame {
    width: 180px;
  }

  .slide-phone-pair .phone-sm {
    width: 140px;
    padding: 8px;
    border-radius: 24px;
  }

  .phone-frame {
    padding: 10px;
    border-radius: 26px;
  }

  .phone-frame::before {
    width: 64px;
    height: 18px;
    top: 5px;
  }

  .phone-frame img {
    border-radius: 16px;
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
  }

  .carousel-arrow svg {
    width: 18px;
    height: 18px;
  }
}
