:root {
  --ink: #0b1b3a;
  --text: #f4f7ff;
  --muted: #c5d0e8;
  --blue: #2f6bff;
  --green: #22c55e;
  --orange: #ff8a1f;
  --brand: #2f6bff;
  --brand-deep: #1d4ed8;
  --accent: #ff8a1f;
  --panel: rgba(10, 22, 48, 0.78);
  --line: rgba(244, 247, 255, 0.14);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  --radius: 18px;
  --font: "Outfit", sans-serif;
  --display: "Syne", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 650px at 15% -5%, rgba(47, 107, 255, 0.45), transparent 55%),
    radial-gradient(900px 600px at 90% 0%, rgba(255, 138, 31, 0.28), transparent 50%),
    radial-gradient(800px 500px at 70% 80%, rgba(34, 197, 94, 0.18), transparent 55%),
    linear-gradient(165deg, #050b1a 0%, #0d1a3a 45%, #122447 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow,
.bg-blob {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  inset: auto -15% -25% auto;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.22), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}

.bg-blob-a {
  top: 12%;
  left: -8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 31, 0.35), transparent 70%);
  filter: blur(8px);
  animation: pulse 7s ease-in-out infinite;
}

.bg-blob-b {
  top: 40%;
  right: -6%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.28), transparent 70%);
  filter: blur(10px);
  animation: pulse 8s ease-in-out infinite reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-8%, -6%, 0) scale(1.08); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 10px;
  background: #f7f4ec;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  color: #fff !important;
  background: var(--orange);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700 !important;
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.4rem 2.5rem;
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  text-align: left;
  max-width: 34rem;
}

.hero-kicker {
  margin: 0 0 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #dce6ff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  animation: rise 0.7s ease both;
}

.hero-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 138, 31, 0.6);
  animation: ping 1.8s ease-out infinite;
}

.brand {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.02em;
  line-height: 0.88;
  animation: rise 0.8s ease 0.05s both;
}

.brand-line {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.6rem, 9vw, 6.4rem);
  letter-spacing: -0.05em;
  -webkit-text-stroke: 3px #0b1b3a;
  paint-order: stroke fill;
  filter: drop-shadow(0 10px 0 rgba(11, 27, 58, 0.35));
}

.brand-blue { color: #4d8bff; }

.brand-orange {
  color: var(--orange);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-left: 0.15em;
}

.brand-green { color: #35d87a; }

.hero-lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 30rem;
  animation: rise 0.85s ease 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  animation: rise 0.9s ease 0.18s both;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  animation: rise 0.95s ease 0.15s both;
}

.flyer-fan {
  position: relative;
  width: min(100%, 340px);
  height: 420px;
}

.fan-card {
  position: absolute;
  width: 72%;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 3 / 4;
  background: #111;
}

.fan-1 {
  left: 0;
  top: 36px;
  transform: rotate(-12deg);
  animation: floaty 5.2s ease-in-out infinite;
  z-index: 1;
}

.fan-2 {
  left: 16%;
  top: 10px;
  width: 78%;
  transform: rotate(2deg);
  animation: floaty 5.8s ease-in-out 0.4s infinite;
  z-index: 2;
}

.fan-3 {
  right: 0;
  top: 48px;
  transform: rotate(14deg);
  animation: floaty 6.2s ease-in-out 0.8s infinite;
  z-index: 3;
}

.click-cursor {
  position: absolute;
  right: 8%;
  bottom: 8%;
  width: 54px;
  height: 54px;
  z-index: 5;
  animation: cursorTap 2.4s ease-in-out infinite;
}

.click-cursor svg {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.click-ripple {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 138, 31, 0.9);
  opacity: 0;
  animation: ripple 2.4s ease-out infinite;
}

.hero-marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 0.85rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: rgba(244, 247, 255, 0.72);
}

.marquee-track span::after {
  content: "•";
  margin-left: 2.2rem;
  color: var(--orange);
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 138, 31, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(255, 138, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 138, 31, 0); }
}

@keyframes cursorTap {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-10px, -14px) scale(1); }
  55% { transform: translate(-10px, -14px) scale(0.92); }
  70% { transform: translate(-6px, -8px) scale(1); }
}

@keyframes ripple {
  0%, 45% { opacity: 0; transform: scale(0.4); }
  55% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.4); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #4d8bff, #1d4ed8);
  color: #fff;
  box-shadow: 0 10px 28px rgba(47, 107, 255, 0.35);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn-secondary {
  background: rgba(47, 107, 255, 0.14);
  color: #9ec0ff;
  border-color: rgba(77, 139, 255, 0.4);
  width: 100%;
  margin-top: auto;
}

.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.4rem;
}

.section-alt {
  padding-top: 2rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.courses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.course {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.course:hover {
  border-color: rgba(77, 139, 255, 0.55);
  transform: translateY(-3px);
}

.course-flyer {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  line-height: 0;
}

.course-flyer img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.course:hover .course-flyer img {
  transform: scale(1.02);
}

.course-age {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.course h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.course p {
  margin: 0;
  color: var(--muted);
}

.course ul {
  margin: 0.2rem 0 0.5rem;
  padding-left: 1.1rem;
  color: var(--text);
}

.course li + li {
  margin-top: 0.2rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}

.feature strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.cta {
  max-width: 1120px;
  margin: 1rem auto 3rem;
  padding: 2.5rem 1.4rem;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
}

.cta p {
  margin: 0 0 1.3rem;
  color: var(--muted);
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.4rem 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.footer-logo {
  height: 72px;
  width: auto;
  border-radius: 12px;
  background: #f7f4ec;
  margin-bottom: 0.6rem;
}

.footer p {
  margin: 0.2rem 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-copy {
    text-align: center;
    max-width: none;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .brand {
    justify-items: center;
  }

  .brand-orange {
    margin-left: 0;
  }

  .hero-visual {
    min-height: 340px;
  }

  .flyer-fan {
    height: 340px;
    width: min(100%, 300px);
  }

  .logo img {
    height: 44px;
  }

  .courses,
  .features {
    grid-template-columns: 1fr;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }
}
