:root {
  --navy-950: #071522;
  --navy-900: #0a1d2f;
  --navy-800: #0f2b45;
  --green-600: #18a56b;
  --green-500: #22c17c;
  --green-100: #e9fff5;
  --cyan-100: #e9f8ff;
  --white: #ffffff;
  --soft: #f6faf8;
  --text: #183044;
  --muted: #607385;
  --border: rgba(15, 43, 69, 0.12);
  --shadow: 0 24px 70px rgba(7, 21, 34, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  background: rgba(24, 165, 107, 0.12);
  color: var(--navy-900);
  padding: 0.15rem 0.35rem;
  border-radius: 0.4rem;
  font-size: 0.92em;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section-padding {
  padding: 96px 0;
}

.section-muted {
  background: linear-gradient(180deg, var(--soft), #ffffff);
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 43, 69, 0.08);
}

.navbar {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--navy-900), var(--green-600));
  color: var(--white);
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 28px rgba(24, 165, 107, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--green-600);
  font-weight: 700;
}

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

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy-900);
  background: var(--green-100);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--soft);
  border-radius: 14px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy-900);
  border-radius: 99px;
  transition: 0.25s ease;
}

/* HERO */

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 10% 12%, rgba(34, 193, 124, 0.17), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f3fbf8 45%, #edf7ff 100%);
  overflow: hidden;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.55;
  pointer-events: none;
}

.orb-one {
  width: 340px;
  height: 340px;
  background: rgba(34, 193, 124, 0.18);
  top: 12%;
  right: -110px;
}

.orb-two {
  width: 260px;
  height: 260px;
  background: rgba(15, 43, 69, 0.12);
  bottom: -120px;
  left: 8%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 58px;
}

.eyebrow {
  color: var(--green-600);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--navy-950);
  font-size: clamp(3.4rem, 8vw, 7.7rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  margin-bottom: 24px;
}

.hero h1 span {
  display: block;
  color: var(--green-600);
  font-size: 0.38em;
  letter-spacing: 0;
  margin-top: 20px;
}

.tagline {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.22;
  color: var(--navy-800);
  font-weight: 850;
  max-width: 720px;
  letter-spacing: -0.035em;
}

.hero-description {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(24, 165, 107, 0.28);
}

.btn-secondary {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(10, 29, 47, 0.22);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy-900);
  border-color: var(--border);
}

.hero-visual {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
}

.dashboard-card {
  width: min(470px, 100%);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.floating-card {
  animation: float 5.6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

.dashboard-topbar {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
}

.dashboard-topbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
}

.dashboard-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metric-card {
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--green-100);
  font-size: 1.35rem;
}

.metric-card small {
  color: var(--muted);
  font-weight: 750;
}

.metric-card strong {
  display: block;
  color: var(--navy-900);
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.route-line {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: min(380px, 78%);
  height: 0;
  transform: translateX(-50%);
  border-top: 2px dashed rgba(24, 165, 107, 0.48);
  z-index: 1;
}

.hero-visual .dashboard-card {
  position: relative;
  z-index: 2;
}

.pin {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(7, 21, 34, 0.14);
  color: var(--navy-900);
  font-weight: 850;
  font-size: 0.85rem;
  white-space: nowrap;
}

.pin.start {
  left: 0;
  transform: translate(-12%, -50%);
}

.pin.end {
  right: 0;
  transform: translate(12%, -50%);
}

.pulse-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  background: var(--green-500);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 193, 124, 0.58);
  animation: pulse 1.7s infinite;
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 24px rgba(34, 193, 124, 0);
  }
}

/* STATS STRIP */

.stats-strip {
  background: var(--navy-950);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.stats-grid div {
  padding: 28px;
  background: var(--navy-950);
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.stats-grid span {
  color: rgba(255, 255, 255, 0.66);
  margin-top: 4px;
}

/* GENERAL SECTIONS */

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.ai-copy h2 {
  color: var(--navy-950);
  font-size: clamp(2rem, 4.4vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin-bottom: 18px;
}

.section-heading p,
.ai-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
}

.problem-solution article,
.feature-card,
.monitor-card,
.repo-card,
.future-card,
.ai-card,
.module-showcase,
.role-copy {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(7, 21, 34, 0.06);
}

.problem-solution article {
  padding: 30px;
}

.article-label,
.panel-kicker,
.module-label {
  display: inline-flex;
  color: var(--green-600);
  background: var(--green-100);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.problem-solution h3,
.feature-card h3,
.monitor-card h3,
.repo-card h3,
.future-card h3 {
  color: var(--navy-900);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.problem-solution p,
.feature-card p,
.monitor-card p,
.repo-card p,
.future-card p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 24px;
  transition: 0.25s ease;
}

.feature-card:hover,
.repo-card:hover,
.future-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(7, 21, 34, 0.1);
}

.feature-icon,
.repo-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green-100), var(--cyan-100));
  font-size: 1.6rem;
  margin-bottom: 18px;
}

/* ARCHITECTURE */

.architecture-showcase {
  max-width: 1180px;
  margin: 0 auto;
}

.architecture-image {
  min-height: 560px;
  background: #ffffff;
}

.architecture-image img {
  object-fit: contain;
  padding: 12px;
}

/* SCREENSHOT PLACEHOLDERS */

.image-placeholder {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(34, 193, 124, 0.1), rgba(15, 43, 69, 0.08)),
    repeating-linear-gradient(135deg, rgba(15, 43, 69, 0.045) 0 10px, transparent 10px 20px),
    #ffffff;
  box-shadow: 0 20px 60px rgba(7, 21, 34, 0.08);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
}

.image-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: none;
  background: #ffffff;
  padding: 10px;
}

.image-placeholder.has-image {
  background: #ffffff;
}

.image-placeholder.has-image img {
  display: block;
}

.image-placeholder.has-image div {
  display: none;
}

.image-placeholder span {
  display: block;
  color: var(--navy-900);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.image-placeholder small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 750;
}

#ai .image-placeholder {
  min-height: 460px;
}

#monitoring .image-placeholder {
  min-height: 440px;
}

/* ROLE TABS */

.role-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 24px;
}

.role-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.22s ease;
}

.role-tab.active {
  background: var(--navy-900);
  color: var(--white);
}

.role-panel {
  display: none;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
  align-items: stretch;
}

.role-panel.active {
  display: grid;
}

.role-copy {
  padding: 32px;
}

.role-copy h3 {
  color: var(--navy-950);
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
}

.check-list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  font-size: 0.8rem;
  font-weight: 900;
}

/* INNER MODULE TABS */

.module-showcase {
  padding: 22px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 193, 124, 0.09), transparent 30%),
    linear-gradient(180deg, #ffffff, #f8fbfa);
}

.module-tabs {
  display: grid;
  gap: 18px;
}

.module-tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.module-tabs > label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
  background: #ffffff;
  transition: 0.22s ease;
  width: fit-content;
}

.module-tabs > input:checked + label {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
  box-shadow: 0 12px 28px rgba(7, 21, 34, 0.14);
}

.module-tabs {
  grid-template-columns: auto auto 1fr;
  align-items: start;
}

.module-panels {
  grid-column: 1 / -1;
}

.module-panel {
  display: none;
  animation: moduleFade 0.28s ease;
}

@keyframes moduleFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#admin-control:checked ~ .module-panels .module-control,
#admin-users:checked ~ .module-panels .module-users,
#school-create:checked ~ .module-panels .module-create,
#school-requests:checked ~ .module-panels .module-requests {
  display: grid;
  gap: 18px;
}

.module-copy {
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.module-copy h4 {
  color: var(--navy-950);
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin-bottom: 10px;
}

.module-copy p {
  color: var(--muted);
}

.dashboard-screenshot {
  min-height: 430px;
  border-radius: 24px;
}

.dashboard-screenshot img {
  padding: 8px;
}

/* DRIVER PHONE IN DRIVER TAB */

.role-phone-showcase {
  display: grid;
  place-items: center;
  min-height: 600px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 20%, rgba(34, 193, 124, 0.13), transparent 38%),
    linear-gradient(180deg, #ffffff, #f6faf8);
  box-shadow: 0 20px 60px rgba(7, 21, 34, 0.08);
  padding: 32px;
}

.phone-frame {
  width: 300px;
  min-height: 570px;
  padding: 14px;
  border-radius: 42px;
  background: var(--navy-950);
  box-shadow: var(--shadow);
}

.screenshot-phone {
  position: relative;
  width: 320px;
  height: 640px;
  min-height: 640px;
  padding: 0;
  overflow: hidden;
  background: var(--navy-950);
  border: 13px solid var(--navy-950);
  border-radius: 44px;
}

.screenshot-phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 86px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.screenshot-phone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  border-radius: 30px;
  display: block;
  background: #ffffff;
}

.driver-tab-phone {
  width: 300px;
  height: 600px;
  min-height: 600px;
}

.driver-tab-phone img {
  object-fit: contain;
  object-position: top center;
}

/* MONITORING */

.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.monitor-card {
  padding: 24px;
}

.monitor-card span {
  font-size: 1.7rem;
  margin-bottom: 15px;
  display: inline-block;
}

.wide-visual {
  margin-top: 24px;
}

/* AI */

.ai-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 193, 124, 0.13), transparent 28%),
    #ffffff;
}

.ai-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.ai-note {
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--green-100);
  border: 1px solid rgba(24, 165, 107, 0.2);
  color: var(--navy-900);
}

.ai-card {
  padding: 28px;
  background: var(--navy-950);
  color: var(--white);
}

.ai-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.ai-card-header span {
  color: var(--green-500);
  font-weight: 900;
}

.ai-card-header strong {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.ai-flow {
  display: grid;
  gap: 12px;
}

.ai-flow span {
  position: relative;
  display: block;
  padding: 15px 18px;
  border-radius: 16px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ai-flow span:not(:last-child)::after {
  content: "↓";
  position: absolute;
  right: 18px;
  color: var(--green-500);
}

/* TIMELINE */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline-step {
  position: relative;
  min-height: 150px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 18px 42px rgba(7, 21, 34, 0.06);
  overflow: hidden;
}

.timeline-step::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
}

.timeline-step strong {
  display: block;
  color: rgba(24, 165, 107, 0.22);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.08em;
  margin-bottom: 16px;
}

.timeline-step span {
  color: var(--navy-900);
  font-weight: 900;
  font-size: 1.05rem;
}





/* REPOSITORIES */

.repo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.repo-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.repo-card p {
  margin-bottom: 22px;
}

.repo-card .btn {
  margin-top: auto;
}

/* FUTURE */

.future-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.future-card {
  padding: 24px;
}

/* FOOTER */

.site-footer {
  background: var(--navy-950);
  color: var(--white);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer-brand .brand-text strong {
  color: var(--white);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.65);
  margin-top: 14px;
}

.site-footer h3 {
  margin-bottom: 10px;
}

/* BACK TO TOP */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(7, 21, 34, 0.25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* REVEAL ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1040px) {
  .hero-grid,
  .role-panel,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 460px;
  }

  .feature-grid,
  .monitoring-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline,
  .repo-grid,
  .future-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-placeholder {
    min-height: 420px;
  }

  .architecture-image {
    min-height: 440px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: 0.24s ease;
  }

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

  .nav-links a {
    border-radius: 14px;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .section-padding {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .problem-solution,
  .feature-grid,
  .monitoring-grid,
  .timeline,
  .repo-grid,
  .future-grid,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .route-line {
    display: none;
  }

  .role-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 22px;
  }

  .role-tab {
    padding: 12px 10px;
  }

  .module-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .module-tabs > label {
    width: 100%;
  }

  .image-placeholder,
  #ai .image-placeholder,
  #monitoring .image-placeholder {
    min-height: 360px;
  }

  .dashboard-screenshot {
    min-height: 340px;
  }

  .role-phone-showcase {
    min-height: 560px;
    padding: 24px;
  }

  .driver-tab-phone {
    width: min(300px, 92vw);
    height: 600px;
    min-height: 600px;
  }
}

@media (max-width: 520px) {
  .container,
  .navbar {
    width: min(100% - 28px, var(--container));
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .dashboard-body {
    padding: 16px;
  }

  .metric-card {
    min-height: 118px;
  }

  .image-placeholder,
  #ai .image-placeholder,
  #monitoring .image-placeholder {
    min-height: 300px;
    border-radius: 22px;
  }

  .architecture-image {
    min-height: 260px;
  }

  .image-placeholder img {
    padding: 6px;
  }

  .module-showcase {
    padding: 16px;
  }

  .module-copy {
    padding: 18px;
  }

  .dashboard-screenshot {
    min-height: 270px;
  }

  .role-phone-showcase {
    min-height: 520px;
    padding: 18px;
  }

  .driver-tab-phone {
    width: min(280px, 92vw);
    height: 560px;
    min-height: 560px;
    border-width: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.monitor-card {
  padding: 24px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.monitor-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(24, 165, 107, 0.35);
  box-shadow: 0 28px 70px rgba(7, 21, 34, 0.13);
}

.monitor-card.is-active {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(24, 165, 107, 0.5);
  box-shadow: 0 28px 70px rgba(7, 21, 34, 0.15);
}

.monitoring-preview {
  position: relative;
}

.monitoring-preview img {
  z-index: 1;
}

.monitor-highlight {
  position: absolute;
  z-index: 3;
  display: block;
  border: 3px solid var(--green-500);
  background: rgba(34, 193, 124, 0.16);
  border-radius: 14px;
  box-shadow:
    0 0 0 9999px rgba(7, 21, 34, 0.12),
    0 0 28px rgba(34, 193, 124, 0.45);
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.monitoring-preview[data-active="temperature"] .highlight-temperature,
.monitoring-preview[data-active="humidity"] .highlight-humidity,
.monitoring-preview[data-active="tilt"] .highlight-tilt,
.monitoring-preview[data-active="gps"] .highlight-gps,
.monitoring-preview[data-active="alerts"] .highlight-alerts {
  opacity: 1;
  transform: scale(1);
}

/* Adjusted for the current live-monitoring screenshot */
.highlight-temperature {
  left: 13.45%;
  top: 68.6%;
  width: 13.9%;
  height: 9.8%;
}

.highlight-humidity {
  left: 27.9%;
  top: 68.6%;
  width: 13.9%;
  height: 9.8%;
}

.highlight-tilt {
  left: 42.58%;
  top: 68.6%;
  width: 13.9%;
  height: 9.8%;
}

.highlight-gps {
  left: 57.45%;
  top: 68.6%;
  width: 28.2%;
  height: 9.8%;
}

.highlight-alerts {
  left: 13.45%;
  top: 79.6%;
  width: 72.4%;
  height: 18.1%;
}

@media (max-width: 820px) {
  .monitor-highlight {
    border-width: 2px;
    border-radius: 10px;
  }
}

.brand-logo img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.footer-brand img {
  height: 48px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}