/* =========================
   HERO SECTION
   ========================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
  background: transparent;
}

/* =========================
   LAYERED WAVE SYSTEM
   ========================= */

/* Wave container for all layers */
.hero-wave-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* WAVE LAYER 1 - Deepest/Slowest (darkest green) */
.hero-wave-bg::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -60%;
  width: 220%;
  height: 140%;
  transform: translateY(-50%);
  
  background: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 600'>\
<path d='M0,300 C200,220 400,380 600,300 800,220 1000,380 1200,300 1400,220 1600,380 1600,600 L1600,0 L0,0 Z' fill='%23c5f0d8'/>\
</svg>");
  
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.7;
  
  animation: oceanDrift1 32s ease-in-out infinite alternate;
}

/* WAVE LAYER 2 - Middle (medium green) */
.hero-wave-bg::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -60%;
  width: 220%;
  height: 140%;
  transform: translateY(-50%);
  
  background: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 600'>\
<path d='M0,320 C200,240 400,400 600,320 800,240 1000,400 1200,320 1400,240 1600,400 1600,600 L1600,0 L0,0 Z' fill='%23d6f3e0'/>\
</svg>");
  
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.85;
  
  animation: oceanDrift2 24s ease-in-out infinite alternate;
}

/* WAVE LAYER 3 - Front/Fastest (lightest green) - Added via separate div in HTML */
.hero-wave-front {
  position: absolute;
  top: 50%;
  left: -60%;
  width: 220%;
  height: 140%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  
  background: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 600'>\
<path d='M0,340 C200,260 400,420 600,340 800,260 1000,420 1200,340 1400,260 1600,420 1600,600 L1600,0 L0,0 Z' fill='%23e5f8ed'/>\
</svg>");
  
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.6;
  
  animation: oceanDrift3 18s ease-in-out infinite alternate;
}
/* Performance hint for animated wave layers */
.hero-wave-bg::before,
.hero-wave-bg::after,
.hero-wave-front {
  will-change: transform;
}
/* =========================
   WAVE ANIMATIONS (different speeds)
   ========================= */

/* Slowest wave - deepest layer */
@keyframes oceanDrift1 {
  from { transform: translate(-5%, -50%); }
  to   { transform: translate(5%, -50%); }
}

@keyframes oceanDrift2 {
  from { transform: translate(-7%, -50%); }
  to   { transform: translate(7%, -50%); }
}

@keyframes oceanDrift3 {
  from { transform: translate(-9%, -50%); }
  to   { transform: translate(9%, -50%); }
}

/* =========================
   ROTATING CIRCLE ANIMATION
   ========================= */

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   CONTENT LAYER
   ========================= */

.hero-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}

/* =========================
   TEXT ENTRANCE
   ========================= */

.hero-eyebrow,
.hero-title,
.hero-subtitle,
.hero-actions {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   TEXT STYLES
   ========================= */

/* Context line */
.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.75rem;
  font-weight: 500;
  opacity: 0.7;
  transition-delay: 0s;
}

/* Main statement */
.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 4.3rem;
  line-height: 1.01;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  max-width: 820px;
  margin: 0 auto 2rem;

  /* subtle depth */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Optional hierarchy inside headline */
.hero-title span {
  font-weight: 500;
  opacity: 0.9;
}

/* Supporting copy */
.hero-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 500;

  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;

  color: rgba(15, 23, 42, 0.55);

  max-width: 560px;
  margin: 0.75rem auto 3.5rem;

  transition-delay: 0.16s;
}

.hero-actions {
  transition-delay: 0.24s;
}
/* =========================
   HERO ACTIONS
   ========================= */

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 6rem;
}

/* CTA wrapper – stacking context for circle + button */
.hero-cta-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  isolation: isolate;
}

/* Button always above the circle */
.hero-cta {
  position: relative;
  z-index: 2;
}

/* Rotating circle – behind button, above background */
.hero-circle-text {
  position: absolute;
  width: 240px;
  height: 240px;

  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  pointer-events: none;
  z-index: 1;
}
/* =========================
   ROTATING CIRCLE TEXT
   ========================= */

.hero-circle-text {
  position: absolute;
  width: 240px;
  height: 240px;

  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  opacity: 0;
  pointer-events: none;
  z-index: -1;

  transition: opacity 0.6s ease;
}

.hero-circle-text.is-visible {
  opacity: 0.9;
}

.hero-circle-text svg {
  width: 100%;
  height: 100%;
  animation: spinSlow 22s linear infinite;
}

.hero-circle-text text {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  fill: var(--color-primary);
  opacity: 0.85;
}



/* =========================
   MOBILE STRUCTURE TUNING
   ========================= */

@media (max-width: 600px) {
  .hero {
    min-height: 62vh;
    padding: 5.5rem 1.5rem 4.25rem;
  }

  .hero-eyebrow {
    margin-bottom: 1.25rem;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
  }

  .hero-title {
    font-size: 3rem;
    line-height: 1.05;
  }

  .hero-subtitle {
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.75;
  }
  .hero-wave-bg::before,
  .hero-wave-bg::after,
  .hero-wave-front {
    height: 170%;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 58vh;
    padding: 5rem 1.25rem 3.75rem;
  }

  .hero-title {
    font-size: 2.3rem;
    line-height: 1.06;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-wave-bg::before,
  .hero-wave-bg::after,
  .hero-wave-front {
    height: 185%;
  }
}

/* =========================
   MOBILE WAVE SPEED ADJUSTMENTS
   ========================= */

@media (max-width: 600px) {
  .hero-wave-bg::before {
    animation: oceanDrift1 24s ease-in-out infinite alternate;
  }
  
  .hero-wave-bg::after {
    animation: oceanDrift2 18s ease-in-out infinite alternate;
  }
  
  .hero-wave-front {
    animation: oceanDrift3 14s ease-in-out infinite alternate;
  }
}
@media (max-width: 600px) {
  .pricing a.btn-primary {
    display: none;
  }
}
* =========================
   MOBILE HERO CTA FIX (FINAL)
   ========================= */

@media (max-width: 600px) {
  .hero-actions {
    margin-top: 6.5rem;
  }

  .hero-cta-wrap {
    margin-top: 1.5rem;
  }

  .hero-circle-text {
    width: 200px;
    height: 200px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* CLEAN CENTER */
  }

  .hero-circle-text text {
    font-size: 10px;
    letter-spacing: 0.28em;
  }
}
/* =========================
   MOBILE HERO BOTTOM BUFFER
   ========================= */

@media (max-width: 600px) {
  .hero {
    padding-bottom: 6.5rem; /* creates safe space above sun */
  }
}