/* ============================================
   Gita BFF — Waitlist Landing Page
   Mobile-first, full-bleed Krishna hero
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  background: #fdfbf7;
  color: #FFFFFF;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HERO — Full viewport, Krishna image
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Image wrapper */
.hero-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Gradient overlay — darken for card contrast, fade to cream at very bottom */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.0) 35%,
      rgba(0, 0, 0, 0.5) 68%,
      rgba(10, 8, 6, 0.92) 88%,
      #fdfbf7 100%
    );
}

/* ---------- Header ---------- */
.header {
  position: relative;
  z-index: 2;
  padding: 20px 24px;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

/* ---------- Hero Content (card pinned to bottom) ---------- */
.hero-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Frosted glass card — exact Figma tokens */
.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 28px 28px;
  border-radius: 24px;
  background: rgba(20, 15, 10, 0.65);
  -webkit-backdrop-filter: blur(10.5px);
  backdrop-filter: blur(10.5px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

/* Quote + attribution group */
.hero-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Quote styling — exact Figma tokens */
.hero-quote {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: #FFFFFF;
  font-style: normal;
}

/* Attribution — two lines, tight gap */
.hero-ref-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-ref-title {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: rgba(238, 238, 238, 0.7);
}

.hero-ref-verse {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: rgba(238, 238, 238, 0.7);
}

/* ---------- CTA Form ---------- */
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.email-input {
  width: 100%;
  height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.email-input:focus-within {
  border-color: rgba(230, 106, 92, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.email-input input {
  width: 100%;
  height: 100%;
  padding: 0 18px;
  background: none;
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #FFFFFF;
}

.email-input input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.cta-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 18px;
  background: #E66A5C;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.7px;
  cursor: pointer;
  box-shadow: 0 4px 0 #C44D40;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #C44D40;
}

.cta-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #C44D40;
}

/* ============================================
   SECTIONS BELOW HERO — warm light theme with radial glow
   ============================================ */
.features,
.final-cta,
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  color: #2a1a1f;
}

/* Content wrapper — holds all sections below hero with shared radial glow */
.content-wrap {
  position: relative;
  z-index: 3;
  background: #fdfbf7;
  overflow-x: clip;
}

/* Warm circular glow — Pencil: #f2e8da center → #fdfbf7 edge */
.content-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 824px;
  height: 824px;
  border-radius: 9999px;
  background: radial-gradient(
    circle,
    rgba(242, 232, 218, 0.45) 0%,
    rgba(253, 251, 247, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ---------- Thank You ---------- */
.thank-you {
  padding: 32px 0 16px;
  text-align: center;
  animation: fadeInUp 0.6s ease-out both;
}

.thank-you .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.thank-you-divider {
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(196, 112, 90, 0.5);
}

.thank-you-heading {
  font-size: 20px;
  font-weight: 600;
  color: #2a1a1f;
}

.thank-you-body {
  font-size: 15px;
  font-weight: 400;
  color: rgba(42, 26, 31, 0.7);
  line-height: 1.7;
  max-width: 340px;
}

.thank-you-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(230, 106, 92, 0.18);
  border-radius: 20px;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.04),
    0 0 0 4px rgba(230, 106, 92, 0.06),
    0 8px 32px rgba(230, 106, 92, 0.1);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.thank-you-icon {
  font-size: 48px;
  line-height: 1;
}

.share-btn {
  width: 100%;
  max-width: 280px;
  height: 50px;
  border-radius: 18px;
  background: #E66A5C;
  border: none;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.7px;
  cursor: pointer;
  box-shadow: 0 4px 0 #C44D40;
  transition: transform 0.15s, box-shadow 0.15s;
}

.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #C44D40;
}

.share-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #C44D40;
}

/* ---------- Done / Muted CTA Button ---------- */
.cta-btn--done {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
  pointer-events: auto;
}

.cta-btn--done:hover {
  transform: none;
  box-shadow: none;
}

.cta-btn--done:active {
  transform: none;
  box-shadow: none;
}

/* ---------- Features ---------- */
.features {
  padding: 64px 0 32px;
}

.features .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #E66A5C;
  text-align: center;
}

.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(230, 106, 92, 0.1);
  color: #E66A5C;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-text h3 {
  font-size: 16px;
  font-weight: 600;
}

.feature-text p {
  font-size: 13px;
  font-weight: 400;
  color: rgba(42, 26, 31, 0.55);
  line-height: 1.4;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 36px 0 56px;
  text-align: center;
}

.final-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gita-quote {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  font-style: normal;
}

.gita-ref {
  font-size: 12px;
  font-weight: 500;
  color: rgba(42, 26, 31, 0.45);
  letter-spacing: 2.5px;
  font-style: normal;
}

.final-subline {
  font-size: 14px;
  color: rgba(42, 26, 31, 0.45);
  margin-top: 4px;
}

.cta-form--bottom {
  margin-top: 8px;
}

/* Light-theme form overrides for sections below hero */
.final-cta .email-input {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

.final-cta .email-input:focus-within {
  border-color: rgba(230, 106, 92, 0.5);
  background: rgba(0, 0, 0, 0.06);
}

.final-cta .email-input input {
  color: #2a1a1f;
}

.final-cta .email-input input::placeholder {
  color: rgba(42, 26, 31, 0.35);
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0 48px;
}

.footer .container {
  max-width: 960px;
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(42, 26, 31, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(42, 26, 31, 0.7);
}

.footer-copy {
  font-size: 12px;
  color: rgba(42, 26, 31, 0.3);
}

/* ============================================
   DESKTOP (768px+)
   ============================================ */
@media (min-width: 768px) {
  .container {
    max-width: 960px;
    padding: 0 48px;
  }

  /* Desktop hero — cover */
  .hero-bg {
    object-fit: cover;
    object-position: center 30%;
  }

  /* Radial vignette — softened for desktop */
  .hero-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
      ellipse 65% 70% at center 35%,
      transparent 25%,
      rgba(10, 10, 18, 0.15) 45%,
      rgba(10, 10, 18, 0.35) 65%,
      rgba(10, 10, 18, 0.55) 85%,
      rgba(10, 10, 18, 0.7) 100%
    );
    pointer-events: none;
  }

  /* Warm earth-tone transition: starts below card */
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 10, 18, 0.05) 0%,
      rgba(10, 10, 18, 0.0) 15%,
      rgba(10, 10, 18, 0.0) 72%,
      rgba(25, 18, 12, 0.25) 78%,
      rgba(55, 40, 25, 0.5) 83%,
      rgba(90, 70, 45, 0.7) 87%,
      rgba(150, 130, 100, 0.85) 91%,
      rgba(210, 198, 180, 0.94) 95%,
      #fdfbf7 100%
    );
  }

  .header {
    padding: 28px 48px;
  }

  .hero-content {
    padding: 0 48px 64px;
  }

  /* Card wider on desktop */
  .hero-card {
    max-width: 480px;
    padding: 36px 40px;
    gap: 20px;
    background: rgba(20, 15, 10, 0.55);
  }

  .hero-quote {
    font-size: 30px;
  }

  .hero-ref {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .cta-form {
    max-width: 420px;
  }

  /* Thank You — desktop */
  .thank-you {
    padding: 40px 0 20px;
  }

  .thank-you-heading {
    font-size: 22px;
  }

  .thank-you-body {
    max-width: 420px;
  }

  /* Features — horizontal cards */
  .features {
    padding: 72px 0 36px;
  }

  .feature-cards {
    flex-direction: row;
    gap: 16px;
  }

  .feature-card {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 24px;
  }

  /* Final CTA */
  .final-cta {
    padding: 40px 0 72px;
  }

  .cta-form--bottom {
    max-width: 440px;
  }

  .gita-quote {
    font-size: 28px;
  }

  /* Footer — horizontal */
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============================================
   LARGE DESKTOP (1200px+)
   ============================================ */
@media (min-width: 1200px) {
  .container {
    max-width: 1100px;
    padding: 0 64px;
  }

  .hero-quote {
    font-size: 36px;
  }

  .hero-card {
    max-width: 520px;
    padding: 40px 44px;
  }

  .gita-quote {
    font-size: 32px;
  }
}

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-card,
  .feature-card,
  .gita-quote {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease forwards;
  }

  .hero-card { animation-delay: 0.3s; }
  .feature-card:nth-child(1) { animation-delay: 0.1s; }
  .feature-card:nth-child(2) { animation-delay: 0.2s; }
  .feature-card:nth-child(3) { animation-delay: 0.3s; }
  .gita-quote { animation-delay: 0.2s; }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wobble {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(5px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}

.wobble {
  animation: wobble 0.5s ease;
}
