:root {
  --primary-color: #4361ee;
  --primary-light: rgba(67, 97, 238, 0.1);
  --secondary-color: #3f37c9;
  --accent-color: #4cc9f0;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* Shadows and effects */
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 15px 35px rgba(67, 97, 238, 0.1);
  --btn-shadow: 0 4px 6px rgba(67, 97, 238, 0.1);
  
  /* Layout */
  --header-height: 70px;
  --footer-height: 60px;
}

html {
  font-size: 14px;
  height: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--gray-800);
  background-color: #fafafa;
  line-height: 1.6;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.page-content {
  padding-bottom: 2rem;
}

section {
  padding: 5rem 0;
}

section:last-of-type {
  margin-bottom: 0;
}

.container {
  max-width: 1200px;
  padding: 0 1.5rem;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

p {
  margin-bottom: 1.5rem;
  color: var(--gray-600);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(67, 97, 238, 0.15);
}

.btn-outline {
  background-color: transparent;
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero section */
.hero {
  padding: 8rem 0;
  background-color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(76, 201, 240, 0.05) 100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(76, 201, 240, 0.05) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--gray-600);
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  transition: all 0.5s ease;
}

.hero-image img:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

/* Animated Background */
.animated-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
}

.animated-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(76, 201, 240, 0.05) 100%);
  z-index: 0;
}

.shape-1 {
  top: -15%;
  right: -10%;
  width: 500px;
  height: 500px;
  animation: float 15s ease-in-out infinite;
}

.shape-2 {
  bottom: -15%;
  left: -10%;
  width: 400px;
  height: 400px;
  animation: float 20s ease-in-out infinite reverse;
}

.shape-3 {
  top: 40%;
  left: 5%;
  width: 200px;
  height: 200px;
  animation: float 25s ease-in-out infinite 2s;
}

.shape-4 {
  bottom: 10%;
  right: 10%;
  width: 300px;
  height: 300px;
  animation: float 18s ease-in-out infinite 1s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(5%, 5%) rotate(5deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.hero-badge {
  display: inline-block;
}

.bg-primary-soft {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary-color);
}

/* TULAI Wordplay Styling */
.tulai-meaning {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 500;
  padding: 0.5rem 1rem;
  background-color: rgba(67, 97, 238, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.tulai-meaning:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow);
}

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

.hero-image-container {
  position: relative;
  padding: 1rem;
}

.hero-image-decoration {
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  border: 2px dashed rgba(67, 97, 238, 0.2);
  border-radius: 16px;
  z-index: -1;
}

.floating-element {
  position: absolute;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.floating-badge-1 {
  top: 10%;
  right: -5%;
  animation: float-badge 6s ease-in-out infinite;
}

.floating-badge-2 {
  bottom: 10%;
  left: -5%;
  animation: float-badge 6s ease-in-out infinite 1s;
}

@keyframes float-badge {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Features section */
.features {
  background-color: var(--gray-100);
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.feature-card {
  background-color: white;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 0 0 0 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover:after {
  opacity: 1;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  font-size: 1.75rem;
  border-radius: 16px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  margin-bottom: 1.5rem;
  color: var(--gray-600);
  flex-grow: 1;
}

.feature-link {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.feature-link:hover {
  transform: translateX(5px);
}

.feature-link i {
  transition: transform 0.3s ease;
  margin-left: 0.3rem;
}

.feature-link:hover i {
  transform: translateX(3px);
}

/* Stats Section */
.stat-icon{
  font-size:1.75rem;
  color:var(--stat-color, var(--primary-color));
}

/* Stat card base */
.stat-card{
  background:#fff;
  border:2px solid var(--stat-color, var(--primary-color));
  box-shadow:var(--card-shadow);
}

/* Stat card color variants */
.stat-time{--stat-color:#f7b924;}
.stat-align{--stat-color:#0d6efd;}
.stat-teachers{--stat-color:#16a34a;}
.stat-plans{--stat-color:#6366f1;}
.stats-section {
  background-color: white;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.stat-card {
  padding: 1.5rem;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.stat-title {
  font-size:1rem;
  color:var(--gray-600);
  margin-bottom:0;
  font-weight:500;
}

/* How It Works Section */
.how-it-works {
  background-color: var(--gray-100);
}

.step-card {
  background-color: white;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
  z-index: 2;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
  padding-right: 2rem;
}

.step-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  background-color: white;
  overflow: hidden;
  position: relative;
}

.cta-section:before {
  content: '';
  position: absolute;
  top: -5%;
  right: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(76, 201, 240, 0.05) 100%);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--gray-600);
}

.cta-image-container {
  position: relative;
  padding: 1rem;
}

.cta-image-decoration {
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  border: 2px dashed rgba(67, 97, 238, 0.2);
  border-radius: 16px;
  z-index: 0;
}

/* Testimonials */
.testimonials {
  background-color: var(--gray-100);
}

.testimonial-card {
  background-color: white;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card:before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  color: rgba(67, 97, 238, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
}

.testimonial-rating {
  color: #ffc107;
}

.testimonial-rating i {
  margin-right: 0.2rem;
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.testimonial-author h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.testimonial-author p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--gray-500);
}

/* FAQ Section */
.faq {
  background-color: white;
}

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gray-800);
  background-color: white;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  background-size: 1.2rem;
  transition: all 0.3s ease;
}

.accordion-body {
  padding: 1rem 1.5rem 1.5rem;
  color: var(--gray-600);
}

/* Footer */
.footer {
  flex-shrink: 0;
  background-color: white;
  border-top: 1px solid var(--gray-200);
  width: 100%;
  padding: 2rem 0;
  margin-top: auto;
}

.footer .row {
  width: 100%;
}

.footer p {
  margin-bottom: 0;
  color: var(--gray-600);
}

.footer a {
  color: var(--primary-color);
  transition: color 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Animations */
.animate-fadeInUp {
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  .footer {
    padding: 1rem 0;
  }
  
  .footer .row > div {
    text-align: center;
  }
  
  .footer .text-md-end {
    text-align: center !important;
    margin-top: 0.5rem;
  }
  
  .footer p {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 992px) {
  section {
    padding: 4rem 0;
  }
  
  .hero {
    padding: 6rem 0;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}