/* ============================================================
   Thai Astrology Platform — Landing Page
   Design system: PRD §9
   ============================================================ */

:root {
  --bg-deep:       #0A0614;
  --bg-violet:     #1A0F35;
  --bg-mid:        #0E0820;
  --bg-grad:       linear-gradient(160deg, #1A0F35 0%, #0E0820 45%, #0A0614 100%);

  --card-bg:       #F8F7FF;
  --card-border:   #D4CAFF;

  --teal:          #00D4C8;
  --teal-hover:    #007A73;
  --teal-glow:     rgba(0, 212, 200, 0.4);
  --teal-glow-hi:  rgba(0, 212, 200, 0.65);

  --gold:          #F0B429;
  --gold-hover:    #A07010;
  --gold-glow:     rgba(240, 180, 41, 0.2);

  --text-light:    #EEE8FF;
  --text-dark:     #1A0F35;
  --text-muted:    #8B7AA8;

  --err:           #FF5757;
  --ok:            #2ECC9A;

  --radius-card:   16px;
  --radius-pill:   999px;

  --shadow-card:   0 4px 32px rgba(10, 6, 20, 0.6), 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-teal:   0 0 0 1px var(--teal), 0 0 24px rgba(0, 212, 200, 0.2), var(--shadow-card);
  --shadow-gold:   0 0 12px var(--gold-glow), var(--shadow-card);

  --max-w:         1180px;
  --gutter:        clamp(20px, 4vw, 56px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sarabun', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-light);
  background: var(--bg-deep);
  background-image: var(--bg-grad);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }

/* ---------- typography ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--text-light); }
h1 { font-weight: 700; font-size: clamp(36px, 6vw, 64px); }
h2 { font-weight: 600; font-size: clamp(24px, 4vw, 32px); }
h3 { font-weight: 600; font-size: 22px; }
.eyebrow {
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.label-sm { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.text-teal { color: var(--teal); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }

/* ---------- layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}
section {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.bg-violet { background: var(--bg-violet); }
.bg-deep   { background: var(--bg-deep); }

#problem::before,
#features::before,
#how::before,
#council::before,
#pricing::before,
#faq::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(10, 6, 20, 0.72), rgba(10, 6, 20, 0.84)),
    url('/assets/backgrounds/section-aurora-soft.png');
  background-size: cover;
  background-position: center;
  opacity: 0.46;
}

#features::before,
#council::before,
#faq::before {
  opacity: 0.32;
  background-image:
    linear-gradient(180deg, rgba(10, 6, 20, 0.82), rgba(10, 6, 20, 0.9)),
    url('/assets/backgrounds/section-aurora-soft.png');
}

#council::before {
  opacity: 0.5;
  background-position: center top;
}

#pricing::before {
  opacity: 0.38;
  background-position: center bottom;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  background: rgba(10, 6, 20, 0.6);
  border-bottom: 1px solid rgba(212, 202, 255, 0.08);
}
.nav__brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-light);
  letter-spacing: 0.04em;
}
.nav__brand-mark {
  color: var(--teal);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-hover));
  color: var(--bg-deep);
  box-shadow: 0 0 16px var(--teal-glow);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px var(--teal-glow-hi);
}
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
  height: 44px;
}
.btn--secondary:hover {
  background: rgba(0, 212, 200, 0.08);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  color: var(--bg-deep);
  box-shadow: 0 0 16px var(--gold-glow);
}
.btn--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(240, 180, 41, 0.5);
}

.btn--block { width: 100%; }
.btn--lg { height: 56px; padding: 0 32px; font-size: 17px; }

/* ---------- forms ---------- */
.form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 560px;
}
.form--center { margin: 0 auto; }
.form__field {
  flex: 1 1 280px;
  position: relative;
}
.form__input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  color: var(--text-dark);
  border: 1px solid transparent;
  outline: none;
  font-size: 16px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.form__input::placeholder { color: var(--text-muted); }
.form__input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.25);
}
.form__input.is-error {
  border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(255, 87, 87, 0.18);
}
.form__error {
  color: var(--err);
  font-size: 13px;
  margin-top: 8px;
  padding-left: 18px;
  min-height: 18px;
}
.form__trust {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-muted);
  font-size: 13px;
}
.form__trust span::before {
  content: '✓';
  color: var(--teal);
  margin-right: 6px;
  font-weight: 700;
}
.form__success {
  background: rgba(46, 204, 154, 0.08);
  border: 1px solid var(--ok);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  color: var(--text-light);
  max-width: 560px;
}
.form__success strong { color: var(--ok); display: block; margin-bottom: 6px; }
.is-hidden { display: none !important; }

/* ---------- cards ---------- */
.card {
  background: var(--card-bg);
  color: var(--text-dark);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.card--glow {
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
  transform: scale(1.04);
  position: relative;
}
.card--gold {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 212, 200, 0.1);
  color: var(--teal);
  margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; stroke: var(--teal); }
.card__title { color: var(--text-dark); margin-bottom: 12px; font-weight: 700; }
.card__body { color: #4a3d6b; font-size: 16px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 55%, rgba(10, 6, 20, 0.2) 0%, rgba(10, 6, 20, 0.54) 52%, rgba(10, 6, 20, 0.78) 100%),
    linear-gradient(180deg, rgba(10, 6, 20, 0.12) 0%, rgba(26, 15, 53, 0.1) 42%, rgba(10, 6, 20, 0.62) 100%),
    url('/assets/backgrounds/hero-aurora.png');
  background-size: cover;
  background-position: center top;
  opacity: 0.9;
}
.hero__wheel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 90vw);
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
}
.hero__glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(0, 212, 200, 0.18) 0%, rgba(106, 60, 200, 0.22) 34%, transparent 66%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  filter: blur(40px);
}
.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero__eyebrow { margin-bottom: 22px; }
.hero__h1 { margin-bottom: 24px; }
.hero__h1 .accent { color: var(--teal); }
.hero__sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.hero__form { justify-content: center; margin: 0 auto; }
.hero__skip-link {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
}
.hero__skip-link a {
  color: var(--gold);
  border-bottom: 1px dashed rgba(240, 180, 41, 0.4);
  padding-bottom: 1px;
}
.hero__skip-link a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.hero__scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  z-index: 2;
}

/* ---------- problem section ---------- */
.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-heading h2 { margin-bottom: 16px; }
.section-heading p { color: var(--text-muted); font-size: 17px; }
.problem__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.problem__card-quote {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dark);
}
.problem__bridge {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-light);
  font-weight: 600;
}

/* ---------- features (S3) ---------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* ---------- how it works (S4) ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
.step {
  text-align: center;
  padding: 8px;
  position: relative;
  z-index: 2;
}
.step__num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(0, 212, 200, 0.4);
}
.step__title { margin-bottom: 12px; font-weight: 700; }
.step__body { color: var(--text-muted); font-size: 16px; }
.step__body .hi { color: var(--gold); font-weight: 600; }
.steps__connector {
  display: none;
}
@media (min-width: 768px) {
  .steps__connector {
    display: block;
    position: absolute;
    top: 32px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background-image: linear-gradient(to right, var(--teal) 50%, transparent 50%);
    background-size: 12px 2px;
    background-repeat: repeat-x;
    z-index: 1;
    opacity: 0.5;
  }
}

/* ---------- social proof (S5) ---------- */
.council {
  display: grid;
  gap: 24px;
  margin-bottom: 56px;
}
.council__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
}
.avatar__circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a1a55, #1a0f35);
  border: 2px solid #3d2b6e;
  box-shadow: 0 0 16px rgba(0, 212, 200, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.avatar:hover .avatar__circle {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 212, 200, 0.35);
  border-color: var(--teal);
}
.avatar__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.04em;
}
.avatar__trad {
  font-size: 11px;
  color: var(--teal);
  margin-top: 2px;
}
.counter-strip {
  text-align: center;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  background: rgba(26, 15, 53, 0.6);
  border: 1px solid rgba(0, 212, 200, 0.2);
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.counter-strip strong { color: var(--teal); font-weight: 700; }
.counter-strip .gold { color: var(--gold); font-weight: 700; }
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.quote-card {
  background: var(--card-bg);
  color: var(--text-dark);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 28px 28px 24px;
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  box-shadow: var(--shadow-card);
}
.quote-card__attr {
  margin-top: 14px;
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ---------- pricing (S6) ---------- */
.founder-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto 56px;
  background: var(--card-bg);
  color: var(--text-dark);
  border-radius: var(--radius-card);
  border: 1px solid var(--teal);
  padding: 36px 36px 32px;
  box-shadow: var(--shadow-teal);
}
.founder-card__badge {
  position: absolute;
  top: -14px; right: 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px var(--gold-glow);
}
.founder-card__eyebrow {
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--teal-hover);
  margin-bottom: 10px;
}
.founder-card__title {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.founder-card__price {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.founder-card__price b { color: var(--text-dark); font-size: 22px; font-weight: 700; }
.founder-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
}
.founder-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: #4a3d6b;
  line-height: 1.55;
}
.founder-card li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.founder-card__scarcity {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.founder-card__scarcity b { color: var(--gold); }

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto 40px;
}
.tiers--single {
  max-width: 360px;
  grid-template-columns: 1fr;
}
.tier {
  background: var(--card-bg);
  color: var(--text-dark);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.tier--featured {
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
}
.tier--gold { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.tier__name {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
}
.tier__price {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
}
.tier__price span { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.tier__features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; color: #4a3d6b; }
.tier__features li::before { content: '·'; margin-right: 8px; color: var(--teal); font-weight: 700; }

.urgency-line {
  text-align: center;
  font-style: italic;
  color: var(--gold);
  font-size: 17px;
  margin-bottom: 24px;
}
.pricing__cta { text-align: center; }

/* ---------- FAQ (S8) ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq__item {
  background: var(--card-bg);
  color: var(--text-dark);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s ease;
}
.faq__q:hover { background: rgba(212, 202, 255, 0.2); }
.faq__chev {
  flex-shrink: 0;
  width: 24px; height: 24px;
  color: var(--teal);
  transition: transform 0.25s ease;
}
.faq__item.is-open .faq__chev { transform: rotate(180deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: #4a3d6b;
  font-size: 16px;
  line-height: 1.7;
}
.faq__item.is-open .faq__a {
  max-height: 400px;
  padding: 0 24px 22px;
}

/* ---------- final CTA (S7) ---------- */
.final-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(10, 6, 20, 0.08) 0%, rgba(10, 6, 20, 0.5) 48%, rgba(10, 6, 20, 0.8) 100%),
    linear-gradient(180deg, rgba(10, 6, 20, 0.6), rgba(10, 6, 20, 0.58)),
    url('/assets/backgrounds/cta-starry-glow.png');
  background-size: cover;
  background-position: center;
  opacity: 0.86;
}
.final-cta__glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(0, 212, 200, 0.18) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}
.final-cta__inner { position: relative; z-index: 2; }
.final-cta h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  margin-bottom: 20px;
}
.final-cta p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.final-cta__form { justify-content: center; }
.final-cta__alt {
  margin-top: 28px;
  font-size: 15px;
  color: var(--text-muted);
}
.final-cta__alt a {
  color: var(--gold);
  border-bottom: 1px dashed rgba(240, 180, 41, 0.4);
  padding-bottom: 1px;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid rgba(212, 202, 255, 0.08);
  padding: 36px var(--gutter);
  background: var(--bg-deep);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer__brand { font-weight: 700; color: var(--text-light); }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a { color: var(--text-muted); }
.footer__links a:hover { color: var(--teal); }

/* ---------- responsive tweaks ---------- */
@media (max-width: 640px) {
  .hero { padding-top: 96px; min-height: auto; }
  .hero::before {
    background-position: 58% top;
    opacity: 0.78;
  }
  .hero__wheel { width: 320px; opacity: 0.04; }
  #problem::before,
  #features::before,
  #how::before,
  #council::before,
  #pricing::before,
  #faq::before {
    opacity: 0.28;
    background-position: center;
  }
  .final-cta::before {
    opacity: 0.72;
    background-position: center;
  }
  .form { flex-direction: column; }
  .form__field { flex-basis: auto; }
  .btn { width: 100%; }
  .nav__cta-mobile-hide { display: none; }
  .card--glow { transform: none; }
  .avatar { width: 84px; }
  .avatar__circle { width: 60px; height: 60px; font-size: 18px; }
}

/* ---------- utility ---------- */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}
