/* ============================================================
   Guntavnook / The Wealth Lab — brand design system  (v2)
   Dark premium fintech. Single typeface: Baloo 2 (Latin+Devanagari).
   ============================================================ */

:root {
  --bg-0: #0a0e14;
  --bg-1: #0d1117;
  --bg-2: #151b24;
  --bg-card: #12181f;
  --bg-elev: #1a212b;

  --gold: #c4a050;
  --gold-bright: #e8c96a;
  --gold-grad: linear-gradient(135deg, #f0d47e 0%, #c4a050 55%, #a8863c 100%);
  --mint: #6ee7b7;
  --mint-dim: #34d399;
  --cobalt: #3b82f6;
  --cobalt-bright: #60a5fa;
  --danger: #f87171;

  --text: #eef3f8;
  --text-muted: #9aa7b4;
  --text-dim: #6b7787;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --gold-ring: rgba(196, 160, 80, 0.4);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 0 1px var(--gold-ring), 0 24px 60px rgba(196, 160, 80, 0.14);

  --maxw: 1140px;
  --font: 'Baloo 2', system-ui, sans-serif;
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Baloo 2', system-ui, sans-serif;
  --sticky-h: 46px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1000px 560px at 12% -8%, rgba(196, 160, 80, 0.12), transparent 60%),
    radial-gradient(760px 480px at 100% 4%, rgba(59, 130, 246, 0.08), transparent 55%);
}

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.5px;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.7rem; }

.text-gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-mint { color: var(--mint); }
.muted { color: var(--text-muted); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 700; font-size: 1.05rem;
  padding: 14px 30px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, filter 0.2s ease;
  text-align: center; position: relative; overflow: hidden;
}
.btn-sm { padding: 9px 20px; font-size: 0.95rem; }
.btn-lg { padding: 18px 42px; font-size: 1.2rem; }
.btn-block { width: 100%; }

.btn-gold { background: var(--gold-grad); color: #1a1206; box-shadow: 0 10px 30px rgba(196, 160, 80, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 16px 40px rgba(196, 160, 80, 0.45); }
/* shimmer sweep */
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); animation: shimmer 3.6s ease-in-out infinite;
}
@keyframes shimmer { 0%, 60% { left: -60%; } 100% { left: 130%; } }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-1px); }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--gold-ring); color: var(--gold-bright);
  background: rgba(196, 160, 80, 0.08); letter-spacing: 0.4px;
}
.pill-free { color: var(--mint); border-color: rgba(110, 231, 183, 0.4); background: rgba(110, 231, 183, 0.08); }
.pill-paid { color: var(--cobalt-bright); border-color: rgba(96, 165, 250, 0.4); background: rgba(96, 165, 250, 0.08); }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(248, 113, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); } }

/* ---------- cards ---------- */
.card { background: linear-gradient(180deg, var(--bg-card), var(--bg-1)); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }

/* ---------- YouTube frame ---------- */
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gold-ring); box-shadow: var(--shadow); background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-glow { position: relative; }
.video-glow::before {
  content: ""; position: absolute; inset: -2px; border-radius: calc(var(--radius) + 2px);
  background: var(--gold-grad); filter: blur(22px); opacity: 0.28; z-index: -1;
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.22; } 50% { opacity: 0.4; } }

/* ---------- header / footer ---------- */
.site-header { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand-logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.3px; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--gold); color: var(--gold-bright); font-weight: 800; box-shadow: 0 0 18px rgba(196, 160, 80, 0.3); }
.brand-mark-img { width: 40px; height: 40px; object-fit: contain; display: block; }
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); margin-top: 70px; padding: 40px 0; color: var(--text-muted); font-size: 0.9rem; text-align: center; }

/* Guntavnook Katta main-site footer (mirrored) */
.gk-footer { position: relative; z-index: 1; background: var(--bg-2); border-top: 1px solid var(--border); padding: 44px 22px 0; margin-top: 72px; }
.gk-footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 26px; }
.gk-foot-brand { font-weight: 800; font-size: 1.2rem; }
.gk-footer-col p { color: var(--text-muted); font-size: 0.9rem; margin: 8px 0; font-weight: 500; }
.gk-footer-col h4 { color: var(--text); font-size: 0.92rem; margin: 0 0 11px; font-weight: 700; }
.gk-footer-col a { display: block; color: var(--text-muted); font-size: 0.92rem; padding: 4px 0; }
.gk-footer-col a:hover { color: var(--gold-bright); }
.gk-footer-bottom { max-width: var(--maxw); margin: 30px auto 0; border-top: 1px solid var(--border); padding: 16px 0; text-align: center; font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 760px) { .gk-footer-inner { grid-template-columns: 1fr 1fr; } }

/* ---------- sections ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem; color: var(--gold-bright); margin-bottom: 14px; padding: 5px 14px; border-radius: 999px; background: rgba(196,160,80,0.1); border: 1px solid var(--gold-ring); }
.section { padding: 70px 0; }
.section-center { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-center h2 { font-size: clamp(2rem, 4.2vw, 3rem); position: relative; display: inline-block; padding-bottom: 18px; }
.section-center h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 66px; height: 4px; border-radius: 4px; background: var(--gold-grad); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }

/* ============================================================
   STICKY COUNTDOWN BAR  (bottom, always visible)
   ============================================================ */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: linear-gradient(90deg, rgba(20,14,4,0.97), rgba(13,17,23,0.97));
  border-top: 1px solid var(--gold-ring);
  backdrop-filter: blur(10px);
  box-shadow: 0 -12px 34px rgba(0,0,0,0.4);
  transform: translateY(100%); animation: dropIn 0.5s 0.4s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes dropIn { to { transform: none; } }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: var(--sticky-h); padding: 8px 0; }
.st-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-icon { font-size: 1.1rem; }
.st-label { color: var(--text-muted); font-weight: 600; font-size: 0.92rem; }
/* keep page content clear of the fixed bottom bar (only pages that have it) */
body:has(.sticky-cta) { padding-bottom: 68px; }
.st-clock {
  font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: 0.5px;
  font-size: 1.15rem; color: var(--gold-bright);
  background: rgba(196,160,80,0.12); border: 1px solid var(--gold-ring);
  padding: 3px 12px; border-radius: 8px; min-width: 84px; text-align: center;
}
.st-clock.flash { animation: flashGold 0.6s ease; }
@keyframes flashGold { 50% { background: rgba(232,201,106,0.35); color: #fff; } }

/* ============================================================
   REGISTRATION MODAL (popup)
   ============================================================ */
.reg-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4, 7, 12, 0.72); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.reg-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.reg-modal {
  position: relative; width: 100%; max-width: 440px;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-1));
  border: 1px solid var(--gold-ring); border-radius: var(--radius-lg);
  padding: 30px 28px 26px; box-shadow: var(--shadow-gold);
  transform: translateY(24px) scale(0.97); opacity: 0;
  transition: transform 0.32s cubic-bezier(.2,.9,.3,1.2), opacity 0.28s ease;
  max-height: 92vh; overflow-y: auto;
}
.reg-overlay.open .reg-modal { transform: none; opacity: 1; }
.reg-modal h3 { text-align: center; font-size: 1.9rem; margin: 0 0 4px; }
.reg-modal .reg-sub { text-align: center; color: var(--text-muted); margin: 0 0 8px; font-weight: 600; }
.reg-modal .reg-session { text-align: center; font-size: 0.95rem; font-weight: 600; color: var(--text); margin: 0 0 6px; }
.reg-modal .reg-session b { color: var(--gold-bright); font-weight: 800; }
.reg-modal .reg-seats { text-align: center; color: var(--mint); font-size: 0.86rem; font-weight: 600; margin-bottom: 18px; }
.reg-note { text-align: center; font-size: 0.78rem; color: var(--text-dim); margin: 14px 0 0; }
.reg-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(255,255,255,0.04);
  color: var(--text-muted); font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: all 0.2s ease;
}
.reg-close:hover { color: #fff; border-color: var(--gold); transform: rotate(90deg); }
body.modal-open { overflow: hidden; }

/* auto-mode detection: keep blocks laid out (so WebinarKit populates) but hidden */
.reg-mode-block[hidden] { display: none !important; }
.reg-modal.detecting .reg-mode-block { position: absolute; left: -9999px; top: 0; visibility: hidden; }
.reg-loading { display: none; align-items: center; justify-content: center; gap: 12px; padding: 40px 0; color: var(--text-muted); font-weight: 600; }
.reg-modal.detecting .reg-loading { display: flex; }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,0.18); border-top-color: var(--gold-bright); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* interest form fields */
.interest-form { display: grid; gap: 12px; margin-top: 4px; }
.reg-field {
  width: 100%; background: #0b1017; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 14px 16px; font-family: var(--font); font-weight: 600; font-size: 1.02rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.reg-field::placeholder { color: var(--text-dim); }
.reg-field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,160,80,0.2); }
.reg-error { color: var(--danger); font-size: 0.86rem; font-weight: 600; margin: 2px 0 0; text-align: center; }
.reg-success { text-align: center; padding: 10px 0 4px; }
.reg-check { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 2rem; background: rgba(110,231,183,0.14); border: 2px solid var(--mint); color: var(--mint); }
.reg-success h3 { margin-bottom: 6px; }
.reg-success .btn { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-gold::after, .video-glow::before, .sticky-cta { animation: none; }
  .sticky-cta { transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .st-label { display: none; }
  .sticky-inner { gap: 10px; }
  .brand-logo span:last-child { display: none; }
}
