/* ============================================================
   TrueLearning Tutorials — Main Stylesheet
   Brand: Magenta/Purple derived from logo
   Fonts: Plus Jakarta Sans (display) + Nunito (body)
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  /* Brand Colors (from logo) */
  --color-primary:        #8B1A6B;
  --color-primary-hover:  #6B1050;
  --color-primary-active: #4E0A3A;
  --color-primary-light:  #F5E8F2;
  --color-secondary:      #A855A0;
  --color-accent:         #C2185B;
  --color-accent-hover:   #9C1348;

  /* Gradient (logo gradient) */
  --gradient-brand: linear-gradient(135deg, #7B1FA2 0%, #8B1A6B 50%, #C2185B 100%);
  --gradient-hero:  linear-gradient(135deg, #4A0A3A 0%, #8B1A6B 60%, #A855A0 100%);
  --gradient-card:  linear-gradient(135deg, #8B1A6B 0%, #C2185B 100%);

  /* Surfaces */
  --color-bg:             #F8F5F8;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #FDF8FC;
  --color-surface-offset: #F0E8EE;
  --color-divider:        #E8DDE6;
  --color-border:         #DDD0DB;

  /* Text */
  --color-text:           #1A0A17;
  --color-text-muted:     #6B5A68;
  --color-text-faint:     #B8A5B5;
  --color-text-inverse:   #FFFFFF;

  /* Semantic */
  --color-success:        #2E7D32;
  --color-warning:        #E65100;
  --color-info:           #1565C0;

  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;

  /* Radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.625rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(139,26,107,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(139,26,107,0.12), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(139,26,107,0.16), 0 4px 8px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 64px rgba(139,26,107,0.20), 0 8px 16px rgba(0,0,0,0.10);

  /* Transitions */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body:    'Nunito', 'Segoe UI', sans-serif;

  /* Navbar height */
  --nav-h: 72px;
}

/* ── BASE RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.2; font-family: var(--font-display); }
p, li { text-wrap: pretty; max-width: 72ch; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }
::selection { background: rgba(139,26,107,0.2); color: var(--color-text); }
:focus-visible { outline: 2.5px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ── UTILITY CLASSES ── */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--narrow { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.section--alt { background: var(--color-surface); }
.section--dark { background: var(--gradient-hero); color: var(--color-text-inverse); }
.section--light { background: var(--color-primary-light); }

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  display: block;
}
.section--dark .section-label { color: rgba(255,255,255,0.7); }

.section-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section--dark .section-title { color: #fff; }

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
}
.section--dark .section-sub { color: rgba(255,255,255,0.75); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--gradient-card);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(139,26,107,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,26,107,0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.navbar-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.navbar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.navbar-logo-text span:first-child {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.navbar-logo-text span:last-child {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.nav-links .nav-cta a {
  background: var(--gradient-card);
  color: #fff;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: 700;
}
.nav-links .nav-cta a:hover {
  box-shadow: 0 4px 16px rgba(139,26,107,0.4);
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── CARDS ── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}
.card-icon svg { color: var(--color-primary); }
.card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.card-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

/* ── HERO ── */
.hero {
  min-height: 100dvh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(168,85,160,0.3) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 20% 80%, rgba(194,24,91,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero > .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: start;
  gap: clamp(var(--space-8), 5vw, var(--space-20));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-top: calc(42px + var(--space-6));
}
.hero-badge {
  position: absolute;
  top: calc(var(--nav-h) + var(--space-3));
  left: max(var(--space-6), calc((100vw - var(--content-wide)) / 2 + var(--space-6)));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: max-content;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0;
  max-width: calc(100vw - var(--space-8));
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #F8BBD0, #FCE4EC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-8);
  max-width: 44ch;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}
.hero-stats {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-num {
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-1);
}
.hero-visual {
  position: relative;
  transform: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  pointer-events: none;
  z-index: 1;
  margin-top: calc(42px + var(--space-1));
}
.hero-image-frame {
  position: relative;
  width: min(78%, 450px);
  margin: 0;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(26,10,23,0.32);
  background: rgba(255,255,255,0.1);
}
.hero-image-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-image-frame--secondary {
  width: min(78%, 450px);
  align-self: flex-end;
}
.hero-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(74,10,58,0.72) 100%);
  pointer-events: none;
}
.hero-image-caption {
  position: absolute;
  left: var(--space-6);
  right: var(--space-6);
  bottom: var(--space-5);
  z-index: 1;
  color: #fff;
}
.hero-image-caption span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-1);
}
.hero-image-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.2;
}

@media (min-width: 1025px) {
  .hero-content {
    width: min(620px, 50vw);
    max-width: 100%;
  }
  .hero-visual {
    justify-content: flex-end;
    align-items: flex-end;
  }
}

/* ── FEATURES ── */
.feature-card {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

/* ── COURSE CARDS ── */
.course-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}
.course-card-header {
  background: var(--gradient-hero);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}
.course-card-header::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.course-batch-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}
.course-card-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-2);
}
.course-card-subtitle {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
}
.course-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-topics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex: 1;
}
.course-topics li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.course-topics li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-card);
  flex-shrink: 0;
}
.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
  margin-bottom: var(--space-5);
}
.course-meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.course-meta-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.course-meta-value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}

/* ── TESTIMONIALS ── */
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-size: 5rem;
  color: var(--color-primary-light);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.testimonial-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  padding-top: var(--space-8);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: var(--text-sm);
  font-family: var(--font-display);
  flex-shrink: 0;
}
.testimonial-info strong {
  display: block;
  font-weight: 700;
  color: var(--color-text);
  font-size: var(--text-sm);
}
.testimonial-info span {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-3);
  color: #F59E0B;
}

/* ── CTA SECTION ── */
.cta-section {
  background: var(--gradient-hero);
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
}
.cta-section > * { position: relative; z-index: 1; }

/* ── FOOTER ── */
.footer {
  background: #1A0A17;
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
  max-width: 34ch;
}
.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  max-width: none;
}
.social-links {
  display: flex;
  gap: var(--space-3);
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.social-link:hover { background: var(--color-primary); color: #fff; }

/* ── PAGE HERO ── */
.page-hero {
  background: var(--gradient-hero);
  padding-top: calc(var(--nav-h) + var(--space-16));
  padding-bottom: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.page-hero-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.8);
  max-width: 52ch;
  margin-inline: auto;
}

/* ── STAT CARDS ── */
.stat-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.stat-number {
  font-size: var(--text-2xl);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge-primary { background: var(--color-primary-light); color: var(--color-primary); }
.badge-success { background: #E8F5E9; color: var(--color-success); }
.badge-warning { background: #FFF3E0; color: var(--color-warning); }
.badge-info    { background: #E3F2FD; color: var(--color-info); }

/* ── CONTACT FORM ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139,26,107,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── WHATSAPP BUTTON ── */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: #25D366;
  color: #fff;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-sm);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}
.whatsapp-btn:hover { background: #1DA851; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,0.5); }

/* ── DASHBOARD PAGE ── */
.coming-soon-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-20);
}
.coming-soon-card {
  text-align: center;
  padding: var(--space-16);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin-inline: auto;
}
.app-card-title {
  font-size: clamp(2.25rem, 1.45rem + 2.2vw, 4rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: var(--space-4);
  max-width: 11ch;
  margin-inline: auto;
  overflow-wrap: anywhere;
}

/* ── RESOURCE CARDS ── */
.resource-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.resource-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.resource-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}
.resource-info { flex: 1; }
.resource-info strong { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-1); }
.resource-info span { font-size: var(--text-xs); color: var(--color-text-faint); }

/* ── RESULT CARD ── */
.result-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.result-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.result-card-top {
  background: var(--gradient-hero);
  padding: var(--space-8);
  text-align: center;
}
.result-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  font-weight: 800;
  font-size: var(--text-lg);
  color: #fff;
  font-family: var(--font-display);
}
.result-name { font-size: var(--text-base); font-weight: 700; color: #fff; margin-bottom: var(--space-1); }
.result-class { font-size: var(--text-xs); color: rgba(255,255,255,0.7); }
.result-card-body { padding: var(--space-6); }
.result-score {
  text-align: center;
  margin-bottom: var(--space-4);
}
.result-score-num {
  font-size: var(--text-xl);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.result-score-label { font-size: var(--text-xs); color: var(--color-text-faint); }
.result-progress {
  background: var(--color-surface-offset, #F0E8EE);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
  margin-bottom: var(--space-2);
}
.result-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-card);
  transition: width 1s ease;
}
.result-subject { font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139,26,107,0.4); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 12px rgba(139,26,107,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139,26,107,0); }
}

.animate-fade-up { animation: fadeInUp 0.6s ease both; }
.animate-fade    { animation: fadeIn   0.6s ease both; }
.animate-float   { animation: float 4s ease-in-out infinite; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero > .container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding-block: calc(var(--nav-h) + var(--space-12)) var(--space-12);
  }
  .hero-content {
    width: 100%;
    max-width: 680px;
    padding-top: calc(42px + var(--space-5));
  }
  .hero-visual {
    display: flex;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    align-items: stretch;
  }
  .hero-image-frame,
  .hero-image-frame--secondary {
    width: 100%;
    align-self: stretch;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: #fff; padding: var(--space-6); gap: var(--space-2); border-bottom: 1px solid var(--color-divider); box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
  .nav-toggle { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero {
    align-items: flex-start;
    min-height: auto;
  }
  .hero > .container {
    padding-block: calc(var(--nav-h) + var(--space-10)) var(--space-12);
  }
  .hero-badge {
    top: calc(var(--nav-h) + var(--space-3));
    left: var(--space-4);
    max-width: calc(100vw - (2 * var(--space-4)));
    font-size: 0.76rem;
    letter-spacing: 0.02em;
  }
  .hero-content {
    padding-top: calc(42px + var(--space-3));
  }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }
  .hero-image-caption {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
  }
  .hero-image-caption strong {
    font-size: var(--text-base);
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .course-meta { flex-wrap: wrap; gap: var(--space-4); }
  .coming-soon-card { padding: var(--space-10) var(--space-6); }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
  .hero-title { letter-spacing: -0.01em; }
  .btn-lg { padding: var(--space-4) var(--space-6); }
}
