/* Firefly Financial — Main Stylesheet */
/* Mythical night forest — dark, warm, glowing */

/* ── Brand Colors ── */
:root {
  --teal: #00B4A6;
  --pink: #FF6B9D;
  --gold: #FFD700;
  --amber: #FFA500;
  --dark: #0A0A0A;
  --dark-green: #0D1F0F;
  --dark-card: #111827;
  --white: #FFFFFF;
  --light-gray: #E5E7EB;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(ellipse at center,
    #0D1F0F 0%,
    #080F08 50%,
    #020402 100%);
  background-attachment: fixed;
  color: var(--white);
  font-family: 'Georgia', serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Firefly Canvas ── */
#fireflyCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Hero Fireflies ── */
.hero-ff {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.9);
  box-shadow:
    0 0 5px  2px rgba(255, 215, 0, 0.45),
    0 0 12px 4px rgba(255, 165, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  animation: hffDrift linear infinite, hffBlink ease-in-out infinite;
}

@keyframes hffDrift {
  0%   { transform: translate(  0px,   0px); }
  14%  { transform: translate( 22px, -30px); }
  28%  { transform: translate(-10px, -50px); }
  42%  { transform: translate( 32px, -22px); }
  57%  { transform: translate( -5px, -55px); }
  71%  { transform: translate( 18px, -35px); }
  85%  { transform: translate(-15px, -18px); }
  100% { transform: translate(  0px,   0px); }
}

@keyframes hffBlink {
  0%, 100%  { opacity: 0;    }
  20%, 40%  { opacity: 1;    }
  30%       { opacity: 0.07; }
  65%       { opacity: 0;    }
}

/* ── Hero Section ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  background-image: url('../assets/images/firefly-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 4, 2, 0.35) 0%,
    rgba(5, 12, 5, 0.50) 55%,
    rgba(2, 4, 2, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
  background-color: transparent;
}

.hero-logo {
  width: 300px;
  max-width: 80vw;
  height: auto;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--teal);
  font-style: italic;
  text-shadow: 0 0 14px rgba(0, 180, 166, 0.7);
  max-width: 460px;
  text-align: center;
  padding: 20px 0 28px;
  margin-top: 4px;
  transition: opacity 0.8s ease;
}

.hero-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: rgba(255, 215, 0, 0.65);
  font-size: 0.7rem;
  letter-spacing: 4px;
}

.hero-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 16px 54px;
  border: 2px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-family: 'Georgia', serif;
  font-size: 0.88rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  animation: fireflyGlow 4s ease-in-out infinite;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 0 45px rgba(255, 215, 0, 0.55);
  animation-play-state: paused;
}

@keyframes fireflyGlow {
  0%, 100% {
    box-shadow: 0 0 5px  rgba(255, 215, 0, 0.12),
                0 0 10px rgba(255, 215, 0, 0.06);
  }
  8% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.85),
                0 0 45px rgba(255, 215, 0, 0.50),
                0 0 70px rgba(255, 165, 0, 0.25);
  }
  18% {
    box-shadow: 0 0 5px  rgba(255, 215, 0, 0.12),
                0 0 10px rgba(255, 215, 0, 0.06);
  }
  26% {
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.75),
                0 0 38px rgba(255, 215, 0, 0.40),
                0 0 60px rgba(255, 165, 0, 0.20);
  }
  40% {
    box-shadow: 0 0 5px  rgba(255, 215, 0, 0.12),
                0 0 10px rgba(255, 215, 0, 0.06);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  animation: scrollBob 2.5s ease-in-out infinite;
}

.hero-scroll-text {
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
}

.hero-scroll-arrow {
  color: var(--teal);
  font-size: 1rem;
}

@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 0.8; }
}

/* ── Main Content ── */
main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px 60px;
  text-align: center;
}

main h2 {
  font-size: 2rem;
  color: var(--pink);
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

.intro {
  font-size: 1.1rem;
  color: var(--light-gray);
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

/* ── Jars Section ── */
.jars-section {
  margin-bottom: 60px;
}

.jars-section h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.jars-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.jar-card {
  background: rgba(255, 165, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 24px 20px;
  width: 160px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.05);
}

.jar-card:hover {
  background: rgba(255, 165, 0, 0.1);
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(255, 165, 0, 0.2);
  transform: translateY(-4px);
}

.jar-illustration {
  display: block;
  width: 64px;
  height: auto;
  margin: 0 auto 14px;
}

.jar-icon {
  font-size: 1.4rem;
  margin-top: 10px;
}

.jar-card h4 {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.jar-card p {
  color: var(--light-gray);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.percent {
  color: var(--teal);
  font-size: 1.3rem;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 180, 166, 0.6);
}

/* ── Lamp Section ── */
.lamp-section {
  margin-bottom: 60px;
}

.lamp-card {
  background: rgba(0, 180, 166, 0.05);
  border: 1px solid rgba(0, 180, 166, 0.3);
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(0, 180, 166, 0.1);
}

.lamp-card[data-modal]:hover {
  background: rgba(0, 180, 166, 0.1);
  border-color: var(--teal);
  box-shadow: 0 0 40px rgba(0, 180, 166, 0.18);
  transform: translateY(-3px);
  transition: all 0.3s ease;
}

.lamp-card h3 {
  color: var(--teal);
  font-size: 1.4rem;
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(0, 180, 166, 0.6);
}

.lamp-card p {
  color: var(--light-gray);
  font-size: 1rem;
  line-height: 1.8;
}

.lamp-card strong {
  color: var(--gold);
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--dark-card);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 20px;
  padding: 44px 40px 40px;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow:
    0 0 40px rgba(255, 215, 0, 0.08),
    0 0 80px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  border: none;
  color: rgba(255, 215, 0, 0.5);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--gold);
}

.modal-headline {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 24px;
  line-height: 1.25;
  text-shadow:
    0 0 20px rgba(255, 215, 0, 0.55),
    0 0 45px rgba(255, 215, 0, 0.2);
}

.modal-title-verse {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-body p {
  color: var(--light-gray);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-verse {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--gold);
  opacity: 0.7;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 215, 0, 0.15);
}

[data-modal] {
  cursor: pointer;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(0, 180, 166, 0.3);
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: var(--teal);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .hero-tagline  { font-size: 1rem; }
  .hero-cta      { padding: 14px 36px; }
  main h2        { font-size: 1.5rem; }
  .jar-card      { width: 140px; }
}

/* Bottom Call To Action Section */
.cta-section {
  text-align: center;
  padding: 70px 20px 90px;
  position: relative;
  overflow: hidden;
}

/* Swirling fireflies around the bottom CTA button */
.cta-ff {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: rgba(var(--ff-color, 255, 215, 0), 0.9);
  box-shadow:
    0 0 5px  2px rgba(255, 215, 0, 0.45),
    0 0 12px 4px rgba(255, 165, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

.cta-ff.lit {
  animation: ctaTwinkle ease-in-out infinite;
}

@keyframes ctaTwinkle {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1;    }
}

/* keep content above the fireflies */
.cta-section .cta-heading,
.cta-section .cta-subtext,
.cta-section .hero-cta {
  position: relative;
  z-index: 2;
}

.cta-heading {
  font-family: 'Georgia', serif;
  font-size: 1.9rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.cta-subtext {
  font-size: 1.05rem;
  color: #e0e0e0;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Email Opt-In Section */
.optin-section {
  background-color: #0a0a0a;
  padding: 60px 20px;
  text-align: center;
}

.optin-content {
  max-width: 600px;
  margin: 0 auto;
}

.optin-content h2 {
  font-size: 2rem;
  color: #f5c842;
  margin-bottom: 12px;
}

.optin-content p {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 24px;
}