/* =====================================================================
   PREMIUM REFINEMENT LAYER (loaded after styles.css)
   Editorial serif headlines, deep ink + restrained gold, calmer motion.
   ===================================================================== */
:root {
  --dark-primary: #1c0f14;
  --dark-secondary: #26141b;
  --ink: #1c0f14;
  --maroon: #7a1f2b;
  --maroon-dark: #5e1520;
  --gold: #d9a441;
  --gold-light: #ecc97a;
  --gold-dark: #a8761f;
  --red: #7a1f2b;
  --red-dark: #5e1520;
  --cream: #faf6ee;
  --cream-light: #fdfbf6;
  --warm-white: #fdfbf7;
  --text-body: #4b3f43;
  --text-muted: #7d7074;
  --border-light: rgba(28, 15, 20, 0.08);
  --border-gold: rgba(217, 164, 65, 0.35);
  --shadow-red: 0 10px 30px -10px rgba(122, 31, 43, 0.55);
  --shadow-red-lg: 0 18px 40px -12px rgba(122, 31, 43, 0.6);
  --shadow-gold: 0 10px 30px -12px rgba(217, 164, 65, 0.6);
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-display: 'Fraunces', Georgia, serif;
}

body { letter-spacing: 0; }

/* Headlines: editorial serif, italic accents */
.section-title, .hero-title, .founder-name,
.course-card-body h3, .program-card h3, .achievement-card h4, .stat-big-number {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section-title em, .hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
}
.how-header .section-title em, .cta-content .section-title em { color: var(--gold-light); }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--maroon);
}
.section-label::before { width: 24px; height: 1px; background: var(--gold); }
.how-header .section-label, .cta-content .section-label { color: var(--gold-light) !important; }

/* Nav */
.nav-links a { font-size: 0.9rem; color: var(--ink); }
.nav-links a::after { height: 1px; background: var(--gold); }
.nav-cta { background: var(--ink) !important; box-shadow: none; border: 0; }
.nav-cta:hover { background: var(--maroon) !important; transform: none; box-shadow: var(--shadow-red) !important; }

/* Buttons: solid, confident, no gimmick shine */
.btn-primary, .btn-gold {
  background: var(--maroon);
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-red);
  font-weight: 600;
}
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.btn-primary::before, .btn-gold::before { display: none; }
.btn-primary:hover, .btn-gold:hover { transform: translateY(-2px); }
.btn-primary:hover { background: var(--maroon-dark); box-shadow: var(--shadow-red-lg); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 18px 40px -12px rgba(217, 164, 65, 0.7); }
.btn-secondary { background: transparent; border: 1px solid rgba(28, 15, 20, 0.18); backdrop-filter: none; }
.btn-secondary:hover { background: #fff; border-color: var(--ink); }
.btn-outline-white { border: 1px solid rgba(255, 255, 255, 0.25); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 78% 45%, rgba(217, 164, 65, 0.16), transparent 65%),
    linear-gradient(180deg, #fdfbf6 0%, #f7efe0 100%);
}
.hero::before, .hero::after, .hero-shapes { display: none; }
.hero-badge {
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.hero-badge .badge-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.2); animation: none; }
.hero-title { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.05; font-weight: 600; }
.hero-title .highlight, .hero-title .highlight-gold { font-style: italic; font-weight: 500; }
.hero-title .highlight { color: var(--maroon); }
.hero-title .highlight-gold { color: var(--gold-dark); }
.hero-title .highlight::after, .hero-title .highlight-gold::after { display: none; }
.hero-stat .stat-number { font-family: var(--font-heading); font-weight: 600; }
.hero-stat .stat-number span { color: var(--gold-dark); font-weight: 500; font-size: 0.6em; }

.hero-stage {
  position: relative;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
}
.hero-ring {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0%, #f6e7c6 55%, rgba(246, 231, 198, 0) 72%);
}
.hero-ring::after {
  content: '';
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px dashed rgba(168, 118, 31, 0.35);
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-book {
  position: relative;
  width: 330px;
  aspect-ratio: 840 / 1376;
  transform: rotateY(-16deg) rotateX(4deg);
  transition: transform 1s var(--ease-out);
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    -1px 0 0 rgba(0, 0, 0, 0.15),
    30px 40px 60px -20px rgba(28, 15, 20, 0.45),
    10px 14px 24px -8px rgba(28, 15, 20, 0.3);
}
.hero-book::before { /* spine highlight */
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0.18) 40%, rgba(0, 0, 0, 0));
  z-index: 2;
  border-radius: 4px 0 0 4px;
}
.hero-book img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.hero-stage:hover .hero-book { transform: rotateY(-6deg) rotateX(2deg) translateY(-6px); }

.hero-float-card { border-radius: 14px; padding: 14px 18px; background: rgba(255, 255, 255, 0.94); z-index: 3; }
.hero-float-card.card-1 { bottom: 70px; left: 0; }
.hero-float-card.card-2 { top: 80px; right: 0; }
.float-card-icon { width: 40px; height: 40px; border-radius: 10px; }
.float-card-icon.gold { background: #faf3e4; }
.float-card-icon.green { background: rgba(122, 31, 43, 0.08); color: var(--maroon); }

/* ---------- Trust bar ---------- */
.trust-bar { padding: 64px 0 0; }
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.trust-bar span {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(28, 15, 20, 0.55);
}
.trust-bar .trust-title {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ---------- Cards: quieter, crisper ---------- */
.program-card, .course-card, .achievement-card, .testimonial-card, .why-feature, .portal-feature, .founder-award {
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 2px rgba(28, 15, 20, 0.04), 0 8px 24px -12px rgba(28, 15, 20, 0.12);
}
.program-card { border-radius: 18px; text-align: left; padding: 32px 28px; background: #fff; }
.program-card-icon { margin: 0 0 20px; width: 52px; height: 52px; border-radius: 12px; }
.program-card-icon.abacus, .program-card-icon.vedic, .program-card-icon.portal, .program-card-icon.book {
  background: #faf3e4;
  color: var(--maroon);
}
.program-card::before { height: 2px; background: var(--gold); }
.program-card::after { display: none; }
.program-card:hover, .course-card:hover, .achievement-card:hover, .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(28, 15, 20, 0.04), 0 24px 48px -20px rgba(28, 15, 20, 0.25);
}
.program-card:hover .program-card-icon, .how-step:hover .how-step-number { transform: none; }

/* Marquee: faded edges */
.marquee-track {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-item { border-radius: 14px; }
.marquee-item:hover { transform: translateY(-4px); }

/* Why section: frame flyer on the child, not the text */
.why-image-main { border-radius: 20px; }
.why-image-main img { height: auto; aspect-ratio: 4 / 3; object-position: 100% center; }
.why-image-accent { border-radius: 18px; width: 180px; height: 180px; }
.why-image-accent img { object-position: 100% center; }
.why-feature { background: #fff; }
.why-feature-icon { background: #faf3e4; color: var(--maroon); box-shadow: none; }

/* Courses: show flyers at native ratio so text isn't chopped */
.course-card { border-radius: 22px; }
.course-card-image { height: auto; aspect-ratio: 1600 / 583; }
.course-card-badge { top: auto; bottom: 14px; left: 14px; background: #fff !important; color: var(--ink) !important; letter-spacing: 0.12em; font-size: 0.68rem; }
.course-card-link { color: var(--maroon); }
.course-card-link::after { background: var(--maroon); }

/* Dark sections */
.how-section, .stats-section, .cta-section {
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(217, 164, 65, 0.12), transparent 60%),
    var(--ink);
}
.stats-section { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.how-step-number {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(217, 164, 65, 0.45);
  box-shadow: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: italic;
}
.how-steps::before { background: linear-gradient(90deg, transparent, rgba(217, 164, 65, 0.35), transparent); height: 1px; top: 36px; }
.stat-big-number { color: #fff; text-shadow: none; font-weight: 500; }
.stat-big-number span { color: var(--gold); font-weight: 500; }
.stat-item-label { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; }

/* Portal */
.portal-section { background: linear-gradient(180deg, #faf6ee, #f5ecda); }
.portal-feature { background: #fff; backdrop-filter: none; }
.portal-feature:hover { transform: translateX(4px); border-color: var(--border-gold); }
.portal-feature-icon { background: var(--ink); color: var(--gold-light); box-shadow: none; }
.portal-mockup { background: var(--ink); border-radius: 22px; }
.mockup-btn.flash { background: var(--gold); box-shadow: none; }
.mockup-btn.audio { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: none; }
.mockup-btn.games { background: var(--maroon); box-shadow: none; }

/* Founder */
.founder-image { border-radius: 22px; }
.founder-image-border { inset: -12px; border-width: 1px; opacity: 0.6; border-radius: 30px; }
.founder-name { font-style: italic; font-weight: 500; color: var(--maroon); }
.founder-role { color: var(--gold-dark); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; }
.founder-award { background: #fff; }

/* Testimonials */
.testimonial-card { background: #fff; }
.testimonial-card blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.65;
}
.testimonial-card::before { color: var(--gold); opacity: 0.35; }
.testimonial-avatar { background: var(--ink); color: var(--gold-light); box-shadow: none; font-size: 0.85rem; }

/* Footer */
.footer { background: #140a0e; }

/* Scrollbar & selection */
::-webkit-scrollbar-thumb { background: rgba(28, 15, 20, 0.3); }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: rgba(217, 164, 65, 0.3); }

@media (max-width: 1024px) {
  .hero-stage { height: 500px; }
  .program-card { text-align: center; }
  .program-card-icon { margin: 0 auto 20px; }
}
@media (max-width: 768px) {
  .hero-stage { height: 420px; }
  .hero-ring { width: 340px; height: 340px; }
  .hero-book { width: 230px; }
  .trust-bar .container { gap: 10px 24px; }
  .trust-bar span { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Student panel link (header) */
.nav-links a.nav-student {
  padding: 9px 20px;
  border: 1px solid rgba(28, 15, 20, 0.2);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  margin-right: -14px;
}
.nav-links a.nav-student::after { display: none; }
.nav-links a.nav-student:hover { border-color: var(--ink); background: #fff; }
