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

:root {
  --blue-600: #1a73e8;
  --blue-700: #1557b0;
  --blue-50: #e8f0fe;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--blue-600);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--gray-900);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gray-900);
}

.nav-cta {
  background: var(--blue-600);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--blue-700);
  color: var(--white) !important;
}

/* Hero */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--gray-900);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--blue-600), #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
}

.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--gray-500);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Stats */
.stats {
  padding: 0 24px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.stat {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--gray-100);
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-600);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 4px;
  font-weight: 500;
}

/* Sections */
section {
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Courses */
#courses {
  background: var(--gray-50);
}

.courses-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--white);
  border-radius: 14px;
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), #4f46e5);
  opacity: 0;
  transition: opacity 0.25s;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.course-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.course-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.course-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.course-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Why Us */
.features-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all 0.2s;
}

.feature:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--blue-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature p {
  color: var(--gray-500);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Testimonials */
#testimonials {
  background: var(--gray-50);
}

.testimonials-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--white);
  padding: 32px 28px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
}

.stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial blockquote {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue-600);
}

.testimonial-author .name {
  font-weight: 600;
  font-size: 0.88rem;
}

.testimonial-author .role {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* CTA */
.cta {
  text-align: center;
  padding: 100px 24px;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--gray-900), #1e293b);
  border-radius: 20px;
  padding: 64px 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.2) 0%, transparent 60%);
  border-radius: 50%;
}

.cta-box h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
}

.cta-box p {
  color: #94a3b8;
  margin-bottom: 32px;
  font-size: 1.05rem;
  position: relative;
}

.cta-box .btn-primary {
  position: relative;
}

/* Footer */
footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left p {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ── Floating Assistant Button (Avatar style) ── */
.assistant-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), #4f46e5);
  border: 3px solid var(--white);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(26, 115, 232, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.assistant-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(26, 115, 232, 0.55);
}

.assistant-fab:active {
  transform: scale(0.95);
}

.fab-avatar {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.fab-pulse {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 16px;
  height: 16px;
  background: #34d399;
  border-radius: 50%;
  border: 2.5px solid var(--white);
}

/* ── Assistant Popup ── */
.assistant-popup {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 899;
  width: 380px;
  max-height: calc(100vh - 140px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.95);
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.assistant-popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Header */
.ap-header {
  background: linear-gradient(135deg, var(--blue-600), #4f46e5);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ap-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ap-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
}

.ap-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.ap-role {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ap-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
}

.ap-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.ap-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Body */
.ap-body {
  padding: 20px 16px;
  flex: 1;
  overflow-y: auto;
}

/* Option cards */
.ap-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.ap-option {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ap-option:hover,
.ap-option.ap-option-active {
  border-color: var(--blue-600);
  background: var(--blue-50);
}

.ap-option:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ap-option-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.ap-icon-chat {
  background: var(--blue-50);
  color: var(--blue-600);
}

.ap-icon-talk {
  background: #f0fdf4;
  color: #16a34a;
}

.ap-option-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.ap-option-desc {
  font-size: 0.72rem;
  color: var(--gray-500);
}

/* Chat messages */
.ap-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 60px;
}

.chat-message {
  max-width: 85%;
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  word-wrap: break-word;
}

.chat-message p {
  margin: 0;
}

.chat-message.sarah {
  align-self: flex-start;
  background: var(--gray-50);
  color: var(--gray-700);
  border-radius: 14px 14px 14px 4px;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 14px 14px 4px 14px;
}

/* Typing indicator */
.typing-indicator {
  align-self: flex-start;
  background: var(--gray-50);
  border-radius: 14px 14px 14px 4px;
  padding: 14px 20px;
  display: flex;
  gap: 5px;
  align-items: center;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-500);
  animation: typingDot 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* Footer / input area */
.ap-footer {
  border-top: 1px solid var(--gray-100);
  padding: 14px 16px 16px;
  flex-shrink: 0;
}

.ap-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border-radius: 28px;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--gray-200);
  margin-bottom: 14px;
}

.ap-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--gray-900);
  outline: none;
}

.ap-input::placeholder {
  color: var(--gray-500);
}

.ap-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-600);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.ap-send:hover {
  background: var(--blue-700);
}

/* Quick questions */
.ap-quick {
  margin-top: 0;
}

.ap-quick-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ap-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ap-chip {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.ap-chip:hover {
  background: var(--blue-50);
  border-color: var(--blue-600);
  color: var(--blue-600);
}

/* Retell widget popup message hidden (we use our own greeting) */
retell-widget::part(popup-message),
.retell-widget-popup-message {
  display: none !important;
}

/* Voice Call Modal */
.voice-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.voice-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.vm-card {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  width: 340px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.voice-modal.active .vm-card {
  transform: scale(1) translateY(0);
}

.vm-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-avatar-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.vm-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--blue-600);
  opacity: 0;
  z-index: 1;
}

.vm-avatar.speaking .vm-ripple {
  animation: ripple 2s ease-out infinite;
}

.vm-avatar.speaking .vm-ripple-2 {
  animation-delay: 0.4s;
}

.vm-avatar.speaking .vm-ripple-3 {
  animation-delay: 0.8s;
}

@keyframes ripple {
  0% {
    transform: scale(0.85);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.vm-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.vm-status {
  font-size: 0.88rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 4px;
}

.vm-timer {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
  margin-bottom: 28px;
}

.vm-hangup {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ef4444;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.vm-hangup:hover {
  background: #dc2626;
  transform: scale(1.08);
}

.vm-hangup:active {
  transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 130px 20px 80px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

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

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--gray-100);
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--gray-100);
  }

  .stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

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

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

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

  .cta-box {
    padding: 48px 28px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
