*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue:        #2563EB;
  --blue-dark:   #1D4ED8;
  --blue-light:  #3B82F6;
  --blue-soft:   #EFF6FF;
  --blue-mid:    #DBEAFE;
  --blue-border: #BFDBFE;
  --white:       #FFFFFF;
  --off-white:   #F8FAFF;
  --text:        #0F172A;
  --text-mid:    #334155;
  --text-light:  #64748B;
  --card:        #FFFFFF;
  --shadow:      rgba(37,99,235,0.10);
  --shadow-deep: rgba(37,99,235,0.18);
  --red:         #DC2626;
  --green:       #16A34A;
  --amber:       #F59E0B;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

/* Navbar + footer styles now live in public-shell.css (shared across all public pages). */

/* ══════════════════════ HERO ══════════════════════ */
#home {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 7rem 6% 4rem;
  background: linear-gradient(160deg, #F0F7FF 0%, #FFFFFF 55%, #EEF4FF 100%);
}

#home::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.055) 1px, transparent 1px);
  background-size: 48px 48px;
}

#home::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 65% 55% at 65% 35%, rgba(37,99,235,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 15% 75%, rgba(96,165,250,0.10) 0%, transparent 60%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  width: 100%; max-width: 1200px; margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-soft);
  border: 1.5px solid var(--blue-border);
  padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; color: var(--blue);
  margin-bottom: 1.5rem;
  animation: fadeDown 0.6s ease both;
  letter-spacing: 0.02em;
}
.hero-eyebrow::before {
  content: ''; width: 7px; height: 7px;
  background: var(--blue); border-radius: 50%;
  animation: pulse 2s infinite;
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  font-weight: 700; line-height: 1.1; color: var(--text);
  margin-bottom: 1.4rem;
  animation: fadeUp 0.7s 0.1s ease both;
}
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue) 0%, #60a5fa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-desc {
  font-size: 1.05rem; color: var(--text-light);
  line-height: 1.75; max-width: 480px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; border: none; cursor: pointer;
  padding: 0.9rem 2rem; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem;
  font-family: 'Inter', sans-serif; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 22px rgba(37,99,235,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(37,99,235,0.45); }

.btn-secondary {
  background: #fff; color: var(--blue);
  border: 2px solid var(--blue-border);
  padding: 0.9rem 2rem; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem;
  font-family: 'Inter', sans-serif; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 4px 14px rgba(37,99,235,0.12);
}

/* Floating exam card */
.hero-visual { position: relative; animation: fadeUp 0.8s 0.2s ease both; }

.exam-card {
  background: #fff;
  border: 1.5px solid var(--blue-border);
  border-radius: 20px; padding: 2rem;
  box-shadow: 0 30px 70px rgba(37,99,235,0.12), 0 4px 16px rgba(0,0,0,0.06);
  animation: float 4s ease-in-out infinite;
}

.exam-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.4rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--blue-mid);
}
.exam-subject { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); font-weight: 700; }
.exam-badge {
  background: var(--blue-soft); color: var(--blue);
  padding: 0.25rem 0.75rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700; border: 1px solid var(--blue-border);
}

.exam-question { font-size: 0.92rem; font-weight: 600; color: var(--text); line-height: 1.6; margin-bottom: 1.4rem; }

.exam-options { display: flex; flex-direction: column; gap: 0.55rem; }
.option {
  padding: 0.6rem 1rem; border-radius: 8px;
  border: 1.5px solid #E2EAF4;
  font-size: 0.84rem; color: var(--text-light);
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: all 0.2s; background: var(--off-white);
}
.option.correct { border-color: #2563EB; background: #EFF6FF; color: var(--blue); }
.option.wrong   { border-color: #FCA5A5; background: #FFF5F5; color: #DC2626; }
.option-letter {
  width: 22px; height: 22px; border-radius: 6px;
  background: #E2EAF4;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; flex-shrink: 0; color: var(--text-mid);
}
.option.correct .option-letter { background: var(--blue); color: #fff; }
.option.wrong   .option-letter { background: #DC2626; color: #fff; }



.mini-card {
  position: absolute; bottom: -20px; left: -28px;
  background: #fff;
  border: 1.5px solid var(--blue-border);
  border-radius: 14px; padding: 0.9rem 1.2rem;
  box-shadow: 0 16px 36px rgba(37,99,235,0.12);
  min-width: 155px;
  animation: float 4s 2s ease-in-out infinite;
}
.mini-card-label { font-size: 0.68rem; color: var(--text-light); margin-bottom: 4px; font-weight: 500; }
.mini-card-value { font-size: 1.5rem; font-weight: 900; color: var(--blue); }

/* ══════════════════════ STATS BAR ══════════════════════ */
.stats-bar {
  background: var(--blue);
  padding: 3rem 6%;
}
.stats-inner {
  display: flex; justify-content: space-around; align-items: center;
  max-width: 900px; margin: 0 auto; flex-wrap: wrap; gap: 2rem;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem; font-weight: 700; color: #fff; line-height: 1;
}
.stat-number span { color: #BFDBFE; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 5px; }
.stat-divider {
  width: 1px; height: 50px; background: rgba(255,255,255,0.2);
}

/* ══════════════════════ SECTIONS ══════════════════════ */
section { padding: 6rem 6%; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.73rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--blue); margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 700; line-height: 1.2; color: var(--text);
  margin-bottom: 1rem;
}
.section-desc { font-size: 1.02rem; color: var(--text-light); line-height: 1.75; max-width: 540px; }

/* ══════════════════════ FEATURES ══════════════════════ */
#features { background: var(--off-white); }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3.5rem;
}

.feature-card {
  background: #fff;
  border: 1.5px solid #E8F0FD;
  border-radius: 16px; padding: 2rem;
  transition: box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover {
  box-shadow: 0 12px 32px rgba(37,99,235,0.08);
  border-color: var(--blue-border);
}
.feature-card:hover::before { opacity: 1; }

.feature-card.highlight {
  border-color: var(--blue-border);
  background: linear-gradient(135deg, #F0F7FF 0%, #fff 100%);
}

/*
 * Feature emoji popup:
 * Outer .feature-icon = fixed hit area (never moves — prevents hover flicker)
 * Inner .feature-icon-face = only this lifts + scales
 */
#features .feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 5;
  display: block;
  cursor: pointer;
  /* hit box stays put */
  background: transparent;
  border: none;
  padding: 0;
}
#features .feature-icon-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 2px;
  border-radius: 14px;
  background: var(--blue-soft);
  border: 1.5px solid var(--blue-border);
  box-shadow: none;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center bottom;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    background 0.25s ease,
    border-color 0.25s ease;
  will-change: transform;
  pointer-events: none; /* hover stays on outer .feature-icon */
}
#features .feature-icon-face .ex-icon {
  width: 34px !important;
  height: 34px !important;
  pointer-events: none;
}
#features .feature-icon-face::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 72%;
  height: 12px;
  transform: translateX(-50%) scaleX(0.35);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37,99,235,0.28) 0%, transparent 72%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
}

/* Spring popup — only when hovering the emoji hit area */
#features .feature-card:hover .feature-icon-face,
#features .feature-icon.is-pop .feature-icon-face {
  transform: translate3d(0, -14px, 0) scale(1.3);
  background: linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 100%);
  border-color: #93C5FD;
  box-shadow:
    0 18px 30px rgba(37,99,235,0.28),
    0 0 0 5px rgba(37,99,235,0.1);
}
#features .feature-card:hover .feature-icon-face::after,
#features .feature-icon.is-pop .feature-icon-face::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1.15);
}

.feature-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; }
.feature-desc { font-size: 0.86rem; color: var(--text-light); line-height: 1.65; }

@media (prefers-reduced-motion: reduce) {
  #features .feature-icon-face {
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  }
  #features .feature-card:hover .feature-icon-face,
  #features .feature-icon.is-pop .feature-icon-face {
    transform: none;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
  }
  .resource-icon, .value-icon {
    transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
  }
  .resource-card:hover .resource-icon,
  .value-item:hover .value-icon {
    transform: none;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
  }
  .resource-icon::after, .value-icon::after { display: none; }
}

/* ══════════════════════ TELEGRAM ══════════════════════ */
#telegram {
  background: #fff;
  border-top: 1px solid var(--blue-mid);
  border-bottom: 1px solid var(--blue-mid);
  --tg-blue: #0088CC;
  --tg-blue-dark: #0077B5;
  --tg-ink: #0F1720;
  --tg-muted: #6B7280;
  --tg-line: #E6E9EE;
  --tg-bg-panel: #F7F9FB;
  --tg-green: #16A34A;
}

.telegram-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
  max-width: 1100px; margin: 0 auto;
}

/* Eyebrow dot */
#telegram .tg-eyebrow-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--tg-blue); margin-right: 6px;
}

/* Feature list */
#telegram .tg-feature-list {
  list-style: none; padding: 0; margin: 0 0 1.75rem;
  display: flex; flex-direction: column; gap: 0.65rem;
}
#telegram .tg-feature-list li {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--tg-ink); font-size: 0.98rem;
}
#telegram .tg-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-dark));
  color: #fff; flex-shrink: 0;
}

/* CTAs */
#telegram .tg-cta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
#telegram .tg-btn-primary { background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-dark)); }
#telegram .tg-btn-ghost {
  color: var(--tg-blue-dark); font-weight: 600; text-decoration: none;
  font-size: 0.95rem; transition: opacity 0.15s ease;
}
#telegram .tg-btn-ghost:hover { opacity: 0.7; }
#telegram .tg-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--tg-muted); }

/* Preview shell */
#telegram .telegram-preview {
  background: #fff; border: 1px solid var(--tg-line); border-radius: 20px;
  overflow: hidden; box-shadow: 0 20px 50px -20px rgba(15,23,32,0.18);
}
#telegram .tg-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--tg-line);
}
#telegram .tg-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-dark));
  color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#telegram .tg-name { font-weight: 700; color: var(--tg-ink); font-size: 0.95rem; }
#telegram .tg-sub { font-size: 0.8rem; color: var(--tg-muted); display: flex; align-items: center; gap: 5px; }
#telegram .tg-online-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--tg-green);
  box-shadow: 0 0 0 0 rgba(22,163,74,0.5); animation: tg-pulse 2s infinite;
}
@keyframes tg-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,0.45); }
  70%  { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

/* Tabs (CSS-only radio trick) */
#telegram .tg-tab-input { position: absolute; opacity: 0; pointer-events: none; }
#telegram .tg-tab-switch { display: flex; gap: 0.4rem; padding: 0.75rem 1.25rem 0; }
#telegram .tg-tab-label {
  cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--tg-muted);
  padding: 0.5rem 0.9rem; border-radius: 999px; transition: all 0.15s ease;
  background: var(--tg-bg-panel);
}
#telegram #tg-tab-updates:checked ~ .tg-tab-switch label[for="tg-tab-updates"],
#telegram #tg-tab-quiz:checked ~ .tg-tab-switch label[for="tg-tab-quiz"] {
  background: var(--tg-blue); color: #fff;
}
#telegram .tg-tab-panel { display: none; padding: 1.25rem; }
#telegram #tg-tab-updates:checked ~ #tg-panel-updates { display: block; }
#telegram #tg-tab-quiz:checked ~ #tg-panel-quiz { display: block; }

/* Channel post cards (Updates tab) */
#telegram .tg-post {
  background: var(--tg-bg-panel); border: 1px solid var(--tg-line);
  border-radius: 14px; padding: 1rem; margin-bottom: 1rem;
}
#telegram .tg-post:last-child { margin-bottom: 0; }
#telegram .tg-post-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.65rem; }
#telegram .tg-post-icon {
  width: 32px; height: 32px; border-radius: 9px; background: #fff; border: 1px solid var(--tg-line);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
#telegram .tg-post-title { font-weight: 700; font-size: 0.88rem; color: var(--tg-ink); }
#telegram .tg-post-date  { font-size: 0.75rem; color: var(--tg-muted); margin-top: 1px; }
#telegram .tg-post-body  { font-size: 0.86rem; color: var(--tg-ink); line-height: 1.6; }
#telegram .tg-post-line  { margin-bottom: 2px; }
#telegram .tg-post-muted { color: var(--tg-muted); font-weight: 600; }
#telegram .tg-post-quote { font-style: italic; color: var(--tg-ink); }
#telegram .tg-post-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--tg-line);
  font-size: 0.72rem; color: var(--tg-muted);
}
#telegram .tg-post-time { font-size: 0.72rem; color: var(--tg-muted); margin-top: 0.5rem; text-align: right; }

/* Quiz card (Practice Quiz tab) */
#telegram .tg-quiz-card {
  background: var(--tg-bg-panel); border: 1px solid var(--tg-line);
  border-radius: 14px; padding: 1rem;
}
#telegram .tg-quiz-top {
  display: flex; justify-content: space-between; font-size: 0.78rem;
  color: var(--tg-muted); font-weight: 600; margin-bottom: 0.75rem;
}
#telegram .tg-quiz-question { font-size: 0.92rem; color: var(--tg-ink); margin-bottom: 1rem; line-height: 1.5; }
#telegram .tg-quiz-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.75rem;
}
#telegram .tg-option-wide { grid-column: 1 / -1; }
#telegram .tg-option {
  border: 1px solid var(--tg-line); background: #fff; border-radius: 10px;
  padding: 0.6rem 0.75rem; font-size: 0.85rem; text-align: left; cursor: pointer;
  color: var(--tg-ink); transition: border-color 0.15s ease, background 0.15s ease;
}
#telegram .tg-option:hover { border-color: var(--tg-blue); background: #F0F8FC; }
#telegram .tg-submit {
  width: 100%; background: var(--tg-green); color: #fff; border: none;
  border-radius: 10px; padding: 0.65rem; font-weight: 600; font-size: 0.88rem; cursor: pointer;
}
#telegram .tg-quiz-caption { text-align: center; font-size: 0.78rem; color: var(--tg-muted); margin-top: 0.75rem; }

/* ══════════════════════ PLANS ══════════════════════ */
#plans { background: var(--off-white); }

/* Billing period switcher (home plans) */
.home-duration-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.15rem;
  margin: 2rem auto 0;
  padding: 0.85rem 1.15rem;
  background: #fff;
  border: 1.5px solid #E8F0FD;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.06);
  max-width: 640px;
}
.home-duration-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.home-duration-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  background: #F8FAFC;
  padding: 4px;
  border-radius: 100px;
  border: 1px solid #E8F0FD;
}
.home-duration-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-mid);
  border-radius: 100px;
  padding: 0.5rem 1.05rem;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.home-duration-tab:hover { color: var(--blue); }
.home-duration-tab.is-active {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
.plan-monthly-eq {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}
.plan-save-badge {
  display: inline-block;
  margin-top: 8px;
  background: #ECFDF5;
  border: 1px solid #BBF7D0;
  color: #047857;
  border-radius: 100px;
  padding: 0.2rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.plan-card.is-unavailable {
  opacity: 0.42;
  filter: grayscale(0.1);
  pointer-events: none;
  transform: none !important;
}

.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem;
}

.plan-card {
  background: #fff;
  border: 1.5px solid #E8F0FD;
  border-radius: 20px; padding: 2.25rem;
  position: relative; transition: transform 0.3s, box-shadow 0.3s;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(37,99,235,0.11); }

.plan-card.popular {
  border-color: var(--blue);
  box-shadow: 0 8px 40px rgba(37,99,235,0.14);
  background: linear-gradient(160deg, #F0F7FF 0%, #fff 100%);
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  padding: 0.25rem 1rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

.plan-name { font-size: 0.76rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.7rem; }
.plan-price { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.plan-price sub { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.plan-period { font-size: 0.78rem; color: var(--text-light); margin-bottom: 1.5rem; }

.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.86rem; color: var(--text-mid);
  padding: 0.48rem 0;
  border-bottom: 1px solid #F0F4FF;
}
.plan-features li::before { content: '\2713'; color: var(--blue); font-weight: 800; flex-shrink: 0; }

.plan-btn {
  display: block; text-align: center; padding: 0.85rem;
  border-radius: 10px; font-weight: 700; font-size: 0.9rem;
  font-family: 'Inter', sans-serif; cursor: pointer;
  border: none; width: 100%; text-decoration: none; transition: all 0.2s;
}
.plan-btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.plan-btn.primary:hover { box-shadow: 0 8px 24px rgba(37,99,235,0.4); transform: translateY(-1px); }
.plan-btn.outline {
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue-border);
}
.plan-btn.outline:hover { border-color: var(--blue); background: var(--blue-soft); }

/* ══════════════════════ RESOURCES ══════════════════════ */
#resources { background: #fff; }

.resources-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }

.resource-card {
  background: var(--off-white);
  border: 1.5px solid #E8F0FD;
  border-radius: 16px; padding: 1.75rem;
  display: flex; gap: 1.2rem; align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-decoration: none; color: inherit;
}
.resource-card:hover {
  border-color: var(--blue-border);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(37,99,235,0.09);
  background: #fff;
}
.resource-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  position: relative;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center bottom;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  will-change: transform;
}
.resource-icon::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -6px;
  width: 72%; height: 12px;
  transform: translateX(-50%) scaleX(0.35);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37,99,235,0.28) 0%, transparent 72%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
}
.resource-card:hover .resource-icon {
  transform: translate3d(0, -12px, 0) scale(1.22);
  box-shadow: 0 16px 26px rgba(37,99,235,0.22);
}
.resource-card:hover .resource-icon::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1.15);
}
.resource-title { font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.resource-desc { font-size: 0.83rem; color: var(--text-light); line-height: 1.6; }

/* ══════════════════════ ABOUT ══════════════════════ */
#about { background: var(--off-white); }

.about-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
  max-width: 1100px; margin: 0 auto;
}

.about-values { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2.5rem; }
.value-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem; border-radius: 14px;
  background: #fff; border: 1.5px solid #E8F0FD;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.value-item:hover { border-color: var(--blue-border); box-shadow: 0 6px 20px rgba(37,99,235,0.08); }
.value-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--blue-soft); border: 1.5px solid var(--blue-border);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  position: relative;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center bottom;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.value-icon::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -6px;
  width: 72%; height: 12px;
  transform: translateX(-50%) scaleX(0.35);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37,99,235,0.28) 0%, transparent 72%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
}
.value-item:hover .value-icon {
  transform: translate3d(0, -12px, 0) scale(1.25);
  background: linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 100%);
  border-color: #93C5FD;
  box-shadow: 0 16px 26px rgba(37,99,235,0.24), 0 0 0 5px rgba(37,99,235,0.1);
}
.value-item:hover .value-icon::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1.15);
}
.value-title { font-size: 0.93rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.value-desc { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }

.about-visual {
  background: var(--blue);
  border-radius: 24px; padding: 2.5rem; text-align: center;
  box-shadow: 0 30px 60px rgba(37,99,235,0.25);
  position: relative; overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}
.about-map-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; position: relative; }
.sl-flag { font-size: 5rem; margin-bottom: 1rem; display: block; position: relative; }
.about-visual .country-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem; font-weight: 700; color: #fff; position: relative;
}
.about-visual .country-sub { font-size: 0.82rem; color: rgba(255,255,255,0.65); position: relative; margin-top: 3px; }

.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; position: relative; }
.about-stat {
  background: rgba(255,255,255,0.12);
  border-radius: 12px; padding: 1.2rem;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
}
.about-stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; font-weight: 700; color: #fff; }
.about-stat-label { font-size: 0.73rem; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* ══════════════════════ REVIEWS ══════════════════════ */
#reviews { background: #fff; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; }

.review-card {
  background: var(--off-white);
  border: 1.5px solid #E8F0FD;
  border-radius: 16px; padding: 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.review-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  opacity: 0; transition: opacity 0.3s;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(37,99,235,0.11);
  border-color: var(--blue-border);
  background: #fff;
}
.review-card:hover::before { opacity: 1; }

.stars { color: #F59E0B; font-size: 0.88rem; margin-bottom: 0.9rem; letter-spacing: 2px; }
.review-quote { font-size: 2.8rem; color: var(--blue-border); font-family: 'Space Grotesk', sans-serif; line-height: 0.7; margin-bottom: 0.4rem; }
.review-text { font-size: 0.88rem; line-height: 1.7; color: var(--text-light); margin-bottom: 1.4rem; }
.reviewer { display: flex; align-items: center; gap: 10px; padding-top: 1rem; border-top: 1px solid var(--blue-mid); }
.reviewer-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 700; flex-shrink: 0;
}
.reviewer-name { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.reviewer-sub { font-size: 0.73rem; color: var(--text-light); }

/* ══════════════════════ CONTACT ══════════════════════ */
#contact { background: var(--off-white); }

.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  max-width: 1000px; margin: 0 auto;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-size: 0.78rem; font-weight: 600; color: var(--text-mid); }
.contact-form input, .contact-form textarea {
  background: #fff; border: 1.5px solid #DDE6F5;
  border-radius: 10px; padding: 0.78rem 1rem;
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.88rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #B0BEC5; }
.contact-form textarea { resize: vertical; min-height: 120px; }

.alert-success {
  background: #F0FDF4; border: 1.5px solid #BBF7D0; color: #166534;
  padding: 0.8rem 1.2rem; border-radius: 10px; font-size: 0.84rem; margin-bottom: 1rem;
}

.contact-info { padding-top: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.5rem; }
.contact-item-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--blue-soft); border: 1.5px solid var(--blue-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item-label { font-size: 0.72rem; color: var(--text-light); font-weight: 500; }
.contact-item-value { font-size: 0.9rem; font-weight: 700; color: var(--text); }

.contact-info-box {
  margin-top: 2rem; padding: 1.5rem;
  background: #fff; border-radius: 14px;
  border: 1.5px solid var(--blue-border);
  box-shadow: 0 6px 20px rgba(37,99,235,0.07);
}
.contact-info-box .label { font-size: 0.76rem; color: var(--text-light); margin-bottom: 4px; }
.contact-info-box .value { font-size: 1rem; font-weight: 700; color: var(--blue); }
.contact-info-box .sub { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }

/* ══════════════════════ SRI LANKA MAP ══════════════════════ */
.map-visual {
  background: var(--blue);
  border-radius: 24px; padding: 2rem;
  box-shadow: 0 30px 60px rgba(37,99,235,0.25);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.map-header { text-align: center; position: relative; margin-bottom: 1rem; width: 100%; }
.map-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; color: #fff; }
.map-subtitle { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-top: 3px; }

.map-container {
  position: relative; width: 100%; max-width: 380px;
  display: flex; justify-content: center;
}
.sl-map-svg {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}
.district-region {
  cursor: pointer;
  transition: fill 0.25s, fill-opacity 0.25s, stroke 0.25s, stroke-width 0.25s;
}
.district-region:hover {
  fill-opacity: 0.5 !important;
  stroke: #fff !important;
  stroke-width: 2.5 !important;
  filter: drop-shadow(0 0 8px rgba(96,165,250,0.6));
}
.district-dot {
  cursor: pointer;
  transition: filter 0.2s;
}
.district-dot:hover {
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.8)) brightness(1.3);
}
.district-count {
  fill: #fff; font-size: 11px; font-weight: 800;
  font-family: 'Space Grotesk', sans-serif; pointer-events: none;
}

.map-tooltip {
  position: absolute; background: #fff; color: var(--text);
  border-radius: 10px; padding: 0.6rem 1rem; font-size: 0.82rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); pointer-events: none;
  opacity: 0; transition: opacity 0.2s; z-index: 10; white-space: nowrap;
}
.map-tooltip.visible { opacity: 1; }
.map-tooltip .tt-name { font-weight: 700; margin-bottom: 3px; }
.map-tooltip .tt-row { display: flex; gap: 0.8rem; font-size: 0.78rem; color: var(--text-mid); }

.map-legend { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; position: relative; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

.map-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; position: relative; }
.map-total-item { background: rgba(255,255,255,0.12); border-radius: 12px; padding: 1rem; border: 1px solid rgba(255,255,255,0.2); text-align: center; }
.map-total-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; font-weight: 700; color: #fff; }
.map-total-label { font-size: 0.73rem; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* ══════════════════════ INSTRUCTORS ══════════════════════ */
#instructors { background: var(--off-white); }

.instructor-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.inst-stat-card { background: #fff; border: 1.5px solid #E8F0FD; border-radius: 14px; padding: 1.5rem; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.inst-stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(37,99,235,0.08); }
.inst-stat-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.inst-stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--blue); }
.inst-stat-label { font-size: 0.78rem; color: var(--text-light); margin-top: 3px; }

.instructors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.instructor-card {
  background: #fff; border: 1.5px solid #E8F0FD; border-radius: 16px;
  padding: 1.75rem; text-align: center; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.instructor-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(37,99,235,0.10); border-color: var(--blue-border); }
.instructor-avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; margin: 0 auto 0.75rem; }
.instructor-name { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.instructor-subject { font-size: 0.8rem; color: var(--blue); font-weight: 600; margin-bottom: 0.75rem; }
.instructor-stats { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; }
.instructor-stats .pill { font-size: 0.72rem; }

/* Footer styles now live in public-shell.css (shared across all public pages). */

/* ══════════════════════ ANIMATIONS ══════════════════════ */
@keyframes fadeUp   { from { opacity:0; transform:translateY(26px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-14px); } to { opacity:1; transform:translateY(0); } }
@keyframes float    { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-12px); } }
@keyframes pulse    { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.4); } }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%;
  background: rgba(37,99,235,0.18);
  animation: particleRise linear infinite;
}
@keyframes particleRise {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-80px) scale(1.1); opacity: 0; }
}

/* ══════════════════════ RESPONSIVE ══════════════════════ */
@media (prefers-reduced-motion: reduce) {
  #telegram .tg-online-dot { animation: none; }
}
@media (max-width: 640px) {
  #telegram .tg-quiz-options { grid-template-columns: 1fr; }
  #telegram .tg-cta-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 960px) {
  .hero-inner, .telegram-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { display: none; }
  .features-grid, .plans-grid, .reviews-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .instructor-stats { grid-template-columns: 1fr 1fr; }
  .instructors-grid { grid-template-columns: 1fr 1fr; }
  .stat-divider { display: none; }
  .home-duration-bar { flex-direction: column; gap: 0.65rem; }
  .home-duration-tabs { width: 100%; justify-content: center; }
  .home-duration-tab { flex: 1; text-align: center; padding: 0.5rem 0.45rem; font-size: 0.78rem; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .instructor-stats { grid-template-columns: 1fr; }
  .instructors-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
