/* ═══════════════════════════════════════════
   RESONIKA — style.css
   ═══════════════════════════════════════════ */

/* ── RESET & TOKENS ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0c0b09;
  --bg-warm: #110f0b;
  --cream: #f0e6d3;
  --cream-soft: #e8dcc8;
  --cream-dim: rgba(240, 230, 211, 0.5);
  --olive: #8a9a6c;
  --olive-glow: #a3b582;
  --gold: #c4a265;
  --gold-dim: rgba(196, 162, 101, 0.15);
  --text: #f0e6d3;
  --text-dim: rgba(240, 230, 211, 0.55);
  --text-mid: rgba(240, 230, 211, 0.75);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── CANVAS BG ── */
#wave-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
}

/* ── GLOBAL ── */
.container {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

a { color: var(--gold); text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }

/* ── TOPBAR ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 28px;
  display: flex;
  justify-content: center;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.topbar.scrolled {
  background: rgba(12, 11, 9, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.topbar-logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--cream-soft);
  text-transform: lowercase;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 28px 80px;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 300;
  line-height: 1.12;
  color: var(--cream);
  max-width: 720px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s 0.6s forwards;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 19px;
  color: var(--text-mid);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}
.hero-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cream);
  padding: 18px 48px;
  border: none;
  cursor: pointer;
  transition: all 0.4s;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
  text-decoration: none;
}
.hero-cta:hover {
  background: var(--gold);
  color: var(--bg);
  opacity: 1;
  transform: translateY(-1px);
}
.hero-meta {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeUp 1s 1.4s forwards;
}

/* ── DIVIDERS ── */
.divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  margin: 0 auto;
  opacity: 0.4;
}
.divider-short {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 60px auto;
  opacity: 0.3;
}

/* ── SECTION BASE ── */
.section {
  padding: 80px 0;
}
.section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--olive);
  text-align: center;
  margin-bottom: 40px;
}

/* ── PULSE SECTION ── */
.pulse-section {
  padding: 60px 0 80px;
  text-align: center;
}
.pulse-quotes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
  margin: 0 auto;
}
.pulse-quote {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 300;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.6;
  padding: 16px 0;
  border-bottom: 1px solid rgba(240,230,211,0.06);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.8s;
}
.pulse-quote.visible {
  opacity: 1;
  transform: translateY(0);
}
.pulse-quote:last-child { border: none; }
.pulse-attr {
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 4px;
  display: block;
}

/* ── HOW IT WORKS ── */
.how-section {
  padding: 80px 0;
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 480px;
  margin: 0 auto;
}
.how-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.7s;
}
.how-step.visible {
  opacity: 1;
  transform: translateY(0);
}
.how-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
  width: 36px;
  line-height: 1;
  padding-top: 2px;
}
.how-text h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 8px;
}
.how-text p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── FORM SECTION ── */
.form-section {
  padding: 100px 0 60px;
  text-align: center;
}
.form-headline {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 12px;
}
.form-sub {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 48px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.form-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 32px 32px;
  background: rgba(240, 230, 211, 0.03);
  border: 1px solid rgba(240, 230, 211, 0.08);
  border-radius: 2px;
}
.form-field {
  margin-bottom: 20px;
  text-align: left;
}
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(240, 230, 211, 0.05);
  border: 1px solid rgba(240, 230, 211, 0.12);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  border-radius: 1px;
  outline: none;
  transition: border-color 0.3s;
}
.form-input:focus {
  border-color: var(--gold);
}
.form-input::placeholder {
  color: rgba(240, 230, 211, 0.25);
}

/* Sector selector */
.sector-options {
  display: flex;
  gap: 8px;
}
.sector-btn {
  flex: 1;
  padding: 14px 10px;
  background: rgba(240, 230, 211, 0.04);
  border: 1px solid rgba(240, 230, 211, 0.1);
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 1px;
  text-align: center;
  line-height: 1.3;
}
.sector-btn:hover {
  border-color: rgba(240, 230, 211, 0.25);
  color: var(--cream);
}
.sector-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}
.form-submit {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  background: var(--cream);
  color: var(--bg);
  border: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s;
  border-radius: 1px;
}
.form-submit:hover:not(:disabled) {
  background: var(--gold);
}
.form-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.form-legal {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}
.form-legal a { color: var(--text-dim); text-decoration: underline; }

/* ── READING OVERLAY ── */
.reading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  opacity: 0;
  transition: opacity 0.8s;
  overflow-y: auto;
}
.reading-overlay.active {
  display: flex;
  opacity: 1;
}

/* Loading state */
.reading-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.reading-wave-anim {
  width: 200px;
  height: 60px;
}
.reading-wave-anim svg {
  width: 100%;
  height: 100%;
}
.loading-text {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.loading-dots::after {
  content: '';
  animation: dots 1.5s infinite;
}

/* Result state */
.reading-result {
  display: none;
  max-width: 580px;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}
.reading-result.show {
  opacity: 1;
  transform: translateY(0);
}
.reading-result-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 28px;
}
.reading-result-title {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 32px;
  line-height: 1.3;
}
.reading-result-body {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--cream-soft);
  text-align: left;
  margin-bottom: 48px;
}
.reading-result-body p {
  margin-bottom: 20px;
}
.reading-result-body p:last-child { margin-bottom: 0; }
.reading-field-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 40px;
  padding: 12px 0;
  border-top: 1px solid rgba(240,230,211,0.08);
  border-bottom: 1px solid rgba(240,230,211,0.08);
}

/* Upsell */
.reading-upsell {
  padding: 36px 28px;
  background: rgba(240, 230, 211, 0.03);
  border: 1px solid rgba(240, 230, 211, 0.08);
  border-radius: 2px;
  margin-bottom: 32px;
}
.reading-upsell-text {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--cream-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}
.reading-upsell-text strong {
  color: var(--cream);
  font-weight: 400;
}
.upsell-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}
.upsell-feat {
  font-size: 12px;
  color: var(--text-dim);
  padding: 6px 14px;
  border: 1px solid rgba(240,230,211,0.1);
  border-radius: 1px;
}
.upsell-cta {
  display: inline-block;
  padding: 16px 48px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s;
  text-decoration: none;
}
.upsell-cta:hover {
  opacity: 0.85;
}
.upsell-price {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dim);
}
.reading-close {
  margin-top: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.3s;
}
.reading-close:hover { color: var(--cream); }

/* ── FAQ ── */
.faq-section {
  padding: 80px 0;
  max-width: 520px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(240,230,211,0.08);
  padding: 24px 0;
}
.faq-q {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-q::after {
  content: '+';
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  color: var(--text-dim);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 16px;
}
.faq-a p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}
.faq-a a { color: var(--text-dim); text-decoration: underline; }

/* ── FOOTER ── */
.footer {
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid rgba(240,230,211,0.06);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--cream-dim);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
}
.footer-disclaimer {
  font-size: 11px;
  color: rgba(240,230,211,0.3);
  max-width: 500px;
  margin: 0 auto 12px;
  line-height: 1.6;
}
.footer-copy {
  font-size: 11px;
  color: rgba(240,230,211,0.2);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero { padding: 100px 24px 60px; }
  .container { padding: 0 20px; }
  .form-card { padding: 28px 20px 24px; }
  .sector-options { flex-direction: column; gap: 6px; }
  .sector-btn { padding: 14px 12px; }
  .upsell-features { flex-direction: column; align-items: center; }
  .reading-overlay { padding: 30px 20px; }
  .reading-upsell { padding: 28px 20px; }
}
