:root {
  /* Brand Colors from Flutter App */
  --primary: #2d6eee;
  --primary-hover: #1e59cb;
  --primary-light: #eef4ff;
  --primary-tint: #dbeafe;
  --primary-glow: rgba(45, 110, 238, 0.2);

  /* Clean Light Theme Palette */
  --bg-page: #f6f8fb;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f8fafc;
  --bg-surface-variant: #f1f5f9;

  /* Borders & Dividers */
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #2d6eee;
  --border-hover: #bfdbfe;

  /* Typography Colors */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* Status & Tags */
  --tag-free-bg: #ecfdf5;
  --tag-free-border: #a7f3d0;
  --tag-free-text: #047857;

  --tag-prem-bg: #fffbeb;
  --tag-prem-border: #fde68a;
  --tag-prem-text: #b45309;

  --accent-gold: #f59e0b;
  --accent-green: #10b981;

  /* Typography Stack */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 28px -6px rgba(45, 110, 238, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 2px 6px rgba(15, 23, 42, 0.04);

  /* Layout */
  --max-width: 1200px;
  --header-height: 68px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.22s ease-in-out;
}

/* Base Reset & Optimization */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-page);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.brand-text-accent {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  padding: 0.5rem 0.25rem;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-variant);
  border: 1px solid var(--border-color);
  gap: 4px;
}

.mobile-nav-toggle span {
  width: 18px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-variant);
  border-color: #cbd5e1;
  color: var(--primary);
}

.btn-play-store {
  background-color: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  box-shadow: var(--shadow-md);
  padding: 0.6rem 1.15rem;
}

.btn-play-store:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
}

.btn-play-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.btn-play-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.btn-play-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 3.5rem 0 4rem;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 320px);
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
}

.hero-content {
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--primary-light);
  border: 1px solid var(--primary-tint);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.hero-title-accent {
  color: var(--primary);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-item strong {
  color: var(--text-main);
  font-size: 0.9rem;
}

.trust-star {
  color: var(--accent-gold);
}

/* Symmetrical Device Mockup */
.hero-mockup-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.device-card-frame {
  width: 290px;
  max-width: 100%;
  background: #ffffff;
  border: 7px solid #1e293b;
  border-radius: 38px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform var(--transition-base);
}

.device-card-frame:hover {
  transform: translateY(-4px);
}

.device-notch {
  width: 70px;
  height: 14px;
  background: #1e293b;
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
}

.device-screen-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Stats Bar Section
   ========================================================================== */
.stats-section {
  padding: 2.25rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-box {
  text-align: center;
  position: relative;
}

.stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-color);
}

.stat-val {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-lbl {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Card-Based Sections
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.22;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.subpage-header {
  text-align: left !important;
  max-width: 100% !important;
  margin: 0 0 2rem 0 !important;
}

.subpage-header .section-badge {
  display: inline-block !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.subpage-header .section-title {
  margin-left: 0 !important;
}

.subpage-header .section-subtitle {
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: 820px !important;
}

/* ==========================================================================
   Content Grid (10 Study Pillars - Card-Based)
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.content-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-card);
}

.content-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.content-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-tint);
}

.tag-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.tag-free {
  background-color: var(--tag-free-bg);
  border: 1px solid var(--tag-free-border);
  color: var(--tag-free-text);
}

.tag-paid {
  background-color: var(--tag-prem-bg);
  border: 1px solid var(--tag-prem-border);
  color: var(--tag-prem-text);
}

.card-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition-fast);
}

.content-card:hover .card-link {
  gap: 0.5rem;
}

.card-meta-count {
  font-size: 0.78rem;
  color: var(--text-subtle);
  font-weight: 500;
}

/* ==========================================================================
   Subjects Explorer
   ========================================================================== */
.subjects-section {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.filter-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.filter-pill {
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-surface-variant);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  color: var(--text-main);
  background-color: #e2e8f0;
}

.filter-pill.active {
  color: #ffffff;
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 6px var(--primary-glow);
}

.subjects-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.subject-item-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  position: relative;
}

.subject-item-card:hover {
  border-color: #93c5fd;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -6px rgba(45, 110, 238, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.subject-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.subject-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-tint);
  flex-shrink: 0;
}

.subject-stream-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.subject-item-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.subject-item-meta {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.subject-stat-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.95rem;
}

.subject-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.subject-action-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition-fast);
}

.subject-item-card:hover .subject-action-text {
  gap: 0.55rem;
  color: var(--primary-hover);
}

.subject-item-arrow {
  font-size: 1.05rem;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.subject-item-card:hover .subject-item-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   App Features Section (Symmetrical & Aligned)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 320px);
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 620px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.feature-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.feature-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* App Gallery Carousel (Symmetrical) */
.gallery-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
}

.gallery-phone-card {
  width: 290px;
  max-width: 100%;
  background: #ffffff;
  border: 7px solid #1e293b;
  border-radius: 38px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.gallery-slide-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.gallery-bullets {
  width: 290px;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.gallery-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-bullet.active {
  width: 22px;
  border-radius: var(--radius-full);
  background: var(--primary);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-container {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.faq-card.active {
  border-color: var(--primary);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background: #ffffff;
}

.faq-trigger:hover {
  color: var(--primary);
}

.faq-chevron {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform var(--transition-base);
}

.faq-card.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.6;
  padding: 0 1.4rem;
}

.faq-card.active .faq-content {
  padding-bottom: 1.25rem;
}

/* ==========================================================================
   Call to Action (CTA) Banner
   ========================================================================== */
.cta-banner-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #2d6eee 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(45, 110, 238, 0.25);
}

.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-banner-text {
  font-size: 1.05rem;
  color: #dbeafe;
  max-width: 600px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 1.75rem;
  color: var(--text-muted);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link-list a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link-list a:hover {
  color: var(--primary);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* Footer Socials */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-social-link svg {
  width: 19px;
  height: 19px;
  transition: transform var(--transition-fast);
}

.footer-social-link:hover {
  transform: translateY(-2px);
}

.footer-social-telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.25);
}

.footer-social-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(214, 36, 159, 0.25);
}

.footer-social-youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
}

/* ==========================================================================
   Syllabus & Weightage Detailed View (No App Redirection)
   ========================================================================== */
.syllabus-overview-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
}

.syllabus-stat-box {
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}

.syllabus-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.syllabus-stat-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

/* ==========================================================================
   Syllabus & Weightage Detailed View (Responsive Unit Cards)
   ========================================================================== */
.syllabus-units-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.syllabus-unit-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-fast);
}

.syllabus-unit-card:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.syllabus-unit-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.syllabus-unit-num {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #dbeafe;
}

.syllabus-unit-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  word-break: break-word;
}

.syllabus-unit-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.syllabus-marks-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

.syllabus-pct-badge {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 48px;
  text-align: right;
  white-space: nowrap;
}

.syllabus-total-bar {
  background: #ffffff;
  border: 2px solid var(--primary-tint);
  border-radius: 12px;
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.syllabus-total-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.syllabus-total-val {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 580px) {
  .syllabus-unit-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
  }
  .syllabus-unit-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
  }
  .syllabus-total-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ==========================================================================
   Space-Efficient Resource Grid (Notes, PYPs, NCERT, Books, Quizzes)
   ========================================================================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 820px) {
  .resource-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.resource-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-fast);
}

.resource-card:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.resource-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.resource-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid #dbeafe;
}

.resource-text {
  min-width: 0;
  flex: 1;
}

.resource-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--primary);
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.resource-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 8px var(--primary-glow);
}

@media (max-width: 540px) {
  .resource-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .resource-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
  }
  .resource-title, .resource-sub {
    white-space: normal;
    word-break: break-word;
  }
  .resource-btn {
    width: 100%;
    justify-content: center;
    padding: 0.5rem;
  }
}

/* ==========================================================================
   QR Code Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: scale(0.96);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-variant);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.qr-preview-img {
  width: 190px;
  height: 190px;
  margin: 1.25rem auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 8px;
  background: #ffffff;
}

/* ==========================================================================
   Sticky Mobile Bar (Solid, Non-intrusive)
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 0.65rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.08);
}

.mobile-bottom-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-bottom-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.mobile-bottom-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.mobile-bottom-sub {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Responsive Breakpoints & Resizing Fixes
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust-bar {
    justify-content: center;
  }

  .hero-mockup-wrapper {
    justify-content: center !important;
    width: 100% !important;
    margin: 1.5rem auto 0 !important;
  }

  .device-card-frame {
    margin: 0 auto !important;
  }

  .gallery-wrapper {
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
  }

  .gallery-phone-card {
    margin: 0 auto !important;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    flex-direction: column;
    padding: 1.25rem;
    gap: 1rem;
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  /* Hide Get App button on mobile headers since mobile bottom bar exists */
  .nav-actions .btn,
  #navInstallBtn,
  #headerAppBtn {
    display: none !important;
  }

  /* Make header action button compact on small screens */
  #navQrBtn {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .stat-box:nth-child(2)::after {
    display: none;
  }

  .mobile-bottom-bar {
    display: flex;
  }

  body {
    padding-bottom: 64px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .brand-logo span {
    font-size: 1.05rem;
  }

  .btn-play-store {
    width: 100%;
  }
}
