:root {
  --bg: #ffffff;
  --bg-alt: #fff4e9;
  --card: #ffffff;
  --border: #f0e4d6;
  --text: #171310;
  --text-dim: #6b6459;
  --orange: #f9740c;
  --orange-dark: #e4650a;
  --green: #16a34a;
  --red: #dc2626;
  --green-soft: #eafaf0;
  --orange-soft: #fff1e2;
  --red-soft: #fdecec;
  --radius: 16px;
  --max-w: 1120px;
  --shadow: 0 20px 40px -24px rgba(23, 19, 16, 0.18);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--green);
}
.brand-bear { color: var(--red); }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: inline-flex; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 10px 24px -8px rgba(249, 116, 12, 0.55);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline {
  border-color: var(--text);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-full { width: 100%; margin-top: 20px; }

/* HERO */
.hero {
  padding: 80px 0 56px;
  background:
    radial-gradient(650px circle at 12% 15%, var(--green-soft), transparent 60%),
    radial-gradient(650px circle at 88% 10%, var(--red-soft), transparent 60%),
    var(--bg-alt);
}
.hero-inner { text-align: center; max-width: 780px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px;
  font-weight: 800;
  color: var(--orange-dark);
  background: var(--orange-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow.center { text-align: center; }
h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
  color: var(--text);
}
.accent-green { color: var(--green); }
.hero-sub {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-stats div {
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 28px;
  box-shadow: var(--shadow);
}
.hero-stats strong { display: block; font-size: 18px; color: var(--text); }
.hero-stats span { font-size: 13px; color: var(--text-dim); }

/* TICKER */
.ticker {
  overflow: hidden;
  background: var(--text);
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: scroll 22s linear infinite;
  width: max-content;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #ffffff;
}
.ticker-track span:nth-child(odd) { color: var(--orange); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SECTIONS */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 800;
  color: var(--text);
}
.section-title.center { text-align: center; }
.section-sub {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 620px;
}
.section-sub.center { margin: 0 auto 56px; text-align: center; }

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow);
}
.card-featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--orange), 0 24px 50px -20px rgba(249, 116, 12, 0.4);
}
.badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--orange);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.card h3 { font-size: 20px; margin: 0 0 10px; color: var(--text); }
.card-price { font-size: 24px; font-weight: 800; color: var(--orange-dark); margin: 0 0 12px; }
.card-price span { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.card-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }
button.btn { font-family: inherit; }
.courses-note code {
  background: var(--orange-soft);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--orange-dark);
}
.card-list { list-style: none; margin: 0; padding: 0; }
.card-list li {
  font-size: 14px;
  color: var(--text);
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
}
.card-list li::before {
  content: "✓";
  color: var(--green);
  position: absolute;
  left: 0;
  font-weight: 800;
  background: var(--green-soft);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  top: 1px;
}
.courses-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 40px;
}

/* FEATURES */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature {
  text-align: center;
  padding: 28px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature:nth-child(4n+1) .feature-icon { background: var(--orange-soft); }
.feature:nth-child(4n+2) .feature-icon { background: var(--green-soft); }
.feature:nth-child(4n+3) .feature-icon { background: var(--red-soft); }
.feature:nth-child(4n+4) .feature-icon { background: var(--orange-soft); }
.feature-icon {
  font-size: 26px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.feature h3 { font-size: 16px; margin: 0 0 8px; color: var(--text); }
.feature p { font-size: 14px; color: var(--text-dim); margin: 0; }

/* BROKER — inspired by Dhan's TradingView theme (dark navy + teal + orange), lightened */
.broker {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.16), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(245, 166, 35, 0.14), transparent 45%),
    linear-gradient(135deg, #eef5f6 0%, #e4eef1 45%, #eaf3f0 100%);
}
.broker::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.broker-inner { position: relative; max-width: 640px; text-align: center; margin: 0 auto; }
.broker-inner .eyebrow { background: #d7f2ec; color: #0f766e; }
.broker-inner .section-sub { margin: 0 auto 28px; }
.fine-print { font-size: 12px; color: var(--text-dim); margin-top: 14px; }

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--orange);
  font-weight: 800;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 12px 0 0;
}

/* CTA BAND */
.cta-band {
  padding: 80px 0;
  text-align: center;
  background:
    radial-gradient(550px circle at 50% 0%, var(--orange-soft), transparent 70%),
    #ffffff;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; color: var(--text); }
.cta-band p { color: var(--text-dim); max-width: 480px; margin: 0 auto 28px; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-brand p { color: var(--text-dim); font-size: 13px; margin: 8px 0 0; }
.footer-links { display: flex; gap: 24px; font-size: 14px; font-weight: 600; color: var(--text-dim); }
.footer-links a:hover { color: var(--orange-dark); }
.disclaimer {
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  line-height: 1.7;
}
.copyright {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* TESTIMONIALS */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}
.testimonial-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.testimonial-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial-top h4 { margin: 0; font-size: 15px; color: var(--text); }
.testimonial-top .role { font-size: 12px; color: var(--text-dim); }
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; font-size: 14px; }
.testimonial-card p {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}

/* MODAL */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23, 19, 16, 0.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 70px -20px rgba(23, 19, 16, 0.35);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal h3 { margin: 0 0 8px; font-size: 20px; color: var(--text); }
.modal-price { color: var(--orange-dark); font-weight: 800; font-size: 24px; margin: 0 0 20px; }
.checkout-fallback p {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0 0 14px;
}
.upi-checkout { text-align: center; }
.upi-qr-img {
  width: 180px;
  height: 180px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
  margin: 0 auto 14px;
  display: block;
}
.upi-id {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 14px;
}
.upi-id strong { color: var(--orange-dark); }
.upi-steps {
  text-align: left;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
}
