/* ==========================================================================
   RM Creative — Design System
   Matches the real rmcreative.in identity: black canvas, bold white
   editorial type, thin hairline borders, one restrained red accent.
   No gradients, no glow shadows, no pill buttons — sharp, minimal, quiet.
   ========================================================================== */

:root {
  /* Canvas */
  --bg-0: #000000;          /* page background */
  --bg-1: #0a0a0a;          /* section background */
  --bg-2: #000000;          /* card background (bordered, not filled) */
  --bg-3: #141414;          /* raised / hover */
  --border: #262626;
  --border-soft: #1b1b1b;

  /* Text */
  --text-0: #ffffff;        /* headings */
  --text-1: #a3a3a3;        /* body */
  --text-2: #7d7d7d;        /* muted */
  --text-3: #545454;        /* faint / large numerals */

  /* Single restrained accent — red */
  --red-500: #e63232;
  --red-400: #ef5b5b;
  --red-600: #c42323;

  /* Kept for any legacy references; both point at the one accent now */
  --orange-500: var(--red-500);
  --orange-400: var(--red-400);
  --orange-600: var(--red-600);
  --teal-500: var(--red-500);
  --teal-400: var(--red-400);
  --teal-600: var(--red-600);

  --gradient-brand: var(--red-500);
  --gradient-text: var(--red-500);

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Scale */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 4px;

  --container: 1180px;
  --space-section: clamp(56px, 8vw, 104px);
}

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

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-0);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0; color: var(--text-1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--red-500);
  border-radius: 1px;
}

.text-gradient { color: var(--red-500); }

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

.section { padding: var(--space-section) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }

/* ---------------- Buttons ---------------- */
.btn {
  --btn-pad-y: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--btn-pad-y) 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, opacity .18s ease;
  white-space: nowrap;
}
.btn:active { opacity: 0.85; }

.btn-primary {
  background: var(--text-0);
  color: #000000;
  border-color: var(--text-0);
}
.btn-primary:hover { background: var(--red-500); border-color: var(--red-500); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text-0);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text-0); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 0.74rem; }

.btn[disabled], .btn.is-loading {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------------- Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-0);
}
.brand-mark {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-tagline {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-0);
  background: var(--bg-3);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); width: 40px; height: 40px;
  color: var(--text-0); cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 880px) {
  .nav-links { position: fixed; inset: 64px 16px auto 16px; background: #000; border: 1px solid var(--border);
    border-radius: var(--radius-md); flex-direction: column; align-items: stretch; padding: 10px; gap: 2px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8); transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none; transition: all .18s ease; }
  .nav-links.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-ghost.desktop-only { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-lede {
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--text-1);
  max-width: 52ch;
}
.hero-cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; align-items: center; }
.hero-cta-row .btn-ghost { border-color: transparent; padding-left: 0; padding-right: 0; text-decoration: underline; text-underline-offset: 4px; }

.hero-stats {
  display: flex; gap: 0; margin-top: 48px; flex-wrap: wrap;
  border-top: 1px solid var(--border-soft);
}
.hero-stat {
  padding: 18px 28px 0 0; margin-right: 28px;
}
.hero-stat b {
  display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text-0); font-weight: 700;
}
.hero-stat span { font-size: 0.8rem; color: var(--text-2); }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  border: 1px solid var(--border);
  overflow: hidden;
}
.scope-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.scope-rings svg { width: 70%; height: 70%; opacity: 0.85; }

.timeline-card {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  background: rgba(0,0,0,0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  backdrop-filter: blur(6px);
}
.timeline-bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-bottom: 10px; }
.timeline-bars span { flex: 1; border-radius: 1px; background: var(--text-3); opacity: 0.7; }
.timeline-bars span:nth-child(3n) { background: var(--red-500); opacity: 0.9; }
.timeline-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-2); font-family: var(--font-display); }

/* ---------------- Cards / Grids ---------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color .2s ease;
}
.card:hover { border-color: #3a3a3a; }

.icon-badge {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  margin-bottom: 18px;
  color: var(--red-500);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head p { max-width: 52ch; color: var(--text-2); margin-top: 12px; }

/* ---------------- Product / Course cards ---------------- */
.product-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease;
}
.product-card:hover { border-color: var(--red-600); }
.product-thumb {
  aspect-ratio: 16/10;
  position: relative;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.product-thumb span {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
  color: var(--text-2); font-size: 1.05rem; text-align: center; padding: 0 20px;
}
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-tag {
  align-self: flex-start;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red-400); background: rgba(230,50,50,0.08); padding: 4px 10px; border-radius: var(--radius-sm);
  border: 1px solid rgba(230,50,50,0.25);
}
.product-price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--font-display); font-size: 1.35rem; color: var(--text-0); font-weight: 700; }
.price-strike { font-size: 0.88rem; color: var(--text-3); text-decoration: line-through; margin-right: 8px; }

/* ---------------- Badges / Pills ---------------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  color: var(--text-2);
}
.pill-live { color: var(--text-0); border-color: var(--border); }
.pill-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-500); }
.pill-soon { color: var(--text-2); border-color: var(--border); }
.pill-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }

/* ---------------- Testimonials ---------------- */
.testi-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden;
}
.testi-video {
  aspect-ratio: 9/16; max-height: 360px;
  background: var(--bg-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 0.85rem; text-align: center; padding: 20px;
  border-bottom: 1px solid var(--border);
}
.testi-meta { padding: 16px 18px; }
.testi-meta b { color: var(--text-0); font-family: var(--font-display); font-size: 0.95rem; }
.testi-meta span { display: block; color: var(--text-2); font-size: 0.82rem; margin-top: 2px; }

/* ---------------- Curriculum ---------------- */
.curriculum-list { display: flex; flex-direction: column; }
.curriculum-item {
  display: flex; align-items: flex-start; gap: 20px;
  border-top: 1px solid var(--border-soft);
  padding: 20px 4px;
}
.curriculum-item:last-child { border-bottom: 1px solid var(--border-soft); }
.curriculum-index {
  font-family: var(--font-display); font-weight: 700; color: var(--red-500);
  font-size: 1.3rem; min-width: 40px;
}

/* ---------------- Forms ---------------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-1); }
.field input, .field textarea, .field select {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 14px; color: var(--text-0); font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--text-0); }
.form-note { font-size: 0.8rem; color: var(--text-3); margin-top: 4px; }

/* ---------------- CTA band ---------------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  background: var(--bg-1);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 56px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col p { color: var(--text-2); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text-0); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--text-3); font-size: 0.8rem;
}

/* ---------------- WhatsApp float ---------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.6);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------------- Utilities ---------------- */
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-48{margin-top:48px}
.text-center{text-align:center}
.muted{color:var(--text-2)}
.faint{color:var(--text-3)}
.max-w-prose{max-width:68ch}
.center-col{display:flex;flex-direction:column;align-items:center;text-align:center}
.divider{height:1px;background:var(--border-soft);border:none;margin:0}

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------------- Toast (buy flow feedback) ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: #0d0d0d; border: 1px solid var(--border); color: var(--text-0);
  padding: 14px 22px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.7); opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: rgba(230,50,50,0.5); }
