/* ===========================================
   Maaz Trader — Shared Stylesheet
   =========================================== */

:root {
  --bg: #0b0f14;
  --bg-alt: #111826;
  --bg-card: #151d2b;
  --border: #232c3d;
  --text: #f6f7f9;
  --text-muted: #9aa5b5;
  --gold: #f2c94c;
  --gold-deep: #c9922a;
  --green: #25b881;
  --green-deep: #0f6b4f;
  --danger: #e5544d;
  --radius: 14px;
  --max-width: 1180px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,15,20,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.brand img { height: 38px; width: 38px; }
.brand span.accent { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37,184,129,0.25);
}
.nav-cta:hover { text-decoration: none; filter: brightness(1.08); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    display: none;
    padding: 10px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a, .nav-links .nav-cta {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 0;
  }
  .nav-toggle { display: inline-block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 24px 70px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(242,201,76,0.08), transparent 60%),
    var(--bg);
}
.eyebrow {
  display: inline-block;
  background: rgba(242,201,76,0.12);
  color: var(--gold);
  border: 1px solid rgba(242,201,76,0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin: 0 0 18px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.hero p.lead {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,184,129,0.3);
}
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: 70px 24px; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin: 0 0 14px;
}
.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  gap: 26px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.card h3 { margin-top: 0; font-size: 1.2rem; }
.card p { color: var(--text-muted); margin-bottom: 0; }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(242,201,76,0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

/* ---------- Course cards ---------- */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.course-card .tag {
  align-self: flex-start;
  background: rgba(37,184,129,0.12);
  color: var(--green);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.course-card h3 { margin: 0; font-size: 1.35rem; }
.course-card ul { margin: 0; padding-left: 20px; color: var(--text-muted); }
.course-card ul li { margin-bottom: 6px; }
.course-card .cta-row {
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Telegram banner ---------- */
.telegram-banner {
  background: linear-gradient(135deg, rgba(37,184,129,0.14), rgba(15,107,79,0.08));
  border: 1px solid rgba(37,184,129,0.3);
  border-radius: var(--radius);
  padding: 46px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.telegram-banner h2 { margin: 0 0 12px; font-size: 1.7rem; }
.telegram-banner p { color: var(--text-muted); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Disclaimer strip ---------- */
.disclaimer-strip {
  background: #0e1319;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 24px;
}
.disclaimer-strip .container {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: var(--max-width);
}
.disclaimer-strip .warn-icon {
  color: var(--gold);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.disclaimer-strip p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}
.disclaimer-strip strong { color: var(--text); }

/* ---------- Legal page content ---------- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 90px;
}
.legal-content h1 { margin-bottom: 6px; }
.legal-content .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal-content h2 { margin-top: 44px; font-size: 1.35rem; color: var(--gold); }
.legal-content h3 { margin-top: 28px; font-size: 1.05rem; }
.legal-content p, .legal-content li { color: #d7dce4; }
.legal-content ul { padding-left: 22px; }
.legal-content a { word-break: break-word; }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}
.contact-card .icon-badge { margin: 0 auto 18px; }
.contact-email {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin: 8px 0 26px;
  word-break: break-word;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 50px 24px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 30px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; }
.footer-brand img { height: 32px; width: 32px; }
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #c7cedb; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-desc { color: var(--text-muted); font-size: 0.92rem; max-width: 340px; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-disclaimer {
  max-width: var(--max-width);
  margin: 24px auto 0;
  color: #6b7484;
  font-size: 0.78rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
