/* =========================================================
   SmartZenic — theme tokens
   Dark is the default; [data-theme="light"] overrides it.
   ========================================================= */
:root,
[data-theme="dark"] {
  --bg: #040a1c;
  --bg-2: #071230;
  --surface: rgba(13, 27, 62, 0.72);
  --surface-2: rgba(18, 36, 82, 0.85);
  --border: rgba(84, 132, 255, 0.2);
  --border-strong: rgba(84, 132, 255, 0.38);
  --heading: #ffffff;
  --text: #dbe4ff;
  --muted: #93a4cc;
  --accent: #ff7a00;
  --accent-2: #ffa02e;
  --blue: #2f7bff;
  --blue-2: #1b4fd6;
  --logo-cap: #2a64d8;
  --header-bg: rgba(4, 10, 28, 0.78);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --glow-orange: 0 0 24px rgba(255, 122, 0, 0.45);
  --glow-blue: 0 0 30px rgba(47, 123, 255, 0.35);
  --swirl-opacity: 1;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f8ff;
  --bg-2: #eaf1ff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --border: #e1e8f6;
  --border-strong: #c9d6f2;
  --heading: #0b1b45;
  --text: #24314f;
  --muted: #5a6784;
  --logo-cap: #0d2a66;
  --header-bg: rgba(255, 255, 255, 0.85);
  --card-shadow: 0 10px 30px rgba(17, 45, 110, 0.08);
  --glow-orange: 0 8px 20px rgba(255, 122, 0, 0.3);
  --glow-blue: 0 8px 24px rgba(47, 123, 255, 0.15);
  --swirl-opacity: 0.55;
  color-scheme: light;
}

/* Fixed brand colours used by always-dark blocks (promo, CTA, footer) */
:root {
  --navy-900: #030920;
  --navy-800: #071538;
  --navy-700: #0c2160;
  --radius: 16px;
  --radius-lg: 24px;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ============ Base ============ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; }
.section-title, .cta h2, .promo h3, .side-card h3 { letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.text-accent { color: var(--accent); }
.italic { font-style: normal; }

::selection { background: var(--accent); color: #fff; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; box-shadow: var(--glow-orange);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 122, 0, 0.55); }
.btn--outline { border: 1.5px solid var(--border-strong); color: var(--heading); background: transparent; }
.btn--outline:hover { border-color: var(--blue); box-shadow: var(--glow-blue); transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 16px; }

.play-icon {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--heading); color: var(--bg); font-size: 10px; padding-left: 2px;
}

/* ============ Badges & section heads ============ */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 122, 0, 0.55);
  background: rgba(255, 122, 0, 0.08);
  color: var(--heading); font-family: var(--font-head); font-weight: 600; font-size: 14px;
}
.badge b { color: var(--heading); }
.badge__icon {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); font-size: 12px;
}
.badge--line { position: relative; }
.badge--line::before,
.badge--line::after {
  content: ""; position: absolute; top: 50%; width: 70px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.badge--line::before { right: calc(100% + 12px); }
.badge--line::after { left: calc(100% + 12px); transform: scaleX(-1); }

.section { padding: 90px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 44px; display: grid; justify-items: center; gap: 14px; }
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.section-sub { font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; color: var(--heading); }
.section-text { color: var(--muted); max-width: 560px; }

/* ============ Logo ============ */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 52px; height: 52px; filter: drop-shadow(0 0 10px rgba(255, 122, 0, 0.35)); }
.logo-cap { fill: var(--logo-cap); transition: fill 0.4s; }
.logo-cap-line { stroke: var(--logo-cap); }
.logo__text { display: grid; line-height: 1.1; }
.logo__name { font-family: var(--font-head); font-weight: 700; font-size: 27px; color: var(--heading); letter-spacing: -0.03em; }
.logo__name span { color: var(--accent); }
.logo__tag {
  font-size: 11px; color: var(--muted); letter-spacing: 0.5px; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.logo__tag::before,
.logo__tag::after { content: ""; width: 14px; height: 1px; background: currentColor; opacity: 0.6; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.4s;
}
.header.scrolled { border-color: var(--border); box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 82px; }

.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  font-size: 15px; font-weight: 500; color: var(--heading); padding: 6px 0;
  transition: color 0.2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transition: transform 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.active { color: var(--accent); }
.nav__link.active::after { transform: scaleX(1); }

.nav__dropdown { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 14px); left: -16px; min-width: 220px;
  padding: 10px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: 0.25s var(--ease);
  display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); column-gap: 4px;
}
.nav__menu a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--text); }
.nav__menu a:hover { background: rgba(255, 122, 0, 0.12); color: var(--accent); }
.nav__dropdown:hover .nav__menu,
.nav__dropdown.open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown-toggle svg { transition: transform 0.25s; }
.nav__dropdown.open .nav__dropdown-toggle svg { transform: rotate(180deg); }
.nav__cta-mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.icon-btn,
.theme-toggle {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--heading); transition: background 0.2s, color 0.2s, transform 0.3s;
}
.icon-btn:hover,
.theme-toggle:hover { background: var(--surface); color: var(--accent); }
.icon-btn svg,
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle { border: 1px solid var(--border); }
.theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }

.burger { display: none; width: 42px; height: 42px; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--heading);
  transition: 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.search-bar {
  max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease), visibility 0s linear 0.35s;
  border-top: 1px solid transparent;
  visibility: hidden; /* closed: Tab skips the hidden search box */
}
.search-bar.open { max-height: 100px; border-color: var(--border); visibility: visible; transition: max-height 0.35s var(--ease), visibility 0s; }
.search-bar__form { display: flex; gap: 10px; padding: 14px 0; }
.search-bar__form input {
  flex: 1; padding: 11px 18px; border-radius: 999px; font: inherit;
  background: var(--surface); color: var(--heading); border: 1px solid var(--border); outline: none;
}
.search-bar__form input:focus { border-color: var(--accent); }

/* ============ Hero ============ */
.hero { position: relative; padding: 70px 0 100px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; opacity: var(--swirl-opacity); }
.hero__swirl {
  position: absolute; border-radius: 50%; filter: blur(2px);
  border: 3px solid transparent;
}
.hero__swirl--1 {
  width: 900px; height: 900px; right: -320px; top: -320px;
  border-left-color: var(--accent); border-bottom-color: rgba(255, 122, 0, 0.4);
  box-shadow: -20px 20px 80px -30px rgba(255, 122, 0, 0.6);
  transform: rotate(-20deg);
  animation: spin 40s linear infinite;
}
.hero__swirl--2 {
  width: 1200px; height: 600px; left: -400px; bottom: -380px;
  border-top-color: var(--blue); box-shadow: 0 -30px 120px -40px rgba(47, 123, 255, 0.7);
}
[data-theme="light"] .hero__bg::after {
  content: ""; position: absolute; right: -10%; top: 0; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(47, 123, 255, 0.1) 30%, rgba(47, 123, 255, 0.18));
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
}
@keyframes spin { to { transform: rotate(340deg); } }

.dots {
  position: absolute; width: 120px; height: 90px;
  background-image: radial-gradient(var(--blue) 1.5px, transparent 1.6px);
  background-size: 14px 14px; opacity: 0.45;
}
.dots--tl { left: 46%; top: 60px; }
.dots--br { right: 3%; bottom: 60px; }

.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero__content { display: grid; gap: 22px; justify-items: start; }
.hero__title {
  font-size: clamp(42px, 5.6vw, 76px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04;
}
.underline-swoosh { position: relative; display: inline-block; }
.underline-swoosh::after {
  content: ""; position: absolute; left: 4%; right: -4%; bottom: -10px; height: 12px;
  border-bottom: 4px solid var(--accent); border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: rotate(-2deg);
}
.hero__text { font-size: 18px; max-width: 480px; color: var(--text); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.hero__proof { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 15px; color: var(--heading); margin-top: 8px; }

.avatars { display: flex; }
.avatars span,
.review__avatar {
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff;
  font-family: var(--font-head); font-weight: 600;
}
.avatars span { width: 40px; height: 40px; font-size: 13px; margin-left: -10px; border: 2px solid var(--bg); }
.avatars span:first-child { margin-left: 0; }
.stars { color: #ffb400; letter-spacing: 2px; }

/* Hero visual */
.hero__visual { position: relative; min-height: 480px; display: grid; place-items: center; }
.hero__script {
  position: absolute; top: -10px; right: 0; z-index: 2;
  font-family: "Caveat", cursive; font-size: 44px; line-height: 0.95; color: var(--heading);
  transform: rotate(-12deg);
}
.hero__script::after {
  content: ""; display: block; width: 110px; height: 8px; margin: 6px 0 0 40px;
  border-bottom: 3px solid var(--accent); border-radius: 0 0 50% 50%;
}
.hero__orb {
  position: relative; width: min(400px, 80vw); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 122, 0, 0.18), transparent 60%),
    radial-gradient(circle at 30% 30%, var(--blue-2), var(--navy-800) 70%);
  box-shadow: inset 0 0 60px rgba(47, 123, 255, 0.45), 0 0 80px rgba(47, 123, 255, 0.35), 0 0 0 1px var(--border-strong);
  animation: float 6s ease-in-out infinite;
}
.hero__orb::before {
  content: ""; position: absolute; inset: -22px; border-radius: 50%;
  border: 2px dashed rgba(255, 122, 0, 0.45); animation: spin 30s linear infinite;
}
.hero__orb .logo-cap { fill: #3d7dff; }
.hero__orb-logo { width: 62%; height: 62%; filter: drop-shadow(0 0 28px rgba(255, 122, 0, 0.6)); }

.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  animation: float 5s ease-in-out infinite;
}
.float-card b { display: block; font-family: var(--font-head); color: var(--heading); font-size: 16px; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-card--code { left: -10px; bottom: 40px; display: block; animation-delay: -1s; }
.float-card--code pre { font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.6; color: var(--text); }
.window-dots { display: flex; gap: 6px; margin-bottom: 8px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }
.c-k { color: #c678dd; } .c-v { color: #61afef; } .c-f { color: var(--accent-2); } .c-s { color: #98c379; } .c-c { color: var(--muted); }
.float-card--stat { right: 0; top: 46%; animation-delay: -2.5s; }
.float-card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 122, 0, 0.15); font-size: 20px; }
.float-card--live { left: 6%; top: 40px; animation-delay: -3.5s; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: pulse 1.8s infinite; }

@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ============ Courses ============ */
.courses { padding-top: 40px; }
.courses__layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: stretch; }
.courses__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.course-card {
  display: grid; justify-items: center; text-align: center; align-content: start; gap: 6px;
  padding: 26px 12px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.course-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--glow-orange); }
.course-card__icon { width: 56px; height: 56px; margin-bottom: 10px; }
.course-card__icon svg { width: 100%; height: 100%; }
.ic-react { animation: spin 14s linear infinite; }
.course-card h3 { font-size: 17px; font-weight: 600; }
.course-card p { font-size: 12.5px; color: var(--muted); }
.course-card__go {
  display: grid; place-items: center; width: 26px; height: 26px; margin-top: 10px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 14px; transition: background 0.25s, transform 0.25s;
}
.course-card:hover .course-card__go { background: var(--accent); transform: translateX(3px); }

/* Promo card: always dark navy, in both themes */
.promo {
  position: relative; overflow: hidden; display: grid; align-content: start; justify-items: start; gap: 12px;
  padding: 26px; border-radius: var(--radius-lg); color: #dbe4ff;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 122, 0, 0.55), transparent 40%),
    linear-gradient(135deg, var(--navy-700), var(--navy-900));
  border: 1.5px solid rgba(255, 122, 0, 0.6);
  box-shadow: 0 0 40px rgba(255, 122, 0, 0.18);
}
.promo h3 { color: #fff; font-size: 24px; font-weight: 700; }
.promo p { font-size: 14px; max-width: 180px; }
.promo .btn { margin-top: 4px; }
.promo__tag { padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.promo__laptop { position: absolute; right: 16px; bottom: 16px; width: 92px; transform: rotate(-8deg); }
.promo__screen {
  height: 58px; border-radius: 8px 8px 2px 2px; display: grid; place-items: center;
  background: linear-gradient(135deg, #1749c4, #0a1f5e); border: 3px solid #b8c4e0;
  color: #fff; font-family: monospace; font-weight: 700; font-size: 22px;
  box-shadow: 0 0 24px rgba(47, 123, 255, 0.7);
}
.promo__base { height: 8px; margin: 0 -10px; border-radius: 0 0 8px 8px; background: #b8c4e0; }

/* ============ Why ============ */
.why::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 0 60%, rgba(47, 123, 255, 0.16), transparent 55%);
}
.why__inner { position: relative; display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 50px; align-items: center; }
.why__intro { display: grid; gap: 20px; justify-items: start; }
.why__intro p { color: var(--text); max-width: 420px; font-size: 16.5px; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  display: grid; justify-items: center; align-content: center; gap: 12px; text-align: center;
  padding: 24px 14px; min-height: 140px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.feature:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: var(--glow-blue); }
.feature__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 123, 255, 0.2), rgba(255, 122, 0, 0.18));
  font-size: 26px; color: var(--blue); font-weight: 800; font-family: var(--font-head);
}
.feature h4 { font-size: 14.5px; font-weight: 600; }

/* ============ Reviews carousel ============ */
.carousel { position: relative; padding: 0 60px; }
.carousel__viewport { overflow: hidden; padding: 10px 4px 20px; }
.carousel__track { display: flex; gap: 22px; transition: transform 0.6s var(--ease); }
.review {
  flex: 0 0 calc((100% - 44px) / 3);
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.review:hover { border-color: var(--blue); box-shadow: var(--glow-blue); }
.review__head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.review__avatar { flex: none; width: 64px; height: 64px; font-size: 20px; box-shadow: 0 0 0 3px var(--border-strong); }
.review h4 { font-size: 17px; }
.review__role { font-size: 14px; color: var(--blue); }
[data-theme="dark"] .review__role { color: #6ea0ff; }
.review p { font-size: 14.5px; color: var(--text); }
.carousel__btn {
  position: absolute; top: calc(50% - 30px); z-index: 2;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--heading);
  font-size: 28px; line-height: 1; box-shadow: var(--card-shadow); transition: 0.25s;
}
.carousel__btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }
.carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.carousel__dots button { width: 9px; height: 9px; border-radius: 999px; background: var(--border-strong); transition: 0.3s; }
.carousel__dots button.active { width: 26px; background: var(--accent); }

/* ============ FAQ ============ */
.faqs { padding-top: 30px; }
.faqs__inner { max-width: 820px; }
.faq-list { display: grid; gap: 14px; }
.faq { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-family: var(--font-head); font-weight: 600; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); transition: transform 0.3s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq[open] { border-color: rgba(255, 122, 0, 0.5); }
.faq p { padding: 0 22px 18px; color: var(--muted); }

/* ============ CTA (always dark) ============ */
.cta-wrap { padding: 30px 0 80px; }
.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
  padding: 34px 50px; border-radius: var(--radius-lg); color: #c9d6f5;
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 122, 0, 0.7), transparent 25%),
    radial-gradient(circle at 0 50%, rgba(47, 123, 255, 0.45), transparent 35%),
    linear-gradient(110deg, var(--navy-800), var(--navy-700));
  border: 1px solid rgba(84, 132, 255, 0.35);
  box-shadow: 0 20px 50px rgba(3, 9, 32, 0.4);
}
.cta__rocket { font-size: 64px; filter: drop-shadow(0 0 20px rgba(255, 122, 0, 0.8)); animation: float 4s ease-in-out infinite; }
.cta__text { flex: 1; min-width: 240px; }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; }

/* ============ Footer (always dark) ============ */
.footer {
  --heading: #ffffff; --text: #c4cfeb; --muted: #8e9cc2; --logo-cap: #2a64d8;
  position: relative; color: var(--text);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  padding-top: 70px;
}
.footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 100% 100%, rgba(47, 123, 255, 0.25), transparent 45%);
}
.footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 0.9fr 1.1fr 1.2fr 1.4fr; gap: 34px; padding-bottom: 50px; }
.footer__col { border-left: 1px solid rgba(255, 255, 255, 0.08); padding-left: 26px; }
.footer h4 { font-size: 16px; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; font-size: 14.5px; }
.footer__col a:hover { color: var(--accent); }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand p { font-size: 14.5px; max-width: 260px; }
.logo--footer .logo__mark { width: 60px; height: 60px; }
.socials { display: flex; gap: 12px; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); color: #fff; transition: 0.25s;
}
.socials a:hover { background: var(--accent); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.footer__news p { font-size: 14px; margin-bottom: 14px; }
.newsletter { display: flex; border-radius: 10px; overflow: hidden; background: #fff; }
.newsletter input { flex: 1; min-width: 0; background: #fff; padding: 12px 14px; border: 0; outline: none; font: inherit; font-size: 14px; color: #0b1b45; }
.newsletter button { width: 50px; background: var(--accent); color: #fff; font-size: 20px; transition: background 0.2s; }
.newsletter button:hover { background: var(--accent-2); }
.newsletter.error { box-shadow: 0 0 0 2px #ff4d4d; }
.newsletter__msg { display: block; min-height: 20px; margin-top: 8px; font-size: 13px; }
.newsletter__msg.ok { color: #4ade80; }
.newsletter__msg.err { color: #ff7b7b; }
.footer__bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0; font-size: 14px; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer__bottom i { font-style: normal; margin: 0 8px; opacity: 0.5; }
.footer__bottom a:hover { color: var(--accent); }

/* ============ Modal / to-top ============ */
.modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(2, 6, 20, 0.75); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: 0.3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__box { position: relative; width: min(820px, 100%); transform: scale(0.94); transition: transform 0.3s var(--ease); }
.modal.open .modal__box { transform: none; }
.modal__close { position: absolute; top: -44px; right: 0; font-size: 34px; color: #fff; }
.modal__video {
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); display: grid; place-content: center; justify-items: center; gap: 14px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); border: 1px solid rgba(84, 132, 255, 0.35);
  color: #c4cfeb; --logo-cap: #2a64d8;
}
.modal__video iframe,
.modal__video video { width: 100%; height: 100%; border: 0; border-radius: inherit; }
.modal__logo { width: 110px; height: 110px; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: var(--glow-orange);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1150px) {
  .nav__list { gap: 20px; }
  .courses__layout { grid-template-columns: 1fr; }
  .promo { min-height: 220px; }
  .promo p { max-width: 320px; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col:nth-child(2) { border-left: 0; padding-left: 0; }
}

@media (max-width: 980px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; top: 82px; left: 0; right: 0; height: calc(100dvh - 82px);
    padding: 24px 20px; overflow-y: auto;
    background: var(--bg); border-top: 1px solid var(--border);
    /* Closed: clipped away instead of moved off-screen, so it never makes the page wider
       (a translated menu let phones scroll the page sideways), and hidden so Tab skips its links. */
    clip-path: inset(0 0 0 100%); visibility: hidden;
    transition: clip-path 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .nav.open { clip-path: inset(0); visibility: visible; transition: clip-path 0.4s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { width: 100%; padding: 14px 4px; font-size: 17px; justify-content: space-between; }
  .nav__link::after { display: none; }
  .nav__menu {
    position: static; opacity: 1; visibility: visible; transform: none; display: none;
    box-shadow: none; margin-bottom: 8px;
  }
  .nav__dropdown:hover .nav__menu { display: none; }
  .nav__dropdown.open .nav__menu { display: block; }
  .nav__cta-mobile { display: inline-flex; margin-top: 20px; }

  .hero__inner,
  .why__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 440px; }
  .courses__grid { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .review { flex-basis: calc((100% - 22px) / 2); }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .header__inner { height: 72px; }
  .nav { top: 72px; height: calc(100dvh - 72px); }
  .logo__mark { width: 42px; height: 42px; }
  .logo__name { font-size: 21px; }
  .icon-btn { display: none; }
  .hero { padding-top: 40px; }
  .hero__script { font-size: 32px; }
  .float-card--code { left: 0; bottom: 0; }
  .float-card--code pre { font-size: 11px; }
  .float-card--stat { right: 0; top: auto; bottom: 120px; }
  .courses__grid { grid-template-columns: repeat(2, 1fr); }
  .badge--line::before,
  .badge--line::after { width: 30px; }
  .carousel { padding: 0; }
  .carousel__btn { display: none; }
  .review { flex-basis: 100%; }
  .cta { padding: 30px 24px; justify-content: center; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__col { border-left: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Multi-page components
   ========================================================= */
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.section--tight { padding: 50px 0 70px; }
.center-link { display: flex; justify-content: center; margin-top: 36px; }
.nav__menu-all { grid-column: 1 / -1; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.nav__menu-all a { color: var(--accent); font-weight: 600; }
.why__grid--3 { grid-template-columns: repeat(3, 1fr); }
.btn--ghost { justify-content: center; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.25); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: 70px 0 60px; border-bottom: 1px solid var(--border); }
.page-hero .hero__swirl--1 { width: 700px; height: 700px; top: -380px; right: -200px; }
.page-hero .hero__swirl--2 { bottom: -520px; }
.page-hero__inner { position: relative; display: grid; gap: 16px; justify-items: start; }
.page-hero__inner > p { max-width: 720px; }
.page-hero__inner--icon { max-width: none; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.page-hero__inner--icon > div:first-child { display: grid; gap: 16px; max-width: 720px; }
.page-hero__title { font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em; }
.page-hero p { font-size: 17.5px; color: var(--text); }
.page-hero__icon {
  width: 170px; height: 170px; padding: 34px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--blue-2), var(--navy-800) 70%);
  box-shadow: inset 0 0 40px rgba(47, 123, 255, 0.45), 0 0 60px rgba(47, 123, 255, 0.3);
  animation: float 6s ease-in-out infinite;
}
.page-hero__icon svg { width: 100%; height: 100%; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span:last-child { color: var(--accent); }

/* Stats band */
.stats-band { padding: 10px 0 40px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 34px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
}
.stat { display: grid; justify-items: center; text-align: center; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { font-family: var(--font-head); font-size: clamp(32px, 4vw, 46px); font-weight: 700; color: var(--accent); }
.stat span { color: var(--muted); font-size: 14.5px; }

/* Courses page */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); transition: 0.25s;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.active { background: linear-gradient(135deg, var(--accent-2), var(--accent)); border-color: transparent; color: #fff; box-shadow: var(--glow-orange); }
.search-field {
  display: flex; align-items: center; gap: 10px; min-width: 280px; padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.search-field:focus-within { border-color: var(--accent); }
.search-field svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-field input { flex: 1; border: 0; outline: none; background: none; font: inherit; color: var(--heading); }
.course-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-tile {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.course-tile:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--glow-orange); }
.course-tile__flag { position: absolute; top: 18px; right: 18px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.course-tile__top { display: flex; align-items: center; gap: 16px; }
.course-tile__top .course-card__icon { margin: 0; flex: none; }
.course-tile h3 { font-size: 21px; margin-top: 4px; }
.course-tile > p { font-size: 14.5px; color: var(--muted); flex: 1; }
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(47, 123, 255, 0.14); color: var(--blue);
}
[data-theme="dark"] .chip { color: #7aa8ff; }
.chip--lg { padding: 8px 16px; font-size: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--text); }
.course-tile__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.course-tile__actions .btn { flex: 1; justify-content: center; }
.empty-state { text-align: center; padding: 40px; color: var(--muted); }

/* Course detail */
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.detail__main { display: grid; gap: 24px; }
.panel { padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.panel h2 { font-size: 24px; margin-bottom: 18px; }
.ticks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(255, 122, 0, 0.15); color: var(--accent); font-size: 12px; font-weight: 700;
}
.ticks--sm { grid-template-columns: 1fr; padding: 0 22px 18px; font-size: 14.5px; color: var(--muted); }
.module-no { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.detail__side { position: sticky; top: 100px; }
.side-card {
  display: grid; gap: 16px; justify-items: start; padding: 28px; border-radius: var(--radius-lg); color: #c9d6f5;
  background: radial-gradient(circle at 100% 0, rgba(255, 122, 0, 0.45), transparent 40%), linear-gradient(135deg, var(--navy-700), var(--navy-900));
  border: 1.5px solid rgba(255, 122, 0, 0.55); box-shadow: 0 0 40px rgba(255, 122, 0, 0.15);
}
.side-card h3 { color: #fff; font-size: 26px; }
.side-card__info { width: 100%; display: grid; }
.side-card__info li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 14.5px; }
.side-card__info b { color: #fff; text-align: right; }
.side-card .btn { width: 100%; justify-content: center; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.split__media { position: relative; display: grid; place-items: center; min-height: 380px; }
.split__media .float-card--stat { right: 4%; top: auto; bottom: 20px; }
.hero__orb--sm { width: min(340px, 75vw); }
.split__text { display: grid; gap: 18px; justify-items: start; }
.split__text > p { color: var(--text); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; margin-top: 6px; }
.mv__card { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.mv__card .feature__icon { flex: none; width: 46px; height: 46px; font-size: 22px; }
.mv__card h4 { font-size: 16px; margin-bottom: 4px; }
.mv__card p { font-size: 13.5px; color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member {
  display: grid; justify-items: center; text-align: center; gap: 6px; padding: 30px 20px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); transition: 0.3s var(--ease);
}
.member:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: var(--glow-blue); }
.member__avatar {
  display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 28px;
  box-shadow: 0 0 0 4px var(--border-strong);
}
.member h4 { font-size: 18px; }
.member h4 + span { color: var(--accent); font-size: 14px; font-weight: 600; }
.member p { font-size: 13.5px; color: var(--muted); }

/* Reviews page */
.rating-summary {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; margin-bottom: 40px;
  padding: 30px 36px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow);
}
.rating-summary__score { display: grid; justify-items: center; gap: 4px; }
.rating-summary__score b { font-family: var(--font-head); font-size: 64px; line-height: 1; color: var(--heading); }
.rating-summary__score small { color: var(--muted); }
.rating-summary__bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 40px 1fr 44px; align-items: center; gap: 12px; font-size: 14px; }
.bar i { height: 10px; border-radius: 999px; background: var(--border); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.bar em { font-style: normal; color: var(--muted); text-align: right; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* FAQ page */
.faq-group { font-size: 22px; margin: 34px 0 16px; }
.faq-group:first-child { margin-top: 0; }
.still-q {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 44px;
  padding: 28px 32px; border-radius: var(--radius-lg); color: #c9d6f5;
  background: linear-gradient(110deg, var(--navy-800), var(--navy-700)); border: 1px solid rgba(84, 132, 255, 0.35);
}
.still-q h3 { color: #fff; font-size: 22px; }

/* Contact page */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-card {
  display: grid; justify-items: center; text-align: center; gap: 8px; padding: 28px 18px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); transition: 0.3s var(--ease);
}
a.contact-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--glow-orange); }
.contact-card h4 { font-size: 17px; }
.contact-card p { color: var(--muted); font-size: 14.5px; word-break: break-word; }
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: stretch; }
.enquiry { display: grid; gap: 18px; justify-items: start; }
.enquiry h2 { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; width: 100%; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--heading); }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 12px 16px; border-radius: 12px; font: inherit; font-size: 15px; color: var(--heading);
  background: var(--bg); border: 1px solid var(--border-strong); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.18); }
.field.invalid input,
.field.invalid select { border-color: #ff5a5a; }
.field__err { color: #ff6b6b; font-size: 12.5px; }
.field__err:empty { display: none; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); font-weight: 500; font-size: 14px; white-space: nowrap;
}
.radios label:has(input:checked) { border-color: var(--accent); background: rgba(255, 122, 0, 0.12); color: var(--accent); }
.radios input { accent-color: var(--accent); }
.form-msg { min-height: 22px; font-size: 14.5px; font-weight: 500; }
.form-msg.ok { color: #22c55e; }
.form-msg.err { color: #ff6b6b; }
.map { min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
[data-theme="dark"] .map iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.6); }

@media (max-width: 1150px) {
  .course-list,
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr 320px; }
  .team,
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .why__grid--3 { grid-template-columns: repeat(2, 1fr); }
  .detail,
  .split,
  .contact-layout { grid-template-columns: 1fr; }
  .detail__side { position: static; }
  .page-hero__inner--icon { grid-template-columns: 1fr; }
  .page-hero__icon { width: 120px; height: 120px; padding: 24px; grid-row: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; }
  .rating-summary { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 44px 0 40px; }
  .course-list,
  .review-grid,
  .team,
  .mv,
  .form-grid,
  .ticks { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .search-field { min-width: 0; width: 100%; }
  .panel { padding: 22px; }
  .stats { padding: 24px 16px; }
}
