:root {
  --primary: #006A8F;
  --primary-dark: #005577;
  --primary-light: #008AB8;
  --secondary: #8E44AD;
  --text: #05232D;
  --text-light: #4A6572;
  --text-muted: #7A9BAB;
  --bg: #FFFFFF;
  --bg-soft: #F5F9FB;
  --bg-card: #FFFFFF;
  --border: #DDE8ED;
  --student: #006A8F;
  --teacher: #8E44AD;
  --institute: #1A6B45;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  z-index: 1000;
  gap: 12px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.nav-logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--primary); background: var(--bg-soft); }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(160deg, #EAF4F8 0%, #FFFFFF 50%, #F3EAF8 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,106,143,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -200px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(142,68,173,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
  max-width: 820px;
  margin-bottom: 24px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-light);
  max-width: 580px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 80px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,106,143,0.28);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,106,143,0.34); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-ghost:hover { background: rgba(0,106,143,0.06); transform: translateY(-1px); }
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat { text-align: center; }
.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── SECTIONS ─── */
section { padding: 96px 24px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 17px;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── APPS ─── */
.apps-section { background: var(--bg); }
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.app-card {
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.app-card .app-downloads { margin-top: auto; }
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
}
.app-card.student::before { background: linear-gradient(90deg, var(--student), #008AB8); }
.app-card.teacher::before { background: linear-gradient(90deg, var(--teacher), #6C3483); }
.app-card.institute::before { background: linear-gradient(90deg, var(--institute), #145A32); }
.app-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(5,35,45,0.1); }
.app-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.app-icon svg {
  width: 26px; height: 26px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.app-card.student .app-icon { background: rgba(0,106,143,0.1); color: var(--student); }
.app-card.teacher .app-icon { background: rgba(142,68,173,0.1); color: var(--teacher); }
.app-card.institute .app-icon { background: rgba(26,107,69,0.1); color: var(--institute); }
.app-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.app-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 14px;
}
.student .app-tag { background: rgba(0,106,143,0.1); color: var(--student); }
.teacher .app-tag { background: rgba(142,68,173,0.1); color: var(--teacher); }
.institute .app-tag { background: rgba(26,107,69,0.1); color: var(--institute); }
.app-card p {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 28px;
}
.app-downloads { display: flex; flex-direction: column; gap: 12px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.store-badge-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s, transform 0.15s;
  border-radius: 8px;
  overflow: hidden;
}
.store-badge-link:hover { opacity: 0.85; transform: translateY(-1px); }
.store-badge { height: 44px; width: auto; display: block; }
.platform-icon-row { display: flex; gap: 10px; }
.platform-icon-btn {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  text-decoration: none;
}
.platform-icon-btn:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.platform-icon-btn img { width: 26px; height: 26px; object-fit: contain; }
.platform-icon-btn:hover img { filter: brightness(0) invert(1); }
.platform-icon-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.platform-icon-btn:hover::after { opacity: 1; }

/* ─── FEATURES ─── */
.features-section { background: var(--bg-soft); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(5,35,45,0.08); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}
.feature-icon svg {
  width: 22px; height: 22px;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke: #fff;
}
.feature-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ─── MAP ─── */
.map-section { background: var(--bg); }
.map-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}
.map-visual {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(5,35,45,0.1);
}
.map-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.map-bullets { list-style: none; margin-top: 28px; }
.map-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.5;
}
.map-bullets li:last-child { border-bottom: none; }
.map-bullets .bullet-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(0,106,143,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.map-bullets .bullet-icon svg {
  width: 16px; height: 16px;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke: currentColor;
}

/* ─── PRICING ─── */
.pricing-section { background: var(--bg-soft); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,106,143,0.12);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(5,35,45,0.1); }
.pricing-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 16px;
}
.pricing-card.featured .pricing-tag {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
}
.pricing-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.pricing-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin: 16px 0 4px;
}
.pricing-price sup { font-size: 20px; font-weight: 600; vertical-align: super; }
.pricing-period { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.pricing-note {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 600;
  background: rgba(0,106,143,0.08);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 28px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-light);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check {
  color: var(--primary);
  flex-shrink: 0;
  display: flex;
}
.pricing-features .check svg {
  width: 16px; height: 16px;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke: currentColor;
}
.pricing-cta {
  display: block;
  text-align: center;
  padding: 13px 20px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.pricing-card:not(.featured) .pricing-cta {
  background: var(--bg-soft);
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.pricing-card:not(.featured) .pricing-cta:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pricing-card.featured .pricing-cta { background: var(--primary); color: #fff; }
.pricing-card.featured .pricing-cta:hover { background: var(--primary-dark); }

/* ─── HOW IT WORKS ─── */
.how-section { background: var(--bg); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 56px;
}
.how-step { text-align: center; padding: 32px 24px; border-radius: 16px; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.how-step h4 { font-size: 15.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.how-step p { font-size: 13.5px; color: var(--text-light); line-height: 1.6; }

/* ─── CTA ─── */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 96px 24px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(142,68,173,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  position: relative;
}
.cta-section p {
  font-size: 18px;
  opacity: 0.82;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.6;
  position: relative;
}
.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
}
.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.btn-white:hover { background: #f0f8fb; transform: translateY(-1px); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* ─── FOOTER ─── */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}
.footer-logo img { width: 30px; height: 30px; object-fit: contain; }
.footer-logo-text { font-size: 16px; font-weight: 700; color: var(--primary); }
.footer-brand p {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 240px;
}
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13.5px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-left { display: flex; align-items: center; gap: 12px; }
.footer-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.footer-bottom-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.footer-bottom-name a { color: inherit; text-decoration: none; }
.footer-bottom-role { font-size: 12px; color: var(--text-muted); }
.footer-copy { font-size: 12px; color: var(--text-muted); text-align: right; }
.footer-copy a { color: var(--primary); text-decoration: none; }
.footer-copy a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .map-split { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 64px; }
  .hero-stats { gap: 28px; }
  section { padding: 64px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
}
