* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #4a90e2;
  --secondary-blue: #87ceeb;
  --dark-blue: #2c5282;
  --light-blue: #e6f3ff;
  --white: #ffffff;
  --text-dark: #2d3748;
  --text-light: #718096;
  --success: #48bb78;
  --warning: #ed8936;
  --gradient-primary: linear-gradient(135deg, #4a90e2 0%, #87ceeb 100%);
  --gradient-secondary: linear-gradient(135deg, #87ceeb 0%, #e6f3ff 100%);
  --shadow-light: 0 4px 6px rgba(74, 144, 226, 0.1);
  --shadow-medium: 0 8px 25px rgba(74, 144, 226, 0.15);
  --shadow-heavy: 0 20px 40px rgba(74, 144, 226, 0.2);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-blue);
}

.nav-brand .logo i {
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-blue);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-blue);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%234A90E2" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-light);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.feature-item i {
  font-size: 1.2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Speech Animation */
.speech-animation {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.microphone-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.microphone {
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  box-shadow: var(--shadow-heavy);
  animation: pulse 2s infinite;
  position: relative;
  z-index: 2;
}

.sound-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wave {
  position: absolute;
  border: 2px solid var(--primary-blue);
  border-radius: 50%;
  opacity: 0;
  animation: wave-animation 2s infinite;
}

.wave-1 {
  animation-delay: 0s;
}
.wave-2 {
  animation-delay: 0.5s;
}
.wave-3 {
  animation-delay: 1s;
}
.wave-4 {
  animation-delay: 1.5s;
}

@keyframes wave-animation {
  0% {
    width: 100px;
    height: 100px;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

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

.speech-bubble {
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  position: relative;
}

.speech-bubble::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid white;
}

.text-analysis {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.word {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
}

.word.correct {
  background: rgba(72, 187, 120, 0.1);
  color: var(--success);
  border: 2px solid var(--success);
}

.word.incorrect {
  background: rgba(237, 137, 54, 0.1);
  color: var(--warning);
  border: 2px solid var(--warning);
}

.pronunciation-guide {
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.5rem;
}

.ai-feedback {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-light);
}

.ai-feedback i {
  color: var(--primary-blue);
  font-size: 1.2rem;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(74, 144, 226, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-left: 1rem;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: progress-animation 3s infinite;
}

@keyframes progress-animation {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  font-size: 0.9rem;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* INDAH Section */
.indah-section {
  padding: 5rem 0;
  background: white;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-header .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-light);
}

.indah-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-line {
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.indah-step {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.indah-step.animate {
  opacity: 1;
  transform: translateX(0);
}

.step-number {
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  box-shadow: var(--shadow-medium);
  position: relative;
  z-index: 2;
}

.step-content {
  flex: 1;
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(74, 144, 226, 0.1);
  transition: all 0.3s ease;
}

.step-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--light-blue);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-icon i {
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.step-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.step-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
}

.waveform {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 40px;
}

.waveform .bar {
  width: 8px;
  background: var(--gradient-primary);
  border-radius: 4px;
  animation: waveform-animation 2s infinite;
}

.waveform .bar:nth-child(2) {
  animation-delay: 0.2s;
}
.waveform .bar:nth-child(3) {
  animation-delay: 0.4s;
}
.waveform .bar:nth-child(4) {
  animation-delay: 0.6s;
}
.waveform .bar:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes waveform-animation {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.5);
  }
}

.notification-demo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alert {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  animation: fade-in-out 3s infinite;
}

.alert.success {
  background: rgba(72, 187, 120, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}

.alert.warning {
  background: rgba(237, 137, 54, 0.1);
  color: var(--warning);
  border: 1px solid var(--warning);
  animation-delay: 1.5s;
}

@keyframes fade-in-out {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.phonetic-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.phonetic-symbol {
  font-family: "Courier New", monospace;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-blue);
}

.mouth-position i {
  font-size: 2rem;
  color: var(--secondary-blue);
  animation: talk-animation 2s infinite;
}

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

.practice-demo {
  display: flex;
  justify-content: center;
}

.conversation-bubble {
  background: var(--light-blue);
  padding: 1rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  font-weight: 600;
  animation: bubble-animation 3s infinite;
}

@keyframes bubble-animation {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.harmony-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.meter-bar {
  width: 200px;
  height: 10px;
  background: rgba(74, 144, 226, 0.2);
  border-radius: 5px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 5px;
  animation: meter-animation 3s infinite;
}

@keyframes meter-animation {
  0% {
    width: 0%;
  }
  100% {
    width: 85%;
  }
}

/* Demo Section */
.demo-section {
  padding: 5rem 0;
  background: var(--gradient-secondary);
}

.demo-container {
  text-align: center;
}

.demo-container h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.demo-container p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.demo-interface {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mic-button {
  width: 150px;
  height: 150px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-heavy);
}

.mic-button:hover {
  transform: scale(1.05);
}

.mic-button.active {
  animation: pulse-active 1s infinite;
}

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

.mic-button i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.mic-button span {
  font-size: 0.9rem;
  font-weight: 600;
}

.demo-result {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  min-width: 300px;
}

.result-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.result-score {
  font-size: 1rem;
  color: var(--text-light);
}

/* Stats Section */
.stats-section {
  padding: 5rem 0;
  background: var(--primary-blue);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: white;
  color: var(--primary-blue);
}

.cta-buttons .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.cta-buttons .btn-secondary {
  border-color: white;
  color: white;
}

.cta-buttons .btn-secondary:hover {
  background: white;
  color: var(--primary-blue);
}

/* Footer */
.footer {
  background: var(--dark-blue);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-brand .logo i {
  font-size: 1.8rem;
  color: var(--secondary-blue);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.link-group h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary-blue);
}

.link-group a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.link-group a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-brand-container {
    display: flex;justify-content:space-between;width:100%;align-items:center;
  }
  .hamburger {
    display: flex;
  }

  .nav-menu.active {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
}

  .navbar.mobile {
    flex-direction: column;
  }

  .nav-menu {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .indah-step {
    flex-direction: column;
    text-align: center;
  }

  .timeline-line {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

  .mic-button {
    width: 120px;
    height: 120px;
  }

  .mic-button i {
    font-size: 2.5rem;
  }
}
