/* AuraFreq Landing Page Theme */

/* === CSS RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --indigo:     #0d0b1e;
  --indigo-mid: #14122a;
  --indigo-lit: #1e1b3a;
  --amber:      #ffb84d;
  --amber-dim:  #e09820;
  --amber-glow: rgba(255, 184, 77, 0.12);
  --lavender:   #ede8f7;
  --lav-mid:    #d6d0ee;
  --lav-dark:   #c4bde4;
  --text-body:  #c8c2e0;
  --text-muted: #8a84a8;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--indigo);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--lavender);
  line-height: 1.15;
  margin-bottom: 1rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: min(800px, 100vw);
  height: min(600px, 80vh);
  background: radial-gradient(ellipse at center,
    rgba(255, 184, 77, 0.07) 0%,
    rgba(255, 184, 77, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50vh;
}

.wave {
  fill: var(--indigo-mid);
}
.wave-1 { opacity: 1; }
.wave-2 { opacity: 0.6; }
.wave-3 { opacity: 0.3; }

@keyframes waveShift {
  0%   { d: path("M0,200 C180,80 360,320 540,200 C720,80 900,280 1080,200 C1260,120 1350,180 1440,160 L1440,400 L0,400 Z"); }
  50%  { d: path("M0,200 C180,300 360,100 540,250 C720,400 900,150 1080,220 C1260,290 1350,200 1440,180 L1440,400 L0,400 Z"); }
  100% { d: path("M0,200 C180,80 360,320 540,200 C720,80 900,280 1080,200 C1260,120 1350,180 1440,160 L1440,400 L0,400 Z"); }
}

.wave-1 {
  animation: waveFloat 8s ease-in-out infinite;
}
@keyframes waveFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.wave-2 { animation: waveFloat 10s ease-in-out infinite reverse; }
.wave-3 { animation: waveFloat 12s ease-in-out infinite; }

.wave-dots {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 80px;
  align-items: center;
  opacity: 0.3;
}
.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  animation: dotPulse 3s ease-in-out infinite;
}
.dot-1 { animation-delay: 0s; }
.dot-2 { animation-delay: 0.6s; }
.dot-3 { animation-delay: 1.2s; }
.dot-4 { animation-delay: 1.8s; }
.dot-5 { animation-delay: 2.4s; }
@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.5); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(255, 184, 77, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--lavender);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 80px rgba(255, 184, 77, 0.15);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.hero-prescription {
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 184, 77, 0.25);
  border-radius: 12px;
  padding: 1.5rem 2.5rem;
  background: rgba(255, 184, 77, 0.04);
  backdrop-filter: blur(10px);
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.hero-prescription::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,184,77,0.06) 0%, transparent 60%);
}

.rx-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.rx-value {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--lavender);
  line-height: 1;
  text-shadow: 0 0 40px rgba(255, 184, 77, 0.4);
}
.rx-unit {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--amber);
  margin-left: 0.25rem;
}

.rx-meta {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.howitworks {
  background: var(--indigo-mid);
  padding: 7rem 2rem;
  text-align: center;
}
.howitworks .section-title { margin-bottom: 4rem; }

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  width: 100%;
  text-align: center;
  padding: 0 1rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.step-icon {
  margin: 0 auto 1rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,184,77,0.2);
  border-radius: 50%;
  background: var(--indigo-lit);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--lavender);
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.step-connector {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,184,77,0.3), rgba(255,184,77,0.05));
  margin: 0 auto;
}

/* ============================================================
   AILMENTS
   ============================================================ */
.ailments {
  background: var(--indigo);
  padding: 7rem 2rem;
  text-align: center;
}
.ailments .section-title { margin-bottom: 0.5rem; }
.ailments-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 3.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.ailment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.ailment-card {
  background: var(--indigo-mid);
  border: 1px solid rgba(255, 184, 77, 0.1);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: left;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.ailment-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--amber), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.ailment-card:hover {
  border-color: rgba(255, 184, 77, 0.3);
  background: var(--indigo-lit);
}
.ailment-card:hover::after { opacity: 1; }

.ailment-hz {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  text-shadow: 0 0 20px rgba(255,184,77,0.3);
  margin-bottom: 0.25rem;
  line-height: 1;
}
.ailment-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lavender);
  margin-bottom: 0.25rem;
}
.ailment-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.ailment-protocol {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--amber-dim);
  font-weight: 500;
}

/* ============================================================
   CLOSING
   ============================================================ */
.closing {
  position: relative;
  background: var(--indigo-mid);
  padding: 8rem 2rem;
  text-align: center;
  overflow: hidden;
}

.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255,184,77,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.closing-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.closing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--lavender);
  line-height: 1;
}
.price-period {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.closing-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--lavender);
  line-height: 1.2;
}

.closing-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.8;
}

.closing-wave {
  margin-top: 1rem;
}
.closing-wave-path {
  animation: closingWave 4s ease-in-out infinite;
}
.closing-wave-path:last-child {
  animation-delay: 0.5s;
}
@keyframes closingWave {
  0%, 100% { transform: translateX(-5px); opacity: 0.6; }
  50%       { transform: translateX(5px);  opacity: 1; }
}

/* ---- CTA BUTTON ---- */
.cta-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--amber);
  padding: 0.9rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
  background: var(--amber-dim);
  box-shadow: 0 0 24px rgba(255,184,77,0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
  .ailment-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 900px;
  }
  .steps {
    flex-direction: row;
    align-items: flex-start;
    max-width: 900px;
  }
  .step { flex: 1; }
  .step-connector {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, rgba(255,184,77,0.05), rgba(255,184,77,0.3), rgba(255,184,77,0.05));
    margin-top: 1.5rem;
    flex-shrink: 0;
  }
  .step p { margin-bottom: 0; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 3.5rem; }
  .rx-value { font-size: 3rem; }
  .price-amount { font-size: 3.5rem; }
  .hero { padding: 5rem 1.5rem 4rem; }
}