/* Basic reset */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Cinematic 3D Scroll Reveal */
.reveal {
  opacity: 0;
  transform: perspective(2000px) translateY(150px) scale(0.85) rotateX(15deg);
  filter: blur(15px);
  transition:
    opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.reveal.revealed {
  opacity: 1;
  transform: perspective(2000px) translateY(0) scale(1) rotateX(0deg);
  filter: blur(0);
}

/* Staggered Content Reveal */
.reveal>* {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  filter: blur(10px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed>* {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal.revealed>*:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal.revealed>*:nth-child(2) {
  transition-delay: 0.25s;
}

.reveal.revealed>*:nth-child(3) {
  transition-delay: 0.4s;
}

.reveal.revealed>*:nth-child(4) {
  transition-delay: 0.55s;
}

@keyframes revealCinematic {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

body {
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background: #ffffff;
}

:root {
  --brand: #4a90e2;
  /* blue */
  --brand-2: #357abd;
  /* secondary blue */
  --accent: #f59e0b;
  /* Premium Yellow/Amber */
  --bg-hero: transparent;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-block: #ffffff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #1e293b;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-outline {
  background: #ffffff;
  color: #d97706;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.btn-outline:hover {
  background: rgba(245, 158, 11, 0.05);
  border-color: #f59e0b;
  color: #b45309;
  transform: translateY(-2px);
}

.btn-dark {
  background: #1e293b;
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 41, 59, 0.15);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2);
}

/* NAVBAR DROPDOWNS */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--brand);
}

.dropdown-menu {
  position: absolute !important;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  min-width: 240px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 2000;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #64748b !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(74, 144, 226, 0.05);
  color: var(--brand) !important;
  transform: translateX(4px);
}

.dropdown-item i {
  font-size: 14px;
  color: var(--brand);
  width: 18px;
  text-align: center;
}

.nav-item .fa-chevron-down {
  font-size: 9px;
  margin-left: 2px;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.nav-item:hover .fa-chevron-down {
  transform: rotate(180deg);
  opacity: 1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: none;
  /* Removed for seamless integration */
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-ctas {
  display: flex;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}


.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
  padding-left: 32px;
}

@media (max-width: 600px) {
  .logo {
    padding-left: 24px;
  }
}

.logo img {
  display: block;
  flex-shrink: 0;
}

.logo svg {
  width: 28px;
  height: 28px;
}

/* HERO */
.hero {
  background: transparent;
  color: #1e293b;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  padding: 64px 0 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: 900;
}

.hero p {
  font-size: clamp(16px, 2.3vw, 19px);
  color: #64748b;
  margin: 0 0 24px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), 0 0 20px rgba(74, 144, 226, 0.05);
  min-height: 280px;
  position: relative;
  overflow: visible;
  /* allow decorative elements (flags) to appear outside the card */
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-card .badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 11px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  color: #86efac;
  position: relative;
  z-index: 10;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* AI Mechanism Visuals */
/* AI Solar System Visuals */
/* LỚP HỌC IELTS VỚI GIÁO VIÊN */
.teacher-classroom {
  position: relative;
  height: 400px;
  background: #f0f4f8;
  border-radius: 20px;
  overflow: hidden;
  perspective: 1000px;
}

.blackboard {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 200px;
  background: #1a2f1d;
  border: 12px solid #5d4037;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 20px;
  color: #fff;
  text-align: center;
  font-family: 'Chalkduster', 'Comic Sans MS', cursive, sans-serif;
  overflow: hidden;
}

.board-content {
  position: relative;
  z-index: 2;
}

.board-content .title {
  font-size: 28px;
  font-weight: bold;
  color: #fff176;
  margin-bottom: 10px;
  text-shadow: 2px 2px 0 #000;
}

.board-content .divider {
  height: 3px;
  background: #fff176;
  margin: 10px auto;
  width: 80px;
  border-radius: 3px;
}

.skills {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.skill {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slogan {
  font-size: 16px;
  color: #81c784;
  margin-top: 15px;
  font-style: italic;
}

.chalk-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.03) 50%),
    linear-gradient(transparent 50%, rgba(0, 0, 0, 0.1) 50%);
  background-size: 20px 20px;
  opacity: 0.3;
}

.teacher {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.teacher-head {
  width: 60px;
  height: 60px;
  background: #ffccbc;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
  border: 3px solid #5d4037;
}

.eye {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #5d4037;
  border-radius: 50%;
  top: 25px;
  animation: blink 4s infinite;
}

.eye.left {
  left: 15px;
}

.eye.right {
  right: 15px;
}

.mouth {
  position: absolute;
  width: 20px;
  height: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border: 2px solid #5d4037;
  border-top: none;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  animation: talk 3s infinite;
}

.teacher-body {
  width: 80px;
  height: 60px;
  background: #2196f3;
  margin: -5px auto 0;
  border-radius: 15px 15px 0 0;
  position: relative;
  border: 3px solid #1565c0;
  border-bottom: none;
}

.tie {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #e91e63;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

.arm {
  position: absolute;
  width: 50px;
  height: 12px;
  background: #1976d2;
  top: 30px;
  border-radius: 5px;
  animation: wave 4s infinite;
}

.arm.left {
  left: -40px;
  transform-origin: right center;
}

.arm.right {
  right: -40px;
  transform-origin: left center;
}

.hand {
  width: 15px;
  height: 10px;
  background: #ffccbc;
  position: absolute;
  border-radius: 5px;
  top: 1px;
}

.arm.left .hand {
  right: -5px;
}

.arm.right .hand {
  left: -5px;
}

.pointer {
  position: absolute;
  width: 60px;
  height: 3px;
  background: #5d4037;
  top: 35px;
  right: -50px;
  transform-origin: left center;
  animation: point 5s infinite;
}

.pointer-tip {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ff5722;
  border-radius: 50%;
  right: -4px;
  top: -2.5px;
}

.desk {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #8d6e63;
  border-top: 10px solid #5d4037;
}

.book {
  position: absolute;
  width: 40px;
  height: 30px;
  background: #fff;
  border: 2px solid #5d4037;
  border-radius: 3px;
  bottom: 30px;
  left: 50%;
  transform: translateX(-120%);
  animation: bookMove 4s infinite;
}

.pencil {
  position: absolute;
  width: 5px;
  height: 25px;
  background: #ff9800;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) rotate(20deg);
  border-radius: 3px;
  animation: pencilMove 4s infinite;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.element {
  position: absolute;
  font-size: 24px;
  opacity: 0;
  animation: floatElement 8s infinite;
  animation-delay: var(--delay);
  left: var(--x);
  top: 20%;
  transform: translateY(0) rotate(0deg);
}

.element.star {
  color: #ffeb3b;
}

.element.note {
  background: #4caf50;
  color: white;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
}

@keyframes blink {

  0%,
  50%,
  100% {
    height: 10px;
    margin-top: 0;
  }

  51%,
  99% {
    height: 2px;
    margin-top: 4px;
  }
}

@keyframes talk {

  0%,
  100% {
    width: 20px;
    height: 5px;
  }

  50% {
    width: 25px;
    height: 8px;
  }
}

@keyframes wave {

  0%,
  100% {
    transform: rotate(0);
  }

  50% {
    transform: rotate(10deg);
  }
}

@keyframes point {

  0%,
  100% {
    transform: rotate(0);
  }

  50% {
    transform: rotate(5deg);
  }
}

@keyframes bookMove {

  0%,
  100% {
    transform: translateX(-120%) rotate(0);
  }

  50% {
    transform: translateX(-120%) rotate(5deg);
  }
}

@keyframes pencilMove {

  0%,
  100% {
    transform: translateX(-50%) rotate(20deg);
  }

  50% {
    transform: translateX(-50%) rotate(25deg);
  }
}

@keyframes floatElement {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg);
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-100px) rotate(360deg);
  }
}

/* HÀNH TRÌNH IELTS - PHONG CÁCH LEO NÚI */
.ielts-journey {
  position: relative;
  height: 400px;
  background: linear-gradient(to bottom, #e0f2fe, #bae6fd, #7dd3fc);
  border-radius: 20px;
  overflow: visible;
  /* allow flags above peaks to show */
  perspective: 1000px;
  transform-style: preserve-3d;
}

.mountain-range {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  padding: 0 60px;
}

.mountain {
  position: relative;
  width: 120px;
  height: var(--h);
  background: linear-gradient(to bottom, #4b5563, #1f2937);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  transform-origin: bottom;
  animation: float 3s ease-in-out infinite;
  animation-delay: var(--delay);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mountain.main {
  background: linear-gradient(to bottom, #1e40af, #1e3a8a);
  z-index: 2;
}

.mountain .peak {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Make second mountain peak have white background */
.mountain-range .mountain:nth-child(2) .peak {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Removed duplicate/legacy flag rules - consolidated below */

.hiker {
  position: absolute;
  z-index: 10;
}

.you-are-here {
  left: 10%;
  bottom: 30%;
  animation: float 3s ease-in-out infinite;
}

.mountain .hiker {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: none;
}

.person {
  position: relative;
  width: 40px;
  height: 60px;
}

.head {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #1f2937;
  border-radius: 50%;
  top: 0;
  left: 10px;
}

.body {
  position: absolute;
  width: 30px;
  height: 40px;
  background: #3b82f6;
  border-radius: 10px 10px 0 0;
  top: 15px;
  left: 5px;
}

.flag {
  position: absolute;
  top: -25px;
  left: 40px;
  background: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Custom changes for mountains */
.mountain .rating {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  z-index: 2;
  font-size: 14px;
}

/* Make mountain overflow visible so flags can extend outside the mountain box */
.mountain {
  overflow: visible;
}

/* Improved top-flag positioning and appearance (triangle flag) */
.mountain .top-flag {
  position: absolute;
  top: -44px;
  /* place above the peak */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 60;
  /* bring above card and other decor */
}

.mountain .top-flag .flag-pole {
  width: 2px;
  height: 48px;
  background: #6b7280;
}

.mountain .top-flag .flag.red {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 24px solid #dc2626;
  /* no box-shadow so it looks crisp */
}

.pathway {
  position: absolute;
  bottom: 25%;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
}

.milestone {
  position: absolute;
  bottom: 0;
  left: var(--pos);
  transform: translateX(-50%);
  text-align: center;
}

.milestone .dot {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  margin: 0 auto 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.milestone .label {
  font-size: 10px;
  font-weight: bold;
  color: #1e3a8a;
  white-space: nowrap;
}

.skill-clouds {
  position: absolute;
  top: 15%;
  left: 0;
  right: 0;
  height: 40%;
  display: flex;
  justify-content: space-between;
  padding: 0 10%;
  align-items: flex-start;
}

.cloud {
  position: relative;
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: floatCloud 15s linear infinite;
  animation-delay: var(--delay);
  transform: translateY(0);
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cloud:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cloud i {
  color: #3b82f6;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes hike {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  25% {
    transform: translateY(-20px) translateX(20px);
  }

  50% {
    transform: translateY(0) translateX(40px);
  }

  75% {
    transform: translateY(-10px) translateX(60px);
  }
}

.about-carousel-wrapper {
  overflow: hidden;
  /* keep slides inside the viewport */
  position: relative;
}

.about-decor {
  position: absolute;
  right: 6%;
  top: 60%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 5;
  width: 240px;
  height: 240px;
  display: block;
}

.about-decor .lotus-ring {
  position: absolute;
  inset: 0;
}

.about-decor .lotus-ring.inner {
  inset: 24px;
}

.about-visual {
  position: relative;
  height: 100%;
  min-height: 400px;
  padding-right: 40px;
  /* reserve space so large visual doesn't hit the page edge */
}

.viet-aurora {
  position: absolute;
  width: 195px;
  /* scaled down to ~3/4 */
  height: 195px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, rgba(251, 191, 36, 0.35), rgba(239, 68, 68, 0.5), rgba(59, 130, 246, 0.35), rgba(16, 185, 129, 0.4));
  filter: blur(30px);
  animation: auroraWave 12s ease-in-out infinite;
  opacity: 0.8;
}

.lotus-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.6px dashed rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
  animation: ringRotate 16s linear infinite;
}

.lotus-ring.outer {
  width: 240px;
  /* reduced to ~75% */
  height: 240px;
  animation-duration: 22s;
  opacity: 0.65;
}

.lotus-ring.inner {
  width: 165px;
  /* reduced to ~75% */
  height: 165px;
  animation-direction: reverse;
  opacity: 0.8;
}

/* Responsive adjustments: keep decorative elements visible and smaller on smaller screens */
@media (max-width: 992px) {
  .about-visual {
    padding-right: 24px;
    min-height: 320px;
  }

  .viet-aurora {
    width: 150px;
    height: 150px;
    filter: blur(26px);
  }

  .lotus-ring.outer {
    width: 200px;
    height: 200px;
  }

  .lotus-ring.inner {
    width: 140px;
    height: 140px;
  }

  .orbit-chip {
    width: 120px;
  }
}

@media (max-width: 576px) {
  .about-visual {
    padding-right: 12px;
    min-height: 260px;
  }

  .viet-aurora {
    width: 120px;
    height: 120px;
    filter: blur(22px);
    opacity: 0.75;
  }

  .lotus-ring.outer {
    width: 160px;
    height: 160px;
  }

  .lotus-ring.inner {
    width: 120px;
    height: 120px;
  }

  .orbit-chip {
    width: 100px;
    padding: 10px 12px;
  }
}

.heritage-pill {
  position: absolute;
  top: 18%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #c2410c;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  animation: floatBadge 5s ease-in-out infinite;
}

.badge-target {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow:
    0 25px 55px rgba(15, 23, 42, 0.12),
    inset 0 0 25px rgba(79, 70, 229, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  animation: floatBadge 4s ease-in-out infinite alternate;
  z-index: 2;
}

.badge-target .pill {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
  padding: 4px 12px;
  border-radius: 999px;
}

.badge-target .score {
  font-size: 48px;
  font-weight: 900;
  color: #1d4ed8;
  line-height: 1;
}

.badge-target .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.1em;
}

.orbit-track {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(calc(var(--rotate, 0) * 1deg));
  transition: transform 0.5s ease-out;
}

.orbit-track::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.08);
}

.orbit-chip {
  position: absolute;
  width: 140px;
  padding: 12px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translate(-50%, -50%);
  animation: chipFloat 6s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chip-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #facc15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.3);
}

.chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.chip-text strong {
  font-size: 0.95rem;
  color: #111827;
}

.chip-text small {
  font-size: 0.75rem;
  color: #64748b;
}

.track-listening {
  --rotate: 0;
  animation: orbitSlow 20s linear infinite;
}

.track-reading {
  --rotate: 90;
  animation: orbitMedium 24s linear infinite reverse;
}

.track-writing {
  --rotate: 180;
  animation: orbitFast 22s linear infinite;
}

.track-speaking {
  --rotate: 270;
  animation: orbitMedium 26s linear infinite reverse;
}

.orbit-chip:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15);
  z-index: 20;
}

.track-listening .chip-icon {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.track-reading .chip-icon {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.track-writing .chip-icon {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}

.track-speaking .chip-icon {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.track-reading .chip-icon {
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0) translateZ(0);
  }

  50% {
    transform: translateY(-12px) translateZ(20px);
  }
}

@keyframes auroraWave {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(140deg) scale(1.15);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes ringRotate {
  from {
    transform: rotateX(55deg) rotateZ(0deg);
  }

  to {
    transform: rotateX(55deg) rotateZ(360deg);
  }
}

@keyframes chipFloat {

  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-15px) scale(1.03);
  }
}

@keyframes orbitSlow {
  from {
    transform: rotateZ(0deg);
  }

  to {
    transform: rotateZ(360deg);
  }
}

@keyframes orbitMedium {
  from {
    transform: rotateZ(0deg);
  }

  to {
    transform: rotateZ(-360deg);
  }
}

@keyframes orbitFast {
  from {
    transform: rotateZ(0deg);
  }

  to {
    transform: rotateZ(540deg);
  }
}

/* ABOUT SECTION ENHANCEMENTS */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    order: -1;
    height: 300px;
  }
}

.about-text h2 {
  font-size: 52px;
  margin-bottom: 24px;
  text-align: left;
  display: inline-block;
  padding-bottom: 0.15em;
  color: #1e293b;
}

.about-desc {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 30px;
}

.about-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: #475569;
}

.benefit-icon {
  width: 32px;
  height: 32px;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--brand);
}

.about-visual {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.solar-system-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.carousel-nav {
  display: flex;
  gap: 12px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.about-slides {
  will-change: transform;
}

.about-slide {
  padding-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, #357abd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* SECTION: FEATURES */
.section {
  padding: 64px 0;
}

.section h2 {
  font-size: 32px;
  margin: 0 0 10px;
  color: #1e293b;
}

.section .muted {
  color: #64748b;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.feature {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 28px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: rgba(74, 144, 226, 0.1);
}

.feature h3 {
  margin: 10px 0 6px;
  font-size: 18px;
  color: #1e293b;
}

.feature p {
  color: #64748b;
}

.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 144, 226, 0.1);
  color: var(--brand);
}

/* ENHANCED PREMIUM AESTHETICS */
:root {
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --teal-gradient: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
}

.section {
  padding: 100px 0;
  position: relative;
}

/* Section Titles */
.section h2 {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
  background: linear-gradient(to right, #1e293b, var(--brand), #1e293b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  display: inline-block;
  padding-bottom: 0.15em;
}

.section .muted {
  color: #64748b;
  font-size: 18px;
  max-width: 600px;
}

/* Pricing Section Overhaul */
.pricing {
  background: transparent;
  overflow: visible;
}

.carousel-wrapper {
  perspective: 2000px;
  padding: 60px 0;
  overflow: hidden;
  /* Crucial for hiding other cards */
  width: 100%;
}

.pricing-cards {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  width: 100%;
  transform-style: preserve-3d;
}

/* Card sizing for exactly 3 items: (100% - total_gaps) / 3 */
.pricing .card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.pricing .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--brand);
  opacity: 0.8;
}

.pricing .card:hover {
  transform: translateY(-20px) scale(1.02);
  background: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 30px 60px rgba(74, 144, 226, 0.15);
}

.pricing .card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 5px;
  color: #1e293b;
}

.pricing .card .muted {
  color: #64748b;
  font-size: 14px;
}

.pricing .card .price {
  font-size: 38px;
  font-weight: 900;
  margin: 15px 0;
  color: var(--brand);
  letter-spacing: -1px;
}

.pricing .card ul {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
  flex-grow: 1;
}

.pricing .card ul li {
  font-weight: 400;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}

.pricing .card ul li::before {
  content: '✦';
  color: var(--brand);
  font-size: 12px;
}

.btn-brand {
  background: var(--primary-gradient);
  color: #fff;
  padding: 16px 32px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3), 0 0 15px rgba(59, 130, 246, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-brand:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4), 0 0 25px rgba(59, 130, 246, 0.2);
  filter: brightness(1.15);
}

/* Center button in pricing cards */
.pricing .card .btn-brand {
  margin-top: auto;
  width: 100%;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .pricing .card .btn-brand {
    max-width: 180px;
    padding: 14px 28px;
  }
}

/* Floating 3D Elements */
.floating-shape {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  filter: blur(2px);
  animation: float-slow 10s ease-in-out infinite;
}

.shape-1 {
  top: 10%;
  left: 5%;
  width: 100px;
  height: 100px;
  background: var(--teal-gradient);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.15;
}

.shape-2 {
  bottom: 10%;
  right: 5%;
  width: 150px;
  height: 150px;
  background: var(--primary-gradient);
  border-radius: 50%;
  opacity: 0.1;
}

.shape-3 {
  top: 40%;
  right: 10%;
  width: 80px;
  height: 80px;
  background: var(--accent-gradient);
  border-radius: 40% 60% 30% 70%;
  opacity: 0.12;
  animation-delay: -5s;
}

@keyframes float-slow {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -50px) rotate(10deg);
  }

  66% {
    transform: translate(-20px, 40px) rotate(-10deg);
  }
}

/* SECTION: SHOWCASE */
.showcase {
  background: transparent;
  position: relative;
  /* overflow: hidden removed */
  padding: 100px 0;
}

/* .showcase::before removed for seamless feel */

.showcase .panel {
  background: #ffffff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 48px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.05);
  padding: 8px;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

.showcase .panel::after {
  content: '';
  position: absolute;
  inset: -100px;
  background: radial-gradient(circle at center, rgba(74, 144, 226, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  font-size: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--brand);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.carousel-btn:hover:not(:disabled) {
  background: var(--primary-gradient);
  transform: scale(1.15) translateY(-8px);
  box-shadow: 0 20px 45px rgba(59, 130, 246, 0.4);
  border-color: transparent;
  color: #fff;
}

.carousel-btn:active {
  transform: scale(0.92);
}

.carousel-btn:disabled {
  opacity: 0.1;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .card {
    flex: 0 0 calc(50% - 12px);
  }

  /* Show 2 items */
}

@media (max-width: 640px) {
  .card {
    flex: 0 0 100%;
  }

  /* Show 1 item */
}

/* FOOTER */
.footer {
  background: transparent;
  color: #64748b;
  padding: 80px 0 40px;
}

.footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 18px;
}

.footer h3,
.footer h4 {
  color: #1e293b !important;
}

.footer a {
  color: #64748b;
  text-decoration: none;
}

.footer a:hover {
  color: var(--brand);
}

.footer .copyright {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 24px;
  padding-top: 16px;
  text-align: center;
  color: #94a3b8;
}

/* NEWS CARDS */
.news-cards {
  display: flex;
  gap: 24px;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  padding: 20px 0;
}

.news-card {
  flex: 0 0 calc(33.333% - 16px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 40px;
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  transform-style: preserve-3d;
}

.news-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.06);
  border-color: rgba(74, 144, 226, 0.15);
}

.news-thumb {
  width: 100%;
  padding-top: 65%;
  /* Softer ratio */
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  margin-bottom: 15px;
}

.news-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-thumb img {
  transform: scale(1.1);
}

.news-content {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
}

.news-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 500;
}

.news-meta i {
  font-style: normal;
  font-size: 14px;
}

.news-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.news-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 20px;
  flex: 1;
}

.news-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.4s ease;
  margin-top: auto;
}

.news-link:hover {
  color: #93c5fd;
  transform: translateX(6px);
}

@media (max-width: 1024px) {
  .news-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 640px) {
  .news-card {
    flex: 0 0 100%;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .pricing-cards,
  .footer .cols {
    grid-template-columns: 1fr;
  }
}

/* Decorative brand tweaks for ClassLink */
.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.logo span {
  color: #fff;
  text-shadow: none;
}

.gradient-text {
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradientShift 8s ease-in-out infinite;
  display: inline-block;
  padding-bottom: 0.15em;
  line-height: 1.1;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero {
  position: relative;
  overflow: visible;
  /* allow decorative blobs to extend without being clipped */
  padding-right: 80px;
  /* reserve space on the right so blurred edges are visible on large screens */
}

.hero-blob {
  position: absolute;
  filter: blur(40px);
  opacity: .45;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

.hero-blob.b1 {
  width: 460px;
  height: 460px;
  left: -60px;
  top: -100px;
  background: radial-gradient(closest-side, #f59e0b, transparent 70%);
  animation: float1 12s ease-in-out infinite;
}

.hero-blob.b2 {
  width: 420px;
  height: 420px;
  right: -20px;
  top: -60px;
  background: radial-gradient(closest-side, #7c3aed, transparent 70%);
  animation: float2 14s ease-in-out infinite;
}

.hero-blob.b3 {
  width: 380px;
  height: 380px;
  left: 50%;
  transform: translateX(-36%);
  bottom: -80px;
  background: radial-gradient(closest-side, #2563eb, transparent 70%);
  animation: float3 16s ease-in-out infinite;
}

/* Responsive: scale and reposition blobs so they remain visible on smaller screens */
@media (max-width: 992px) {
  .hero {
    padding-right: 48px;
  }

  .hero-blob.b1 {
    width: 360px;
    height: 360px;
    left: -40px;
    top: -80px;
    filter: blur(36px);
  }

  .hero-blob.b2 {
    width: 320px;
    height: 320px;
    right: -12px;
    top: -40px;
  }

  .hero-blob.b3 {
    width: 300px;
    height: 300px;
    left: 50%;
    transform: translateX(-50%);
    bottom: -60px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding-right: 0;
  }

  .hero-blob {
    opacity: 0.35;
    filter: blur(30px);
  }

  .hero-blob.b1 {
    width: 220px;
    height: 220px;
    left: -30px;
    top: -40px;
  }

  .hero-blob.b2 {
    width: 200px;
    height: 200px;
    right: 8px;
    top: -10px;
  }

  .hero-blob.b3 {
    width: 180px;
    height: 180px;
    left: 50%;
    transform: translateX(-50%);
    bottom: -40px;
  }
}

/* ensure blobs don't force scroll */
.hero-blob {
  pointer-events: none;
  user-select: none;
}

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(24px)
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-28px)
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(18px)
  }
}

.btn {
  transition: transform .12s ease, box-shadow .12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px #0000001a;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-outline:hover {
  background: #ffffff11;
  border-color: #ffffffaa;
}

/* 3D tilt preserve and ripple */
.features-grid .feature,
.pricing .card {
  transform-style: preserve-3d;
  will-change: transform;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: currentColor;
  opacity: .22;
  pointer-events: none;
}

/* Particle burst layer */
.particles {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: visible;
  z-index: 50;
}

.particle {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 2px 10px #00000033;
}

.particle.square {
  border-radius: 6px;
}

.particle.logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px #00000055);
}

/* Stronger depth for tilt */
.features-grid,
.pricing-cards {
  perspective: 900px;
}

/* Faint mosaic background and ambient blobs */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  background:
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
    #ffffff;
}

.bg-mosaic {
  display: none;
  /* Removed for a cleaner, more seamless premium look */
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  filter: blur(90px);
  opacity: .22;
  /* Slightly increased for more visible glows */
  border-radius: 50%;
}

.ambient-blob.a1 {
  width: 520px;
  height: 520px;
  left: -120px;
  top: -100px;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  animation: ambientDrift1 22s ease-in-out infinite;
}

.ambient-blob.a2 {
  width: 600px;
  height: 600px;
  right: -160px;
  top: 120px;
  background: radial-gradient(circle, #a78bfa, transparent 70%);
  animation: ambientDrift2 26s ease-in-out infinite;
}

.ambient-blob.a3 {
  width: 560px;
  height: 560px;
  left: 30%;
  bottom: -160px;
  background: radial-gradient(circle, #f59e0b, transparent 70%);
  animation: ambientDrift3 28s ease-in-out infinite;
}

@keyframes ambientDrift1 {

  0%,
  100% {
    transform: translate(0, 0)
  }

  50% {
    transform: translate(40px, 20px)
  }
}

@keyframes ambientDrift2 {

  0%,
  100% {
    transform: translate(0, 0)
  }

  50% {
    transform: translate(-36px, -28px)
  }
}

@keyframes ambientDrift3 {

  0%,
  100% {
    transform: translate(0, 0)
  }

  50% {
    transform: translate(22px, -18px)
  }
}

.comet {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4a90e2, #93c5fd 50%, transparent 60%);
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.2);
}

.comet::after {
  content: "";
  position: absolute;
  right: 50%;
  top: 50%;
  transform: translate(50%, -50%) rotate(0deg);
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, rgba(74, 144, 226, 0.3), transparent);
  filter: blur(1px);
}

/* Header glow under navbar */
.header-glow {
  position: fixed;
  top: -60px;
  left: 0;
  right: 0;
  height: 160px;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(800px 200px at 50% 100%, rgba(74, 144, 226, 0.05), transparent 70%);
  filter: blur(10px);
}

/* Ensure main content above background layers */
.navbar {
  z-index: 1000;
}

.hero,
.section,
.footer {
  position: relative;
  z-index: 2;
}

/* Spark trail & rockets */
.spark {
  position: fixed;
  z-index: 45;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, #fff, var(--brand) 50%, transparent 60%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 26px rgba(74, 144, 226, 0.3);
}

.firework-rocket {
  position: fixed;
  z-index: 46;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, #fff, var(--brand) 60%, transparent 70%);
  box-shadow: 0 0 18px rgba(74, 144, 226, 0.4), 0 0 36px rgba(74, 144, 226, 0.2);
}

.firework-rocket::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(74, 144, 226, 0.3), transparent);
  filter: blur(1px);
}

/* Responsive */
@media (max-width: 1024px) {
  .news-card {
    flex: 0 0 calc(50% - 12px);
  }

  .pricing .card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-cta {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer .cols {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section h2 {
    font-size: 42px !important;
    text-align: center;
  }

  .about-text h2 {
    font-size: 42px !important;
    text-align: center;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-ctas {
    display: none;
  }

  .nav-ctas.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 300px);
    /* Positioned below nav links */
    left: 24px;
    right: 24px;
    padding-bottom: 24px;
    z-index: 1000;
  }

  /* Dropdown behavior for mobile */
  .nav-item .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    border: none !important;
    padding: 0 0 0 16px !important;
    margin-top: 8px !important;
    display: none !important;
  }

  .nav-item:hover .dropdown-menu {
    display: flex !important;
  }

  .pricing .card,
  .news-card {
    flex: 0 0 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer .cols {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px !important;
  }

  .hero-card {
    min-height: 240px;
  }
}

/* ===== AI MECHANISM 3D EFFECT ===== */
.ai-mechanism {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 30px auto 0;
  perspective: 1200px;
}

.ai-mechanism .stardust {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.3), transparent 70%);
  filter: blur(40px);
  animation: stardustPulse 3s ease-in-out infinite;
}

.ai-mechanism .sun {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.8),
    0 0 50px rgba(251, 191, 36, 0.5),
    inset -2px -2px 8px rgba(0, 0, 0, 0.3),
    inset 2px 2px 8px rgba(255, 255, 255, 0.2);
  animation: sunGlow 2.5s ease-in-out infinite;
  z-index: 10;
}

.ai-mechanism .orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  transform-origin: center center;
}

.ai-mechanism .orbit-1 {
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg);
  animation: spin3d-1 8s linear infinite;
}

.ai-mechanism .orbit-2 {
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%) rotateX(45deg) rotateZ(45deg);
  animation: spin3d-2 12s linear infinite reverse;
}

.ai-mechanism .orbit-3 {
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%) rotateX(60deg) rotateZ(-30deg);
  animation: spin3d-3 15s linear infinite;
}

.ai-mechanism .orbit-4 {
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%) rotateX(75deg) rotateZ(20deg);
  animation: spin3d-4 18s linear infinite reverse;
}

.ai-mechanism .planet {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

.ai-mechanism .p1 {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.8),
    0 0 25px rgba(99, 102, 241, 0.4);
}

.ai-mechanism .p2 {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #a78bfa, #d8b4fe);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.8),
    0 0 28px rgba(167, 139, 250, 0.4);
}

.ai-mechanism .p3 {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.8),
    0 0 20px rgba(96, 165, 250, 0.4);
}

.ai-mechanism .p4 {
  width: 11px;
  height: 11px;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  box-shadow: 0 0 11px rgba(34, 211, 238, 0.8),
    0 0 22px rgba(34, 211, 238, 0.4);
}

/* 3D Rotation Animations */
@keyframes spin3d-1 {
  from {
    transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg);
  }
}

@keyframes spin3d-2 {
  from {
    transform: translate(-50%, -50%) rotateX(45deg) rotateZ(45deg);
  }

  to {
    transform: translate(-50%, -50%) rotateX(45deg) rotateZ(-315deg);
  }
}

@keyframes spin3d-3 {
  from {
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(-30deg);
  }

  to {
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(330deg);
  }
}

@keyframes spin3d-4 {
  from {
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(20deg);
  }

  to {
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(-340deg);
  }
}

@keyframes sunGlow {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.8),
      0 0 50px rgba(251, 191, 36, 0.5),
      inset -2px -2px 8px rgba(0, 0, 0, 0.3),
      inset 2px 2px 8px rgba(255, 255, 255, 0.2);
  }

  50% {
    box-shadow: 0 0 40px rgba(245, 158, 11, 1),
      0 0 70px rgba(251, 191, 36, 0.7),
      inset -2px -2px 8px rgba(0, 0, 0, 0.3),
      inset 2px 2px 8px rgba(255, 255, 255, 0.3);
  }
}

@keyframes stardustPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Hover effect for hero-card */
.hero-card:hover .ai-mechanism .sun {
  animation: sunGlow 1.5s ease-in-out infinite;
}

.hero-card:hover .ai-mechanism .orbit {
  animation-play-state: running !important;
}

/* ===== CLASSLINK MECHANISM - ALTERNATIVE 3D EFFECT ===== */
.classlink-mechanism {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 30px auto 0;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.classlink-mechanism .glow-center {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.8),
    0 0 40px rgba(139, 92, 246, 0.6),
    inset -1px -1px 4px rgba(0, 0, 0, 0.2),
    inset 1px 1px 4px rgba(255, 255, 255, 0.3);
  animation: pulseBluePurple 2s ease-in-out infinite;
  z-index: 10;
}

.classlink-mechanism .glow-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  animation: expandRing 3s ease-out infinite;
}

.classlink-mechanism .ring-1 {
  width: 80px;
  height: 80px;
  border-color: rgba(59, 130, 246, 0.6);
  animation-delay: 0s;
}

.classlink-mechanism .ring-2 {
  width: 120px;
  height: 120px;
  border-color: rgba(139, 92, 246, 0.4);
  animation-delay: 0.6s;
}

.classlink-mechanism .ring-3 {
  width: 160px;
  height: 160px;
  border-color: rgba(99, 102, 241, 0.2);
  animation-delay: 1.2s;
}

.classlink-mechanism .shimmer-particle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  animation: shimmerFloat 4s ease-in-out infinite;
}

.classlink-mechanism .p1 {
  width: 12px;
  height: 12px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
}

.classlink-mechanism .p2 {
  width: 10px;
  height: 10px;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  animation-delay: 0.8s;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.8);
}

.classlink-mechanism .p3 {
  width: 14px;
  height: 14px;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1.6s;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
}

.classlink-mechanism .p4 {
  width: 11px;
  height: 11px;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  animation-delay: 2.4s;
  box-shadow: 0 0 9px rgba(139, 92, 246, 0.8);
}

.classlink-mechanism .p5 {
  width: 9px;
  height: 9px;
  top: 30%;
  right: 40px;
  animation-delay: 3.2s;
  box-shadow: 0 0 7px rgba(251, 191, 36, 0.8);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Animation for pulsing center */
@keyframes pulseBluePurple {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8),
      0 0 40px rgba(139, 92, 246, 0.6),
      inset -1px -1px 4px rgba(0, 0, 0, 0.2),
      inset 1px 1px 4px rgba(255, 255, 255, 0.3);
  }

  50% {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(59, 130, 246, 1),
      0 0 60px rgba(139, 92, 246, 0.8),
      inset -1px -1px 4px rgba(0, 0, 0, 0.2),
      inset 1px 1px 4px rgba(255, 255, 255, 0.4);
  }
}

/* Animation for expanding rings */
@keyframes expandRing {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* Animation for shimmer particles */
@keyframes shimmerFloat {

  0%,
  100% {
    opacity: 0.4;
    transform: translate(0, 0) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(var(--tx), var(--ty)) scale(1.2);
  }
}

.classlink-mechanism .p1 {
  --tx: -30px;
  --ty: 30px;
}

.classlink-mechanism .p2 {
  --tx: 30px;
  --ty: -20px;
}

.classlink-mechanism .p3 {
  --tx: 20px;
  --ty: -30px;
}

.classlink-mechanism .p4 {
  --tx: -20px;
  --ty: 20px;
}

.classlink-mechanism .p5 {
  --tx: 30px;
  --ty: 30px;
}

/* ===== END AI MECHANISM ===== */

@media (max-width: 480px) {
  .hero-inner {
    text-align: center;
    padding-right: 0;
  }

  .hero h1 {
    font-size: 32px !important;
    margin-right: 0;
  }

  .hero p {
    font-size: 16px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .section h2,
  .about-text h2 {
    font-size: 32px !important;
  }

  .hero h1 {
    font-size: 32px !important;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
  }

  .btn {
    width: auto;
    min-width: 260px;
    max-width: 90%;
    padding: 14px 32px;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
  }

  .hero-blob {
    transform: scale(0.6);
  }

  .ambient-blob {
    transform: scale(0.5);
  }
}