/* ==========================================================================
   COMPONENTS (ClassCreator Exact Match)
   ========================================================================== */

/* ── Buttons (Matching ClassCreator's standard pair) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 24px;
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Primary Teal / Purple Solid Button */
.btn--primary {
  background-color: var(--purple-700);
  color: var(--white);
  border: 2px solid var(--purple-700);
}
.btn--primary:hover {
  background-color: var(--purple-800);
  border-color: var(--purple-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Secondary Gold / Light Outline Button (Like ClassCreator's LOGIN button) */
.btn--outline {
  background-color: var(--white);
  color: var(--gray-900);
  border: 2px solid var(--gold-500);
}
.btn--outline:hover {
  background-color: var(--gold-100);
  color: var(--gray-900);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .navbar__logo-img {
    height: 36px;
  }
  .chat-widget {
    bottom: 16px;
    right: 16px;
  }
  .chat-bubble {
    max-width: 220px;
    font-size: 12px;
  }
  .icon-badge {
    width: 52px;
    height: 52px;
  }
}

.btn--icon svg {
  width: 16px;
  height: 16px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: var(--text-base);
}

.btn-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ── Navigation (ClassCreator Header Layout) ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: #FFFFFF;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: 100%;
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: transparent;
  padding: 0;
  border-radius: 0;
  transition: var(--transition);
  text-decoration: none;
}

.navbar__brand:hover {
  opacity: 0.88;
}

.navbar__logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.footer__logo-img {
  height: 46px;
  width: auto;
  display: block;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.navbar__logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--purple-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.navbar__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-800);
  transition: var(--transition);
  text-decoration: none;
}

.navbar__link:hover {
  color: var(--purple-700);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Mobile Hamburger & Menu Overlay */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(107, 47, 160, 0.06);
  border: 1px solid rgba(107, 47, 160, 0.15);
  border-radius: 8px;
  cursor: pointer;
  z-index: 100002;
  transition: var(--transition);
}

.navbar__burger:hover {
  background: rgba(107, 47, 160, 0.12);
  border-color: var(--purple-700);
}

.navbar__burger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--gray-900);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar__burger.is-active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background-color: var(--purple-700);
}

.navbar__burger.is-active span:nth-child(2) {
  opacity: 0;
}

.navbar__burger.is-active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background-color: var(--purple-700);
}

.navbar__mobile {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  width: 100vw;
  height: calc(100vh - 80px);
  background-color: #FFFFFF !important;
  padding: 24px 24px 48px;
  flex-direction: column;
  gap: 8px;
  z-index: 100001 !important;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-top: 2px solid var(--purple-700);
}

.navbar__mobile.is-open {
  display: flex !important;
}

.navbar__mobile .navbar__link {
  font-size: 18px;
  font-weight: 800;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  color: #111827 !important;
  text-decoration: none;
  display: block;
  transition: var(--transition);
}

.navbar__mobile .navbar__link:hover {
  color: var(--purple-700) !important;
  padding-left: 8px;
}

.navbar__mobile .btn {
  width: 100%;
  margin-top: 16px;
  justify-content: center;
}

@media (max-width: 1024px) {
  .navbar__menu, .navbar__actions {
    display: none;
  }
  .navbar__burger {
    display: flex;
  }
}

/* ── Organic Blobs Visual Container (Direct ClassCreator Feature) ── */
.organic-visual {
  position: relative;
  width: 100%;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Purple organic shape blob behind mockup */
.organic-blob-purple {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 360px;
  height: 360px;
  background-color: var(--purple-700);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  opacity: 0.9;
  z-index: 1;
}

/* Gold organic shape blob overlapping behind mockup */
.organic-blob-gold {
  position: absolute;
  bottom: 5%;
  right: 0%;
  width: 320px;
  height: 320px;
  background-color: var(--gold-500);
  border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
  opacity: 0.85;
  z-index: 0;
}

/* Main Mockup Screen */
.mockup-desktop {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 480px;
  background-color: var(--gray-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--gray-800);
  overflow: hidden;
}

.mockup-header {
  background-color: var(--gray-800);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot--red { background-color: #FF5F56; }
.mockup-dot--yellow { background-color: #FFBD2E; }
.mockup-dot--green { background-color: #27C93F; }

.mockup-content {
  background-color: var(--white);
  padding: var(--sp-6);
  min-height: 260px;
}

/* Foreground Laptop / Mobile Overlay Mockup */
.mockup-overlay {
  position: absolute;
  bottom: -20px;
  left: 0%;
  z-index: 3;
  width: 60%;
  max-width: 280px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border: 2px solid var(--purple-700);
  padding: var(--sp-4);
}

/* ── Full Width Color Banner Section (ClassCreator "3 minutes..." style) ── */
.full-banner {
  background-color: var(--purple-700);
  color: var(--white);
  padding: var(--sp-16) 0;
  text-align: center;
}

.full-banner h2 {
  color: var(--white);
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--sp-4);
}

.full-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto var(--sp-8);
}

.full-banner__video-box {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--gray-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 6px solid var(--white);
}

/* ── Cards (ClassCreator Blog & Feature Style) ── */
.feature-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--sp-8);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-700);
}

.feature-card__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--purple-700);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
}

.feature-card__title {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--sp-3);
  color: var(--gray-900);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── Wavy Dividers (Deep Organic Wave Transitions) ── */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: 100%;
  height: 120px;
}

.wave-divider--flip {
  transform: rotate(180deg);
}

/* ── Circular Icon Badges (ClassCreator Circular Icon Style) ── */
.icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--purple-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  color: var(--purple-700);
  border: 1px solid var(--purple-200);
  transition: var(--transition);
}

.icon-badge--gold {
  background-color: var(--gold-100);
  color: var(--gold-600);
  border-color: var(--gold-200);
}

.feature-card:hover .icon-badge {
  transform: scale(1.08);
  background-color: var(--purple-700);
  color: var(--white);
}

.feature-card:hover .icon-badge--gold {
  background-color: var(--gold-500);
  color: var(--white);
}

/* ── Floating Helper Chat Widget ── */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: flex-end;
  gap: var(--sp-3);
}

.chat-bubble {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  max-width: 240px;
  font-size: var(--text-xs);
  color: var(--gray-800);
  line-height: 1.4;
  position: relative;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: var(--transition);
}

.chat-bubble:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-500);
}

.chat-bubble-close {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 12px;
  color: var(--gray-400);
  cursor: pointer;
  z-index: 2;
}

.chat-avatar-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--purple-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: 2px solid var(--gold-500);
  transition: var(--transition);
  text-decoration: none;
  font-size: 22px;
  flex-shrink: 0;
}

.chat-avatar-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   3D CANVAS & INTERACTIVE SPATIAL STYLES
   ========================================================================== */
.hero-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: hidden;
}

#hero-3d-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(107, 47, 160, 0.12) 0%, rgba(249, 250, 251, 0) 70%);
}

#hero-3d-canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Floating Glassmorphic 3D Stats Badges */
.glass-badge-3d {
  position: absolute;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 32px rgba(107, 47, 160, 0.15);
  padding: 14px 20px;
  border-radius: 16px;
  animation: float3D 6s ease-in-out infinite alternate;
  pointer-events: none;
}

.glass-badge-3d--top-right {
  top: 24px;
  right: 12px;
  border-left: 4px solid var(--purple-700);
}

.glass-badge-3d--bottom-left {
  bottom: 24px;
  left: 12px;
  border-left: 4px solid var(--gold-500);
  animation-delay: -3s;
}

.glass-badge-3d__title {
  font-size: 11px;
  font-weight: 800;
  color: var(--purple-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.glass-badge-3d__value {
  font-size: 15px;
  font-weight: 800;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 6px;
}

.glass-badge-3d__sub {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
}

@keyframes float3D {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

@media (max-width: 1024px) {
  .hero-3d-wrapper {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .hero-3d-wrapper {
    height: 320px;
  }
  .glass-badge-3d {
    padding: 10px 14px;
  }
}

