/* ============ DESIGN TOKENS ============ */
:root {
  --bg: #0b1020;
  --bg-soft: #11182e;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --green: #16a34a;
  --green-soft: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.08);
  --shadow-lg: 0 24px 60px rgba(2, 8, 23, 0.18);
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .brand-text {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 820px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 12px 26px rgba(37,99,235,.38); }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { box-shadow: var(--shadow); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #4f46e5);
  color: #fff; font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 16px;
}
.brand-text { font-size: 20px; }
.brand-accent { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--brand); }
.nav-links a.btn { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ============ HERO ============ */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(37,99,235,.18), transparent 60%),
              linear-gradient(180deg, #f8fafc, #ffffff);
  padding: 72px 0 60px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: #eef2ff; color: var(--brand-dark);
  font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-soft); box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.hero-sub { font-size: 18px; color: var(--ink-soft); margin: 18px 0 28px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Plus Jakarta Sans'; font-size: 26px; color: var(--ink); }
.hero-stats span { font-size: 13px; color: var(--muted); }

.hero-art { display: grid; place-items: center; }
.chart-card {
  width: 100%; max-width: 400px; background: #0b1020; color: #e2e8f0;
  border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg);
}
.chart-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #94a3b8; margin-bottom: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green-soft); box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.chart-svg { width: 100%; height: auto; }
.chart-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: #94a3b8; }
.chart-foot .up { color: var(--green-soft); font-weight: 700; }

/* ============ TRUST BAR ============ */
.trustbar { background: var(--bg); color: #cbd5e1; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; padding: 16px 24px; font-size: 14px; }
.trust-item { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.trust-item .ic { width: 18px; height: 18px; fill: none; stroke: var(--green-soft); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ============ SECTIONS ============ */
.section { padding: 84px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 10px 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ============ COURSES ============ */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1140px; margin: 0 auto; align-items: stretch; }
.course-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-card.popular { border-color: var(--brand); box-shadow: 0 18px 44px rgba(37,99,235,.18); }
.ribbon {
  position: absolute; top: 18px; right: -1px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px 0 0 999px;
}
.course-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: #eef2ff; color: var(--brand);
}
.course-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.course-icon.icon-gold { background: #fef3c7; color: #d97706; }
.course-card h3 { font-size: 23px; font-weight: 800; margin-bottom: 10px; }
.course-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }
.course-points { list-style: none; margin-bottom: 24px; display: grid; gap: 10px; }
.course-points li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink); }
.course-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: #dcfce7; color: var(--green); font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
}
/* TM Insides premium card */
.course-card.premium { border-color: #f59e0b; box-shadow: 0 18px 44px rgba(245,158,11,.16); }
.ribbon-gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.stat-badge { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.stat-badge strong { font-family: 'Plus Jakarta Sans'; font-weight: 800; }
.stat-badge.badge-blue { background: #e0edff; color: #1d4ed8; }
.stat-badge.badge-green { background: #dcfce7; color: #15803d; }
.course-points.compact { gap: 8px; }
.course-points.compact li { font-size: 14px; }
.disclaimer-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 22px; }

.course-price { margin: auto 0 22px; }
.course-price .amount { font-family: 'Plus Jakarta Sans'; font-size: 36px; font-weight: 800; color: var(--ink); }
.course-price .price-note { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ============ STEPS ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: #eef2ff; color: var(--brand); font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 20px;
  margin-bottom: 16px;
}
.step h4 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ============ FEATURES ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.feature-ic {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: #eef2ff; color: var(--brand);
}
.feature-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h4 { font-size: 18px; margin: 14px 0 6px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* ============ FAQ ============ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); font-size: 15px; }

/* ============ DISCLAIMER ============ */
.disclaimer-section { padding-top: 40px; padding-bottom: 40px; }
.disclaimer-card {
  background: #fffbeb; border: 1px solid #fde68a; border-left: 5px solid #f59e0b;
  border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow);
}
.disclaimer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.disclaimer-head .ic { width: 26px; height: 26px; fill: none; stroke: #d97706; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.disclaimer-head h3 { font-size: 19px; color: #92400e; }
.disclaimer-card p { font-size: 14.5px; color: #6b4f1d; margin-bottom: 12px; }
.disclaimer-card p:last-child { margin-bottom: 0; }
.disclaimer-card strong { color: #7c3a0a; }

/* ============ CTA BAND ============ */
.cta-band { background: linear-gradient(135deg, var(--brand), #4f46e5); color: #fff; }
.cta-inner { text-align: center; padding: 70px 24px; }
.cta-inner h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.cta-inner p { font-size: 18px; opacity: .92; margin: 12px 0 26px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--bg); color: #cbd5e1; padding: 60px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-brand .brand-text { color: #fff; font-size: 20px; }
.footer-brand p { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 240px; }
.footer-col h5 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; color: #cbd5e1; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-col .muted { font-size: 12px; color: var(--muted); margin-top: 6px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; font-size: 13px; color: var(--muted);
}
.muted { color: var(--muted); }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2, 8, 23, .6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 20px; width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; z-index: 2;
}
.modal-close:hover { color: var(--ink); }
.modal-head { background: var(--surface-alt); padding: 26px 28px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 20px; }
.modal-course { font-weight: 700; color: var(--brand); margin-top: 6px; }
.modal-price { font-family: 'Plus Jakarta Sans'; font-size: 30px; font-weight: 800; margin-top: 2px; }
.modal-body { padding: 26px 28px; }
.modal-body.hidden { display: none; }
.field-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.field-input {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 16px; font-family: inherit; transition: border .2s;
}
.field-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.field-hint { font-size: 13px; color: var(--muted); margin: 10px 0 18px; }
.field-error { display: none; color: #dc2626; font-size: 13px; margin: -8px 0 14px; font-weight: 600; }
.field-error.show { display: block; }

.confirm-email {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
  padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px;
}
.confirm-email strong { word-break: break-all; }
.link-btn { background: none; border: none; color: var(--brand); cursor: pointer; font-size: 13px; font-weight: 700; margin-left: 6px; text-decoration: underline; }
.pay-note { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.razorpay-slot { display: none; margin-bottom: 8px; min-height: 50px; }
.razorpay-slot.active { display: block; }
.rzp-placeholder {
  border: 2px dashed var(--brand); border-radius: 12px; padding: 18px; text-align: center;
  font-size: 13px; color: var(--ink-soft); background: #eff6ff; line-height: 1.5;
}
.rzp-placeholder code { background: #dbeafe; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.secure-line { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.hidden { display: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .course-grid { grid-template-columns: 1fr; max-width: 480px; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links a.btn { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
