:root {
  --ink: #10233b;
  --ink-2: #31445d;
  --muted: #66758a;
  --blue: #246bfd;
  --blue-dark: #1554d1;
  --blue-soft: #eaf1ff;
  --line: #dfe7f1;
  --paper: #ffffff;
  --canvas: #f5f8fc;
  --green: #11845a;
  --amber: #f6b817;
  --shadow: 0 24px 70px rgba(35, 63, 99, .12);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 1000; left: 16px; top: 16px; padding: 10px 16px; color: white; background: var(--ink); border-radius: 10px; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(223, 231, 241, .72);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 900; letter-spacing: .12em; }
.brand-mark { position: relative; width: 38px; height: 38px; display: grid; place-items: center; background: var(--ink); border-radius: 12px; }
.brand-mark::before { content: ""; width: 19px; height: 19px; border: 3px solid white; border-radius: 50%; }
.brand-mark::after { content: ""; position: absolute; width: 5px; height: 5px; background: var(--amber); border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--ink-2); font-size: 14px; font-weight: 700; }
.site-nav a:hover { color: var(--blue); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); background: white; border-radius: 12px; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 2px; }

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(36, 107, 253, .22);
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--blue-dark); box-shadow: 0 16px 34px rgba(36, 107, 253, .28); }
.button-small { min-height: 44px; padding-inline: 18px; border-radius: 12px; font-size: 14px; box-shadow: none; }
.button-ghost { color: var(--ink); background: white; border-color: var(--line); box-shadow: none; }
.button-ghost:hover { color: var(--blue); background: var(--blue-soft); }

.hero { position: relative; overflow: hidden; padding: 92px 0 74px; background: radial-gradient(circle at 80% 10%, #e4eeff 0, transparent 32%), linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(rgba(16,35,59,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(16,35,59,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to right, black, transparent 80%); }
.hero-grid { position: relative; display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: 64px; }
.eyebrow, .kicker { color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid #cddcff; background: rgba(255,255,255,.78); border-radius: 99px; }
.eyebrow span { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(17,132,90,.12); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 650px; margin: 24px 0; font-size: clamp(46px, 5.5vw, 76px); line-height: .98; letter-spacing: -.055em; }
.hero-lead { max-width: 590px; margin-bottom: 30px; color: var(--ink-2); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 13px; margin-top: 30px; color: var(--muted); font-size: 13px; font-weight: 700; }
.avatars { display: flex; }
.avatars i { width: 30px; height: 30px; display: grid; place-items: center; margin-right: -7px; color: white; background: var(--ink); border: 2px solid white; border-radius: 50%; font-size: 10px; font-style: normal; font-weight: 900; }
.avatars i:nth-child(2) { background: var(--blue); }
.avatars i:nth-child(3) { color: var(--ink); background: var(--amber); }

.product-stage { position: relative; min-height: 540px; display: grid; place-items: center; }
.stage-glow { position: absolute; width: 470px; height: 470px; background: radial-gradient(circle, rgba(36,107,253,.22), transparent 66%); filter: blur(10px); }
.app-window { position: relative; z-index: 2; width: min(100%, 610px); overflow: hidden; background: #f9fbfe; border: 1px solid rgba(255,255,255,.9); border-radius: 30px; box-shadow: 0 40px 90px rgba(18,44,77,.22), inset 0 0 0 1px rgba(190,208,232,.45); transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.window-top { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; color: white; background: var(--ink); }
.mini-brand { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 900; letter-spacing: .1em; }
.mini-brand b { width: 23px; height: 23px; border: 2px solid white; border-radius: 8px; box-shadow: inset 0 0 0 6px var(--ink); background: var(--amber); }
.window-pill { padding: 7px 11px; color: #dbe8fb; border: 1px solid #405570; border-radius: 99px; font-size: 11px; font-weight: 800; }
.window-body { padding: 30px; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; }
.welcome-row small, .lesson-card small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.welcome-row h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.score-ring { width: 70px; height: 70px; display: grid; place-items: center; color: var(--blue); background: conic-gradient(var(--blue) 72%, #dbe5f2 0); border-radius: 50%; font-size: 20px; font-weight: 900; box-shadow: inset 0 0 0 9px #f9fbfe; }
.score-ring small { font-size: 10px; }
.progress-track { height: 7px; margin: 25px 0; overflow: hidden; background: #e4eaf2; border-radius: 99px; }
.progress-track i { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--blue), #6b9dff); border-radius: inherit; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-grid > div { padding: 15px; background: white; border: 1px solid #e5ebf3; border-radius: 16px; }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.metric-grid strong { display: block; margin: 5px 0 2px; font-size: 21px; }
.lesson-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; margin-top: 14px; padding: 16px; background: #eaf1ff; border-radius: 18px; }
.lesson-card strong { display: block; font-size: 13px; }
.lesson-icon { width: 39px; height: 39px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 12px; }
.lesson-card button { width: 36px; height: 36px; color: white; border: 0; background: var(--ink); border-radius: 11px; }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 13px 15px; background: rgba(255,255,255,.95); border: 1px solid white; border-radius: 16px; box-shadow: 0 18px 42px rgba(27,58,95,.17); }
.floating-card strong, .floating-card small { display: block; }
.floating-card small { color: var(--muted); font-size: 10px; }
.floating-rating { top: 58px; right: -8px; }
.floating-rating span { color: #e39b00; }
.floating-route { bottom: 42px; left: -26px; }
.floating-route > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--green); background: #e4f7ef; border-radius: 11px; }

.trust-bar { background: var(--ink); }
.trust-grid { min-height: 112px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-grid div { padding: 0 26px; border-right: 1px solid rgba(255,255,255,.13); }
.trust-grid div:first-child { padding-left: 0; }
.trust-grid div:last-child { border: 0; }
.trust-grid strong { display: block; color: white; font-size: 22px; }
.trust-grid span { color: #aebdd0; font-size: 12px; font-weight: 700; }

.section { padding: 112px 0; }
.section-tint { background: var(--canvas); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; margin-bottom: 48px; }
.section-heading h2, .steps-copy h2, .faq-layout h2 { margin: 10px 0 0; font-size: clamp(36px, 4vw, 54px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p { max-width: 480px; margin-bottom: 6px; color: var(--muted); font-size: 17px; }
.section-heading.centered { display: block; max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-heading.centered p { margin: 14px auto 0; }

.feature-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 18px; }
.feature-card { position: relative; min-height: 310px; overflow: hidden; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-large { grid-row: span 2; min-height: 638px; background: linear-gradient(160deg, #f4f8ff, white 60%); }
.feature-wide { grid-column: 2 / 4; min-height: 310px; }
.feature-number { position: absolute; right: 24px; top: 22px; color: #a9b7c9; font-size: 11px; font-weight: 900; }
.feature-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 16px; font-weight: 900; }
.feature-icon.blue { color: var(--blue); background: var(--blue-soft); }
.feature-icon.green { color: var(--green); background: #e4f7ef; }
.feature-icon.amber { color: #9d6e00; background: #fff4cf; }
.feature-icon.violet { color: #7047c7; background: #f0eaff; }
.feature-card h3 { margin-bottom: 10px; font-size: 23px; letter-spacing: -.025em; }
.feature-card p { color: var(--muted); }
.test-preview { margin-top: 56px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 45px rgba(40,70,105,.09); }
.test-preview > div:first-child { display: flex; justify-content: space-between; margin-bottom: 18px; font-size: 13px; font-weight: 800; }
.preview-bars { height: 155px; display: flex; align-items: end; gap: 9px; }
.preview-bars i { flex: 1; height: 42%; background: #dbe6fb; border-radius: 8px 8px 3px 3px; }
.preview-bars i:nth-child(2) { height: 58%; }
.preview-bars i:nth-child(3) { height: 51%; }
.preview-bars i:nth-child(4) { height: 75%; background: #91b4fc; }
.preview-bars i:nth-child(5) { height: 88%; background: var(--blue); }
.feature-copy { display: flex; align-items: flex-start; gap: 20px; }
.school-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 34px; }
.school-preview span { padding: 14px; color: var(--muted); background: var(--canvas); border-radius: 14px; font-size: 11px; font-weight: 800; }
.school-preview i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: var(--green); border-radius: 50%; }
.school-preview b { display: block; margin: 3px 0 0 14px; color: var(--ink); font-size: 20px; }

.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.role-card { position: relative; min-height: 390px; padding: 26px; background: white; border: 1px solid var(--line); border-radius: 24px; }
.role-featured { border-color: #a9c3fb; box-shadow: 0 20px 50px rgba(36,107,253,.12); }
.role-label { position: absolute; top: -13px; right: 18px; padding: 5px 10px; color: white; background: var(--blue); border-radius: 99px; font-size: 10px; font-weight: 900; }
.role-top { display: flex; align-items: center; gap: 11px; margin-bottom: 36px; }
.role-top span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-weight: 900; }
.role-top small { color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.role-top.student span { color: var(--blue); background: var(--blue-soft); }
.role-top.instructor span { color: var(--green); background: #e4f7ef; }
.role-top.school span { color: #7047c7; background: #f0eaff; }
.role-top.driver span { color: #956900; background: #fff4cf; }
.role-card h3 { min-height: 64px; font-size: 21px; line-height: 1.35; }
.role-card ul { margin: 24px 0 0; padding: 0; list-style: none; }
.role-card li { position: relative; padding: 8px 0 8px 24px; color: var(--ink-2); font-size: 14px; border-top: 1px solid #edf1f6; }
.role-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.steps-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 100px; align-items: start; }
.steps-copy { position: sticky; top: 120px; }
.steps-copy p { max-width: 430px; margin: 22px 0 30px; color: var(--muted); font-size: 17px; }
.steps-list { margin: 0; padding: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 74px 1fr; gap: 24px; padding: 8px 0 38px; }
.steps-list li:not(:last-child) { border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.steps-list > li > span { width: 62px; height: 62px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 18px; font-size: 14px; font-weight: 900; }
.steps-list h3 { margin: 5px 0 7px; font-size: 22px; }
.steps-list p { margin: 0; color: var(--muted); }

.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 60px; padding: 62px; color: white; background: radial-gradient(circle at 85% 20%, #2d66a5, transparent 34%), linear-gradient(135deg, #0e2037, #173b65); border-radius: 34px; box-shadow: var(--shadow); }
.cta-panel > div { max-width: 760px; }
.cta-panel h2 { margin: 10px 0 14px; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
.cta-panel p { margin: 0; color: #c4d4e8; }
.kicker-light { color: #8fb7ff; }
.button-light { flex: 0 0 auto; color: var(--ink); background: white; border-color: white; box-shadow: none; }
.button-light:hover { color: var(--blue); background: #f2f6ff; }

.faq-section { padding-top: 60px; }
.faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 44px 24px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 20px; color: var(--blue); font-size: 25px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding-right: 42px; color: var(--muted); }

footer { padding: 54px 0 30px; color: white; background: #0c1b2e; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 36px; }
.brand-footer { color: white; }
.brand-footer .brand-mark { background: #1b3555; }
.footer-grid > div > p { margin: 14px 0 0; color: #96a8bd; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; color: #c2cedc; font-size: 13px; font-weight: 700; }
.footer-links a:hover { color: white; }
.copyright { grid-column: 1 / -1; margin: 28px 0 0; padding-top: 26px; color: #788ca4; border-top: 1px solid #203651; font-size: 12px; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .product-stage { max-width: 720px; width: 100%; margin: 0 auto; }
  .floating-rating { right: 0; }
  .floating-route { left: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-large { grid-row: auto; min-height: 520px; }
  .feature-wide { grid-column: 1 / -1; }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .role-card { min-height: 330px; }
  .steps-layout, .faq-layout { gap: 55px; }
}

@media (max-width: 780px) {
  .header-inner { min-height: 68px; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .site-nav { position: absolute; left: 20px; right: 20px; top: 74px; display: none; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 11px 10px; }
  .hero { padding-top: 62px; }
  h1 { font-size: clamp(43px, 13vw, 64px); }
  .section { padding: 82px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 20px; }
  .trust-grid { grid-template-columns: 1fr 1fr; padding: 20px 0; }
  .trust-grid div { padding: 14px 20px; }
  .trust-grid div:nth-child(2) { border-right: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .steps-layout, .faq-layout { grid-template-columns: 1fr; }
  .steps-copy { position: static; }
  .cta-panel { display: block; padding: 42px 30px; }
  .cta-panel .button { margin-top: 28px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1180px); }
  .hero { padding: 48px 0 54px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .product-stage { min-height: 430px; }
  .app-window { transform: none; border-radius: 22px; }
  .window-top { min-height: 58px; padding-inline: 17px; }
  .window-body { padding: 20px 16px; }
  .score-ring { width: 58px; height: 58px; }
  .metric-grid { gap: 6px; }
  .metric-grid > div { padding: 11px 8px; }
  .metric-grid strong { font-size: 16px; }
  .floating-card { display: none; }
  .trust-grid strong { font-size: 18px; }
  .section { padding: 68px 0; }
  .section-heading h2, .steps-copy h2, .faq-layout h2 { font-size: 36px; }
  .feature-card, .feature-large, .feature-wide { min-height: auto; padding: 23px; }
  .test-preview { margin-top: 34px; }
  .preview-bars { height: 100px; }
  .feature-copy { display: block; }
  .school-preview { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card { min-height: auto; }
  .role-card h3 { min-height: auto; }
  .steps-list li { grid-template-columns: 56px 1fr; gap: 16px; }
  .steps-list > li > span { width: 52px; height: 52px; }
  .cta-panel { padding: 34px 23px; border-radius: 25px; }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
