/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-primary: #4C6AF1;
  --orange: #FF5F1F;
  --dark: #241C2F;
  --purple-secondary: #2C42AB;
  --gray-text: #7B7684;
  --gray-dark: #463E50;
  --dark-bg: #211A29;
  --cyan: #36C4FF;
  --bg-light: #FAFAFC;
  --bg-white: #FFFFFF;
  --highlight-bg: #FFDFD2;
  --stat-blue-bg: #DBE1FC;
  --stat-yellow-bg: #FDF1D9;
  --stat-green-bg: #E0F4DD;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 60px;
  --shadow-card: rgba(0, 0, 0, 0.09) 0px 4px 20px 0px;
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --container-max: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-text);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--dark);
  font-weight: 700;
}

h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.1; margin-bottom: 48px; }
h3 { font-size: 20px; line-height: 1.3; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--blue-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 32px;
}

.btn-primary:hover {
  background: var(--purple-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(76, 106, 241, 0.35);
}

.btn-nav { border-radius: var(--radius-sm); padding: 10px 24px; }
.btn-hero { font-size: 18px; padding: 16px 40px; }

/* ========== EYEBROW ========== */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.eyebrow-light { color: rgba(255, 255, 255, 0.7); }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid #EEECEA;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}

.navbar.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -1px;
}

.logo-icon { flex-shrink: 0; }

.navbar-links {
  display: flex;
  gap: 32px;
}

.navbar-links a {
  font-weight: 600;
  color: var(--gray-dark);
  transition: color 0.2s;
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-primary);
  transition: width 0.3s;
}

.navbar-links a:hover { color: var(--blue-primary); }
.navbar-links a:hover::after { width: 100%; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========== HERO ========== */
.hero {
  padding: 140px 0 40px;
  text-align: center;
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-star {
  position: absolute;
  animation: twinkle 3s ease-in-out infinite;
}

.star-1 { top: 15%; left: 8%; animation-delay: 0s; }
.star-2 { top: 25%; right: 12%; animation-delay: 0.5s; }
.star-3 { top: 45%; left: 5%; animation-delay: 1s; }
.star-4 { top: 10%; right: 25%; animation-delay: 1.5s; }
.star-5 { top: 35%; right: 6%; animation-delay: 2s; }

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-line {
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  opacity: 0.5;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title { margin-bottom: 24px; }

.hero-title-line {
  display: block;
  margin-bottom: 8px;
}

.hero-highlight-wrapper {
  display: inline-block;
}

.hero-highlight {
  display: inline-block;
  background: var(--highlight-bg);
  color: var(--orange);
  border-radius: var(--radius-lg);
  padding: 4px 24px;
  transition: opacity 0.4s, background-color 0.5s, color 0.5s;
  font-size: clamp(22px, 3vw, 38px);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-text);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Hero platforms */
.hero-platforms {
  margin-top: 32px;
}

.platforms-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.platform-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: all 0.25s;
}

.platform-badge:hover {
  background: var(--gray-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
  line-height: 1.2;
}

.badge-big {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

/* Hero Showcase */
.hero-showcase {
  margin-top: 64px;
  position: relative;
  z-index: 1;
}

.showcase-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0 40px;
}

.phone-mockup {
  width: 300px;
  background: var(--dark);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: var(--dark);
  border-radius: 0 0 20px 20px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  background: #F5F5FA;
  border-radius: 28px;
  padding: 48px 16px 24px;
  min-height: 480px;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.screen-greeting {
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
}

.screen-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-primary), #8B5CF6);
}

.screen-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-icon-blue { background: var(--blue-primary); }
.sc-icon-orange { background: var(--orange); }
.sc-icon-green { background: #22C55E; }

.sc-text { flex: 1; min-width: 0; }

.sc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-sub {
  font-size: 12px;
  color: var(--gray-text);
}

.sc-progress { flex-shrink: 0; }

.sc-badge {
  background: var(--stat-green-bg);
  color: #22C55E;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

/* Floating notifications */
.float-notif {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  animation: floatNotif 4s ease-in-out infinite;
}

.fn-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fn-dot-green { background: #22C55E; }
.fn-dot-blue { background: var(--blue-primary); }
.fn-dot-orange { background: var(--orange); }

.fn-1 { top: 60px; left: calc(50% - 320px); animation-delay: 0s; }
.fn-2 { top: 200px; right: calc(50% - 340px); animation-delay: 1.2s; }
.fn-3 { bottom: 80px; left: calc(50% - 280px); animation-delay: 2.4s; }

@keyframes floatNotif {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ========== BENEFITS ========== */
.benefits {
  padding: 96px 0;
  background: var(--bg-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: rgba(0, 0, 0, 0.14) 0px 8px 30px 0px;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon-blue { background: var(--stat-blue-bg); color: var(--blue-primary); }
.benefit-icon-orange { background: var(--highlight-bg); color: var(--orange); }
.benefit-icon-green { background: var(--stat-green-bg); color: #22C55E; }
.benefit-icon-purple { background: #EDE9FE; color: #8B5CF6; }

.benefit-card h3 { font-size: 18px; }
.benefit-card p { font-size: 15px; line-height: 1.6; }

/* ========== HOW IT WORKS ========== */
.how-it-works {
  padding: 96px 0;
  background: var(--bg-light);
}

.steps-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.scroll-step {
  display: flex;
  gap: 20px;
  padding: 32px 0;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.scroll-step.active { opacity: 1; }

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E5E7EB;
  border: 3px solid #E5E7EB;
  transition: all 0.4s;
}

.scroll-step.active .step-dot {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(76, 106, 241, 0.2);
}

.step-line-track {
  width: 3px;
  height: 80px;
  background: #E5E7EB;
  margin-top: 8px;
  border-radius: 2px;
  overflow: hidden;
}

.step-line-fill {
  width: 100%;
  height: 0;
  background: var(--blue-primary);
  border-radius: 2px;
  transition: height 0.6s ease;
}

.scroll-step.active .step-line-fill {
  height: 100%;
}

.step-badge {
  display: inline-block;
  background: var(--stat-blue-bg);
  color: var(--blue-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.step-content h3 { margin-bottom: 8px; }
.step-content p { font-size: 15px; line-height: 1.7; }

/* Steps visual panels */
.steps-visual {
  position: sticky;
  top: 120px;
}

.step-panel-wrapper {
  position: relative;
}

.step-panel {
  display: none;
  animation: panelIn 0.5s ease;
}

.step-panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.panel-mockup {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #EEECEA;
}

.panel-header-bar {
  background: #F8F8FA;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #EEECEA;
}

.panel-dots {
  display: flex;
  gap: 6px;
}

.panel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E0E0E0;
}

.panel-dots span:first-child { background: #FF5F57; }
.panel-dots span:nth-child(2) { background: #FEBC2E; }
.panel-dots span:last-child { background: #28C840; }

.panel-title-bar {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-dark);
}

.panel-body { padding: 24px; }

/* Panel: course list */
.panel-course-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.panel-course-card:hover { background: #F8F8FA; }

.panel-course-card.pcc-active {
  background: #F0F3FF;
  border-color: var(--blue-primary);
}

.pcc-color {
  width: 8px;
  height: 40px;
  border-radius: 4px;
  flex-shrink: 0;
}

.pcc-info { flex: 1; }

.pcc-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.pcc-meta {
  font-size: 12px;
  color: var(--gray-text);
}

.pcc-check {
  color: var(--blue-primary);
  font-weight: 700;
  font-size: 18px;
}

.panel-new-course {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 2px dashed #E5E7EB;
  color: var(--gray-text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.panel-new-course:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.panel-new-course span {
  font-size: 20px;
  line-height: 1;
}

/* Panel: lesson */
.panel-body-lesson { padding: 20px; }

.lesson-block {
  background: #F8F8FA;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.lesson-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.lesson-text {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.lesson-formula {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  color: var(--dark);
  text-align: center;
}

.lesson-chat-bubble {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.chat-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, var(--blue-primary));
  flex-shrink: 0;
}

.chat-avatar-ai {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-msg {
  background: #F0F3FF;
  border-radius: 12px 12px 12px 4px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--dark);
  line-height: 1.5;
}

.chat-ai .chat-msg {
  background: var(--highlight-bg);
  border-radius: 12px 12px 4px 12px;
}

/* Panel: exam mode */
.panel-body-exam { padding: 20px; }

.exam-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.exam-date-label {
  font-size: 12px;
  color: var(--gray-text);
}

.exam-date-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.exam-countdown {
  text-align: center;
  background: var(--highlight-bg);
  border-radius: var(--radius-md);
  padding: 12px 20px;
}

.exam-days-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.exam-days-label {
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
}

.exam-progress-bar {
  height: 10px;
  background: #E5E7EB;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 6px;
}

.exam-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary), #8B5CF6);
  border-radius: 5px;
  transition: width 1s ease;
}

.exam-progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-primary);
  margin-bottom: 20px;
}

.exam-daily-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.exam-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-dark);
}

.exam-task-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.exam-task-check.done {
  background: #22C55E;
  border-color: #22C55E;
  color: #fff;
}

/* ========== TOOLS TABS ========== */
.tools-section {
  padding: 96px 0;
  background: var(--bg-light);
}

.tools-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.tool-tab {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid #E5E5E5;
  background: transparent;
  color: var(--gray-dark);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.tool-tab.active {
  background: var(--bg-white);
  border-color: var(--bg-white);
  color: var(--dark);
  box-shadow: var(--shadow-card);
}

.tool-tab:hover:not(.active) {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.tool-panel { display: none; }
.tool-panel.active { display: block; animation: fadeIn 0.4s ease; }

.tool-demo {
  background: var(--blue-primary);
  border-radius: 24px;
  padding: 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tool-demo-left h3 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 16px;
}

.tool-demo-left p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.tool-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-feature {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* Tool previews */
.tool-preview {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.tp-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.tp-line {
  height: 10px;
  background: #F0F0F5;
  border-radius: 5px;
  margin-bottom: 10px;
}

.tp-line-short { width: 60%; }
.tp-line-medium { width: 80%; }

.tp-formula {
  background: #F8F8FA;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  text-align: center;
  color: var(--dark);
  margin: 16px 0;
}

/* Quiz preview */
.qp-question {
  font-weight: 600;
  margin-bottom: 14px;
  font-size: 15px;
}

.qp-option {
  padding: 10px 14px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--gray-dark);
}

.qp-correct {
  border-color: #22C55E;
  background: var(--stat-green-bg);
  color: #22C55E;
  font-weight: 700;
}

/* Flashcard preview */
.fc-card-demo {
  margin-bottom: 16px;
}

.fc-front {
  background: linear-gradient(135deg, #F8F8FA, #EEECEA);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
}

.fc-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-text);
  margin-bottom: 12px;
}

.fc-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.fc-buttons {
  display: flex;
  gap: 6px;
}

.fc-btn {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
}

.fc-again { background: #FEE2E2; color: #EF4444; }
.fc-hard { background: var(--stat-yellow-bg); color: #E8960C; }
.fc-good { background: var(--stat-green-bg); color: #22C55E; }
.fc-easy { background: var(--stat-blue-bg); color: var(--blue-primary); }

/* Chat preview */
.cp-msg {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.cp-user {
  background: var(--blue-primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  text-align: right;
  font-weight: 600;
}

.cp-ai {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.cp-ai-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cp-ai > div:last-child {
  background: #F8F8FA;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  color: var(--dark);
}

/* Exam preview */
.ep-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ep-course {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.ep-cfu {
  background: var(--stat-blue-bg);
  color: var(--blue-primary);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}

.ep-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ep-bar {
  flex: 1;
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
}

.ep-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary), #8B5CF6);
  border-radius: 4px;
}

.ep-percent {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-primary);
}

.ep-stats {
  display: flex;
  gap: 16px;
}

.ep-stat {
  flex: 1;
  text-align: center;
  background: #F8F8FA;
  border-radius: var(--radius-sm);
  padding: 12px 8px;
}

.ep-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}

.ep-stat-label {
  font-size: 11px;
  color: var(--gray-text);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== AUDIENCE ========== */
.audience-section {
  padding: 96px 0;
  background: var(--blue-primary);
  text-align: center;
}

.text-white { color: #fff; }

.audience-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.audience-tab {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.audience-tab.active {
  background: #fff;
  border-color: #fff;
  color: var(--dark);
}

.audience-tab:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.6);
}

.audience-card { display: none; }
.audience-card.active { display: block; animation: fadeIn 0.4s ease; }

.audience-card-inner {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.audience-text h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.audience-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.audience-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audience-features li {
  padding-left: 28px;
  position: relative;
  font-weight: 500;
  color: var(--gray-dark);
}

.audience-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--blue-primary);
  font-weight: 700;
}

.audience-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--highlight-bg), var(--stat-yellow-bg));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.audience-img-placeholder.aip-blue {
  background: linear-gradient(135deg, var(--stat-blue-bg), #EDE9FE);
}

.audience-img-placeholder.aip-green {
  background: linear-gradient(135deg, var(--stat-green-bg), var(--stat-yellow-bg));
}

.audience-img-placeholder.aip-purple {
  background: linear-gradient(135deg, #EDE9FE, var(--stat-blue-bg));
}

.aip-icon {
  font-size: 64px;
}

/* ========== STATS ========== */
.stats-section {
  padding: 96px 0;
  background: var(--bg-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
  transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-4px); }

.stat-blue { background: var(--stat-blue-bg); }
.stat-yellow { background: var(--stat-yellow-bg); }
.stat-green { background: var(--stat-green-bg); }

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.stat-number {
  font-size: 56px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.stat-suffix {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
}

.stat-blue .stat-number,
.stat-blue .stat-suffix { color: var(--blue-primary); }
.stat-yellow .stat-number,
.stat-yellow .stat-suffix { color: #E8960C; }
.stat-green .stat-number,
.stat-green .stat-suffix { color: #22C55E; }

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-dark);
  margin-top: 8px;
}

/* ========== FAQ ========== */
.faq-section {
  padding: 96px 0;
  background: var(--bg-white);
}

.faq-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}

.faq-left h2 { margin-bottom: 24px; }

.faq-list { width: 100%; }

.faq-item {
  border-bottom: 1px solid #EEECEA;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--gray-text);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
}

/* ========== FOOTER CTA ========== */
.footer-cta {
  padding: 96px 0;
  background: var(--bg-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta-content {
  position: relative;
  z-index: 2;
}

.physics-canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

#physicsCanvas {
  width: 100%;
  height: 100%;
}

.footer-cta h2 {
  margin-bottom: 16px;
  position: relative;
}

.footer-cta-subtitle {
  font-size: 18px;
  margin-bottom: 32px;
  position: relative;
}

.footer-cta .btn { position: relative; }

/* ========== FOOTER ========== */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-white);
  border-top: 1px solid #EEECEA;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F5F5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-text);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--blue-primary);
  color: #fff;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--gray-text);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--blue-primary); }

.footer-bottom {
  border-top: 1px solid #EEECEA;
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-text);
}

/* ========== LEGAL PAGES ========== */
.legal-page {
  padding: 120px 0 80px;
  background: var(--bg-white);
}

.legal-page .container {
  max-width: 800px;
}

.legal-header {
  margin-bottom: 48px;
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
}

.legal-header .legal-update {
  font-size: 14px;
  color: var(--gray-text);
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #EEECEA;
}

.legal-section h3 {
  font-size: 17px;
  margin: 16px 0 8px;
}

.legal-section p {
  margin-bottom: 10px;
  line-height: 1.7;
}

.legal-section ul,
.legal-section ol {
  margin: 10px 0 16px 20px;
}

.legal-section li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.legal-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
}

.legal-section th {
  background: var(--bg-light);
  color: var(--dark);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid #EEECEA;
}

.legal-section td {
  padding: 10px 14px;
  border-bottom: 1px solid #EEECEA;
}

.legal-section a {
  color: var(--blue-primary);
  font-weight: 600;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-highlight {
  background: var(--bg-light);
  border-left: 4px solid var(--blue-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
}

.legal-warning {
  background: #FEF2F2;
  border-left: 4px solid #EF4444;
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
}

.legal-contact {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}

.legal-contact h3 {
  color: var(--dark);
  margin-bottom: 8px;
}

.legal-contact a {
  color: var(--blue-primary);
  font-weight: 700;
}

.legal-key-points {
  background: var(--stat-blue-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
}

.legal-key-points h3 {
  color: var(--blue-primary);
  margin-bottom: 12px;
}

.legal-key-points li {
  margin-bottom: 6px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }

  .steps-layout { grid-template-columns: 1fr; gap: 48px; }
  .steps-visual { position: static; }

  .tool-demo { grid-template-columns: 1fr; gap: 32px; }

  .audience-card-inner { grid-template-columns: 1fr; }
  .audience-visual { display: none; }

  .faq-layout { grid-template-columns: 1fr; gap: 32px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .float-notif { display: none; }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 2px solid #EEECEA;
    gap: 16px;
  }

  .navbar-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero { padding: 120px 0 40px; }

  .benefits-grid { grid-template-columns: 1fr; }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-card { padding: 32px 24px; }
  .stat-number { font-size: 40px; }

  .tool-demo { padding: 32px 20px; }

  .audience-card-inner { padding: 32px 24px; grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .tools-tabs { gap: 6px; }
  .tool-tab { padding: 10px 20px; font-size: 13px; }

  .audience-tabs { gap: 8px; }
  .audience-tab { padding: 10px 20px; font-size: 13px; }

  .phone-mockup { width: 260px; }
  .phone-screen { min-height: 420px; }
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }

  .phone-mockup { width: 240px; }
  .btn-hero { font-size: 16px; padding: 14px 32px; }
}
