:root {
  --navy: #0f172a;
  --navy-deep: #0a192f;
  --navy-soft: #1e293b;
  --blue: #2563eb;
  --cyan: #0ea5e9;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --success: #059669;
  --danger: #dc2626;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 18px;
  --header-h: 76px;
  --announce-h: 42px;
  --font: "Plus Jakarta Sans", "Outfit", system-ui, sans-serif;
  --max: 1180px;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-elevated: #111827;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --line: #1e293b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: #0f172a;
  padding: 0.6rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.announce {
  min-height: var(--announce-h);
  background: linear-gradient(90deg, #0a192f, #1d4ed8 55%, #0ea5e9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  text-align: center;
}

.announce a {
  color: #fbbf24;
  text-decoration: underline;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-amber {
  background: var(--amber);
  color: #0f172a;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.22), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(245, 158, 11, 0.14), transparent 26%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: 4.5rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 90%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(14, 165, 233, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  max-width: 14ch;
}

.lead {
  color: #cbd5e1;
  font-size: 1.08rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1.8rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.85rem;
}

.stat strong {
  display: block;
  color: var(--amber);
  font-size: 0.95rem;
}

.stat span {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 1.3rem;
  backdrop-filter: blur(10px);
}

.hero-card h3 {
  font-size: 1.05rem;
}

.roadmap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.roadmap-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

.section {
  padding: 4.2rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.kicker {
  color: var(--blue);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.grid-4,
.grid-3,
.grid-2,
.course-grid {
  display: grid;
  gap: 1rem;
}

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

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

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.course-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

[data-theme="dark"] .badge {
  color: var(--amber-soft);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.7rem 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.syllabus-panel {
  display: none;
}

.syllabus-panel.active {
  display: block;
}

.module {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.module strong {
  display: block;
}

.testimonial {
  min-height: 180px;
}

.quote {
  font-size: 1.02rem;
  margin: 0 0 1rem;
}

.cta-banner {
  background: linear-gradient(135deg, #0a192f, #1d4ed8);
  color: #fff;
  border-radius: 28px;
  padding: 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.footer {
  background: var(--navy-deep);
  color: #cbd5e1;
  padding: 3rem 0 1.2rem;
  margin-top: 2rem;
}

.footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer h3 {
  color: #fff;
  font-size: 0.95rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin: 0.4rem 0;
}

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.82rem;
}

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
}

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 80;
  display: none;
}

.drawer.open {
  display: block;
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(320px, 88vw);
  background: var(--bg-elevated);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  z-index: 90;
  display: none;
  place-items: center;
  padding: 1rem;
}

.modal.open {
  display: grid;
}

.modal-card {
  width: min(520px, 100%);
  background: var(--bg-elevated);
  border-radius: 22px;
  padding: 1.5rem;
  position: relative;
}

.close {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 0.8rem;
}

label {
  font-weight: 700;
  font-size: 0.86rem;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 0.28rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
}

.error {
  color: var(--danger);
  font-size: 0.78rem;
  min-height: 1em;
}

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 3.2rem 0 2.4rem;
}

.accordion details {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.7rem;
}

.accordion summary {
  cursor: pointer;
  font-weight: 800;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.map {
  min-height: 260px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(14, 165, 233, 0.08)),
    repeating-linear-gradient(0deg, transparent, transparent 24px, var(--line) 25px),
    repeating-linear-gradient(90deg, transparent, transparent 24px, var(--line) 25px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}

.success-msg {
  display: none;
  background: rgba(5, 150, 105, 0.12);
  color: var(--success);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-weight: 700;
}

.success-msg.show {
  display: block;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-4,
  .grid-3,
  .course-grid,
  .footer-grid,
  .cta-banner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .nav,
  .nav-cta .btn-secondary,
  .nav-cta .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0 2.4rem;
  }

  .card-actions,
  .hero-actions {
    flex-direction: column;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

.brand img {
  border-radius: 12px;
  object-fit: cover;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 0.7rem;
}

/* Keep the nav on one line now that it has an extra link */
.nav a,
.nav-cta .btn,
.brand > div {
  white-space: nowrap;
}

@media (max-width: 1440px) {
  .nav-cta .btn-secondary {
    display: none;
  }
}

/* Eight menu links need more room: switch to the hamburger menu earlier */
@media (max-width: 1200px) {
  .nav,
  .nav-cta .btn-secondary,
  .nav-cta .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

/* Social links */
.social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-right: 0.4rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.footer .social-link {
  border-color: rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
}

.footer .social-link:hover {
  background: rgba(14, 165, 233, 0.18);
  border-color: var(--cyan);
}

.social-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.social-inline .social-link:hover {
  border-color: var(--cyan);
  color: var(--blue);
}

/* ===== Polish: hero, pattern tiles, video, units, motion ===== */
h1 .grad {
  background: linear-gradient(90deg, #38bdf8, #a78bfa 60%, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  font-size: 0.86rem;
  font-weight: 700;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.pattern {
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 5%, var(--bg)), var(--bg));
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pattern-tile {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow);
}

.pattern-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--amber));
}

.pattern-tile strong {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pattern-tile span {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.source-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.video-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.check-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.7rem;
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.78rem;
  width: 0.3rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0.9);
}

.yt-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #0a192f, #1d4ed8);
  box-shadow: var(--shadow);
}

.yt-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.yt-facade:hover img {
  transform: scale(1.04);
}

.yt-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 47, 0) 45%, rgba(10, 25, 47, 0.85));
}

.yt-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
  transition: transform 0.2s ease;
}

.yt-play::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 24px;
  border-style: solid;
  border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent #0f172a;
}

.yt-facade:hover .yt-play {
  transform: scale(1.08);
}

.yt-caption {
  position: absolute;
  z-index: 2;
  left: 1.1rem;
  bottom: 0.9rem;
  right: 1.1rem;
  color: #fff;
  font-weight: 700;
  text-align: left;
}

.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-fallback {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
}

.demo-fallback a {
  color: var(--blue);
  text-decoration: underline;
}

.syllabus-panel.units-2col.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.5rem;
}

.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--cyan) 55%, var(--line));
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.38);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* scroll reveal (only when JS is running) */
.js-reveal .reveal:not(.in) {
  opacity: 0;
  transform: translateY(16px);
}

.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (max-width: 980px) {
  .pattern-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .syllabus-panel.units-2col.active { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .card, .yt-facade img, .yt-play { transition: none; }
  .pulse { animation: none; }
  .js-reveal .reveal:not(.in) { opacity: 1; transform: none; }
}

@media (max-width: 780px) {
  .grid-2 { grid-template-columns: 1fr; }
  .card { min-width: 0; }
}
