/* ============================================
   Littera Education – Complete Redesign
   Modern, clean, professional education site
   ============================================ */

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

:root {
  --primary: #1B4D8E;
  --primary-light: #2A6BC5;
  --primary-dark: #0F3460;
  --accent: #F59E0B;
  --accent-light: #FCD34D;
  --accent-dark: #D97706;
  --success: #10B981;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-dark: #0F172A;
  --text: #1E293B;
  --text-light: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 12px 28px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,77,142,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-full { width: 100%; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.35rem;
}

.logo-littera {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary);
}

.logo-edu {
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.85em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(27,77,142,0.06);
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: var(--radius) !important;
}

.nav-cta:hover {
  background: var(--primary-light) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #F0F5FF 0%, #FFFFFF 50%, #FFF7ED 100%);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -100px;
  left: -100px;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--success);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(27,77,142,0.1);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.highlight {
  color: var(--primary);
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--accent-light);
  opacity: 0.5;
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.hero-stat-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 450px;
}

.hero-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease;
}

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

.hero-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 12px 0 6px;
}

.hero-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-icon-book { background: var(--primary); }
.card-icon-chart { background: var(--success); }
.card-icon-users { background: var(--accent-dark); }

.hero-card-main {
  top: 40px;
  left: 20px;
  width: 280px;
  z-index: 2;
}

.hero-card-float-1 {
  top: 0;
  right: 10px;
  width: 220px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.hero-card-float-2 {
  bottom: 20px;
  right: 40px;
  width: 220px;
  z-index: 1;
  animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Section Commons --- */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(27,77,142,0.08);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- About --- */
.about {
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.about-feature:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.about-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(27,77,142,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.about-feature-icon svg {
  width: 22px;
  height: 22px;
}

.about-feature h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* --- Subjects --- */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.subject-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.subject-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.subject-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.subject-icon svg {
  width: 28px;
  height: 28px;
}

.subject-icon-math { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.subject-icon-reading { background: linear-gradient(135deg, #10B981, #047857); }
.subject-icon-ell { background: linear-gradient(135deg, #F59E0B, #D97706); }

.subject-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.subject-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Platform --- */
.platform {
  background: var(--bg-alt);
}

.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.platform-tab {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: #fff;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.platform-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.platform-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.platform-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.platform-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.platform-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.platform-panel-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.platform-panel-info > p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.platform-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.platform-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.platform-features li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--success);
  margin-top: 2px;
}

/* Mock UI Elements */
.mock-classroom, .mock-dashboard, .mock-reports {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.mock-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-dark);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mock-dot.red { background: #EF4444; }
.mock-dot.yellow { background: #F59E0B; }
.mock-dot.green { background: #10B981; }

.mock-title {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  margin-left: 8px;
}

.mock-body {
  display: flex;
  height: 260px;
}

.mock-sidebar {
  width: 60px;
  background: #1E293B;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.mock-avatar.tutor { background: var(--primary); }
.mock-avatar.student { background: var(--accent-dark); }

.mock-tools {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-tool-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
}

.mock-whiteboard {
  flex: 1;
  background: #FFF;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mock-equation {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.mock-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1.1rem;
  color: var(--text-light);
}

.mock-cursor {
  position: absolute;
  bottom: 40px;
  right: 60px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  animation: cursorPulse 2s ease-in-out infinite;
}

@keyframes cursorPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Mock Dashboard */
.mock-dash-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px;
}

.mock-dash-card {
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.mock-dash-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.mock-dash-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.mock-dash-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.mock-dash-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 3px;
  animation: barGrow 2s ease-out forwards;
}

.bar-1::after { width: 78%; background: var(--primary); }
.bar-2::after { width: 89%; background: var(--success); }
.bar-3::after { width: 94%; background: var(--accent-dark); }

@keyframes barGrow {
  from { width: 0; }
}

/* Mock Reports */
.mock-chart-body {
  padding: 24px;
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 150px;
  padding: 16px 0;
}

.mock-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), var(--primary-light));
  border-radius: 6px 6px 0 0;
  transition: height 1s ease;
  animation: barRise 1.5s ease-out forwards;
}

@keyframes barRise {
  from { height: 0 !important; }
}

.mock-chart-label {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* --- Outcomes --- */
.outcomes-highlight {
  margin-bottom: 48px;
}

.outcomes-rct {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
}

.outcomes-rct-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.outcomes-rct h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.outcomes-rct p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 700px;
}

.outcomes-rct strong {
  color: var(--accent-light);
}

.outcomes-rct-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.rct-stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-light);
}

.rct-stat-label {
  font-size: 0.82rem;
  opacity: 0.8;
  margin-top: 4px;
  display: block;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.outcome-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.outcome-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.outcome-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  line-height: 1;
}

.outcome-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.outcome-text p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Testimonials */
.testimonials {
  text-align: center;
}

.testimonial-carousel {
  position: relative;
  min-height: 160px;
}

.testimonial {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial.active {
  display: block;
}

.testimonial blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 20px;
}

.testimonial cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial cite strong {
  font-size: 0.95rem;
  color: var(--text);
}

.testimonial cite span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.testimonial-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-btn.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* --- Tutors --- */
.tutors {
  background: var(--bg-alt);
}

.tutors-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.tutors-info .section-tag { margin-bottom: 12px; }
.tutors-info .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.tutors-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.tutors-benefits {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.tutor-benefit {
  display: flex;
  gap: 16px;
}

.tutor-benefit svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--primary);
  margin-top: 2px;
}

.tutor-benefit h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tutor-benefit p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Process Steps */
.tutor-process {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.process-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.process-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.process-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.process-line {
  width: 2px;
  height: 28px;
  background: var(--border);
  margin-left: 19px;
}

/* --- Partners --- */
.partners {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.6;
  transition: var(--transition);
}

.partner-logo:hover {
  opacity: 1;
  color: var(--text);
}

/* --- Contact --- */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info .section-tag { margin-bottom: 12px; }
.contact-info .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text);
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Form */
.contact-form-wrapper {
  background: var(--bg-alt);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,77,142,0.12);
}

.form-group textarea {
  resize: vertical;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.7;
  opacity: 0.7;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  opacity: 0.6;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.5;
}

/* --- Animations (scroll-triggered via JS) --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-visual {
    display: none;
  }

  .about-grid,
  .platform-panel-grid,
  .contact-grid,
  .tutors-split {
    grid-template-columns: 1fr;
  }

  .tutors-info .section-title,
  .contact-info .section-title {
    text-align: center;
  }

  .tutors-info,
  .contact-info {
    text-align: center;
  }

  .tutor-benefit,
  .about-feature {
    text-align: left;
  }

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

@media (max-width: 768px) {
  section { padding: 72px 0; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  .subjects-grid,
  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .outcomes-rct {
    padding: 32px 24px;
  }

  .outcomes-rct-stats {
    flex-direction: column;
    gap: 20px;
  }

  .mock-dash-body {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .platform-tabs {
    gap: 6px;
  }

  .platform-tab {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  .outcome-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-lg {
    padding: 14px 28px;
  }

  .outcomes-rct h3 {
    font-size: 1.3rem;
  }

  .testimonial blockquote {
    font-size: 1.15rem;
  }
}
