/* ============================================================
   Ravena Tarot — Landing Page Styles
   ============================================================ */

:root {
  --bg: hsl(270 15% 6%);
  --bg-card: hsl(270 20% 10%);
  --bg-alt: hsl(270 30% 8%);
  --fg: hsl(45 20% 93%);
  --fg-muted: hsl(270 8% 68%);
  --gold: hsl(45 80% 55%);
  --gold-light: hsl(45 70% 70%);
  --gold-dark: hsl(45 90% 40%);
  --mystic: hsl(280 60% 35%);
  --border: hsl(270 20% 18%);
  --radius: 0.5rem;
  --font-display: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Fade-in animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: hsla(270, 15%, 6%, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  text-shadow: 0 0 10px hsla(45, 80%, 55%, 0.5), 0 0 30px hsla(45, 80%, 55%, 0.2);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--fg-muted);
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--gold-light);
}

/* Badge */
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.3em 1em;
}

.badge-header {
  background: hsla(45, 80%, 55%, 0.12);
  color: var(--gold);
  border: 1px solid hsla(45, 80%, 55%, 0.3);
}

.badge-construction {
  background: hsla(280, 60%, 35%, 0.25);
  color: var(--gold-light);
  border: 1px solid hsla(280, 60%, 35%, 0.4);
  font-size: 0.85rem;
  padding: 0.5em 1.3em;
  margin-bottom: 1.5rem;
}

.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: hsl(270 30% 8%);
  padding: 0.35em 1.2em;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Starry background via CSS */
.stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 10% 20%, hsla(45,80%,80%,0.8) 50%, transparent 50%),
    radial-gradient(1px 1px at 25% 55%, hsla(45,80%,80%,0.6) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 40% 15%, hsla(45,80%,80%,0.7) 50%, transparent 50%),
    radial-gradient(1px 1px at 55% 70%, hsla(45,80%,80%,0.5) 50%, transparent 50%),
    radial-gradient(2px 2px at 65% 30%, hsla(45,80%,80%,0.9) 50%, transparent 50%),
    radial-gradient(1px 1px at 75% 80%, hsla(45,80%,80%,0.4) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 85% 45%, hsla(45,80%,80%,0.7) 50%, transparent 50%),
    radial-gradient(1px 1px at 15% 85%, hsla(45,80%,80%,0.5) 50%, transparent 50%),
    radial-gradient(2px 2px at 90% 10%, hsla(45,80%,80%,0.8) 50%, transparent 50%),
    radial-gradient(1px 1px at 50% 40%, hsla(45,80%,80%,0.6) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 30% 90%, hsla(45,80%,80%,0.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 55%, hsla(45,80%,80%,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 5% 50%, hsla(45,80%,80%,0.6) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 95% 65%, hsla(45,80%,80%,0.7) 50%, transparent 50%),
    radial-gradient(1px 1px at 45% 5%, hsla(45,80%,80%,0.5) 50%, transparent 50%),
    radial-gradient(2px 2px at 20% 40%, hsla(45,80%,80%,0.6) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 90%, hsla(45,80%,80%,0.4) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 80% 20%, hsla(45,80%,80%,0.8) 50%, transparent 50%);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.6; }
  50%  { opacity: 1; }
  100% { opacity: 0.7; }
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(
    180deg,
    hsla(270, 30%, 8%, 0.7) 0%,
    hsla(270, 15%, 6%, 0.85) 50%,
    hsla(280, 60%, 35%, 0.15) 100%
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  max-width: 720px;
  padding: 6rem 1.5rem 4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 15px hsla(45, 80%, 55%, 0.5), 0 0 40px hsla(45, 80%, 55%, 0.2);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  padding: 0.75em 2em;
  border: none;
  transition: transform 0.2s, box-shadow 0.3s, opacity 0.3s;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: hsl(270, 30%, 8%);
  box-shadow: 0 0 20px hsla(45, 80%, 55%, 0.25);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 30px hsla(45, 80%, 55%, 0.4), 0 0 60px hsla(45, 80%, 55%, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid hsla(45, 80%, 55%, 0.4);
}

.btn-outline:hover:not(:disabled) {
  background: hsla(45, 80%, 55%, 0.08);
  border-color: var(--gold);
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
  text-align: center;
  color: var(--gold);
  text-shadow: 0 0 10px hsla(45, 80%, 55%, 0.3);
  margin-bottom: 3rem;
}

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: hsla(45, 80%, 55%, 0.3);
  box-shadow: 0 0 20px hsla(45, 80%, 55%, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--fg-muted);
  font-size: 1.05rem;
}

/* ---- Steps ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  box-shadow: 0 0 15px hsla(45, 80%, 55%, 0.2);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--fg-muted);
  font-size: 1.05rem;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  border-color: hsla(45, 80%, 55%, 0.25);
}

.pricing-card-popular {
  border-color: hsla(45, 80%, 55%, 0.5);
  box-shadow: 0 0 30px hsla(45, 80%, 55%, 0.12), 0 0 60px hsla(45, 80%, 55%, 0.04);
  transform: scale(1.03);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 8px hsla(45, 80%, 55%, 0.3);
}

.pricing-currency {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-muted);
}

.pricing-period {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.4em 0;
  color: var(--fg-muted);
  font-size: 1.05rem;
  border-bottom: 1px solid hsla(270, 20%, 18%, 0.5);
}

.pricing-features li::before {
  content: '✦ ';
  color: var(--gold);
  font-size: 0.8em;
}

.pricing-card .btn {
  width: 100%;
}

/* ============================================================
   Under Construction
   ============================================================ */
.section-construction {
  padding: 5rem 0;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    hsla(280, 60%, 35%, 0.1) 50%,
    var(--bg) 100%
  );
}

.construction-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.construction-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.construction-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--gold);
  text-shadow: 0 0 10px hsla(45, 80%, 55%, 0.3);
  margin-bottom: 1rem;
}

.construction-desc {
  color: var(--fg-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.email-signup {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto 1rem;
}

.email-input {
  flex: 1;
  padding: 0.7em 1em;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.email-input:focus {
  border-color: var(--gold);
}

.email-input:disabled {
  opacity: 0.5;
}

.construction-note {
  color: var(--fg-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-tagline {
  color: var(--fg-muted);
  font-size: 1rem;
  margin-top: 0.25rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-copy {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: hsla(270, 15%, 6%, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    max-height: 300px;
    padding: 1rem 0;
    gap: 1rem;
  }

  .nav-link {
    font-size: 1.15rem;
  }

  .badge-header {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .email-signup {
    flex-direction: column;
  }

  .pricing-card-popular {
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 5rem 1rem 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }
}
