/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg-dark: #0f172a;
  --color-bg-darker: #020617;
  --color-primary: #f59e0b;
  --color-primary-light: #fbbf24;
  --color-secondary: #3b82f6;
  --color-accent: #ec4899;
  --color-text-primary: #ffffff;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-glass: rgba(255, 255, 255, 0.05);
  --spacing-unit: 8px;
  --container-max: 1200px;

  --jungle-green: #10b981;
  --jungle-lime: #84cc16;
  --jungle-emerald: #059669;
  --jungle-teal: #14b8a6;
  --adventure-orange: #f97316;
  --adventure-amber: #f59e0b;
  --treasure-gold: #fbbf24;
  --magic-purple: #a855f7;
  --magic-pink: #ec4899;
  --crystal-blue: #3b82f6;
  --crystal-cyan: #06b6d4;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Microsoft JhengHei', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: linear-gradient(135deg, #0a1628 0%, #1a0a2e 50%, #0f1419 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 3);
  position: relative;
  z-index: 1;
}

section {
  padding: calc(var(--spacing-unit) * 16) 0;
  position: relative;
  z-index: 1;
}

/* Vine Dividers */
.vine-divider {
  position: absolute;
  z-index: 100;
  pointer-events: none;
}

.vine-img {
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.6;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.vine-divider-1 {
  top: 20px;
  left: 5%;
}

.vine-divider-1 .vine-img {
  max-width: 200px;
  transform: rotate(-15deg);
}

.vine-divider-4 {
  top: -80px;
  left: 0;
  width: 100%;
}

.vine-divider-4 .vine-img {
  width: 100%;
}

.vine-divider-5 {
  bottom: -40px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
}

.vine-divider-5 .vine-img {
  width: 50%;
  height: 120px;
  object-fit: cover;
  object-position: top;
}

.vine-divider-5 .vine-img-second {
  transform: scaleX(-1);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: calc(var(--spacing-unit) * 2) 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: var(--spacing-unit) 0;
  background: rgba(15, 23, 42, 0.95);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: calc(var(--spacing-unit) * 4);
  align-items: center;
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  position: relative;
  padding: calc(var(--spacing-unit) / 2) 0;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.cta-btn {
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 50px;
  color: var(--color-bg-dark);
  font-weight: 600;
}

.nav-link.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.nav-link.cta-btn::after {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: calc(var(--spacing-unit) / 2);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-unit);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacing-unit) * 10) calc(var(--spacing-unit) * 4);
  position: relative;
  overflow: visible;
  background-image: url('/bg1.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.hero-section::before {
  content: '🌴';
  position: absolute;
  top: 10%;
  right: 5%;
  font-size: 15rem;
  opacity: 0.08;
  animation: float 20s ease-in-out infinite;
  transform: rotate(-10deg);
}

.hero-section::after {
  content: '🦜';
  position: absolute;
  bottom: 20%;
  left: 2%;
  font-size: 8rem;
  opacity: 0.1;
  animation: float 15s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-50px) scale(1.1); }
}

.hero-content-center {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 5;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: calc(var(--spacing-unit) * 3);
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #f0f0f0;
  margin-bottom: calc(var(--spacing-unit) * 4);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-weight: 600;
}

.hero-subjects {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-unit);
  margin-bottom: calc(var(--spacing-unit) * 3);
  align-items: center;
}

.subject-tag {
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacing-unit) * 1.2);
}

.subject-teacher-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
  display: none;
}

.subject-tag:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.subject-tag:hover .subject-teacher-img {
  border-color: var(--color-primary);
  transform: scale(1.08);
}

.subject-all {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-feature {
  font-size: 1.2rem;
  color: var(--color-primary-light);
  margin-bottom: calc(var(--spacing-unit) * 4);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  position: relative;
  overflow: hidden;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border: 2px solid var(--color-primary);
  color: white;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.5), 0 0 40px rgba(245, 158, 11, 0.3);
  font-weight: 600;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--color-primary-light), #fbbf24);
  border-color: var(--color-primary-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.6), 0 0 60px rgba(245, 158, 11, 0.4);
}

.hero-teachers-left,
.hero-teachers-right {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 6);
  z-index: 3;
}

.hero-teachers-left {
  left: 5%;
  top: 45%;
  transform: translateY(-50%);
}

.hero-teachers-right {
  right: 3%;
  top: 45%;
  transform: translateY(-50%);
}

.hero-teacher-bottom {
  position: absolute;
  bottom: 15%;
  right: 15%;
  z-index: 2;
}

.teacher-avatar-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1.5);
  animation: floatTeacher 4s ease-in-out infinite;
}

.teacher-avatar-hero:nth-child(1) {
  animation-delay: 0s;
}

.teacher-avatar-hero:nth-child(2) {
  animation-delay: 1s;
}

.teacher-highlight {
  animation-delay: 2s;
}

.teacher-hero-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.95));
  padding: 8px;
}

.teacher-avatar-hero:hover .teacher-hero-img {
  transform: scale(1.1);
  box-shadow: 0 12px 48px rgba(245, 158, 11, 0.6);
}

.teacher-highlight .teacher-hero-img {
  width: 120px;
  height: 120px;
  border-width: 4px;
  box-shadow: 0 12px 48px rgba(245, 158, 11, 0.5);
}

.teacher-label {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.9));
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2.5);
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

@keyframes floatTeacher {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 2);
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tutors-section .container {
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  margin-bottom: calc(var(--spacing-unit) * 8);
}

/* Tutors Section */
.tutors-section {
  background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.1) 50%, rgba(20, 184, 166, 0.15) 100%);
  position: relative;
  overflow: hidden;
}

.tutors-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(20, 184, 166, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(132, 204, 22, 0.1) 0%, transparent 50%);
  animation: floatGradientJungle 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatGradientJungle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-15px, -15px) scale(1.03);
  }
}

.tutors-section .section-title {
  position: relative;
  display: inline-block;
}

.tutors-section .section-title::before {
  content: '';
  position: absolute;
  left: -150px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  background: url('/deco1.png') no-repeat center;
  background-size: contain;
  opacity: 1;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
}

.tutors-section .section-title::after {
  content: '';
  position: absolute;
  right: -150px;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  background: url('/deco2.png') no-repeat center;
  background-size: contain;
  opacity: 1;
  pointer-events: none;
  animation: float 5s ease-in-out infinite;
  animation-delay: 1s;
}

.tutors-section .deco-2 {
  display: none;
}

.tutors-section .deco-3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: url('/deco3.png') no-repeat bottom left;
  background-size: contain;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.tutors-section .deco-4 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 350px;
  height: 350px;
  background: url('/deco4.png') no-repeat bottom right;
  background-size: contain;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

@keyframes sway {
  0%, 100% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(20deg);
  }
}

.tutors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 4);
  margin-bottom: calc(var(--spacing-unit) * 8);
  justify-content: center;
}

.tutors-grid .tutor-card {
  flex: 0 1 calc(33.333% - calc(var(--spacing-unit) * 4));
  min-width: 280px;
}

.tutor-card {
  background: var(--color-glass);
  border: 3px solid var(--color-border);
  border-radius: 24px;
  padding: calc(var(--spacing-unit) * 4);
  backdrop-filter: blur(15px);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.tutor-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tutor-card:hover::before {
  opacity: 1;
}

.tutor-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.tutor-english {
  border-color: var(--crystal-blue);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
}

.tutor-english:hover {
  border-color: var(--crystal-cyan);
  box-shadow: 0 25px 60px rgba(59, 130, 246, 0.4);
}

.tutor-math {
  border-color: var(--magic-purple);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
}

.tutor-math:hover {
  border-color: var(--magic-pink);
  box-shadow: 0 25px 60px rgba(168, 85, 247, 0.4);
}

.tutor-physics {
  border-color: var(--adventure-orange);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(245, 158, 11, 0.1));
}

.tutor-physics:hover {
  border-color: var(--treasure-gold);
  box-shadow: 0 25px 60px rgba(249, 115, 22, 0.4);
}

.tutor-chinese {
  border-color: var(--jungle-green);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(132, 204, 22, 0.1));
}

.tutor-chinese:hover {
  border-color: var(--jungle-lime);
  box-shadow: 0 25px 60px rgba(16, 185, 129, 0.4);
}

.tutor-science {
  border-color: var(--jungle-teal);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(5, 150, 105, 0.1));
}

.tutor-science:hover {
  border-color: var(--jungle-emerald);
  box-shadow: 0 25px 60px rgba(20, 184, 166, 0.4);
}

.tutor-social {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
}

.tutor-social:hover {
  border-color: var(--treasure-gold);
  box-shadow: 0 25px 60px rgba(245, 158, 11, 0.4);
}

.tutor-avatar {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto calc(var(--spacing-unit) * 3);
}

.tutor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.tutor-card:hover .tutor-img {
  transform: scale(1.1);
  border-color: currentColor;
}

.tutor-icon {
  position: absolute;
  bottom: -15px;
  right: -15px;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--treasure-gold), var(--adventure-amber));
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--color-bg-dark);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

.tutor-name {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-unit);
  color: var(--color-primary-light);
}

.tutor-role {
  color: var(--color-text-secondary);
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.tutor-motto {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: calc(var(--spacing-unit) * 2);
  font-size: 0.95rem;
}

.tutor-tasks {
  text-align: left;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.tutor-tasks li {
  padding: var(--spacing-unit);
  color: var(--color-text-secondary);
  position: relative;
  padding-left: calc(var(--spacing-unit) * 3);
}

.tutor-tasks li::before {
  content: '▸';
  position: absolute;
  left: var(--spacing-unit);
  color: var(--color-primary);
}


/* Assistants Section */
.assistants-section {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, rgba(168, 85, 247, 0.12) 50%, rgba(236, 72, 153, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.assistants-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 45%);
  animation: floatGradient 15s ease-in-out infinite;
  pointer-events: none;
}

.assistants-section::after {
  content: '✨';
  position: absolute;
  bottom: 5%;
  left: 3%;
  font-size: 10rem;
  opacity: 0.08;
  transform: rotate(-15deg);
  pointer-events: none;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes floatGradient {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, 20px) scale(1.05);
  }
}

.assistants-grid {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 3);
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
}

.assistants-grid .assistant-card {
  flex: 0 1 calc(33.333% - calc(var(--spacing-unit) * 3));
  min-width: 280px;
}

.assistant-card {
  border-radius: 32px;
  padding: calc(var(--spacing-unit) * 5) calc(var(--spacing-unit) * 4);
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.assistant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  z-index: 0;
}

.assistant-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
  z-index: 1;
}

.assistant-card > * {
  position: relative;
  z-index: 2;
}

.assistant-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.assistant-lumi {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.assistant-lumi:hover {
  box-shadow: 0 15px 40px rgba(251, 191, 36, 0.3);
}

.assistant-stat {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.assistant-stat:hover {
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.3);
}

.assistant-zeno {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.assistant-zeno:hover {
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.3);
}

.assistant-max {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.assistant-max:hover {
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3);
}

.assistant-echo {
  background: linear-gradient(135deg, #84cc16, #65a30d);
}

.assistant-echo:hover {
  box-shadow: 0 15px 40px rgba(132, 204, 22, 0.3);
}

.assistant-avatar {
  position: absolute;
  width: 100%;
  height: 100%;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: calc(var(--spacing-unit) * 2);
  z-index: 1;
}

.assistant-img {
  width: auto;
  height: 90%;
  max-width: 55%;
  object-fit: contain;
  border-radius: 0;
  border: none;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

.assistant-icon {
  display: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.assistant-name {
  position: absolute;
  top: calc(var(--spacing-unit) * 3);
  left: calc(var(--spacing-unit) * 3);
  font-size: 2.5rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1;
  z-index: 2;
}

.assistant-role {
  position: absolute;
  bottom: calc(var(--spacing-unit) * 11);
  left: calc(var(--spacing-unit) * 3);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  margin: 0;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  max-width: 50%;
}

.assistant-desc {
  position: absolute;
  bottom: calc(var(--spacing-unit) * 3);
  left: calc(var(--spacing-unit) * 3);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  max-width: 45%;
  margin: 0;
}

/* Learning System Section */
.learning-system-section {
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.15) 0%, rgba(168, 85, 247, 0.1) 50%, rgba(236, 72, 153, 0.15) 100%);
  position: relative;
  overflow: hidden;
}

.learning-system-section::before {
  content: '🗺️';
  position: absolute;
  top: 5%;
  right: 10%;
  font-size: 12rem;
  opacity: 0.08;
  transform: rotate(15deg);
}

.learning-system-section::after {
  content: '🎯';
  position: absolute;
  bottom: 5%;
  left: 5%;
  font-size: 10rem;
  opacity: 0.08;
  transform: rotate(-10deg);
}

.learning-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 8);
  margin-bottom: calc(var(--spacing-unit) * 8);
  align-items: center;
}

.step-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.9));
  border: 4px solid #8B4513;
  border-radius: 24px;
  padding: calc(var(--spacing-unit) * 5);
  position: relative;
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 0 0 2px rgba(139, 69, 19, 0.3);
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.9)),
    repeating-linear-gradient(
      90deg,
      rgba(139, 69, 19, 0.03) 0px,
      rgba(139, 69, 19, 0.03) 1px,
      transparent 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(101, 67, 33, 0.02) 0px,
      rgba(101, 67, 33, 0.02) 1px,
      transparent 1px,
      transparent 3px
    );
}

.step-card:nth-child(even) {
  transform: translateX(30px);
}

.step-card:nth-child(odd) {
  transform: translateX(-30px);
}

.step-card::before {
  content: '🌟';
  position: absolute;
  top: calc(var(--spacing-unit) * 2);
  left: calc(var(--spacing-unit) * 2);
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.step-card:hover::before {
  opacity: 0.6;
  transform: scale(1.2) rotate(20deg);
}

.step-card:hover {
  transform: translateY(-15px) scale(1.03) translateX(0) !important;
  border-color: var(--jungle-teal);
  box-shadow: 0 20px 50px rgba(20, 184, 166, 0.3);
}

.step-number-img {
  position: absolute;
  top: calc(var(--spacing-unit) * 2);
  right: calc(var(--spacing-unit) * 2);
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.step-icon {
  font-size: 4rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.step-title {
  font-size: 1.8rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: #8B4513;
  font-weight: 800;
  text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.2);
}

.step-desc {
  color: #475569;
  margin-bottom: var(--spacing-unit);
  font-weight: 600;
}

.step-detail {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
}

.task-card-demo {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.demo-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 4);
  color: var(--color-text-secondary);
}

.view-demo-btn {
  padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 5);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-bg-dark);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1.5);
}

.view-demo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

.btn-icon {
  font-size: 1.5rem;
}

.demo-card {
  background: var(--color-glass);
  border: 2px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.demo-header {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.2));
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.demo-subject {
  font-weight: 600;
  font-size: 1.1rem;
  color: #fbbf24;
}

.demo-level {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0f172a;
  padding: calc(var(--spacing-unit) / 2) calc(var(--spacing-unit) * 2);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.demo-content {
  padding: calc(var(--spacing-unit) * 3);
  color: #e2e8f0;
}

.demo-item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 1.5);
  margin-bottom: var(--spacing-unit);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-weight: 500;
}

.demo-icon {
  font-size: 1.5rem;
}

.demo-footer {
  padding: calc(var(--spacing-unit) * 3);
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  text-align: center;
}

.demo-btn {
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-bg-dark);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

/* Game Mechanics Section */
.game-mechanics-section {
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.15) 0%, rgba(249, 115, 22, 0.1) 50%, rgba(245, 158, 11, 0.15) 100%);
  position: relative;
  overflow: hidden;
}

.game-mechanics-section::before {
  content: '🏆';
  position: absolute;
  top: 10%;
  left: 8%;
  font-size: 10rem;
  opacity: 0.08;
  transform: rotate(-20deg);
}

.game-mechanics-section::after {
  content: '⭐';
  position: absolute;
  bottom: 10%;
  right: 8%;
  font-size: 12rem;
  opacity: 0.08;
  transform: rotate(15deg);
}

.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--spacing-unit) * 4);
  margin-bottom: calc(var(--spacing-unit) * 8);
}

.mechanic-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.mechanic-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.mechanic-card:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.mechanic-card:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.mechanic-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 245, 255, 0.9));
  border: 2px solid;
  border-radius: 24px;
  padding: calc(var(--spacing-unit) * 4);
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.mechanic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--adventure-orange), var(--treasure-gold), var(--magic-purple));
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.mechanic-card:hover::before {
  transform: translateX(0);
}

.mechanic-card:nth-child(1) {
  border-color: var(--magic-purple);
}

.mechanic-card:nth-child(2) {
  border-color: var(--treasure-gold);
}

.mechanic-card:nth-child(3) {
  border-color: var(--adventure-orange);
}

.mechanic-card:nth-child(4) {
  border-color: #ef4444;
}

.mechanic-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 60px rgba(236, 72, 153, 0.4);
}

.mechanic-icon {
  font-size: 3rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.mechanic-title {
  font-size: 1.5rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: #1e293b;
  font-weight: 700;
}

.mechanic-desc {
  color: #475569;
  margin-bottom: calc(var(--spacing-unit) * 3);
  font-weight: 500;
}

.level-demo {
  margin-top: calc(var(--spacing-unit) * 2);
}

.level-bar {
  height: 20px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--spacing-unit);
}

.level-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  border-radius: 10px;
  transition: width 1s ease;
}

.level-text {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.badges-demo {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-unit);
}

.badge {
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.coins-demo {
  text-align: center;
  margin-top: calc(var(--spacing-unit) * 2);
}

.coin-count {
  display: inline-block;
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-bg-dark);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
}

.streak-demo {
  text-align: center;
  margin-top: calc(var(--spacing-unit) * 2);
}

.streak-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.daily-progress {
  height: 12px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: var(--spacing-unit);
}

.daily-bar {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 6px;
}

.daily-text {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.achievements-showcase {
  text-align: center;
  background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 50%, #FFF176 100%);
  border: 3px solid #FFD700;
  border-radius: 24px;
  padding: calc(var(--spacing-unit) * 6);
  box-shadow:
    0 10px 40px rgba(255, 215, 0, 0.3),
    inset 0 2px 8px rgba(255, 255, 255, 0.5),
    0 0 0 1px rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.achievements-showcase::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: shimmer 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { transform: translate(-25%, -25%); }
  50% { transform: translate(0%, 0%); }
}

.achievements-title {
  font-size: 2rem;
  margin-bottom: calc(var(--spacing-unit) * 4);
  color: #B8860B;
  font-weight: 800;
  text-shadow: 1px 1px 3px rgba(255, 215, 0, 0.5);
  position: relative;
  z-index: 1;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
  position: relative;
  z-index: 1;
}

.achievement-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(252, 248, 232, 0.9));
  border: 2px solid var(--treasure-gold);
  border-radius: 20px;
  padding: calc(var(--spacing-unit) * 3);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.achievement-item::before {
  content: '✨';
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1.2rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.achievement-item:hover::before {
  opacity: 1;
  transform: rotate(360deg);
}

.achievement-item:hover {
  transform: scale(1.1) rotate(2deg);
  border-color: var(--adventure-orange);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
}

.achievement-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.achievement-item p {
  color: #1e293b;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Feedback Section */
.feedback-section {
  position: relative;
  overflow: hidden;
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.3);
}

.feedback-section::before {
  content: '📊';
  position: absolute;
  top: 15%;
  right: 5%;
  font-size: 10rem;
  opacity: 0.08;
  transform: rotate(10deg);
}

.feedback-section::after {
  content: '💎';
  position: absolute;
  bottom: 15%;
  left: 5%;
  font-size: 8rem;
  opacity: 0.08;
  transform: rotate(-15deg);
}

.dashboard-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 4);
  max-width: 900px;
  margin: 0 auto;
}

.dashboard-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 245, 255, 0.9));
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: calc(var(--spacing-unit) * 5);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.dashboard-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-primary);
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.2);
}

.dashboard-icon {
  font-size: 4rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.dashboard-card-title {
  font-size: 1.5rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: #1e293b;
  font-weight: 700;
}

.dashboard-card-desc {
  color: #475569;
  margin-bottom: calc(var(--spacing-unit) * 3);
  line-height: 1.6;
  font-weight: 500;
}

.view-dashboard-btn {
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  border: 2px solid #f59e0b;
  border-radius: 50px;
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.view-dashboard-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #fcd34d);
  border-color: #fbbf24;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
}

.dashboard-title {
  font-size: 1.8rem;
  margin-bottom: calc(var(--spacing-unit) * 3);
  color: #1e293b;
  font-weight: 700;
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 3);
}

.stat-item {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  align-items: flex-start;
}

.stat-icon {
  font-size: 2rem;
  filter: brightness(1.2);
}

.stat-content {
  flex: 1;
}

.stat-label {
  display: block;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: var(--spacing-unit);
  font-size: 1rem;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.trend-up {
  color: #10b981;
}

.stat-bars {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-unit);
  margin-top: var(--spacing-unit);
}

.stat-bar-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-unit);
}

.stat-bar-item > span {
  min-width: 50px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
}

.stat-bar {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--spacing-unit);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  transition: width 1s ease;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.parent-report {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 3);
}

.report-section {
  padding: calc(var(--spacing-unit) * 2);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.report-subtitle {
  color: #fbbf24;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.report-section p {
  color: #e2e8f0;
  line-height: 1.8;
  font-weight: 500;
}

.report-list {
  color: #e2e8f0;
  font-weight: 500;
}

.report-list li {
  padding: var(--spacing-unit);
  position: relative;
  padding-left: calc(var(--spacing-unit) * 3);
}

.report-list li::before {
  content: '•';
  position: absolute;
  left: var(--spacing-unit);
  color: #fbbf24;
  font-weight: bold;
  font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(16, 185, 129, 0.1) 50%, rgba(132, 204, 22, 0.15) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '🎁';
  position: absolute;
  top: 10%;
  left: 10%;
  font-size: 8rem;
  opacity: 0.1;
  transform: rotate(-15deg);
  animation: float 6s ease-in-out infinite;
}

.cta-section::after {
  content: '🚀';
  position: absolute;
  bottom: 10%;
  right: 10%;
  font-size: 10rem;
  opacity: 0.1;
  transform: rotate(20deg);
  animation: float 8s ease-in-out infinite;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: calc(var(--spacing-unit) * 4);
  background: linear-gradient(135deg, var(--color-text-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: calc(var(--spacing-unit) * 4);
  margin-bottom: calc(var(--spacing-unit) * 6);
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-unit);
  color: var(--color-text-secondary);
  font-weight: 600;
}

.cta-icon {
  font-size: 1.5rem;
}

.cta-offer {
  background: var(--color-glass);
  border: 2px solid var(--color-primary);
  border-radius: 20px;
  padding: calc(var(--spacing-unit) * 4);
  margin-bottom: calc(var(--spacing-unit) * 4);
  position: relative;
  backdrop-filter: blur(10px);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.offer-badge {
  position: absolute;
  top: calc(var(--spacing-unit) * -2);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-bg-dark);
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 3);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.offer-title {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.offer-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-unit);
  align-items: center;
}

.offer-list li {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 2);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  width: 100%;
}

.form-input,
.form-select {
  width: 100%;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(var(--spacing-unit) * 2) center;
  background-size: 20px;
  padding-right: calc(var(--spacing-unit) * 6);
  cursor: pointer;
}

.form-select option {
  background: var(--color-bg-dark);
  color: var(--color-text-primary);
}

.form-select optgroup {
  background: var(--color-bg-darker);
  color: var(--color-text-secondary);
  font-weight: bold;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-submit {
  width: 100%;
  padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 4);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-bg-dark);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: calc(var(--spacing-unit) * 2);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.cta-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--color-bg-darker);
  border-top: 1px solid var(--color-border);
  padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 4) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 6);
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--color-text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-unit);
}

.footer-links a {
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-contact {
  font-style: normal;
  color: var(--color-text-secondary);
  line-height: 2;
}

.footer-contact a {
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--color-primary);
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: calc(var(--spacing-unit) * 2);
}

/* Language Selector - Circular Flag Design */
.nav-lang {
  margin-left: 20px;
  position: relative;
}

.lang-selector-wrapper {
  position: relative;
}

/* 圓形國旗按鈕 */
.lang-flag-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 0;
}

.lang-flag-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.lang-flag-btn:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.flag-emoji {
  font-size: 24px;
  line-height: 1;
  display: block;
}

/* 下拉選單 */
.lang-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: var(--color-bg-darker);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 8px;
  display: none;
  min-width: 120px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.lang-dropdown.show {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-flag-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.lang-flag-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-flag-option .flag-emoji {
  font-size: 20px;
}

.lang-flag-option .lang-name {
  font-size: 14px;
  font-weight: 500;
}

/* Mobile Language Selector */
@media (max-width: 768px) {
  .nav-lang {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    margin-left: 0;
  }
  
  .lang-flag-btn {
    width: 36px;
    height: 36px;
  }
  
  .flag-emoji {
    font-size: 20px;
  }
  
  .lang-dropdown {
    right: -20px;
    top: 45px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: calc(var(--spacing-unit) * 3);
  right: calc(var(--spacing-unit) * 3);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-bg-dark);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-section .container {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 6);
  }

  .hero-visual {
    height: 400px;
  }

  .dashboard-demo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .tutors-section .section-title::before,
  .tutors-section .section-title::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: calc(var(--spacing-unit) * 2);
  }
  
  .nav-logo {
    font-size: 1.2rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    padding: calc(var(--spacing-unit) * 3);
    gap: calc(var(--spacing-unit) * 2);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Hero section mobile redesign */
  .hero-section {
    min-height: 100vh;
    padding: calc(var(--spacing-unit) * 20) 0 calc(var(--spacing-unit) * 10) 0;
    position: relative;
    overflow: hidden;
  }
  
  .hero-content {
    padding: calc(var(--spacing-unit) * 2);
    max-width: 100%;
    position: relative;
    z-index: 1;
  }
  
  .hero-content-center {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 4);
  }
  
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #f59e0b 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    margin-bottom: calc(var(--spacing-unit) * 2);
    animation: pulse 3s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-top: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.3px;
  }

  .section-title {
    font-size: 1.8rem;
  }
  
  /* Hide teacher avatars and subjects on mobile */
  .hero-teachers-left,
  .hero-teachers-right,
  .hero-teacher-bottom,
  .hero-subjects {
    display: none;
  }
  
  /* Hero feature text adjustment */
  .hero-feature {
    font-size: 0.95rem;
    padding: calc(var(--spacing-unit) * 2);
    margin: calc(var(--spacing-unit) * 3) 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    font-weight: 600;
    color: var(--color-primary-light);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
  }
  
  /* CTA buttons stack on mobile */
  .hero-cta {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
    padding: 0 calc(var(--spacing-unit) * 3);
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }
  
  .btn-primary {
    animation: glow 2s ease-in-out infinite;
  }
  
  @keyframes glow {
    0%, 100% { box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 20px 50px rgba(245, 158, 11, 0.6); }
  }

  .tutors-grid .tutor-card {
    flex: 0 1 calc(50% - calc(var(--spacing-unit) * 2));
  }

  .learning-steps {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 3);
  }

  .step-card {
    padding: calc(var(--spacing-unit) * 3);
    border-width: 2px;
  }
  
  .step-card:nth-child(even),
  .step-card:nth-child(odd) {
    transform: translateX(0) !important;
  }
  
  .step-card:hover {
    transform: translateY(-10px) !important;
  }
  
  .step-icon {
    font-size: 2rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
  }
  
  .step-title {
    font-size: 1.3rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
  }
  
  .step-desc {
    font-size: 0.9rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
  }
  
  .step-detail {
    font-size: 0.85rem;
  }
  
  .step-number-img {
    width: 40px;
    height: 40px;
    top: calc(var(--spacing-unit) * 1.5);
    right: calc(var(--spacing-unit) * 1.5);
  }

  /* Game mechanics section mobile fixes */
  .game-mechanics-section {
    overflow-x: hidden;
    padding-left: calc(var(--spacing-unit) * 2);
    padding-right: calc(var(--spacing-unit) * 2);
  }
  
  .mechanics-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 3);
    margin: 0;
    padding: 0;
  }
  
  /* Reset grid positioning on mobile */
  .mechanic-card:nth-child(1),
  .mechanic-card:nth-child(2),
  .mechanic-card:nth-child(3),
  .mechanic-card:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }
  
  .mechanic-card {
    padding: calc(var(--spacing-unit) * 3);
    margin: 0;
    width: 100%;
  }
  
  .mechanic-card:hover {
    transform: translateY(-10px);
  }
  
  .mechanic-icon {
    font-size: 2rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
  }
  
  .mechanic-title {
    font-size: 1.3rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
  }
  
  .mechanic-desc {
    font-size: 0.9rem;
  }
  
  .badges-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 1);
  }
  
  .badge {
    font-size: 0.8rem;
    padding: calc(var(--spacing-unit) * 0.8) calc(var(--spacing-unit) * 1.5);
    text-align: center;
  }

  .assistants-grid {
    gap: calc(var(--spacing-unit) * 2);
  }

  .assistants-grid .assistant-card {
    flex: 0 1 calc(50% - calc(var(--spacing-unit) * 2));
    min-width: 240px;
  }

  .hero-visual {
    height: 300px;
  }

  .floating-card {
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    font-size: 0.9rem;
  }

  .floating-card .icon {
    font-size: 1.5rem;
  }

  .cta-form {
    flex-direction: column;
  }

  .form-input {
    width: 100%;
  }

  .assistants-grid {
    gap: calc(var(--spacing-unit) * 2);
  }

  .assistants-grid .assistant-card {
    flex: 0 1 100%;
  }

  .assistant-card {
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 3);
    min-height: 240px;
  }

  .assistant-name {
    font-size: 2rem;
    top: calc(var(--spacing-unit) * 2);
    left: calc(var(--spacing-unit) * 2);
  }

  .assistant-role {
    font-size: 1rem;
    bottom: calc(var(--spacing-unit) * 9);
    left: calc(var(--spacing-unit) * 2);
    max-width: 45%;
  }

  .assistant-desc {
    font-size: 0.85rem;
    bottom: calc(var(--spacing-unit) * 3);
    left: calc(var(--spacing-unit) * 2);
    max-width: 40%;
  }

  .assistant-img {
    height: 85%;
    max-width: 50%;
  }

  .tutors-grid .tutor-card {
    flex: 0 1 100%;
  }
  
  .tutor-card {
    padding: calc(var(--spacing-unit) * 2.5);
  }
  
  .tutor-name {
    font-size: 1.3rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
  }
  
  .tutor-role {
    font-size: 0.9rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
  }
  
  .tutor-desc {
    font-size: 0.85rem;
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vine-divider {
    height: 120px;
    margin: calc(var(--spacing-unit) * -6) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 calc(var(--spacing-unit) * 2);
  }

  section {
    padding: calc(var(--spacing-unit) * 8) 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-subjects {
    justify-content: center;
  }

  .cta-features {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-demo {
    grid-template-columns: 1fr;
  }

  .vine-divider {
    height: 80px;
    margin: calc(var(--spacing-unit) * -4) 0;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  overflow-y: auto;
  padding: calc(var(--spacing-unit) * 3);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(245, 158, 11, 0.2);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: calc(var(--spacing-unit) * 2);
  right: calc(var(--spacing-unit) * 2);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 50%;
  color: #fbbf24;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.modal-close:hover {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  transform: rotate(90deg);
  border-color: var(--color-primary);
}

.modal-body {
  padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 4);
}

.modal-title {
  font-size: 2rem;
  margin-bottom: calc(var(--spacing-unit) * 4);
  text-align: center;
  color: #fbbf24;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal .demo-card,
.modal .stats-grid,
.modal .parent-report {
  margin-top: 0;
}

@media (max-width: 768px) {
  .modal {
    padding: calc(var(--spacing-unit) * 2);
  }

  .modal-content {
    max-width: 100%;
    border-radius: 16px;
  }

  .modal-body {
    padding: calc(var(--spacing-unit) * 5) calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
  }

  .modal-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .modal-close {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
}
