:root {
  --blue: #2F80ED;
  --blue-dark: #2569c9;
  --yellow: #FFD54F;
  --amber: #FFC107;
  --white: #FFFFFF;
  --charcoal: #1A2A40;
  --gray: #9E9E9E;
  --blue-tint: #EAF2FE;
  --shadow: 0 12px 30px -12px rgba(26, 42, 64, 0.18);
  --shadow-sm: 0 6px 16px -8px rgba(26, 42, 64, 0.16);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--charcoal); }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-yellow {
  background: var(--yellow);
  color: var(--charcoal);
  box-shadow: 0 10px 24px -8px rgba(255, 213, 79, 0.7);
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(255, 213, 79, 0.8); }
.btn-small { padding: 10px 20px; font-size: 0.9rem; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--amber);
  color: var(--charcoal);
}
.pill-amber { background: var(--amber); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
}
.logo-mark {
  height: 24px;
  width: auto;
  display: inline-block;
}
.main-nav {
  display: none;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--white); }
.nav-cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--blue-dark);
  padding: 8px 24px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--white);
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav a:last-child { border-bottom: none; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--blue) 0%, #4A90F5 60%, #6BA4F7 100%);
  padding: 64px 0 80px;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}
.hero-copy { color: var(--white); text-align: center; max-width: 620px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}
.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--yellow);
  margin-top: 14px;
}
.hero-sub {
  margin-top: 20px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
}
.hero-actions { margin-top: 32px; }

.download-block {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.download-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.download-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.download-label small { font-weight: 500; opacity: 0.85; }
.download-buttons {
  display: flex;
  gap: 10px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: background 0.18s ease, transform 0.18s ease;
}
.store-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.store-btn:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }

.hero-visual { width: 100%; display: flex; justify-content: center; }
.phone-mock {
  width: 260px;
  height: 500px;
  background: var(--charcoal);
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow);
  position: relative;
}
.phone-notch {
  width: 90px;
  height: 18px;
  background: var(--charcoal);
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--blue-tint);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.map-fake {
  flex: 1;
  background: linear-gradient(135deg, #DCEBFD 0%, #C7DFFB 100%);
  position: relative;
}
.map-route {
  position: absolute;
  top: 30%;
  left: 15%;
  width: 65%;
  height: 45%;
  border: 3px dashed rgba(47,128,237,0.5);
  border-radius: 50% 20% 50% 20%;
  border-right: none;
  border-top: none;
}
.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: var(--shadow-sm);
}
.map-pin-1 { background: var(--blue); top: 28%; left: 18%; }
.map-pin-2 { background: var(--yellow); bottom: 28%; right: 20%; }
.status-card {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 18px 20px 22px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
}
.status-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.status-label { font-size: 0.78rem; color: var(--gray); font-weight: 600; }
.status-distance { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--charcoal); }
.status-sub { font-size: 0.8rem; color: var(--gray); margin-top: 2px; }
.status-btn {
  margin-top: 14px;
  background: var(--yellow);
  color: var(--charcoal);
  text-align: center;
  padding: 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--blue-tint); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-sub { margin-top: 12px; color: var(--gray); font-size: 1.02rem; }
.section-sub strong { color: var(--charcoal); }

/* Problem */
.problem-grid { display: flex; flex-direction: column; gap: 24px; }
.problem-text { font-size: 1.08rem; color: #3A4A60; line-height: 1.8; max-width: 720px; }
.problem-note {
  background: var(--white);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  max-width: 560px;
}
.problem-note p { color: var(--charcoal); font-weight: 500; }

/* What is */
.what-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.what-text { font-size: 1.08rem; color: #3A4A60; line-height: 1.8; }
.geofence-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.geofence-radius {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring { position: absolute; border-radius: 50%; border: 2px solid rgba(47,128,237,0.35); }
.ring-outer { width: 200px; height: 200px; }
.ring-inner { width: 130px; height: 130px; background: rgba(47,128,237,0.08); }
.geofence-center {
  position: relative;
  z-index: 2;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.geofence-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--amber);
  color: var(--charcoal);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.geofence-caption { color: var(--gray); font-size: 0.95rem; line-height: 1.7; }

/* Role cards */
.role-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.role-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.role-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.role-card h3 { font-size: 1.25rem; margin-bottom: 16px; }
.role-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: #3A4A60;
  font-size: 0.98rem;
  line-height: 1.6;
}
.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.role-list li:last-child { margin-bottom: 0; }

.student-note {
  margin-top: 32px;
  background: var(--blue-tint);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.student-note p { color: var(--charcoal); font-size: 1rem; }

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1;
}
.stat-unit { font-size: 1.4rem; font-weight: 700; margin-left: 2px; }
.stat-label { margin-top: 12px; font-weight: 700; color: var(--blue); font-size: 1rem; }
.stat-detail { margin-top: 6px; color: var(--gray); font-size: 0.88rem; }

/* Schools */
.school-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.school-badge {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #EEF2F7;
}
.school-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-tint);
}
.school-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.school-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}
.school-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.school-badge p {
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  line-height: 1.35;
}

/* Future plan */
.future-plan {
  background: var(--blue);
  padding: 40px 0;
  text-align: center;
}
.future-plan p {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  max-width: 640px;
  margin: 0 auto;
}

/* Footer */
.site-footer { background: var(--white); padding: 40px 0; border-top: 1px solid #EEF2F7; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand img {
  height: 28px;
  width: auto;
}
.footer-partner-logo { height: 34px; }
.footer-divider {
  width: 1px;
  height: 26px;
  background: #E2E8F0;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-links a { color: var(--blue); font-weight: 600; font-size: 0.95rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-credit { color: var(--gray); font-size: 0.85rem; }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Tablet ===== */
@media (min-width: 640px) {
  .role-cards { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .school-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-card-wide { grid-column: span 2; }
}

/* ===== Desktop ===== */
@media (min-width: 960px) {
  .main-nav { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }

  .hero { padding: 96px 0 120px; }
  .hero-inner { flex-direction: row; text-align: left; gap: 60px; }
  .hero-copy { text-align: left; max-width: 560px; }
  .hero-actions { display: flex; }
  .download-block { align-items: flex-start; flex-direction: row; gap: 32px; }
  .download-group { align-items: flex-start; }

  .what-grid { grid-template-columns: 1.1fr 0.9fr; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-card-wide { grid-column: span 2; }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-links { flex-direction: row; gap: 28px; }
}
