:root {
  --navy: #0b2a5b;
  --navy-2: #123a7a;
  --blue: #1d6fe0;
  --sky: #eaf3ff;
  --teal: #1fa99c;
  --ink: #14213d;
  --muted: #5b6b86;
  --line: #dde6f3;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 42, 91, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 0.95rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1558b8; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { color: var(--navy); }
.btn-ghost:hover { background: var(--sky); }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.25rem; }
.brand-light { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a:not(.btn) { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav-links > a:not(.btn):hover { background: var(--sky); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%); color: #fff; padding: 72px 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: #9fd9d3; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin: 0 0 16px; }
.accent { color: #5fe0d2; }
.lead { font-size: 1.15rem; color: #d6e4fa; max-width: 52ch; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--navy); }
.trust { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; padding: 0; margin: 28px 0 0; color: #bcd2f2; font-size: 0.9rem; }
.trust li::before { content: "\2713"; color: #5fe0d2; margin-right: 6px; }

.hero-card { text-align: center; }
.mock { background: #fff; color: var(--ink); border-radius: 18px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); text-align: left; }
.mock-bar { display: flex; gap: 6px; margin-bottom: 12px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-title { font-weight: 700; margin: 0 0 10px; color: var(--navy); }
.mock-video { position: relative; aspect-ratio: 16/9; border-radius: 10px; background: linear-gradient(135deg, #cfe3ff, #9ec5f7); display: grid; place-items: center; }
.play { width: 54px; height: 54px; border-radius: 50%; background: var(--navy); position: relative; }
.play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.mock-progress { height: 8px; background: var(--sky); border-radius: 99px; margin: 14px 0; overflow: hidden; }
.mock-fill { height: 100%; width: 65%; background: var(--teal); }
.mock-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--muted); }
.mock-row b { background: var(--blue); color: #fff; padding: 5px 14px; border-radius: 8px; font-size: 0.85rem; }
.mock-note { font-size: 0.75rem; color: #9db6dc; margin: 8px 0 0; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--sky); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--navy); margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 32px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card, .role { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3, .role h3 { margin: 10px 0 6px; color: var(--navy); font-size: 1.1rem; }
.card p, .role p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.ico { width: 46px; height: 46px; display: grid; place-items: center; background: var(--sky); border-radius: 12px; font-size: 1.4rem; }
.role { border-top: 4px solid var(--teal); }

.demo-banner { display: inline-block; background: #fff6d6; border: 1px solid #f0d77a; color: #6b5300; padding: 6px 12px; border-radius: 8px; font-size: 0.85rem; margin: 0 0 20px; }
.loading { color: var(--muted); }

.course { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.course-top { background: linear-gradient(135deg, var(--navy-2), var(--blue)); color: #fff; padding: 22px 18px; min-height: 96px; display: flex; align-items: flex-end; font-weight: 700; font-size: 1.15rem; }
.course-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.course-meta { color: var(--muted); font-size: 0.88rem; }
.course-price { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--navy); }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; margin: 24px 0 0; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 8px; }
.steps span { color: var(--muted); font-size: 0.93rem; }

.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: #bcd2f2; }

.footer { background: #07183a; color: #bcd2f2; padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer p { margin: 0; }
.copy { font-size: 0.85rem; }

/* 404 */
.notfound { background: var(--sky); }
.nf { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; }
.nf h1 { color: var(--navy); margin: 8px 0 0; }
.nf p { color: var(--muted); margin: 0 0 12px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff;
    flex-direction: column; align-items: stretch; padding: 12px 16px 16px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { text-align: center; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Auth pages */
.auth-body { background: linear-gradient(160deg, var(--sky), #fff); min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 18px 0 4px; color: var(--navy); font-size: 1.6rem; }
.auth-sub { color: var(--muted); margin: 0 0 18px; }
.auth-card form { display: flex; flex-direction: column; gap: 6px; }
.auth-card label { font-weight: 600; font-size: 0.9rem; margin-top: 8px; }
.auth-card input { padding: 11px 12px; border: 1px solid #b9c8e0; border-radius: 10px; font-size: 1rem; font: inherit; }
.auth-card input:focus { outline: 3px solid #bcd6ff; border-color: var(--blue); }
.btn-block { width: 100%; margin-top: 16px; text-align: center; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.form-error { background: #fdeceb; border: 1px solid #f3b8b4; color: #8a1c14; padding: 10px 12px; border-radius: 10px; margin: 0 0 8px; font-size: 0.92rem; }
.hint { color: var(--muted); font-size: 0.82rem; margin: 2px 0 0; }
.auth-alt { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: 0.93rem; }
.auth-alt a { color: var(--blue); font-weight: 600; }
.form-ok { background: #dff5ec; border: 1px solid #a6dcc5; color: #0b6b4a; padding: 10px 12px; border-radius: 10px; margin: 0 0 8px; font-size: 0.92rem; }
