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

:root {
  --bg:        #0a0d14;
  --bg2:       #0f1420;
  --surface:   #141b2d;
  --surface2:  #1a2236;
  --border:    #1f2d47;
  --border2:   #263452;
  --cyan:      #00d4ff;
  --cyan-dim:  rgba(0,212,255,.15);
  --amber:     #f59e0b;
  --amber-dim: rgba(245,158,11,.15);
  --green:     #22c55e;
  --green-dim: rgba(34,197,94,.15);
  --text:      #e8eef8;
  --text2:     #8fa3c8;
  --text3:     #4d6080;
  --radius:    14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: .4;
}

body::after {
  content: '';
  position: fixed; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(0,212,255,.07) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10,13,20,.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.nav-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-size: 1.05rem; font-weight: 400; letter-spacing: -.01em; flex-shrink: 0; }
.nav-logo strong { font-weight: 700; color: var(--cyan); }

.logo-mark { width: 36px; height: 36px; background: linear-gradient(135deg, var(--cyan), #0077ff); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; box-shadow: 0 0 16px rgba(0,212,255,.3); }

.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: .875rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-domain { font-family: 'DM Mono', monospace; font-size: .72rem; color: var(--text3); letter-spacing: .04em; display: none; }
@media (min-width: 960px) { .nav-domain { display: block; } }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem; background: none; border: none; margin-left: .5rem; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text2); border-radius: 2px; transition: background .2s, transform .25s, opacity .25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.module-card[id] {
  scroll-margin-top: 84px;
}

.nav-mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: rgba(10,13,20,.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: 99; padding: 1.5rem 2rem; flex-direction: column; gap: 1rem; }
.nav-mobile-menu.open { display: flex; animation: fadeIn .2s ease; }
.nav-mobile-menu a { color: var(--text2); text-decoration: none; font-size: 1rem; font-weight: 500; padding: .5rem 0; border-bottom: 1px solid var(--border); transition: color .2s; }
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--text); }

.btn-signin { background: var(--surface2); border: 1px solid var(--border2); color: var(--text); padding: .45rem 1.25rem; border-radius: 8px; font-family: 'Outfit', sans-serif; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; text-decoration: none; display: inline-block; }
.btn-signin:hover { background: var(--border); border-color: var(--cyan); box-shadow: 0 0 12px rgba(0,212,255,.2); }

/* ── HERO ── */
.hero {
  position: relative; z-index: 1;
  padding: 6rem 2rem 5rem;
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 2rem;
  align-items: start;
}

.hero-inner {
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1.75rem;
  opacity: 0; animation: fadeUp .5s .1s ease forwards;
}

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.85)} }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -.04em;
  margin-bottom: 1.25rem;
  opacity: 0; animation: fadeUp .5s .2s ease forwards;
}

.h1-accent { color: var(--cyan); }

/* Credential statement — the "50 years" h2 */
.hero-credential {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text2);
  max-width: 620px;
  margin: 0 auto 1.75rem;
  padding-left: 0;
  border-left: none;
  opacity: 0;
  animation: fadeUp .5s .3s ease forwards;
}

.hero-credential .h1-accent {
  font-weight: 600;
  color: var(--cyan);
  display: inline;
}

.hero-sub {
  font-size: 1rem; color: var(--text2); line-height: 1.85;
  max-width: 640px; margin: 0 auto 2.5rem; font-weight: 400;
  opacity: 0; animation: fadeUp .5s .4s ease forwards;
}

.hero-actions {
  display: flex; gap: .875rem; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
  opacity: 0; animation: fadeUp .5s .45s ease forwards;
}

.btn-primary { background: linear-gradient(135deg, var(--cyan), #0077ff); color: #fff; border: none; padding: .75rem 1.75rem; border-radius: 10px; font-family: 'Outfit', sans-serif; font-size: .95rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 20px rgba(0,212,255,.3); transition: transform .15s, box-shadow .2s, opacity .2s; letter-spacing: -.01em; text-decoration: none; display: inline-block; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,212,255,.45); }

.admin-primary { background: linear-gradient(135deg, var(--amber), #f97316) !important; box-shadow: 0 4px 20px rgba(245,158,11,.3) !important; }
.admin-primary:hover { box-shadow: 0 8px 32px rgba(245,158,11,.45) !important; }

.driver-primary { background: linear-gradient(135deg, var(--green), #16a34a) !important; box-shadow: 0 4px 20px rgba(34,197,94,.3) !important; }
.driver-primary:hover { box-shadow: 0 8px 32px rgba(34,197,94,.45) !important; }

.btn-outline { background: transparent; color: var(--text2); border: 1px solid var(--border2); padding: .75rem 1.75rem; border-radius: 10px; font-family: 'Outfit', sans-serif; font-size: .95rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: border-color .2s, color .2s; display: inline-block; }
.btn-outline:hover { border-color: var(--cyan); color: var(--text); }

.hero-stats {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0 auto;
  opacity: 0; animation: fadeUp .5s .5s ease forwards;
}
.stat { display: flex; flex-direction: column; padding: 0; text-align: center; }
.stat:first-child { padding-left: 0; }
.stat-n { font-size: 1.2rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; line-height: 1.1; }
.stat-l { font-size: .72rem; font-weight: 500; color: var(--text3); letter-spacing: .05em; text-transform: uppercase; margin-top: .15rem; }
.stat-divider { width: 1px; height: 36px; background: var(--border); margin: 0 1.5rem 0 0; flex-shrink: 0; }

/* ── HERO CHIPS ── */
.hero-chips { display: flex; flex-direction: column; gap: .75rem; padding-top: 1rem; align-self: center; }
.chip { display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: .45rem .9rem; font-family: 'DM Mono', monospace; font-size: .72rem; color: var(--text2); white-space: nowrap; box-shadow: 0 2px 12px rgba(0,0,0,.3); opacity: 0; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.chip-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.chip-dot.amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.chip-dot.blue  { background: var(--cyan);  box-shadow: 0 0 6px var(--cyan); }
.chip-1 { animation: chipIn .4s .6s   ease forwards; }
.chip-2 { animation: chipIn .4s .75s  ease forwards; }
.chip-3 { animation: chipIn .4s .9s   ease forwards; }
.chip-4 { animation: chipIn .4s 1.05s ease forwards; }
@keyframes chipIn { from{opacity:0;transform:translateX(12px)} to{opacity:1;transform:translateX(0)} }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero-chips { display: none; } }

/* ── FEATURES STRIP ── */
.features-strip { position: relative; z-index: 1; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); }
.strip-inner { max-width: 1200px; margin: 0 auto; padding: 1.25rem 2rem; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; }
.strip-item { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 500; color: var(--text2); padding: .4rem 1.25rem; white-space: nowrap; }
.strip-icon { font-size: .95rem; }
.strip-sep { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }

/* ── HOW IT WORKS ── */
.how-section { position: relative; z-index: 1; padding: 5rem 2rem; background: var(--bg); }
.how-inner { max-width: 1100px; margin: 0 auto; }
.how-inner .section-intro { margin-bottom: 3.5rem; }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; position: relative; }
.how-steps::before { content: ''; position: absolute; top: 28px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent); z-index: 0; }
.how-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 1.5rem; position: relative; z-index: 1; }
.how-step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border2); display: flex; align-items: center; justify-content: center; font-family: 'DM Mono', monospace; font-size: .85rem; font-weight: 500; color: var(--text3); margin-bottom: 1.25rem; flex-shrink: 0; transition: border-color .3s, color .3s, box-shadow .3s; }
.how-step:hover .how-step-num { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 20px rgba(0,212,255,.2); }
.how-step h4 { font-size: .95rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem; }
.how-step p  { font-size: .8rem; color: var(--text2); line-height: 1.65; }

/* ── MODULES SECTION ── */
.modules-section { position: relative; z-index: 1; padding: 5rem 2rem 6rem; background: var(--bg2); border-top: 1px solid var(--border); }
.modules-inner { max-width: 1200px; margin: 0 auto; }
.section-intro { text-align: center; margin-bottom: 3.5rem; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: .75rem; display: block; }
.section-intro h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: .75rem; line-height: 1.15; }
.section-sub { color: var(--text2); font-size: .95rem; max-width: 520px; margin: 0 auto; line-height: 1.7; }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }

/* ── MODULE CARDS ── */
.module-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 2rem; position: relative; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.module-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.module-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.mod-dispatcher::before { background: linear-gradient(90deg, var(--cyan), #0077ff); }
.mod-admin::before      { background: linear-gradient(90deg, var(--amber), #f97316); }
.mod-driver::before     { background: linear-gradient(90deg, var(--green), #16a34a); }
.mod-dispatcher:hover { border-color: rgba(0,212,255,.3); }
.mod-admin:hover      { border-color: rgba(245,158,11,.3); }
.mod-driver:hover     { border-color: rgba(34,197,94,.3); }

.mod-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.mod-icon-wrap { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; border: 1px solid transparent; }
.disp-icon   { background: var(--cyan-dim);  border-color: rgba(0,212,255,.2); }
.admin-icon  { background: var(--amber-dim); border-color: rgba(245,158,11,.2); }
.driver-icon { background: var(--green-dim); border-color: rgba(34,197,94,.2); }
.mod-badge { display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 100px; margin-bottom: .4rem; }
.badge-disp   { background: var(--cyan-dim);  color: var(--cyan); }
.badge-admin  { background: var(--amber-dim); color: var(--amber); }
.badge-driver { background: var(--green-dim); color: var(--green); }
.mod-header h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; margin: 0; }
.mod-desc { color: var(--text2); font-size: .875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.mod-features { display: flex; flex-direction: column; gap: .875rem; margin-bottom: 1.75rem; }
.feat-row { display: flex; gap: .75rem; align-items: flex-start; }
.feat-icon { font-size: 1rem; flex-shrink: 0; width: 22px; text-align: center; margin-top: .05rem; }
.feat-row strong { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: .1rem; }
.feat-row span { font-size: .78rem; color: var(--text2); line-height: 1.6; }

/* ── MODULE BUTTON ROW ── */
.mod-btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.mod-btn { display: inline-flex; align-items: center; gap: .4rem; font-family: 'Outfit', sans-serif; font-size: .85rem; font-weight: 700; border-radius: 8px; padding: .6rem 1.25rem; border: 1px solid transparent; cursor: pointer; transition: background .2s, box-shadow .2s; letter-spacing: -.01em; text-decoration: none; }
.disp-btn   { background: var(--cyan-dim);  border-color: rgba(0,212,255,.25); color: var(--cyan); }
.admin-btn  { background: var(--amber-dim); border-color: rgba(245,158,11,.25); color: var(--amber); }
.driver-btn { background: var(--green-dim); border-color: rgba(34,197,94,.25);  color: var(--green); }
.disp-btn:hover   { background: rgba(0,212,255,.22);  box-shadow: 0 0 16px rgba(0,212,255,.2); }
.admin-btn:hover  { background: rgba(245,158,11,.22); box-shadow: 0 0 16px rgba(245,158,11,.2); }
.driver-btn:hover { background: rgba(34,197,94,.22);  box-shadow: 0 0 16px rgba(34,197,94,.2); }
.mod-btn-ghost { background: transparent; }
.disp-ghost   { border-color: rgba(0,212,255,.2);  color: var(--cyan); }
.admin-ghost  { border-color: rgba(245,158,11,.2); color: var(--amber); }
.driver-ghost { border-color: rgba(34,197,94,.2);  color: var(--green); }
.disp-ghost:hover   { background: var(--cyan-dim);  box-shadow: 0 0 12px rgba(0,212,255,.15); }
.admin-ghost:hover  { background: var(--amber-dim); box-shadow: 0 0 12px rgba(245,158,11,.15); }
.driver-ghost:hover { background: var(--green-dim); box-shadow: 0 0 12px rgba(34,197,94,.15); }

/* ── WHY SECTION ── */
.why-section { position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--border); padding: 5rem 2rem; }
.why-inner { max-width: 1100px; margin: 0 auto; }
.why-inner .section-intro { margin-bottom: 3rem; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: border-color .25s, transform .25s, box-shadow .25s; }
.why-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,.3); }
.why-icon { display: block; font-size: 1.6rem; margin-bottom: 1rem; }
.why-card h4 { font-size: .95rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem; }
.why-card p { font-size: .825rem; color: var(--text2); line-height: 1.7; }

/* ── FOOTER ── */
footer { position: relative; z-index: 1; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-brand .nav-logo { margin-bottom: .75rem; display: inline-flex; }
.footer-brand p { font-size: .8rem; color: var(--text3); max-width: 220px; line-height: 1.6; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col h5 { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); margin-bottom: .25rem; }
.footer-col a { font-size: .82rem; color: var(--text2); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 2rem; max-width: 1100px; margin: 0 auto; font-size: .75rem; color: var(--text3); }

/* ── MODAL ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(5,8,16,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal { background: var(--surface); border: 1px solid var(--border2); border-radius: 20px; padding: 2.25rem; width: 100%; max-width: 400px; position: relative; animation: slideUp .28s ease; box-shadow: 0 32px 80px rgba(0,0,0,.65); margin: 1rem; }
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.modal-close { position: absolute; top: 1.1rem; right: 1.1rem; background: none; border: none; color: var(--text3); font-size: 1.1rem; cursor: pointer; transition: color .2s; line-height: 1; padding: .25rem; }
.modal-close:hover { color: var(--text); }
.modal-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem; font-size: .95rem; font-weight: 400; color: var(--text); }
.modal-brand strong { color: var(--cyan); font-weight: 700; }
.modal-logo-mark { width: 32px; height: 32px; border-radius: 8px; }
.modal h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: .3rem; text-align: center; }
.modal-sub { font-size: .85rem; color: var(--text2); margin-bottom: 1.5rem; text-align: center; }
.role-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 0 auto 1.5rem; max-width: 520px; justify-items: center; }
.role-opt { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg2); cursor: pointer; transition: border-color .2s, background .2s, transform .12s; font-family: 'Outfit', sans-serif; width: 100%; max-width: 240px; text-align: center; }
.role-opt:hover { border-color: var(--border2); background: var(--surface2); }
.role-opt.selected { border-color: var(--cyan); background: var(--cyan-dim); }
.role-icon { font-size: 1.3rem; }
.role-name { font-size: .72rem; font-weight: 600; color: var(--text2); letter-spacing: .03em; }
.role-opt.selected .role-name { color: var(--cyan); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .72rem; font-weight: 700; color: var(--text3); letter-spacing: .07em; text-transform: uppercase; margin-bottom: .4rem; }
.field input { width: 100%; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: .7rem .9rem; color: var(--text); font-family: 'Outfit', sans-serif; font-size: .9rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,212,255,.1); }
.modal-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); border-radius: 8px; padding: .65rem .9rem; font-size: .82rem; color: #f87171; margin-bottom: 1rem; }
.modal-submit { width: 100%; background: linear-gradient(135deg, var(--cyan), #0077ff); color: #fff; border: none; padding: .8rem; border-radius: 10px; font-family: 'Outfit', sans-serif; font-size: .95rem; font-weight: 700; cursor: pointer; margin-top: .5rem; letter-spacing: -.01em; box-shadow: 0 4px 16px rgba(0,212,255,.3); transition: opacity .2s, transform .15s; }
.modal-submit:hover { opacity: .88; transform: translateY(-1px); }
.modal-submit:active { transform: translateY(0); }
.modal-footer-links { text-align: center; margin-top: 1rem; font-size: .78rem; color: var(--text3); display: flex; justify-content: center; gap: .5rem; }
.modal-footer-links a { color: var(--cyan); text-decoration: none; }
.modal-footer-links a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   DETAIL PAGES
   ══════════════════════════════════════════ */

.detail-subnav { position: sticky; top: 64px; z-index: 90; background: rgba(10,13,20,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.detail-subnav-inner { max-width: 960px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.detail-subnav-inner::-webkit-scrollbar { display: none; }
.detail-subnav-inner a { font-size: .78rem; font-weight: 600; color: var(--text3); text-decoration: none; padding: .9rem 1rem; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; flex-shrink: 0; }
.detail-disp  .detail-subnav-inner a:hover, .detail-disp  .detail-subnav-inner a.active { color: var(--cyan);  border-bottom-color: var(--cyan); }
.detail-admin .detail-subnav-inner a:hover, .detail-admin .detail-subnav-inner a.active { color: var(--amber); border-bottom-color: var(--amber); }
.detail-driver .detail-subnav-inner a:hover, .detail-driver .detail-subnav-inner a.active { color: var(--green); border-bottom-color: var(--green); }

.back-link { display: block; position: relative; z-index: 1; padding: 3rem 2rem 0; max-width: 960px; margin: 0 auto; font-size: .82rem; font-weight: 500; color: var(--text3); text-decoration: none; transition: color .2s; }
.back-link:hover { color: var(--text2); }

.detail-hero { position: relative; z-index: 1; padding: 1.25rem 2rem 4rem; max-width: 960px; margin: 0 auto; }
.detail-hero .eyebrow { margin-bottom: .75rem; }
.detail-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; margin-bottom: 1.25rem; }
.detail-hero p.lead { font-size: 1.05rem; color: var(--text2); line-height: 1.75; max-width: 640px; margin-bottom: 2rem; }
.detail-hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

.driver-signin-note { display: flex; gap: 1rem; align-items: flex-start; background: var(--green-dim); border: 1px solid rgba(34,197,94,.25); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-top: 2rem; max-width: 560px; }
.driver-signin-note .ds-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.driver-signin-note strong { display: block; font-size: .88rem; font-weight: 700; color: var(--green); margin-bottom: .3rem; }
.driver-signin-note span { font-size: .8rem; color: var(--text2); line-height: 1.6; }

/* Screenshot block */
.screenshot-block { position: relative; z-index: 1; max-width: 960px; margin: 0 auto 3rem; padding: 0 2rem; }
.screenshot-block .ss-inner { background: var(--surface); border: 1.5px dashed var(--border2); border-radius: 16px; padding: 4.5rem 2rem; text-align: center; overflow: hidden; position: relative; transition: border-color .3s; }
.screenshot-block .ss-inner:hover { border-color: var(--border); }
.screenshot-block .ss-inner::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255,255,255,.012) 20px, rgba(255,255,255,.013) 21px); }
.screenshot-block img { width: 100%; border-radius: 10px; display: block; box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.ss-icon    { font-size: 2.5rem; display: block; margin-bottom: .75rem; opacity: .35; }
.ss-label   { font-size: .78rem; font-weight: 700; color: var(--text3); letter-spacing: .1em; text-transform: uppercase; }
.ss-caption { font-size: .78rem; color: var(--text3); margin-top: .3rem; }

/* Phone gallery */
.phone-gallery { position: relative; z-index: 1; max-width: 960px; margin: 0 auto 3.5rem; padding: 0 2rem; }
.phone-gallery-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); margin-bottom: 1.25rem; display: block; }
.phone-row { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.phone-frame { flex: 1 1 160px; max-width: 220px; min-width: 140px; position: relative; }
.phone-frame img { width: 100%; display: block; border-radius: 24px; box-shadow: 0 0 0 2px rgba(255,255,255,.07), 0 4px 8px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.5); transition: transform .3s, box-shadow .3s; }
.phone-frame img:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 0 0 2px rgba(34,197,94,.3), 0 8px 16px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.5); }
.phone-frame .phone-caption { margin-top: .6rem; font-size: .72rem; color: var(--text3); text-align: center; line-height: 1.4; }
.phone-row.centre { justify-content: center; }

/* Feature sections */
.detail-section { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 0 2rem 4rem; scroll-margin-top: 112px; }
.detail-section > h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.035em; margin-bottom: .5rem; }
.detail-section > p.section-lead { font-size: .9rem; color: var(--text2); line-height: 1.7; max-width: 600px; margin-bottom: 2rem; }
.detail-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.detail-feat-card { background: var(--surface); border: 1px solid var(--border); border-top-width: 2px; border-radius: var(--radius); padding: 1.5rem; transition: border-color .25s, transform .25s, box-shadow .25s; }
.detail-feat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.detail-disp   .detail-feat-card { border-top-color: var(--cyan); }
.detail-admin  .detail-feat-card { border-top-color: var(--amber); }
.detail-driver .detail-feat-card { border-top-color: var(--green); }
.detail-disp   .detail-feat-card:hover { border-color: rgba(0,212,255,.3); }
.detail-admin  .detail-feat-card:hover { border-color: rgba(245,158,11,.3); }
.detail-driver .detail-feat-card:hover { border-color: rgba(34,197,94,.3); }
.dfc-icon { font-size: 1.5rem; display: block; margin-bottom: .75rem; }
.detail-feat-card h4 { font-size: .9rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .4rem; }
.detail-feat-card p  { font-size: .8rem; color: var(--text2); line-height: 1.65; }
.detail-divider { max-width: 960px; margin: 0 auto 3.5rem; padding: 0 2rem; border: none; border-top: 1px solid var(--border); }

/* Related modules */
.related-modules { position: relative; z-index: 1; background: var(--bg2); border-top: 1px solid var(--border); padding: 3.5rem 2rem; }
.related-modules-inner { max-width: 960px; margin: 0 auto; }
.related-modules h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 1.25rem; color: var(--text2); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.related-card { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.related-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.related-card-icon { font-size: 1.5rem; flex-shrink: 0; }
.related-card-text strong { display: block; font-size: .88rem; font-weight: 700; margin-bottom: .2rem; }
.related-card-text span { font-size: .76rem; color: var(--text2); line-height: 1.5; }
.related-card.rc-disp  { border-left: 3px solid var(--cyan); }
.related-card.rc-admin { border-left: 3px solid var(--amber); }
.related-card.rc-driver{ border-left: 3px solid var(--green); }
.related-card.rc-disp:hover  { border-color: rgba(0,212,255,.4); }
.related-card.rc-admin:hover { border-color: rgba(245,158,11,.4); }
.related-card.rc-driver:hover{ border-color: rgba(34,197,94,.4); }

/* CTA */
.detail-cta { position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--border); padding: 4.5rem 2rem; text-align: center; }
.detail-cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: .75rem; }
.detail-cta p  { color: var(--text2); font-size: .95rem; max-width: 440px; margin: 0 auto 2rem; line-height: 1.7; }
.detail-cta-btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

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

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 4rem 1rem 3.5rem; }
  .modules-section, .why-section, .how-section { padding: 4rem 1rem; }
  .footer-inner { padding: 2rem 1rem 1.5rem; }
  .footer-bottom { padding: 1rem; }
  .modules-grid { grid-template-columns: 1fr; }
  .strip-sep { display: none; }
  .strip-item { padding: .3rem .5rem; font-size: .75rem; }
  .back-link { padding: 2rem 1rem 0; }
  .detail-hero, .detail-section, .screenshot-block, .phone-gallery { padding-left: 1rem; padding-right: 1rem; }
  .mod-btn-row { flex-direction: column; align-items: flex-start; }
  .detail-feat-grid { grid-template-columns: 1fr; }
  .detail-cta { padding: 3rem 1rem; }
  .how-steps::before { display: none; }
  .how-step { padding: 1rem 0; border-bottom: 1px solid var(--border); }
  .how-step:last-child { border-bottom: none; }
  .related-grid { grid-template-columns: 1fr; }
  .detail-subnav-inner { padding: 0 1rem; }
  .phone-frame { flex: 1 1 120px; min-width: 110px; }
  .phone-frame img { border-radius: 16px; }
  .hero-credential { padding-left: .75rem; }
  /* Make role picker single-column on small screens */
  .role-picker { grid-template-columns: 1fr; }
  .role-opt { width: 100%; max-width: none; }
}
