@import url('i18n.css');

:root {
  --primary-color: #A8627A;
  --primary-hover: #96516A;
  --primary-light: rgba(168, 98, 122, 0.10);
  --primary-medium: #C98BA0;
  --primary-dark: #7A4458;
  --bg-primary: #FAF0F3;
  --bg-alt: #F5E6EB;
  --surface-color: #FFFFFF;
  --text-primary: #2C3440;
  --text-secondary: #5E6977;
  --border-color: #E8DDE1;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(168, 98, 122, 0.10);
  --shadow-hover: 0 20px 40px rgba(168, 98, 122, 0.18);
  --shadow-lg: 0 24px 48px rgba(168, 98, 122, 0.15);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-medium), #7059A6);
  z-index: 10001;
  transition: width 0.05s linear;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--text-primary);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), #7059A6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ========================= */
/* NAVBAR                    */
/* ========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 221, 225, 0.6);
  z-index: 1000;
  padding: 14px 0;
  transition: var(--transition);
}

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

.logo {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.938rem;
  transition: var(--transition);
  position: relative;
  text-transform: capitalize;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

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

.nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.lang-btn .chevron {
  transition: transform 0.3s ease;
}

.lang-switcher.open .lang-btn .chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s;
}

.lang-dropdown button:hover,
.lang-dropdown button.active {
  background: var(--primary-light);
  color: var(--primary-color);
}

.lang-dropdown button:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.lang-dropdown button:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  text-transform: capitalize;
}

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

.mobile-nav-divider {
  height: 1px;
  margin: 8px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  font-size: 0.938rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(168, 98, 122, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 98, 122, 0.35);
}

.btn-secondary, .btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover, .btn-outline:hover {
  background-color: var(--surface-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-nav {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-register-mobile {
  display: none;
  padding: 7px 14px;
  font-size: 0.813rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  opacity: 0;
  transform: rotate(30deg);
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.3) 77%,
    rgba(255, 255, 255, 0.1) 92%,
    rgba(255, 255, 255, 0.0) 100%
  );
}

.shine-effect:hover::after {
  opacity: 1;
  left: 130%;
  transition-property: left, top, opacity;
  transition-duration: 0.7s, 0.7s, 0.15s;
  transition-timing-function: ease-in-out;
}

/* ========================= */
/* HERO SECTION              */
/* ========================= */
.hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 120px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--surface-color) 0%, var(--bg-primary) 60%);
  z-index: -2;
  overflow: hidden;
}

/* Modern subtle grid pattern overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(168, 98, 122, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 98, 122, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 85%);
  z-index: -1;
}

/* Floating abstract shapes with dynamic gradients */
.hero::before, .hero::after, .hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.6;
}

.hero::before {
  top: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, rgba(168, 98, 122, 0.15), rgba(201, 139, 160, 0.2));
  animation: floatOrb 15s ease-in-out infinite alternate;
}

.hero::after {
  bottom: -15%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: linear-gradient(135deg, rgba(112, 89, 166, 0.12), rgba(168, 98, 122, 0.1));
  animation: floatOrb 18s ease-in-out infinite alternate-reverse;
  animation-delay: -5s;
}

.hero-bg::after {
  content: '';
  top: 30%;
  left: 30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 98, 122, 0.1) 0%, transparent 70%);
  animation: floatOrb 20s ease-in-out infinite alternate;
  animation-delay: -2s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(30px, -50px) scale(1.1) rotate(5deg); }
  66% { transform: translate(-20px, 20px) scale(0.9) rotate(-5deg); }
  100% { transform: translate(40px, 40px) scale(1.05) rotate(5deg); }
}

/* Floating language bubbles */
.floating-bubble {
  position: absolute;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(168, 98, 122, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
  z-index: 0;
  opacity: 0;
  animation: bubbleFloat 14s ease-in-out infinite alternate, bubbleFadeIn 1s ease forwards;
  pointer-events: none;
}

.bubble-1 { top: 20%; left: 8%; animation-delay: 0.5s, 0.5s; }
.bubble-2 { top: 35%; right: 6%; animation-delay: 1s, 0.7s; }
.bubble-3 { top: 65%; left: 5%; animation-delay: 2s, 0.9s; }
.bubble-4 { top: 15%; right: 12%; animation-delay: 3s, 1.1s; }
.bubble-5 { top: 75%; right: 8%; animation-delay: 1.5s, 1.3s; }
.bubble-6 { top: 50%; left: 3%; animation-delay: 2.5s, 1.5s; }

@keyframes bubbleFloat {
  0% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(2deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
  100% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes bubbleFadeIn {
  to { opacity: 0.8; }
}

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

.hero-subtitle {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.25rem;
}

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

.badge {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

/* Social Proof */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
}

.social-proof span {
  color: var(--text-secondary);
  font-size: 0.938rem;
  font-weight: 500;
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  border: 2.5px solid var(--bg-primary);
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
}

/* ========================= */
/* HOW IT WORKS              */
/* ========================= */
.how-section {
  background-color: var(--bg-alt);
  position: relative;
}

/* Wave divider top */
.how-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--bg-primary);
  clip-path: ellipse(55% 100% at 50% 0%);
}

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

.steps-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-line {
  position: absolute;
  left: 28px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-medium), transparent);
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(168, 98, 122, 0.3);
}

.step-content {
  padding-top: 8px;
}

.step-content h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.step-content p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ========================= */
/* FEATURES                  */
/* ========================= */
.features {
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background-color: var(--surface-color);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(232, 221, 225, 0.5);
  position: relative;
  overflow: hidden;
}

/* Gradient border on hover */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-medium), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

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

/* Bento: first card spans 2 columns for visual hierarchy */
.feature-large {
  grid-column: span 2;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light), rgba(168, 98, 122, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.feature-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

/* ========================= */
/* APP DEMO                  */
/* ========================= */
.demo-section {
  background: var(--bg-alt);
  position: relative;
}

.demo-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--bg-primary);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.demo-window {
  background: var(--surface-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  max-width: 960px;
  margin: 0 auto;
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: white;
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.demo-dots span:first-child { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #ffbd2e; }
.demo-dots span:nth-child(3) { background: #28c841; }

.demo-tabs {
  display: flex;
  gap: 4px;
}

.demo-tab {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.7;
  transition: var(--transition);
}

.demo-tab.active {
  background: rgba(255,255,255,0.2);
  opacity: 1;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  opacity: 0.8;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28c841;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.demo-body {
  display: flex;
  min-height: 420px;
}

.demo-sidebar {
  width: 220px;
  border-right: 1px solid var(--border-color);
  padding: 20px 16px;
  background: var(--bg-primary);
  flex-shrink: 0;
}

.demo-teacher {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--surface-color);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.demo-teacher-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-medium));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.demo-teacher-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.demo-teacher-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.demo-ai-badge {
  margin-left: auto;
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.688rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}

.demo-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.813rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.demo-nav-item:first-child {
  background: var(--primary-light);
  color: var(--primary-color);
}

.demo-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.demo-chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.demo-chat-header strong {
  font-size: 1rem;
  color: var(--primary-color);
}

.demo-chat-header span {
  font-size: 0.813rem;
  color: var(--text-secondary);
}

.demo-messages {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.demo-msg {
  display: flex;
}

.demo-msg-bubble {
  max-width: 80%;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.demo-msg-ai {
  justify-content: flex-start;
}

.demo-msg-ai .demo-msg-bubble {
  background: var(--bg-primary);
  border-bottom-left-radius: 4px;
}

.demo-msg-user {
  justify-content: flex-end;
}

.demo-msg-user .demo-msg-bubble {
  background: var(--primary-color);
  color: white;
  border-bottom-right-radius: 4px;
}

/* Typing dots animation */
.typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-medium);
  animation: typingBounce 1.4s ease-in-out infinite;
}

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

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.demo-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
}

.demo-input-field {
  flex: 1;
  padding: 12px 18px;
  background: var(--bg-primary);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.demo-mic-btn, .demo-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: var(--transition);
}

.demo-mic-btn {
  background: var(--bg-primary);
  color: var(--text-secondary);
}

.demo-send-btn {
  background: var(--primary-color);
}

/* ========================= */
/* STATS                     */
/* ========================= */
.stats-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 32px 16px;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--border-color);
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
  line-height: 1;
}

.stat-suffix {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.938rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========================= */
/* FAQ                       */
/* ========================= */
.faq-section {
  background: var(--bg-primary);
}

.faq-list {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.063rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 1rem;
  line-height: 1.7;
}

/* ========================= */
/* CTA                       */
/* ========================= */
.cta-section {
  background: var(--bg-primary);
}

.cta-card {
  background: linear-gradient(135deg, var(--surface-color) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border-color);
  padding: 72px 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(168, 98, 122, 0.06);
  filter: blur(60px);
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(112, 89, 166, 0.05);
  filter: blur(60px);
}

/* ========================= */
/* FOOTER                    */
/* ========================= */
.footer {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  display: inline-block;
}

.footer-brand p {
  font-size: 0.938rem;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.link-group h4 {
  font-size: 0.938rem;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

.link-group a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.938rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.813rem;
}

/* ========================= */
/* ANIMATIONS                */
/* ========================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

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

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================= */
/* RESPONSIVE                */
/* ========================= */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .btn-nav { display: none; }
  .btn-register-mobile { display: inline-flex; }
  .logo { font-size: 1.125rem; }

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

  .feature-large {
    grid-column: span 2;
  }

  .demo-sidebar { display: none; }
  .demo-tabs { gap: 2px; }
  .demo-tab { padding: 4px 8px; font-size: 0.688rem; }

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

  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; letter-spacing: -1px; }
  h2 { font-size: 1.75rem; }
  .section-padding { padding: 72px 0; }

  .hero { padding-top: 120px; padding-bottom: 80px; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
  .btn-lg { width: 100%; }

  .floating-bubble { display: none; }

  .social-proof {
    flex-direction: column;
    gap: 10px;
  }

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

  .feature-large {
    grid-column: span 1;
  }

  .step-line { left: 20px; }
  .step-number { width: 42px; height: 42px; font-size: 1rem; }
  .step { gap: 16px; }

  .demo-topbar { padding: 10px 14px; }
  .demo-status { display: none; }
  .demo-messages { padding: 16px; }
  .demo-msg-bubble { max-width: 90%; font-size: 0.813rem; padding: 10px 14px; }
  .demo-input { padding: 12px 16px; }

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

  .stat-item { padding: 20px 8px; }
  .stat-item::after { display: none; }

  .cta-card { padding: 48px 24px; }

  .footer-content { flex-direction: column; }
  .footer-links { gap: 40px; }
}

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

  .container { padding: 0 16px; }

  .demo-body { min-height: 320px; }
}

@media (max-width: 380px) {
  .btn-register-mobile {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .lang-btn {
    padding: 6px 8px;
    gap: 4px;
  }

  .lang-btn .chevron { display: none; }
}
