:root {
  --canvas: #fcfbff;
  --ink: #14152b;
  --muted: #5b5e7a;
  --indigo: #5b4fe0;
  --violet: #8a4fff;
  --sky: #2fc6de;
  --coral: #ff7a45;
  --line: #e7e5f5;

  --indigo-light: #bbaff1;
  --violet-light: #c2a5e7;
  --sky-light: #a9e3f0;
  --coral-light: #f1b095;
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3,
.font-display {
  font-family: "Space Grotesk", sans-serif;
}
.font-mono-tag {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}

::selection {
  background: var(--indigo);
  color: #fff;
}

/* Focus visibility (a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Gradient text ---------- */
.grad-text {
  /* background-image: linear-gradient(
    100deg,
    var(--indigo),
    var(--violet) 55%,
    var(--sky)
  ); */
  background: var(--violet);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Animated gradient blob background ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  background: var(--canvas);
}
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
}
.blob-1 {
  width: 38vw;
  height: 38vw;
  top: -10%;
  left: -8%;
  background: var(--indigo-light);
  animation: blobMove1 22s ease-in-out infinite;
}
.blob-2 {
  width: 32vw;
  height: 32vw;
  top: 8%;
  right: -10%;
  background: var(--sky-light);
  animation: blobMove2 26s ease-in-out infinite;
}
.blob-3 {
  width: 34vw;
  height: 34vw;
  bottom: -14%;
  left: 18%;
  background: var(--violet-light);
  animation: blobMove3 24s ease-in-out infinite;
}
.blob-4 {
  width: 22vw;
  height: 22vw;
  bottom: 6%;
  right: 8%;
  background: var(--coral-light);
  opacity: 0.28;
  animation: blobMove2 20s ease-in-out infinite reverse;
}

@keyframes blobMove1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(6vw, 8vw) scale(1.15);
  }
  66% {
    transform: translate(-4vw, 4vw) scale(0.9);
  }
}
@keyframes blobMove2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-6vw, 6vw) scale(0.92);
  }
  66% {
    transform: translate(4vw, -6vw) scale(1.12);
  }
}
@keyframes blobMove3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(5vw, -7vw) scale(1.1);
  }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 21, 43, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 21, 43, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 20%,
    black 40%,
    transparent 90%
  );
}

/* ---------- Glass ---------- */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

/* ---------- Gradient animated border card ---------- */
.grad-border {
  position: relative;
  border-radius: 1.25rem;
  padding: 1.5px;
  background: linear-gradient(
    115deg,
    var(--indigo),
    var(--sky) 35%,
    var(--violet) 68%,
    var(--coral)
  );
  background-size: 300% 300%;
  animation: borderShimmer 8s ease infinite;
}
.grad-border > .grad-border-inner {
  background: #fff;
  border-radius: calc(1.25rem - 1.5px);
  height: 100%;
}
@keyframes borderShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ---------- Course / feature cards ---------- */
.tilt-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.tilt-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px -18px rgba(91, 79, 224, 0.35);
}

/* ---------- Marquee ---------- */
.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marqueeScroll 32s linear infinite;
}
.marquee-track.reverse {
  animation-direction: reverse;
  animation-duration: 38s;
}
.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.fade-edges {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

/* ---------- Code-window chrome (signature achievement block) ---------- */
.terminal {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(20, 21, 43, 0.35);
  border: 1px solid var(--line);
}
.terminal-bar {
  background: #14152b;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 9999px;
}

/* ---------- Big animated stat numbers ---------- */
.stat-card {
  position: relative;
  padding: 2.25rem 1.25rem;
  text-align: center;
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 10px 26px -10px rgba(91, 79, 224, 0.55);
}
.stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(2.35rem, 5.2vw, 3.6rem);
  color: var(--ink);
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.stat-number.counted {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.stat-number .suffix {
  background-image: linear-gradient(
    100deg,
    var(--indigo),
    var(--violet) 55%,
    var(--sky)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}
.stat-underline {
  height: 4px;
  width: 40px;
  margin: 16px auto 0;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    var(--indigo),
    var(--violet),
    var(--sky),
    var(--indigo)
  );
  background-size: 300% 100%;
  animation: borderShimmer 5s ease infinite;
}
@media (min-width: 640px) {
  .stat-card:not(:last-child) {
    border-right: 1px solid var(--line);
  }
}
@media (max-width: 639px) {
  .stat-card:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Reveal on scroll ---------- */

#enrollForm {
  width: 550px;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Misc ---------- */
.btn-primary {
  background: linear-gradient(100deg, var(--indigo), var(--violet));
  box-shadow: 0 12px 30px -10px rgba(91, 79, 224, 0.55);
}
.btn-primary:hover {
  box-shadow: 0 16px 36px -8px rgba(91, 79, 224, 0.7);
  transform: translateY(-2px);
}
.btn-coral {
  background: linear-gradient(100deg, var(--coral), #ff9a6b);
}

input,
select {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
input:focus,
select:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(91, 79, 224, 0.12);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 9999px;
}
@media screen and (max-width: 978px) {
  #enrollForm {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============ WHY PARENTS ============ */
.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.why-img-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(53, 0, 153, 0.1);
  aspect-ratio: 4/5;
}
.why-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 14px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #eae7f8;
  padding: 16px 18px;
  border-radius: 14px;
}
.check-item .tick {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(78, 194, 78);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.check-item span.txt {
  font-size: 15px;
  font-weight: 600;
  color: #140f2e;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.check-item span.txt .ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: #eee6ff;
  color: #5800ff;
}
.parent-review-slider {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 5;

  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(12px);

  border-radius: 18px;
  padding: 18px 20px;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.parent-review-slider .swiper-slide {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.parent-review-slider p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #1f2937;
  font-weight: 600;
  margin: 0;
}

.parent-review-slider span {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

@media (max-width: 768px) {
  .parent-review-slider {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 15px;
  }

  .parent-review-slider p {
    font-size: 14px;
  }
}

@media (max-width: 1080px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ BEFORE / AFTER ============ */

.ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}
.ba-col {
  background: #fff;
  border: 1.5px solid #eae7f8;
  padding: 32px 30px;
}
.ba-col.before {
  border-radius: 28px 0 0 28px;
}
.ba-col.after {
  border-radius: 0 28px 28px 0;
  border-color: #d9c9ff;
  background: linear-gradient(180deg, #fbf9ff, #fff);
}
.ba-head {
  font-size: 19px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ba-head .ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.before .ba-head .ic {
  background: #fdecec;
  color: #e5484d;
}
.after .ba-head .ic {
  background: #eee6ff;
  color: #5800ff;
}
.ba-list {
  display: grid;
  gap: 13px;
}
.ba-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: #544f6b;
  align-items: flex-start;
}
.before .ba-list li::before {
  content: "✕";
  color: #e5484d;
  font-weight: 800;
  flex-shrink: 0;
}
.after .ba-list li {
  color: #140f2e;
  font-weight: 600;
}
.after .ba-list li::before {
  content: "✓";
  color: #0fae66;
  font-weight: 800;
  flex-shrink: 0;
}
.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}
.ba-arrow-inner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(88, 0, 255, 0.4);
}

@media (max-width: 760px) {
  .ba-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ WHAT YOU'LL BUILD ============ */

.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.build-card {
  background: #fff;
  border: 1px solid #eae7f8;
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.build-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(53, 0, 153, 0.1);
}
.mock-browser {
  background: #f4f1ff;
  /* padding: 12px; */
  height: 250px;
  overflow: hidden;
}
.mock-browser img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.build-card .info {
  padding: 18px 20px 20px;
}
.build-card h4 {
  font-size: 16px;
  margin-bottom: 5px;
}
.build-card p {
  font-size: 13.5px;
  color: #544f6b;
}
.build-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #0096ff;
  background: #e8f6ff;
  padding: 4px 9px;
  border-radius: 6px;
}

@media (max-width: 1080px) {
  .build-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .build-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ COMPARISON TABLE ============ */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20, 15, 46, 0.05);
  border: 1px solid #eae7f8;
}
.compare-table th {
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
}
.compare-table th.hl {
  background: linear-gradient(
    100deg,
    var(--indigo),
    var(--violet) 55%,
    var(--sky)
  );
  color: #fff;
}
.compare-table th:first-child {
  color: #8b86a3;
  font-weight: 600;
  background: #fff;
}
.compare-table td {
  padding: 17px 24px;
  font-size: 14.5px;
  border-top: 1px solid #eae7f8;
}
.compare-table td:first-child {
  color: #8b86a3;
}
.compare-table td.hl {
  background: #faf7ff;
  font-weight: 700;
  color: #140f2e;
}
.compare-table td.hl::before {
  content: "✓ ";
  color: #0fae66;
  font-weight: 900;
}
.compare-table td.dim::before {
  content: "— ";
  color: #c9c5db;
}

@media (max-width: 760px) {
  .compare-table {
    font-size: 13px;
  }
  .compare-table th,
  .compare-table td {
    padding: 13px 12px;
  }
}

/* ============ COMPARISON TABLE ============ */

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20, 15, 46, 0.05);
  border: 1px solid #eae7f8;
}
.compare-table th {
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
}
.compare-table th.hl {
  background: linear-gradient(
    100deg,
    var(--indigo),
    var(--violet) 55%,
    var(--sky)
  );
  color: #fff;
}
.compare-table th:first-child {
  color: #8b86a3;
  font-weight: 600;
  background: #fff;
}
.compare-table td {
  padding: 17px 24px;
  font-size: 14.5px;
  border-top: 1px solid #eae7f8;
}
.compare-table td:first-child {
  color: #8b86a3;
}
.compare-table td.hl {
  background: #faf7ff;
  font-weight: 700;
  color: #140f2e;
}
.compare-table td.hl::before {
  content: "✓ ";
  color: #0fae66;
  font-weight: 900;
}
.compare-table td.dim::before {
  content: "— ";
  color: #c9c5db;
}

/* ============ CERTIFICATE ============ */

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cert-mock {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 36px 34px;
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--indigo) border-box;
  box-shadow: 0 25px 60px -15px rgba(53, 0, 153, 0.28);
}
.cert-mock::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px dashed #d9c9ff;
  border-radius: 12px;
  pointer-events: none;
}
.cert-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.cert-seal {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(120deg, #5800ff 0%, #0096ff 55%, #00d7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.cert-mock h3 {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b86a3;
  margin-bottom: 6px;
}
.cert-mock .name {
  text-align: center;
  font-size: 26px;
  margin: 10px 0;
  color: #140f2e;
}
.cert-mock .sub-text {
  text-align: center;
  font-size: 13px;
  color: #544f6b;
  margin-bottom: 22px;
}
.cert-line {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8b86a3;
  border-top: 1px dashed #eae7f8;
  padding-top: 14px;
}

@media (max-width: 1080px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ FAQ ============ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start !important;
}

.faq-image {
  height: 500px;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.faq-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease-in-out;
}

.faq-image:hover img {
  transform: scale(1.1);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  gap: 16px;
}
.faq-q .plus {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--violet);
  transition: transform 0.25s;
}
.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--slate);
}

@media (max-width: 1080px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
