/* ============================================================
   TOPISTIM — style.css
   Theme: Light, warm gold/amber — premium community feel
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #d97706;
  --gold-light: #fbbf24;
  --gold-dark: #b45309;
  --gold-bg: #fffbeb;
  --gold-border: #fde68a;
  --text-dark: #1c1917;
  --text-mid: #44403c;
  --text-light: #78716c;
  --white: #ffffff;
  --bg: #fafaf9;
  --surface: #ffffff;
  --border: #e7e5e4;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text-dark); line-height: 1.6; }

/* ---- UTILITIES ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.gradient-text { background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 50%, #d97706 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 50px; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; box-shadow: 0 4px 16px rgba(217,119,6,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(217,119,6,0.45); }
.btn-ghost { background: transparent; color: var(--gold-dark); border: 2px solid var(--gold-border); }
.btn-ghost:hover { background: var(--gold-bg); border-color: var(--gold); }
.btn-nav { background: var(--gold-bg); color: var(--gold-dark); border: 1.5px solid var(--gold-border); padding: 10px 22px; font-size: 14px; }
.btn-nav:hover { background: var(--gold); color: #fff; }
.btn-full { width: 100%; }
.btn-large { padding: 18px 44px; font-size: 17px; }

.section-tag { display: inline-block; background: var(--gold-bg); color: var(--gold-dark); border: 1px solid var(--gold-border); border-radius: 50px; padding: 4px 14px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.section-header p { color: var(--text-light); font-size: 17px; max-width: 520px; margin: 0 auto; }

.avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; border: 2.5px solid #fff; margin-left: -8px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; margin-left: -6px; }

/* ---- NAV ---- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 14px 24px; }
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { font-size: 22px; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--text-dark); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--text-mid); font-size: 14px; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--gold); }

/* ---- HERO ---- */
.hero { background: linear-gradient(160deg, #fffbeb 0%, #fff7ed 50%, #fefce8 100%); padding: 100px 24px 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 700px; height: 700px; background: radial-gradient(circle, rgba(251,191,36,0.15) 0%, transparent 70%); pointer-events: none; }
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge { display: inline-block; background: linear-gradient(135deg, #fef3c7, #fde68a); color: var(--gold-dark); border: 1px solid var(--gold-border); border-radius: 50px; padding: 6px 18px; font-size: 13px; font-weight: 600; margin-bottom: 28px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.hero-title { font-size: clamp(38px, 7vw, 68px); font-weight: 900; line-height: 1.1; color: var(--text-dark); margin-bottom: 22px; }
.hero-sub { font-size: 18px; color: var(--text-mid); max-width: 580px; margin: 0 auto 36px; line-height: 1.65; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.hero-social-proof { display: flex; align-items: center; justify-content: center; gap: 14px; }
.proof-avatars { display: flex; align-items: center; }
.proof-avatars .avatar:first-child { margin-left: 0; }
.proof-text { font-size: 14px; color: var(--text-mid); }
.proof-text strong { color: var(--text-dark); }

/* ---- PAIN ---- */
.pain-section { background: #fff; padding: 60px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto 32px; }
.pain-card { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; transition: transform var(--transition); }
.pain-card:hover { transform: translateY(-3px); }
.pain-icon { font-size: 26px; }
.pain-card p { font-size: 15px; color: #7f1d1d; line-height: 1.55; }
.pain-bridge { text-align: center; font-size: 20px; font-weight: 700; color: var(--gold-dark); }

/* ---- FEATURES ---- */
.features { padding: 90px 24px; background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: transform var(--transition), box-shadow var(--transition); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card.featured { border-color: var(--gold-border); background: linear-gradient(135deg, #fffbeb, #fff); box-shadow: 0 4px 20px rgba(217,119,6,0.12); }
.feature-icon-wrap { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.feature-list li { font-size: 13px; color: var(--text-mid); font-weight: 500; }

/* ---- EVENTS ---- */
.events-section { background: #fff; padding: 90px 24px; border-top: 1px solid var(--border); }
.events-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1000px; margin: 0 auto; }
.events-content h2 { font-size: clamp(22px, 3.5vw, 34px); font-weight: 800; margin: 12px 0 16px; line-height: 1.2; }
.events-content p { color: var(--text-light); font-size: 15px; margin-bottom: 24px; line-height: 1.65; }
.events-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.events-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-mid); font-weight: 500; }
.ev-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.event-card-preview { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.ecp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ecp-live { font-size: 12px; font-weight: 700; color: #ef4444; background: #fef2f2; border: 1px solid #fecaca; border-radius: 50px; padding: 3px 10px; }
.ecp-date { font-size: 12px; color: var(--text-light); }
.ecp-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.ecp-desc { font-size: 13px; color: var(--text-light); margin-bottom: 18px; line-height: 1.55; }
.ecp-attendees { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ecp-count { font-size: 12px; color: var(--text-mid); font-weight: 500; }
.ecp-btn-locked { text-align: center; background: var(--border); color: var(--text-light); border-radius: 50px; padding: 11px; font-size: 14px; font-weight: 600; cursor: not-allowed; }

/* ---- FEAR & GREED ---- */
.fg-section { background: var(--bg); padding: 90px 24px; }
.fg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 900px; margin: 0 auto; }
.fg-meter-wrap { text-align: center; }
#fgCanvas { display: block; margin: 0 auto; }
.fg-reading { margin-top: -10px; text-align: center; }
.fg-value { font-size: 52px; font-weight: 900; color: var(--gold-dark); display: block; }
.fg-label { font-size: 16px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }
.fg-caption { font-size: 12px; color: var(--text-light); margin-top: 10px; }
.fg-stat-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.fg-stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 12px; text-align: center; }
.fg-stat-label { display: block; font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.fg-stat-value { display: block; font-size: 16px; font-weight: 700; color: var(--text-dark); }
.fg-stat-value.blurred { filter: blur(5px); color: var(--text-light); user-select: none; }
.fg-cta-box { background: var(--gold-bg); border: 1px solid var(--gold-border); border-radius: var(--radius); padding: 22px; }
.fg-cta-box p { font-size: 14px; color: var(--gold-dark); margin-bottom: 16px; line-height: 1.5; }

/* ---- TESTIMONIALS ---- */
.testimonials { background: #fff; padding: 90px 24px; border-top: 1px solid var(--border); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testi-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform var(--transition); }
.testi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.testi-stars { color: #f59e0b; font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.testi-card p { font-size: 15px; color: var(--text-mid); line-height: 1.65; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-author .avatar { margin-left: 0; }
.testi-author div { display: flex; flex-direction: column; }
.testi-author strong { font-size: 14px; font-weight: 700; }
.testi-author span { font-size: 12px; color: var(--text-light); }

/* ---- PRICING ---- */
.pricing { background: var(--bg); padding: 90px 24px; }
.pricing-card-wrap { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; max-width: 800px; margin: 0 auto; }
.pricing-two-plans { grid-template-columns: 1fr 1fr; max-width: 960px; }
.pricing-card { background: #fff; border: 2px solid var(--gold-border); border-radius: var(--radius); padding: 40px; box-shadow: 0 8px 40px rgba(217,119,6,0.12); position: relative; }
.pricing-card-featured { border-color: var(--gold); box-shadow: 0 16px 56px rgba(217,119,6,0.25); transform: translateY(-6px); background: linear-gradient(160deg, #fffbeb 0%, #fff 100%); }
.pricing-badge { display: inline-block; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; border-radius: 50px; padding: 4px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.pricing-badge-hot { background: linear-gradient(135deg, #ef4444, #b91c1c); animation: pulse-badge 2s ease-in-out infinite; }
@keyframes pulse-badge { 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,0.4)} 50%{box-shadow:0 0 0 6px rgba(239,68,68,0)} }
.pricing-name { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 14px; }
.price-amount { font-size: 56px; font-weight: 900; color: var(--text-dark); line-height: 1; }
.price-period { font-size: 18px; color: var(--text-light); }
.pricing-desc { font-size: 14px; color: var(--text-light); margin-bottom: 26px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-mid); }
.pf-icon { color: var(--gold); font-weight: 700; font-size: 16px; flex-shrink: 0; }
.pricing-note { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 12px; }

/* ---- FAQ ---- */
.faq { background: #fff; padding: 80px 24px; border-top: 1px solid var(--border); }
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { padding: 18px 22px; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text-dark); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--gold); font-weight: 300; transition: transform var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--gold-border); }
.faq-answer { padding: 0 22px 18px; }
.faq-answer p { font-size: 14px; color: var(--text-light); line-height: 1.65; }

/* ---- FINAL CTA ---- */
.final-cta { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); padding: 100px 24px; text-align: center; border-top: 1px solid var(--gold-border); }
.final-cta h2 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.final-cta p { font-size: 17px; color: var(--text-mid); margin-bottom: 36px; }
.final-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 0; }
.final-note { font-size: 13px; color: var(--text-light); margin-top: 16px; }

/* ---- FOOTER ---- */
.footer { background: #1c1917; color: #d4c5a9; padding: 48px 24px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand .logo-text { color: #fff; }
.footer-disclaimer { font-size: 12px; color: #a8a29e; max-width: 620px; line-height: 1.6; }
.footer-disclaimer strong { color: #d4c5a9; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #a8a29e; text-decoration: none; font-size: 13px; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 12px; color: #78716c; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .events-inner, .fg-grid, .pricing-card-wrap, .pricing-two-plans { grid-template-columns: 1fr; gap: 36px; }
  .pricing-card-featured { transform: none; }
  .hero { padding: 70px 20px 60px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .fg-stat-row { grid-template-columns: 1fr 1fr; }
  .final-cta-btns { flex-direction: column; align-items: center; }
}
