/* Homepage */
.hero {
  background: var(--navy);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
  animation: hf 8s ease-in-out infinite;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(15, 117, 250, 0.08),
    transparent 70%
  );
  animation: hf 10s ease-in-out infinite reverse;
}
@keyframes hf {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -20px);
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--blue-light);
  padding: 0.375rem 1rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
}
.hero h1 .accent {
  color: var(--amber-dark);
}
.hero-desc {
  color: var(--gray-300);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stats .stat-number {
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}
.hero-stats .stat-label {
  color: var(--gray-400);
  font-size: 0.8125rem;
}

.hero-visual-mobile {
  display: none;
}
.hero-visual {
  position: relative;
  right: -6rem;
  width: 30vw;
  aspect-ratio: 1/1;
  z-index: 1;
}

/* ── Grid background ── */
.animation-grid {
  position: absolute;
  inset: -10%;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.5) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  to {
    background-position: 40px 40px;
  }
}

/* ── Particle canvas ── */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Number rain ── */
.number-rain {
  position: absolute;
  top: 0;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: rgba(139, 92, 246, 0.18);
  writing-mode: vertical-rl;
  line-height: 1.6;
  pointer-events: none;
  animation: rain 12s linear infinite;
  letter-spacing: 3px;
}
@keyframes rain {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* ── Central orb ── */
.hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(139, 92, 246, 0.9),
    rgba(59, 130, 246, 0.6) 50%,
    transparent 70%
  );
  box-shadow:
    0 0 60px rgba(139, 92, 246, 0.4),
    0 0 120px rgba(59, 130, 246, 0.2),
    inset 0 0 40px rgba(255, 255, 255, 0.08);
  animation: orbPulse 4s ease-in-out infinite;
  z-index: 3;
}
.hero-orb::after {
  content: "∑";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  animation: symbolCycle 3s ease-in-out infinite;
}
@keyframes orbPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    filter: brightness(1.15);
  }
}
@keyframes symbolCycle {
  0%,
  20% {
    content: "∑";
  }
  25%,
  45% {
    content: "∫";
  }
  50%,
  70% {
    content: "π";
  }
  75%,
  95% {
    content: "∞";
  }
}

/* ── Orbit rings ── */
.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 50%;
  z-index: 2;
}
.orbit-1 {
  width: 240px;
  height: 240px;
  animation: spin1 20s linear infinite;
}
.orbit-2 {
  width: 340px;
  height: 340px;
  animation: spin2 30s linear infinite reverse;
}
.orbit-3 {
  width: 420px;
  height: 420px;
  animation: spin3 40s linear infinite;
}

@keyframes spin1 {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes spin2 {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes spin3 {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ── Orbit dots ── */
.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-top {
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}
.dot-bottom {
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}
.dot-left {
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
}
.dot-right {
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
}
.orbit-dot.purple {
  background: #a78bfa;
  box-shadow: 0 0 12px #a78bfa;
}
.orbit-dot.blue {
  background: #60a5fa;
  box-shadow: 0 0 12px #60a5fa;
}
.orbit-dot.cyan {
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee;
}
.orbit-dot.amber {
  background: #fbbf24;
  box-shadow: 0 0 12px #fbbf24;
}

/* ── Formula cards ── */
.formula-card {
  position: absolute;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
  z-index: 4;
}
.formula-card .label {
  display: block;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2px;
}

/* Unique positions — spread across 6 zones */
.fc-tl {
  top: 1%;
  left: 0%;
  animation: floatA 6s ease-in-out infinite;
}
.fc-tr {
  top: 4%;
  right: 0%;
  animation: floatB 7s ease-in-out infinite;
}
.fc-ml {
  top: 44%;
  left: -10%;
  animation: floatC 6.5s ease-in-out infinite;
}
.fc-mr {
  top: 50%;
  right: -8%;
  animation: floatD 7.5s ease-in-out infinite;
}
.fc-bl {
  bottom: 5%;
  left: 2%;
  animation: floatE 6s ease-in-out infinite;
}
.fc-br {
  bottom: 1%;
  right: 0%;
  animation: floatF 7s ease-in-out infinite;
}

@keyframes floatA {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes floatB {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes floatC {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes floatD {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes floatE {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
@keyframes floatF {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-11px);
  }
}

/* ── Geometric shapes ── */
.geo-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.geo-shape svg {
  width: 100%;
  height: 100%;
  stroke: rgba(167, 139, 250, 0.5);
  stroke-width: 1;
  fill: none;
}
.geo-a {
  width: 45px;
  height: 45px;
  top: 19%;
  right: 10%;
  animation: geoA 8s ease-in-out infinite;
}
.geo-b {
  width: 38px;
  height: 38px;
  bottom: 19%;
  left: 12%;
  animation: geoB 9s ease-in-out infinite;
}
.geo-c {
  width: 32px;
  height: 32px;
  top: 23%;
  left: 12%;
  animation: geoC 10s ease-in-out infinite;
}

@keyframes geoA {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.18;
  }
  50% {
    transform: translateY(-14px) rotate(20deg);
    opacity: 0.3;
  }
}
@keyframes geoB {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.15;
  }
  50% {
    transform: translateY(-10px) rotate(-15deg);
    opacity: 0.28;
  }
}
@keyframes geoC {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.12;
  }
  50% {
    transform: translateY(-12px) rotate(25deg);
    opacity: 0.25;
  }
}

.trust-strip {
  background: var(--gray-50);
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.why-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.why-card .icon-box {
  margin: 0 auto 1.25rem;
}
.why-card h3 {
  margin-bottom: 0.75rem;
}
.courses-preview {
  background: var(--gray-50);
}
.course-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.course-card {
  overflow: hidden;
  padding: 0;
}
.course-card-top {
  padding: 1.75rem 1.75rem 0;
}
.course-card-badge {
  margin-bottom: 1rem;
}
.course-card h3 {
  margin-bottom: 0.5rem;
}
.course-card h3 a {
  transition: color var(--duration) var(--ease);
}
.course-card h3 a:hover {
  color: var(--blue);
}
.course-card p {
  font-size: 0.9375rem;
}
.course-card-meta {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}
.course-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.course-card-meta svg {
  width: 14px;
  height: 14px;
}
.course-card-bottom {
  padding: 1.25rem 1.75rem;
  background: var(--gray-50);
  margin-top: 1.5rem;
}
.course-card-bottom a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap var(--duration) var(--ease);
}
.course-card-bottom a:hover {
  gap: 0.75rem;
}
.course-card-bottom svg {
  width: 16px;
  height: 16px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.process-step {
  position: relative;
  text-align: center;
  padding: 2rem 1.25rem;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue-pale);
  margin-bottom: 0.75rem;
  line-height: 1;
}
.process-step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}
.process-step p {
  font-size: 0.875rem;
}
.testimonials {
  background: var(--navy);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.testimonial-stars svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  fill: var(--accent);
}
.testimonial-text {
  color: var(--gray-300);
  font-size: 0.9375rem;
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.875rem;
}
.testimonial-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.875rem;
}
.testimonial-role {
  font-size: 0.75rem;
  color: var(--gray-400);
}
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06),
    transparent 70%
  );
}
.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
}
.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual-desktop {
    display: none;
  }
  .hero-visual-mobile {
    display: block;
    right: unset;
    margin: 5rem auto;
  }
  .hero-visual {
    width: 400px;
  }
  .course-cards,
  .testimonial-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-visual {
    width: 300px;
  }
  .hero-orb {
    width: 100px;
    height: 100px;
  }
  .hero-orb::after {
    font-size: 2rem;
  }
  .orbit-1 {
    width: 170px;
    height: 170px;
  }
  .orbit-2 {
    width: 250px;
    height: 250px;
  }
  .orbit-3 {
    width: 320px;
    height: 320px;
  }
  .formula-card {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
  }
  .formula-card .label {
    font-size: 0.5rem;
  }
  .fc-ml {
    left: -5%;
  }
  .fc-mr {
    right: -3%;
  }
  .geo-a {
    width: 30px;
    height: 30px;
  }
  .geo-b {
    width: 25px;
    height: 25px;
  }
  .geo-c {
    width: 22px;
    height: 22px;
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 6rem 0 3.5rem;
    min-height: auto;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .trust-items {
    gap: 1.5rem;
  }
  .why-grid,
  .course-cards,
  .testimonial-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* ── Responsive ── */
@media (max-width: 430px) {
  .hero-visual {
    width: 80vw;
  }
}
