/* ================================================================
   TutorDice — Main Stylesheet
   ================================================================ */

/* ── Variables ── */
:root {
  --primary:       #4f46e5;
  --primary-dark:  #4338ca;
  --secondary:     #7c3aed;
  --accent:        #f59e0b;
  --accent-dark:   #d97706;
  --dark:          #0f172a;
  --dark-2:        #1e293b;
  --light:         #f8fafc;
  --light-2:       #f1f5f9;
  --border:        #e2e8f0;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --white:         #ffffff;
  --success:       #10b981;
  --gradient:      linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-md:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-lg:  0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --shadow-xl:  0 25px 50px -12px rgba(0,0,0,.25);
  --radius:     12px;
  --radius-lg:  20px;
  --radius-full:9999px;
  --transition: .3s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-muted); line-height: 1.8; }

/* ── Layout ── */
.container  { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .badge { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p  { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: .85rem; font-weight: 600; letter-spacing: .02em;
}
.badge-primary { background: #ede9fe; color: var(--secondary); }
.badge-accent  { background: #fef3c7; color: var(--accent-dark); }
.badge-dark    { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-full);
  font-weight: 600; font-size: .95rem;
  transition: all var(--transition); cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--gradient); color: var(--white);
  box-shadow: 0 4px 15px rgba(79,70,229,.35);
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79,70,229,.45); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover  { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); transform: translateY(-2px); }
.btn-outline-dark {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-dark:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-white {
  background: var(--white); color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white:hover    { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.btn-accent {
  background: var(--accent); color: var(--dark);
  box-shadow: 0 4px 15px rgba(245,158,11,.35);
}
.btn-accent:hover   { background: var(--accent-dark); transform: translateY(-2px); }
.btn-lg  { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm  { padding: 8px 20px; font-size: .85rem; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; transition: all var(--transition);
}
.navbar.transparent { background: transparent; }
.navbar.scrolled {
  background: rgba(15,23,42,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.navbar .container {
  display: flex; align-items: center;
  justify-content: space-between; height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 700; color: var(--white);
}
.logo-icon {
  width: 40px; height: 40px; background: var(--gradient);
  border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 1.3rem;
}
.logo strong { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,.8); font-weight: 500;
  font-size: .95rem; padding: 8px 14px;
  border-radius: var(--radius-full); transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.1); }
.nav-links .btn-nav {
  background: var(--gradient) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 4px 12px rgba(79,70,229,.4);
}
.nav-links .btn-nav:hover {
  background: linear-gradient(135deg,#4338ca,#6d28d9) !important;
  transform: translateY(-2px);
}
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--white); border-radius: 2px; transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  background: var(--gradient-dark);
  padding: 96px 0 48px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; position: relative; z-index: 1;
}
.hero-badge { margin-bottom: 14px; }
.hero-content h1 { color: var(--white); margin-bottom: 14px; line-height: 1.15; }
.hero-content h1 .gradient-text {
  background: linear-gradient(90deg, #fbbf24, #f97316, #ef4444);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  white-space: nowrap; display: inline-block;
}
.hero-content p {
  color: rgba(255,255,255,.7); font-size: 1.1rem;
  margin-bottom: 24px; max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-stats {
  display: flex; gap: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stats .stat span {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1;
}
.hero-stats .stat p { color: rgba(255,255,255,.5); font-size: .9rem; margin-top: 4px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 28px 20px; text-align: center;
  transition: all var(--transition); backdrop-filter: blur(8px);
}
.hero-card:hover {
  background: rgba(255,255,255,.12); transform: translateY(-4px);
  border-color: rgba(255,255,255,.25);
}
.hero-card:nth-child(2) { margin-top: 28px; }
.hero-card:nth-child(4) { margin-top: -28px; }
.hero-card .card-icon { font-size: 2.2rem; margin-bottom: 10px; display: block; color: var(--accent); }
.hero-card h4 { color: var(--white); font-size: .95rem; margin-bottom: 6px; }
.hero-card p  { color: rgba(255,255,255,.5); font-size: .8rem; line-height: 1.5; }

/* ── Dice Widget ── */
.dice-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; gap: 1rem; padding: 1rem 0;
}
.dice-scene { width: 180px; height: 180px; perspective: 780px; }
.dice-cube {
  width: 180px; height: 180px;
  position: relative; transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.4,0,0.2,1);
}
.dice-face {
  position: absolute; width: 180px; height: 180px;
  border: 2.5px solid rgba(255,255,255,.2);
  border-radius: 28px;
  background: rgba(255,255,255,.97);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 16px;
  backface-visibility: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.dice-face.dice-front  { transform: translateZ(90px); }
.dice-face.dice-back   { transform: rotateY(180deg) translateZ(90px); }
.dice-face.dice-right  { transform: rotateY(90deg)  translateZ(90px); }
.dice-face.dice-left   { transform: rotateY(-90deg) translateZ(90px); }
.dice-face.dice-top    { transform: rotateX(90deg)  translateZ(90px); }
.dice-face.dice-bottom { transform: rotateX(-90deg) translateZ(90px); }
.dice-pip-area { display: flex; align-items: center; justify-content: center; width: 100%; }
.dice-pip-grid { display: grid; gap: 6px; }
.dice-pip { width: 14px; height: 14px; border-radius: 50%; background: #1e1b4b; }
.dice-pip.empty { background: transparent; }
.dice-pip-5 {
  display: grid;
  grid-template-columns: repeat(3,14px);
  grid-template-rows: repeat(3,14px);
  gap: 6px;
}
.dice-face-headline {
  font-size: 13.5px; font-weight: 700; color: #111;
  text-align: center; line-height: 1.35; white-space: pre-line;
  font-family: 'Space Grotesk', sans-serif;
}
.dice-face-sub {
  font-size: 11.5px; color: #555;
  text-align: center; line-height: 1.3; white-space: pre-line;
  font-family: 'Inter', sans-serif;
}
.dice-progress { display: flex; gap: 10px; }
.dice-pdot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: background .3s, transform .3s;
}
.dice-pdot.on { background: #fff; transform: scale(1.35); }

/* ── Subject Cards ── */
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 28px; }
.subject-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px 24px; box-shadow: var(--shadow-md);
  transition: all var(--transition); border: 1px solid var(--border);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 60px 1fr; column-gap: 16px;
}
.subject-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient); transform: scaleX(0);
  transition: transform var(--transition); transform-origin: left;
}
.subject-card:hover::before { transform: scaleX(1); }
.subject-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.subject-icon {
  width: 60px; height: 60px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; align-self: center;
}
.icon-math { background: #ede9fe; }
.icon-code { background: #dbeafe; }
.icon-ai   { background: #d1fae5; }
.icon-data { background: #fef3c7; }
.subject-card h3 { margin-bottom: 0; align-self: center; }
.subject-card p  { font-size: .95rem; margin-bottom: 14px; margin-top: 12px; grid-column: 1 / -1; }
.subject-tags { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.subject-tags span {
  padding: 4px 12px; background: var(--light-2);
  border-radius: var(--radius-full); font-size: .78rem;
  font-weight: 500; color: var(--text);
}

/* ── Feature Grid ── */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.feature-item {
  padding: 32px 24px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--gradient); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 20px;
}
.feature-item h4 { margin-bottom: 10px; font-size: 1.05rem; }
.feature-item p  { font-size: .9rem; }

/* ── Level Cards (Home) ── */
.levels-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.level-card {
  border-radius: var(--radius-lg); padding: 40px 32px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.level-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.level-card.school   { background: linear-gradient(135deg,#ede9fe,#dbeafe); }
.level-card.uni      { background: linear-gradient(135deg,#0f172a,#1e293b); }
.level-card.research { background: linear-gradient(135deg,#fef3c7,#fed7aa); }
.level-card.uni h3   { color: white; }
.level-card.uni p    { color: rgba(255,255,255,.75); }
.level-card.uni .level-list li { color: rgba(255,255,255,.7); }
.level-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 4rem;
  font-weight: 900; opacity: .08; position: absolute;
  top: 12px; right: 20px; line-height: 1;
}
.level-card.uni .level-num { opacity: .15; color: white; }
.level-badge {
  display: inline-block; padding: 5px 14px;
  border-radius: var(--radius-full); font-size: .78rem;
  font-weight: 600; margin-bottom: 20px;
}
.level-card.school .level-badge   { background: rgba(124,58,237,.15); color: var(--secondary); }
.level-card.uni .level-badge      { background: rgba(255,255,255,.15); color: white; }
.level-card.research .level-badge { background: rgba(245,158,11,.2); color: var(--accent-dark); }
.level-card h3 { margin-bottom: 12px; }
.level-card p  { font-size: .95rem; margin-bottom: 24px; }
.level-list { display: flex; flex-direction: column; gap: 10px; }
.level-list li {
  font-size: .9rem; color: var(--text-muted);
  padding-left: 22px; position: relative;
}
.level-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--primary); font-weight: 700;
}
.level-card.uni .level-list li::before      { color: #a78bfa; }
.level-card.research .level-list li::before { color: var(--accent-dark); }

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 28px; box-shadow: var(--shadow-md);
  border: 1px solid var(--border); transition: all var(--transition);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.stars { color: var(--accent); font-size: 1rem; margin-bottom: 16px; letter-spacing: 3px; }
.testimonial-card blockquote {
  font-size: .97rem; line-height: 1.8; color: var(--text);
  font-style: italic; margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: white;
  font-family: 'Space Grotesk', sans-serif; flex-shrink: 0;
}
.author-info strong { display: block; font-size: .95rem; color: var(--dark); }
.author-info span   { font-size: .82rem; color: var(--text-muted); }

/* ── CTA Banner ── */
.cta-section {
  background: var(--gradient); padding: 96px 0;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,.75); font-size: 1.15rem; max-width: 520px; margin: 0 auto 40px; }
.cta-actions    { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 80px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p     { font-size: .9rem; line-height: 1.8; max-width: 280px; }
.footer-col h5 {
  color: var(--white); font-size: .95rem; font-weight: 600;
  margin-bottom: 20px; font-family: 'Space Grotesk', sans-serif;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .9rem; color: rgba(255,255,255,.5); transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; font-size: .85rem; color: rgba(255,255,255,.35);
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: all var(--transition); color: rgba(255,255,255,.6);
}
.footer-socials a:hover { background: var(--primary); color: white; }

/* ── Page Hero ── */
.page-hero {
  background: var(--gradient-dark); padding: 140px 0 80px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -40%; left: 50%;
  transform: translateX(-50%); width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(79,70,229,.2) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .badge { margin-bottom: 20px; }
.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero p  { color: rgba(255,255,255,.65); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* ── Subject Sections (subjects.html) ── */
.subject-section { margin-bottom: 80px; }
.subject-section:last-child { margin-bottom: 0; }
.subject-section-header {
  display: flex; align-items: flex-start; gap: 24px;
  margin-bottom: 36px; padding-bottom: 28px; border-bottom: 2px solid var(--border);
}
.subject-section-icon {
  width: 72px; height: 72px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; flex-shrink: 0;
}
.subject-section-header .text h2 { margin-bottom: 8px; font-size: 2rem; }
.subject-section-header .text p  { font-size: 1rem; max-width: 620px; }
.subject-levels-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.subject-level-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all var(--transition);
}
.subject-level-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.level-label {
  display: inline-block; padding: 4px 14px;
  border-radius: var(--radius-full); font-size: .78rem;
  font-weight: 600; margin-bottom: 16px;
}
.label-school     { background: #ede9fe; color: var(--secondary); }
.label-university { background: #dbeafe; color: #1d4ed8; }
.label-research   { background: #fef3c7; color: var(--accent-dark); }
.subject-level-card h4 { margin-bottom: 14px; font-size: 1rem; }
.topic-list { display: flex; flex-direction: column; gap: 8px; }
.topic-list li {
  font-size: .88rem; color: var(--text-muted);
  padding-left: 18px; position: relative;
}
.topic-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--primary); font-size: .8rem;
}

/* ── Levels Page ── */
.level-full {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; margin-bottom: 96px;
}
.level-full:last-child { margin-bottom: 0; }
.level-full.reverse { direction: rtl; }
.level-full.reverse > * { direction: ltr; }
.level-full-visual {
  border-radius: var(--radius-lg); overflow: hidden;
  padding: 48px 40px; position: relative;
}
.level-full-visual.school-bg   { background: linear-gradient(135deg,#ede9fe 0%,#dbeafe 100%); }
.level-full-visual.uni-bg      { background: linear-gradient(135deg,#0f172a,#1e293b); }
.level-full-visual.research-bg { background: linear-gradient(135deg,#fef3c7,#fed7aa); }
.level-visual-icon { font-size: 5rem; margin-bottom: 24px; display: block; }
.level-visual-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.level-visual-stat {
  padding: 20px; border-radius: var(--radius);
  text-align: center;
}
.level-full-visual.school-bg .level-visual-stat   { background: rgba(255,255,255,.6); }
.level-full-visual.uni-bg .level-visual-stat      { background: rgba(255,255,255,.07); }
.level-full-visual.research-bg .level-visual-stat { background: rgba(255,255,255,.6); }
.level-visual-stat .s-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem;
  font-weight: 800; color: var(--primary); display: block;
}
.level-full-visual.uni-bg .level-visual-stat .s-num { color: #a78bfa; }
.level-full-visual.research-bg .level-visual-stat .s-num { color: var(--accent-dark); }
.level-visual-stat span:last-child { font-size: .8rem; color: var(--text-muted); }
.level-full-visual.uni-bg .level-visual-stat span:last-child { color: rgba(255,255,255,.5); }
.level-full-content .level-badge { margin-bottom: 16px; }
.level-full-content h2 { margin-bottom: 16px; }
.level-full-content > p { font-size: 1.05rem; margin-bottom: 28px; }
.level-full-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.level-full-list li {
  display: flex; gap: 14px; align-items: flex-start;
}
.list-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gradient); display: flex;
  align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0; color: white;
}
.list-text strong { display: block; font-size: .95rem; color: var(--dark); margin-bottom: 2px; }
.list-text span   { font-size: .87rem; color: var(--text-muted); }

/* ── Process Steps ── */
.process-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 24px; position: relative;
}
.process-grid::before {
  content: ''; position: absolute; top: 40px; left: 12.5%; right: 12.5%;
  height: 2px; background: linear-gradient(90deg,var(--primary),var(--secondary)); z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--gradient); color: white;
  font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 8px 20px rgba(79,70,229,.35);
}
.process-step h4 { margin-bottom: 10px; }
.process-step p  { font-size: .9rem; }

/* ── Tutor Cards ── */
.tutors-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.tutor-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--border); transition: all var(--transition);
}
.tutor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.tutor-header { padding: 36px 28px 20px; text-align: center; }
.tutor-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: white;
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 auto 16px; box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.tutor-header h3 { margin-bottom: 4px; font-size: 1.2rem; }
.tutor-role { font-size: .88rem; color: var(--primary); font-weight: 600; }
.tutor-body { padding: 0 28px 28px; }
.tutor-body p { font-size: .9rem; margin-bottom: 16px; }
.tutor-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tutor-skills span {
  padding: 4px 10px; background: var(--light-2);
  border-radius: var(--radius-full); font-size: .76rem; font-weight: 500;
}
.tutor-edu { font-size: .84rem; color: var(--text-muted); display: flex; gap: 6px; align-items: flex-start; }
.tutor-divider { height: 1px; background: var(--border); margin: 16px 0; }
.tutor-linkedin {
  display: inline-flex; align-items: center; gap: 7px;
  background: #0a66c2; color: white; font-size: .85rem; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius); text-decoration: none;
  transition: background var(--transition);
}
.tutor-linkedin:hover { background: #004182; color: white; }

/* ── Standards ── */
.standards-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.standard-item {
  text-align: center; padding: 32px 20px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: all var(--transition);
}
.standard-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.standard-icon { font-size: 2.2rem; margin-bottom: 16px; }
.standard-item h4 { margin-bottom: 8px; font-size: 1rem; }
.standard-item p  { font-size: .88rem; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; align-items: start; }
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px 32px; border: 2px solid var(--border);
  transition: all var(--transition); position: relative;
}
.pricing-card.popular {
  border-color: var(--primary); box-shadow: var(--shadow-xl);
  transform: scale(1.04);
}
.pricing-card:hover:not(.popular) { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: white;
  padding: 5px 20px; border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.pricing-level {
  font-size: .82rem; font-weight: 600; color: var(--primary);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em;
}
.pricing-card h3 { margin-bottom: 8px; font-size: 1.4rem; }
.pricing-card .price-desc { font-size: .88rem; margin-bottom: 8px; }
.price-row { display: flex; align-items: baseline; gap: 4px; margin: 24px 0; }
.currency { font-size: 1.3rem; font-weight: 700; color: var(--dark); }
.amount   { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 800; color: var(--dark); line-height: 1; }
.per      { font-size: .88rem; color: var(--text-muted); }
.pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .92rem; color: var(--text);
}
.pricing-features li::before {
  content: '✓'; width: 20px; height: 20px; border-radius: 50%;
  background: #d1fae5; color: #059669; font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}

/* ── FAQ ── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow); }
.faq-question {
  width: 100%; padding: 20px 24px; display: flex;
  align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; font-weight: 600; font-size: .95rem;
  color: var(--dark); background: var(--white); cursor: pointer;
  transition: background var(--transition); font-family: 'Inter', sans-serif;
}
.faq-question:hover { background: var(--light); }
.faq-item.open .faq-question { background: var(--light); color: var(--primary); }
.faq-chevron {
  width: 26px; height: 26px; border-radius: 50%; background: var(--light-2);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0; transition: all var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--primary); color: white; }
.faq-answer { display: none; padding: 0 24px 20px; font-size: .93rem; color: var(--text-muted); line-height: 1.8; }
.faq-item.open .faq-answer { display: block; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 56px; align-items: start; }
.contact-form {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.contact-form h3 { margin-bottom: 8px; }
.contact-form > p { font-size: .95rem; margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; color: var(--dark); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: .95rem;
  color: var(--text); background: var(--white);
  transition: border-color var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { width: 100%; justify-content: center; }
.form-success {
  display: none; text-align: center; padding: 20px;
  background: #d1fae5; border-radius: var(--radius);
  color: #065f46; font-weight: 600; margin-top: 16px; font-size: .95rem;
}
.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; gap: 16px; align-items: flex-start; transition: all var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--gradient); display: flex;
  align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-card h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-card p  { font-size: .88rem; }
.contact-card a  { color: var(--primary); font-weight: 500; font-size: .88rem; display: block; margin-top: 4px; }

/* ── Utilities ── */
.bg-light      { background: var(--light); }
.bg-dark       { background: var(--dark); }
.text-center   { text-align: center; }
.mt-48         { margin-top: 48px; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.divider {
  width: 60px; height: 4px; background: var(--gradient);
  border-radius: var(--radius-full); margin: 20px auto 0;
}

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

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid  { grid-template-columns: repeat(2,1fr); }
  .tutors-grid    { grid-template-columns: repeat(2,1fr); }
  .standards-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 36px; }
  .pricing-card.popular { transform: scale(1); }
  .level-full     { gap: 40px; }
}
@media (max-width: 900px) {
  .hero .container        { grid-template-columns: 1fr; }
  .hero-visual            { display: flex; justify-content: center; padding: 8px 0 0; }
  .dice-scene             { width: 150px; height: 150px; perspective: 650px; }
  .dice-cube              { width: 150px; height: 150px; }
  .dice-face              { width: 150px; height: 150px; border-radius: 22px; padding: 12px; }
  .dice-face.dice-front  { transform: translateZ(75px); }
  .dice-face.dice-back   { transform: rotateY(180deg) translateZ(75px); }
  .dice-face.dice-right  { transform: rotateY(90deg)  translateZ(75px); }
  .dice-face.dice-left   { transform: rotateY(-90deg) translateZ(75px); }
  .dice-face.dice-top    { transform: rotateX(90deg)  translateZ(75px); }
  .dice-face.dice-bottom { transform: rotateX(-90deg) translateZ(75px); }
  .levels-grid            { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .testimonials-grid      { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .pricing-grid           { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .subject-levels-grid    { grid-template-columns: 1fr; }
  .contact-grid           { grid-template-columns: 1fr; }
  .process-grid           { grid-template-columns: repeat(2,1fr); }
  .process-grid::before   { display: none; }
  .level-full             { grid-template-columns: 1fr; }
  .level-full.reverse     { direction: ltr; }
  .standards-grid         { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links              { display: none; position: fixed; top: 72px; left: 0; right: 0; background: rgba(15,23,42,.98); flex-direction: column; padding: 24px; gap: 4px; }
  .nav-links.open         { display: flex; }
  .nav-links a            { padding: 12px 20px; border-radius: var(--radius); }
  .hamburger              { display: flex; }
  .features-grid          { grid-template-columns: 1fr; }
  .tutors-grid            { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-grid            { grid-template-columns: 1fr; }
  .hero-stats             { gap: 24px; flex-wrap: wrap; }
  .form-row               { grid-template-columns: 1fr; }
  .contact-form           { padding: 32px 24px; }
  .section                { padding: 64px 0; }
  .subject-section-header { flex-direction: column; }
  .hero                   { padding: 80px 0 36px; }
  .hero-actions           { margin-bottom: 24px; }
}
@media (max-width: 480px) {
  .hero                   { padding: 72px 0 32px; }
  .hero-content p         { font-size: .95rem; margin-bottom: 18px; }
  .hero-content h1        { margin-bottom: 12px; }
  .hero-badge             { margin-bottom: 10px !important; }
  .hero-actions           { flex-direction: column; margin-bottom: 20px; }
  .hero-actions .btn      { justify-content: center; }
  .cta-actions            { flex-direction: column; align-items: center; }
  .standards-grid         { grid-template-columns: 1fr; }
  .process-grid           { grid-template-columns: 1fr; }
  .footer-bottom          { flex-direction: column; gap: 16px; text-align: center; }
  .pricing-grid           { max-width: 100%; }
  .dice-scene             { width: 128px; height: 128px; perspective: 560px; }
  .dice-cube              { width: 128px; height: 128px; }
  .dice-face              { width: 128px; height: 128px; border-radius: 18px; padding: 10px; gap: 7px; }
  .dice-face.dice-front  { transform: translateZ(64px); }
  .dice-face.dice-back   { transform: rotateY(180deg) translateZ(64px); }
  .dice-face.dice-right  { transform: rotateY(90deg)  translateZ(64px); }
  .dice-face.dice-left   { transform: rotateY(-90deg) translateZ(64px); }
  .dice-face.dice-top    { transform: rotateX(90deg)  translateZ(64px); }
  .dice-face.dice-bottom { transform: rotateX(-90deg) translateZ(64px); }
  .dice-face-headline    { font-size: 11px; }
  .dice-face-sub         { font-size: 9.5px; }
  .dice-pip              { width: 10px; height: 10px; }
  .dice-pip-5            { grid-template-columns: repeat(3,10px); grid-template-rows: repeat(3,10px); gap: 4px; }
  .dice-pip-grid         { gap: 4px; }
}

/* ================================================================
   ENHANCEMENTS — New Components
   ================================================================ */

/* ── Theme toggle button ── */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; transition: all var(--transition);
  margin-left: 8px; flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,.2); transform: rotate(20deg) scale(1.1); }

/* ── Hero canvas ── */
.hero-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* ── Typewriter cursor ── */
.typewriter-wrap { display: inline; }
.typewriter-cursor {
  display: inline-block; width: 3px; height: .85em;
  background: var(--accent); margin-left: 2px;
  animation: blink-caret .75s step-end infinite; vertical-align: middle;
}
@keyframes blink-caret {
  from, to { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Featured tutor card ── */
.tutor-card.tutor-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,.08), var(--shadow-xl);
  position: relative;
}
.tutor-featured-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: white;
  padding: 4px 18px; border-radius: var(--radius-full);
  font-size: .78rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(79,70,229,.35);
}

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%; transition: width .1s linear; pointer-events: none;
}

/* ── Extra icon colours ── */
.icon-stats { background: #f0fdf4; color: var(--success); }
.icon-bio   { background: #fdf4ff; color: #9333ea; }
.icon-math  { color: var(--secondary); }
.icon-code  { color: #1d4ed8; }
.icon-ai    { color: var(--success); }
.icon-data  { color: var(--accent-dark); }

/* ── Extra badge variants ── */
.badge-success { background: #d1fae5; color: #065f46; }
.badge-canada  { background: linear-gradient(135deg,#fee2e2,#fecaca); color: #991b1b; }

/* ── Money-back inline badge ── */
.mb-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3);
  color: #34d399; padding: 8px 18px; border-radius: var(--radius-full);
  font-size: .85rem; font-weight: 600;
}
.mb-dot {
  width: 8px; height: 8px; background: #34d399; border-radius: 50%;
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); }
  70%     { box-shadow: 0 0 0 10px rgba(52,211,153,0); }
}

/* ── Animated background orbs ── */
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle,rgba(79,70,229,.22) 0%,transparent 65%);
  top: -160px; left: -160px;
  animation: orb-drift 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle,rgba(124,58,237,.18) 0%,transparent 65%);
  bottom: -80px; right: 2%;
  animation: orb-drift 9s ease-in-out infinite 3s reverse;
}
.hero-orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle,rgba(245,158,11,.15) 0%,transparent 65%);
  top: 40%; left: 38%;
  animation: orb-drift 7s ease-in-out infinite 1.5s;
}
@keyframes orb-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(25px,-20px) scale(1.06); }
  66%     { transform: translate(-15px,12px) scale(.94); }
}

/* ── Floating hero cards ── */
@keyframes float-card {
  0%,100% { transform: translateY(0px);   }
  50%     { transform: translateY(-10px); }
}
.hero-card:nth-child(1) { animation: float-card 4s ease-in-out infinite; }
.hero-card:nth-child(2) { animation: float-card 4.8s ease-in-out infinite .4s; margin-top: 28px; }
.hero-card:nth-child(3) { animation: float-card 5.2s ease-in-out infinite .8s; }
.hero-card:nth-child(4) { animation: float-card 4.4s ease-in-out infinite 1.2s; margin-top: -28px; }

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

/* ── Scrolling ticker ── */
.ticker-section {
  background: #070d1c; padding: 15px 0; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ticker-track  { display: flex; width: max-content; }
.ticker-content {
  display: flex; gap: 56px; align-items: center; white-space: nowrap;
  animation: ticker-scroll 52s linear 2.5s infinite; flex-shrink: 0; padding-right: 56px;
}
.ticker-content span {
  font-size: .82rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  display: inline-flex; align-items: center; gap: 10px;
}
.ticker-sep { width: 4px; height: 4px; background: var(--primary); border-radius: 50%; opacity: .7; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Founders section (homepage) ── */
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.founder-card { display: flex; gap: 24px; align-items: flex-start; }
.founder-photo {
  width: 110px; height: 110px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 3px solid var(--primary); box-shadow: var(--shadow-md);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-info h3 { margin-bottom: 4px; font-size: 1.15rem; }
.founder-role { font-size: .88rem; color: var(--primary); font-weight: 600; margin-bottom: 10px; display: block; }
.founder-info p { font-size: .9rem; line-height: 1.7; margin-bottom: 12px; }
.founder-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.founder-tags span {
  padding: 4px 10px; background: var(--light-2); border-radius: var(--radius-full);
  font-size: .78rem; font-weight: 500; color: var(--text);
}
@media (max-width: 768px) {
  .founders-grid { grid-template-columns: 1fr; gap: 28px; }
  .founder-card { flex-direction: column; align-items: center; text-align: center; }
  .founder-tags { justify-content: center; }
}

/* ── Guarantee section ── */
.guarantee-section {
  background: linear-gradient(135deg,#010b0a 0%,#042f2e 50%,#010b0a 100%);
  padding: 40px 0; position: relative; overflow: hidden;
}
.guarantee-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(16,185,129,.1) 0%, transparent 70%);
  pointer-events: none;
}
.guarantee-header {
  text-align: center; margin-bottom: 28px; position: relative; z-index: 1;
}
.guarantee-header .badge { margin-bottom: 12px; }
.guarantee-header h2 { color: var(--white); margin-bottom: 10px; }
.guarantee-header p { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.guarantee-cta { text-align: center; margin-top: 28px; position: relative; z-index: 1; }
.guarantee-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch;
  position: relative; z-index: 1;
}
.guarantee-rows { display: flex; flex-direction: column; gap: 10px; }
.guarantee-row {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.06); border-radius: var(--radius);
  padding: 12px 16px; border: 1px solid rgba(16,185,129,.15);
  transition: all var(--transition);
}
.guarantee-row:hover { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); }
.gr-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(16,185,129,.2); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.gr-text strong { display: block; color: white; font-size: .95rem; margin-bottom: 2px; }
.gr-text span   { color: rgba(255,255,255,.5); font-size: .85rem; }
.guarantee-visual {
  background: rgba(255,255,255,.05); border-radius: var(--radius-lg);
  border: 1px solid rgba(16,185,129,.25); padding: 32px; text-align: center;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.guarantee-visual::before {
  content: ''; position: absolute; top: -40%; left: -20%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(16,185,129,.07) 0%, transparent 60%);
  pointer-events: none;
}
.guarantee-shield {
  font-size: 4rem; display: block; margin-bottom: 14px;
  filter: drop-shadow(0 0 24px rgba(16,185,129,.5)); position: relative; z-index: 1;
}
.guarantee-visual h3 { color: white; font-size: 1.75rem; margin-bottom: 6px; position: relative; z-index: 1; }
.guarantee-visual .g-tagline { color: #6ee7b7; font-size: .95rem; margin-bottom: 22px; position: relative; z-index: 1; }
.g-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.g-stat {
  background: rgba(255,255,255,.07); border-radius: var(--radius);
  padding: 14px 12px; border: 1px solid rgba(255,255,255,.06);
}
.g-stat .g-num {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem; font-weight: 800; color: #34d399; line-height: 1; margin-bottom: 4px;
}
.g-stat .g-label { font-size: .8rem; color: rgba(255,255,255,.45); }

/* ── Online Advantage section ── */
.online-advantage-section { background: var(--white); }
.online-advantage-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.online-advantage-img img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); display: block;
}
.online-advantage-content .badge { margin-bottom: 16px; }
.online-advantage-content h2 { margin-bottom: 14px; }
.online-lead { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.online-points { display: flex; flex-direction: column; gap: 18px; }
.online-point { display: flex; gap: 14px; align-items: flex-start; }
.op-icon {
  width: 40px; height: 40px; border-radius: var(--radius); flex-shrink: 0;
  background: linear-gradient(135deg,#ede9fe,#ddd6fe);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--primary);
}
.op-text strong { display: block; font-size: .95rem; margin-bottom: 3px; color: var(--dark); }
.op-text span   { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 1024px) {
  .online-advantage-grid { grid-template-columns: 1fr; gap: 36px; }
  .online-advantage-img { max-width: 560px; margin: 0 auto; }
}

/* ── Coverage strip ── */
.coverage-section {
  background: var(--white); padding: 32px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.coverage-header { text-align: center; margin-bottom: 20px; }
.coverage-header p { font-size: .9rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.coverage-header strong { color: var(--dark); }
.cov-dot-live {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.5);
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.cov-soon-badge {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-full);
  background: #f3f4f6; color: #6b7280; font-size: .78rem; font-weight: 600;
}
.coverage-grid {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.cov-item {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 16px; background: var(--light-2);
  border-radius: var(--radius-full); border: 1px solid var(--border);
  font-size: .85rem; font-weight: 500; color: var(--text);
}
.cov-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #10b981; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16,185,129,.5);
  animation: live-pulse 2s ease-out infinite;
}
.cov-item:nth-child(2)  .cov-dot { animation-delay: .15s; }
.cov-item:nth-child(3)  .cov-dot { animation-delay: .30s; }
.cov-item:nth-child(4)  .cov-dot { animation-delay: .45s; }
.cov-item:nth-child(5)  .cov-dot { animation-delay: .60s; }
.cov-item:nth-child(6)  .cov-dot { animation-delay: .75s; }
.cov-item:nth-child(7)  .cov-dot { animation-delay: .90s; }
.cov-item:nth-child(8)  .cov-dot { animation-delay: 1.05s; }
.cov-item:nth-child(9)  .cov-dot { animation-delay: 1.20s; }
.cov-item:nth-child(10) .cov-dot { animation-delay: 1.35s; }
.cov-item:nth-child(11) .cov-dot { animation-delay: 1.50s; }
.cov-item:nth-child(12) .cov-dot { animation-delay: 1.65s; }
.cov-item:nth-child(13) .cov-dot { animation-delay: 1.80s; }

/* ── Animated counter ── */
.count-num { display: inline-block; }

/* ── Pricing page extra ── */
.money-back-bar {
  background: linear-gradient(135deg,#042f2e,#065f46,#042f2e);
  padding: 24px 0; text-align: center;
}
.money-back-bar .container {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.money-back-bar span { color: rgba(255,255,255,.7); font-size: .95rem; }
.money-back-bar strong { color: #34d399; }
.money-back-bar .shield-icon { font-size: 1.5rem; }

/* ── Responsive for new sections ── */
@media (max-width: 1024px) {
  .subjects-grid-6 { grid-template-columns: repeat(2,1fr); }
  .guarantee-grid  { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .subjects-grid-6 { grid-template-columns: 1fr; }
  .ticker-content  { animation-duration: 22s; }
  .hero-orb        { display: none; }
}
@media (max-width: 480px) {
  .g-stats-grid      { grid-template-columns: 1fr; }
  .provinces-tags    { gap: 8px; }
  .prov-tag          { font-size: .78rem; padding: 7px 14px; }
}

/* ================================================================
   RESPONSIVE — Comprehensive additional fixes
   ================================================================ */

/* ── 900px: hero card stagger resets ── */
@media (max-width: 900px) {
  .hero-card:nth-child(2) { margin-top: 0 !important; }
  .hero-card:nth-child(4) { margin-top: 0 !important; }
  .hero-grid              { gap: 12px; }
}

/* ── 768px additions ── */
@media (max-width: 768px) {
  /* Page hero */
  .page-hero           { padding: 110px 0 56px; }

  /* Level full visual */
  .level-full-visual   { padding: 36px 24px; }

  /* Guarantee section spacing */
  .guarantee-section   { padding: 32px 0; }
  .guarantee-header h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }

  /* Subject tag sizing */
  .subject-tags span   { font-size: .74rem; padding: 3px 10px; }

  /* Online advantage — already collapses at 1024px; just tighten gap */
  .online-advantage-grid { gap: 28px; }

  /* Coverage strip items */
  .cov-item            { font-size: .82rem; padding: 6px 12px; }

  /* Founders section gap */
  .founders-grid       { gap: 24px; }
}

/* ── 480px: small phones ── */
@media (max-width: 480px) {
  /* Tighter container padding */
  .container           { padding: 0 16px; }

  /* Section spacing */
  .section             { padding: 48px 0; }
  .section-sm          { padding: 40px 0; }
  .cta-section         { padding: 64px 0; }
  .section-header      { margin-bottom: 44px; }
  .section-header p    { font-size: 1rem; }

  /* Page heroes */
  .page-hero           { padding: 96px 0 48px; }
  .page-hero h1        { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .page-hero p         { font-size: 1rem; }

  /* Allow gradient headline to wrap instead of overflow */
  .hero-content h1 .gradient-text { white-space: normal; }

  /* Hero stats tighter */
  .hero-stats .stat span { font-size: 1.6rem; }

  /* Subject cards — tighter icon column */
  .subject-card        { grid-template-columns: 48px 1fr; column-gap: 12px; padding: 18px 16px; }
  .subject-icon        { width: 48px; height: 48px; font-size: 1.4rem; }

  /* Subjects page large icon */
  .subject-section-icon            { width: 56px; height: 56px; font-size: 1.7rem; }
  .subject-section-header .text h2 { font-size: 1.6rem; }

  /* Founders */
  .founder-photo       { width: 88px; height: 88px; }

  /* Online advantage */
  .op-icon             { width: 34px; height: 34px; font-size: .95rem; }
  .op-text strong      { font-size: .9rem; }
  .online-points       { gap: 14px; }

  /* Guarantee */
  .guarantee-section   { padding: 28px 0; }
  .guarantee-visual    { padding: 24px 16px; }
  .guarantee-shield    { font-size: 3rem; }
  .guarantee-visual h3 { font-size: 1.4rem; }
  .guarantee-rows      { gap: 8px; }
  .guarantee-row       { padding: 10px 12px; gap: 10px; }
  .gr-icon             { width: 30px; height: 30px; font-size: .85rem; }

  /* Coverage strip */
  .coverage-section    { padding: 20px 0; }
  .cov-item            { font-size: .76rem; padding: 5px 10px; gap: 5px; }
  .cov-dot             { width: 6px; height: 6px; }

  /* Navbar theme toggle */
  .theme-toggle        { width: 34px; height: 34px; margin-left: 4px; }

  /* Tutor cards — full width on small phones */
  .tutors-grid         { max-width: 100%; }
  .tutor-header        { padding: 28px 20px 16px; }
  .tutor-body          { padding: 0 20px 20px; }

  /* Level page visual */
  .level-full-visual   { padding: 28px 20px; }
  .level-visual-stat .s-num { font-size: 1.4rem; }
  .level-full-content > p   { font-size: .95rem; }

  /* Pricing */
  .pricing-card        { padding: 32px 20px; }
  .amount              { font-size: 2.4rem; }

  /* Testimonials — full width */
  .testimonials-grid   { max-width: 100%; }
  .testimonial-card    { padding: 28px 20px; }

  /* Levels grid — full width */
  .levels-grid         { max-width: 100%; }

  /* Feature items */
  .feature-item        { padding: 24px 20px; }

  /* CTA buttons stack and centre */
  .cta-actions .btn    { width: 100%; max-width: 280px; justify-content: center; }

  /* Footer tighter top padding */
  .footer              { padding: 48px 0 0; }

  /* Contact form */
  .contact-form        { padding: 24px 16px; }

  /* Ticker */
  .ticker-content      { gap: 32px; }

  /* Coverage header text */
  .coverage-header p   { font-size: .82rem; }

  /* Money-back bar */
  .money-back-bar .container { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── 360px: very small phones ── */
@media (max-width: 360px) {
  .hero-stats          { flex-direction: column; gap: 10px; }
  .hero-stats .stat    { display: flex; align-items: center; gap: 10px; }
  .hero-stats .stat span { font-size: 1.3rem; }
  .founder-photo       { width: 76px; height: 76px; }
  .subject-card        { column-gap: 10px; padding: 16px 14px; }
  .subject-icon        { width: 44px; height: 44px; font-size: 1.25rem; }
  .hero-card           { padding: 20px 14px; }
  .step-num            { width: 64px; height: 64px; font-size: 1.2rem; }
  .pricing-card        { padding: 28px 16px; }
}

/* ================================================================
   PHOSPHOR ICONS — colours per container
   ================================================================ */

/* Containers that already set font-size pass it down to the SVG icon.
   We only need to force a foreground colour where it's not yet set. */

.feature-icon i        { color: white; }
.gr-icon i             { color: #34d399; font-size: 1.1rem; }
.standard-icon i       { color: var(--primary); font-size: 2rem; }
.list-icon i           { color: white; font-size: .9rem; }
.contact-card-icon     { color: white; }
.contact-card-icon i   { font-size: 1.3rem; }

/* Subject & section icon sizes */
.subject-icon i,
.subject-section-icon i { font-size: 1.6rem; }

/* Hero card icon (∑ and </> stay text, Phosphor icons need explicit colour) */
.hero-card .card-icon i { color: var(--accent); font-size: 2rem; }

/* Level visual icon (large block icon above stats) */
.level-visual-icon i   { font-size: 4.5rem; display: block; }
.school-bg   .level-visual-icon i { color: var(--secondary); }
.uni-bg      .level-visual-icon i { color: #a78bfa; }
.research-bg .level-visual-icon i { color: var(--accent-dark); }

/* ================================================================
   IMAGE PLACEHOLDERS — tutor avatars & illustrations
   ================================================================ */

/* Tutor avatar: if an <img> is inside, fill the circle */
.tutor-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
  display: block;
}

/* Testimonial avatar: same treatment */
.author-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
  display: block;
}

/* Generic image placeholder box (used before real images are added) */
.img-placeholder {
  background: linear-gradient(135deg, var(--light-2), var(--border));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .85rem; font-style: italic;
  min-height: 260px;
}

/* ================================================================
   DARK MODE
   ================================================================ */
[data-theme="dark"] {
  --white:      #1a1b2e;
  --light:      #20213a;
  --light-2:    #252645;
  --border:     rgba(255,255,255,.1);
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
}

[data-theme="dark"] body { background: var(--white); color: var(--text); }

/* Cards & panels */
[data-theme="dark"] .subject-card,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .tutor-card,
[data-theme="dark"] .standard-item,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .subject-level-card {
  background: var(--light);
  border-color: var(--border);
}
[data-theme="dark"] .faq-item       { border-color: var(--border); }
[data-theme="dark"] .faq-question   { background: var(--light); color: var(--text); }
[data-theme="dark"] .faq-question:hover { background: var(--light-2); }
[data-theme="dark"] .faq-item.open .faq-question { background: var(--light-2); color: var(--primary); }
[data-theme="dark"] .faq-chevron    { background: var(--light-2); }
[data-theme="dark"] .faq-answer     { color: var(--text-muted); }

/* Backgrounds */
[data-theme="dark"] .bg-light { background: var(--light) !important; }
[data-theme="dark"] .provinces-section { background: var(--light); border-color: var(--border); }
[data-theme="dark"] .prov-tag { background: var(--light-2); border-color: var(--border); color: var(--text-muted); }
[data-theme="dark"] .prov-tag:hover { background: rgba(79,70,229,.2); }

/* Level cards (the coloured gradient ones) */
[data-theme="dark"] .level-card.school   { background: linear-gradient(135deg,#2a1b5c,#1a2a5c); }
[data-theme="dark"] .level-card.research { background: linear-gradient(135deg,#3a2510,#2d1d0a); }
[data-theme="dark"] .level-card.school h3 { color: #e0d7ff; }
[data-theme="dark"] .level-card.school .level-list li { color: rgba(255,255,255,.7); }
[data-theme="dark"] .level-card.school .level-list li::before { color: #a78bfa; }
[data-theme="dark"] .level-card.research h3 { color: #fde68a; }
[data-theme="dark"] .level-card.research p { color: rgba(255,255,255,.65); }
[data-theme="dark"] .level-card.research .level-list li { color: rgba(255,255,255,.65); }

/* Typography */
[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4,
[data-theme="dark"] h5 { color: #f1f5f9; }
[data-theme="dark"] p  { color: var(--text-muted); }
[data-theme="dark"] .subject-card h3,
[data-theme="dark"] .feature-item h4,
[data-theme="dark"] .testimonial-card blockquote,
[data-theme="dark"] .pricing-card h3 { color: #f1f5f9; }
[data-theme="dark"] .testimonial-card blockquote { color: var(--text); }
[data-theme="dark"] .author-info strong { color: #f1f5f9; }

/* Tags & badges */
[data-theme="dark"] .subject-tags span { background: var(--light-2); color: var(--text-muted); }
[data-theme="dark"] .tutor-skills span { background: var(--light-2); color: var(--text-muted); }
[data-theme="dark"] .level-badge.label-school { background: rgba(167,139,250,.2); color: #c4b5fd; }
[data-theme="dark"] .topic-list li { color: var(--text-muted); }
[data-theme="dark"] .level-full-list .list-text span { color: var(--text-muted); }
[data-theme="dark"] .level-full-list .list-text strong { color: #f1f5f9; }

/* Dividers & borders */
[data-theme="dark"] .tutor-divider { background: var(--border); }
[data-theme="dark"] .subject-section-header { border-bottom-color: var(--border); }
[data-theme="dark"] .subject-section-header .text p { color: var(--text-muted); }

/* Form inputs */
[data-theme="dark"] .form-group label { color: #f1f5f9; }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: var(--light-2); border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder { color: rgba(148,163,184,.5); }
[data-theme="dark"] .form-group select option { background: var(--light); }

/* Process steps */
[data-theme="dark"] .process-step h4 { color: #f1f5f9; }
[data-theme="dark"] .process-step p  { color: var(--text-muted); }

/* Standards */
[data-theme="dark"] .standard-item h4 { color: #f1f5f9; }

/* Contact sidebar cards */
[data-theme="dark"] .contact-card h4 { color: #f1f5f9; }
[data-theme="dark"] .contact-card a  { color: #a78bfa; }

/* Pricing specific */
[data-theme="dark"] .pricing-card { background: var(--light); border-color: var(--border); }
[data-theme="dark"] .pricing-card.popular { border-color: var(--primary); }
[data-theme="dark"] .pricing-level { color: #a78bfa; }
[data-theme="dark"] .currency, [data-theme="dark"] .amount { color: #f1f5f9; }
[data-theme="dark"] .pricing-features li { color: var(--text); }

/* Footer stays dark */
[data-theme="dark"] .footer { background: #0d0d1a; }

/* Subject & section icons — restore visibility in dark mode */
[data-theme="dark"] .icon-math  { background: rgba(124,58,237,.25);  color: #a78bfa; }
[data-theme="dark"] .icon-stats { background: rgba(16,185,129,.25);   color: #34d399; }
[data-theme="dark"] .icon-bio   { background: rgba(192,86,255,.25);   color: #c084fc; }
[data-theme="dark"] .icon-code  { background: rgba(59,130,246,.25);   color: #60a5fa; }
[data-theme="dark"] .icon-ai    { background: rgba(52,211,153,.25);   color: #34d399; }
[data-theme="dark"] .icon-data  { background: rgba(245,158,11,.25);   color: #fbbf24; }

/* subject-section-icon (subjects.html large icons) */
[data-theme="dark"] .subject-section-icon { color: inherit; }

/* Hero canvas orbs — slightly more visible in dark mode */
[data-theme="dark"] .hero-orb-1 { background: radial-gradient(circle,rgba(79,70,229,.38) 0%,transparent 65%); }
[data-theme="dark"] .hero-orb-2 { background: radial-gradient(circle,rgba(124,58,237,.3) 0%,transparent 65%); }
[data-theme="dark"] .hero-orb-3 { background: radial-gradient(circle,rgba(245,158,11,.25) 0%,transparent 65%); }
