/* ===================================
   Veris Promotional Website Styles
   Modern, Clean, Conversion-Focused
   =================================== */

/* CSS Custom Properties */
:root {
  /* Brand Colors - Teal/Turquoise Theme */
  --veris-primary: #14b8a6;
  --veris-primary-dark: #0d9488;
  --veris-primary-light: #5eead4;
  --veris-primary-lighter: #99f6e4;
  
  /* Semantic Colors */
  --veris-success: #10b981;
  --veris-error: #ef4444;
  --veris-warning: #f59e0b;
  
  /* Neutral Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #f0fdfa;
  --color-bg-gradient: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #ffffff 100%);
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  
  /* Text Colors */
  --color-text: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;
  --color-text-inverse: #ffffff;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  --gradient-hero: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  --gradient-text: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #047857 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(20, 184, 166, 0.3);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Typography */
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-label: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.2, 0, 0, 1);
  --transition-base: 300ms cubic-bezier(0.2, 0, 0, 1);
  --transition-slow: 400ms cubic-bezier(0.2, 0, 0, 1);
  
  /* Layout */
  --container-max: 1200px;
  --navbar-height: 72px;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg: #0d2520;
  --color-bg-alt: #112e29;
  --color-bg-gradient: linear-gradient(135deg, #0d2520 0%, #112e29 50%, #0d2520 100%);
  --color-surface: #112e29;
  --color-surface-elevated: #1a3d36;
  --color-border: #1a3d36;
  --color-border-light: #112e29;
  --color-text: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --gradient-hero: linear-gradient(135deg, #0d2520 0%, #112e29 100%);
  --shadow-glow: 0 0 60px rgba(20, 184, 166, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--veris-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--veris-primary-dark);
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  font-family: var(--font-heading);
}

h1 { font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl)); letter-spacing: -0.02em; }
h2 { font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl)); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-label);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  border-color: var(--veris-primary);
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(20, 184, 166, 0.4);
  border-radius: var(--radius-full);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(20, 184, 166, 0.4);
  color: var(--color-text-inverse);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-bg-alt);
  border-color: var(--veris-primary);
  color: var(--veris-primary);
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-lg);
}

.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: all var(--transition-base);
}

[data-theme="dark"] .navbar {
  background: rgba(13, 37, 32, 0.9);
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text);
  font-weight: 700;
  font-size: var(--font-size-xl);
}

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

.logo-icon {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  color: var(--color-text-secondary);
  font-family: var(--font-label);
  font-weight: 500;
  position: relative;
}

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

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

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

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

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

.nav-cta {
  padding: var(--space-sm) var(--space-lg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-theme-btn {
  width: 36px;
  height: 36px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: background var(--transition-base);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition-base);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-menu-btn.active .hamburger {
  background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger::after {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--navbar-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: -2;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: var(--gradient-glow);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--gradient-glow);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  padding: var(--space-4xl) 0;
}

.hero-text {
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: rgba(20, 184, 166, 0.1);
  color: var(--veris-primary-dark);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--veris-primary);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.stat.student-highlight {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.2);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stat.student-highlight:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  border-color: rgba(139, 92, 246, 0.4);
  transform: scale(1.03);
}

.stat.student-highlight .stat-number {
  color: #8b5cf6;
}

.stat.student-highlight .stat-label {
  color: #6366f1;
  font-weight: 500;
}

/* Hero Visual - Browser Mockup */
.hero-visual {
  position: relative;
  z-index: 1;
}

.browser-mockup {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow:
    0 0 0 1px rgba(20, 184, 166, 0.12),
    0 20px 60px rgba(20, 184, 166, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: fadeSettle 400ms cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes fadeSettle {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.browser-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: #eff5f2;
}

[data-theme="dark"] .browser-header {
  background: rgba(255, 255, 255, 0.04);
}

.browser-dots {
  display: flex;
  gap: var(--space-sm);
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }

.browser-url {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-url .lock-icon {
  width: 12px;
  height: 12px;
  color: var(--veris-success);
  flex-shrink: 0;
}

.browser-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.browser-veris-icon {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  filter: drop-shadow(0 3px 8px rgba(13, 148, 136, 0.24));
  user-select: none;
}

.browser-content {
  padding: var(--space-lg);
  min-height: 380px;
  position: relative;
  background: #eff5f2;
}

[data-theme="dark"] .browser-content {
  background: var(--color-bg-alt);
}

/* Mock Website Article */
.mock-website {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.06);
}

[data-theme="dark"] .mock-website {
  background: var(--color-surface);
}

.mock-article-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.mock-category {
  background: var(--veris-primary);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.mock-date {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.mock-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.mock-paragraph {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.mock-paragraph.secondary {
  color: var(--color-text-muted);
}

/* Selectable Words - teal brand highlight for demo */
.selectable-word {
  background: rgba(20, 184, 166, 0.10);
  color: var(--veris-primary-dark);
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 600;
  border: 1px solid rgba(20, 184, 166, 0.30);
  display: inline-block;
}

.selectable-word:hover {
  background: rgba(20, 184, 166, 0.18);
  border-color: rgba(20, 184, 166, 0.50);
}

.selectable-word.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.35);
}

/* Demo Instructions */
.demo-instructions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(20, 184, 166, 0.06);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  color: var(--veris-primary-dark);
  border: 1px dashed rgba(20, 184, 166, 0.25);
}

.instruction-icon {
  font-size: 1.2em;
}

/* ===================================
   Interactive Demo Bubble
   Matches .__translator_bubble from extension
   =================================== */
.demo-bubble {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 300px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--color-text);
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 0 1px rgba(20, 184, 166, 0.08),
    0 20px 40px rgba(20, 184, 166, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  z-index: 10;
  transition: box-shadow var(--transition-base);
  font-family: var(--font-family);
}

.demo-bubble:hover {
  box-shadow:
    0 0 0 1px rgba(20, 184, 166, 0.14),
    0 24px 48px rgba(20, 184, 166, 0.16),
    0 6px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .demo-bubble {
  background: rgba(17, 46, 41, 0.95);
  border-color: rgba(20, 184, 166, 0.20);
}

/* Bubble Language Bar - matches .language-indicator from extension */
.bubble-language-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: #eff5f2;
}

[data-theme="dark"] .bubble-language-bar {
  background: rgba(20, 184, 166, 0.08);
}

/* Save button - matches .save-button-translate from extension */
.bubble-save-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(100, 116, 139, 0.5);
  cursor: not-allowed;
  opacity: 0.4;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 28px;
}

.bubble-save-btn svg {
  width: 14px;
  height: 14px;
}

.bubble-save-btn .save-count {
  display: none;
  background: rgba(255, 255, 255, 0.3);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
}

.bubble-save-btn.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
}

.bubble-save-btn.active:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
}

.bubble-save-btn.active:active {
  transform: translateY(0);
}

.bubble-save-btn.active .save-count {
  display: inline-block;
}

.bubble-lang-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  min-width: 30px;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-badge.source {
  background: var(--gradient-primary);
  color: white;
}

.lang-badge.target {
  background: var(--veris-primary-dark);
  color: white;
}

.lang-arrow {
  color: var(--veris-primary);
  font-weight: bold;
  font-size: 14px;
  opacity: 0.8;
}

.bubble-close-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: var(--radius-sm);
  color: var(--veris-primary-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.bubble-close-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

/* Text container with speak button - matches extension layout */
.bubble-text-container {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 12px;
  margin-top: 8px;
}

.bubble-text-container .bubble-source-text,
.bubble-text-container .bubble-translated-text {
  flex: 1;
  margin: 0;
}

/* Speaker/TTS button - matches .__veris_speak_btn from extension */
.bubble-speak-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 4px;
}

.bubble-speak-btn:hover {
  background: var(--gradient-primary);
  border-color: rgba(20, 184, 166, 0.6);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(20, 184, 166, 0.25);
}

.bubble-speak-btn:active {
  transform: translateY(0) scale(0.95);
}

.bubble-speak-btn.speaking {
  background: var(--gradient-primary);
  border-color: rgba(20, 184, 166, 0.6);
  color: #fff;
  animation: speak-pulse 0.8s ease-in-out;
}

@keyframes speak-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(20, 184, 166, 0);
  }
}

.bubble-speak-btn svg {
  width: 14px;
  height: 14px;
}

[data-theme="dark"] .bubble-speak-btn {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(100, 116, 139, 0.6);
  color: #94a3b8;
}

[data-theme="dark"] .bubble-speak-btn:hover {
  background: var(--gradient-primary);
  color: #fff;
}

/* Bubble Source Text - matches .source-text from extension */
.bubble-source-text {
  padding: 8px 10px;
  margin: 8px 12px 0;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  min-height: 36px;
  display: flex;
  align-items: center;
  line-height: 1.4;
  transition: border-color 0.2s ease, background 0.2s ease;
}

[data-theme="dark"] .bubble-source-text {
  background: rgba(51, 65, 85, 0.5);
}

.bubble-source-text .editable-hint {
  color: var(--color-text-muted);
  font-style: italic;
}

.bubble-source-text .source-word {
  font-weight: 600;
  color: var(--color-text);
}

/* Bubble Translated Text - matches .translated-text from extension */
.bubble-translated-text {
  padding: 8px 10px;
  margin: 6px 12px 8px;
  background: rgba(20, 184, 166, 0.10);
  border: 1px solid rgba(20, 184, 166, 0.20);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--veris-primary-dark);
  min-height: 40px;
  display: flex;
  align-items: center;
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(20, 184, 166, 0.06);
}

[data-theme="dark"] .bubble-translated-text {
  background: rgba(20, 184, 166, 0.15);
  color: var(--veris-primary-light);
}

.bubble-translated-text .translation-placeholder {
  color: var(--color-text-muted);
  font-weight: 400;
  font-style: italic;
}

/* Bubble Word Section - matches .word-breakdown from extension */
.bubble-word-section {
  padding: 10px 12px;
  margin: 8px 12px 0;
  background: rgba(20, 184, 166, 0.04);
  border-radius: var(--radius-md);
}

[data-theme="dark"] .bubble-word-section {
  background: rgba(51, 65, 85, 0.4);
}

/* Multi-word controls - matches .multi-word-controls from extension */
.bubble-multi-word-controls {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.multi-word-status {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

[data-theme="dark"] .multi-word-status {
  color: #94a3b8;
}

.bubble-word-hint {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.bubble-word-hint svg {
  width: 14px;
  height: 14px;
}

.bubble-word-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 28px;
}

/* Word Translation Display - matches .word-translation from extension */
.bubble-word-translation {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--veris-primary-dark);
  display: none;
  line-height: 1.4;
}

.bubble-word-translation.visible {
  display: block;
}

.bubble-word-translation .word-meaning {
  font-weight: 600;
}

[data-theme="dark"] .bubble-word-translation {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.25);
  color: var(--veris-primary-light);
}

/* Word Pills - matches .word-pill from extension */
.word-pill {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #475569;
  font-weight: 500;
  position: relative;
  user-select: none;
  display: inline-block;
  margin: 1px;
}

[data-theme="dark"] .word-pill {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
  border-color: #64748b;
  color: #e2e8f0;
}

.word-pill:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #334155;
}

/* Active state - when word is being viewed */
.word-pill.active {
  background: var(--veris-primary);
  border-color: var(--veris-primary-dark);
  color: white;
}

/* Selected state - marked for saving (green) */
.word-pill.selected {
  background: #059669;
  border-color: #047857;
  color: white;
}

.word-pill.selected::after {
  content: '✓';
  position: absolute;
  top: -4px;
  right: -4px;
  background: #059669;
  color: white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid white;
}

/* Bubble Meta - matches .meta from extension */
.bubble-meta {
  padding: 6px 12px;
  font-size: 10px;
  color: var(--veris-primary-dark);
  text-align: center;
  margin-top: 8px;
  background: rgba(20, 184, 166, 0.06);
  opacity: 0.7;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

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

/* ===================================
   Section Styling
   =================================== */
section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: rgba(20, 184, 166, 0.1);
  color: var(--veris-primary-dark);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
}

/* ===================================
   Pain Points Section
   =================================== */
.pain-points {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.pain-card {
  padding: var(--space-xl);
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(239, 68, 68, 0.3);
}

.pain-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-md);
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.pain-icon svg {
  width: 28px;
  height: 28px;
  color: #ef4444;
}

.pain-card:hover .pain-icon {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.3);
  transform: scale(1.05);
}

.pain-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.pain-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.65;
}

/* ===================================
   Features Section
   =================================== */
.features {
  background: var(--color-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  position: relative;
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--veris-primary-light);
}

.feature-card.featured {
  grid-column: span 2;
  background: var(--gradient-hero);
  border-color: var(--veris-primary-light);
}

.feature-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: var(--veris-primary);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.feature-badge.student {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.feature-badge.premium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.feature-card.premium-feature {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.05) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

.feature-card.student-free {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-color: rgba(139, 92, 246, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 184, 166, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--veris-primary);
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* Bento capstone: last card spans full row with horizontal layout */
.features-grid > .feature-card:last-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-xl);
  align-items: center;
}

.features-grid > .feature-card:last-child .feature-icon {
  grid-row: 1 / 3;
  margin-bottom: 0;
}

.features-grid > .feature-card:last-child h3 {
  align-self: end;
  margin-bottom: var(--space-xs);
}

.features-grid > .feature-card:last-child p {
  align-self: start;
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works {
  background: var(--gradient-hero);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-md);
}

.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: var(--space-xl);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: var(--space-lg);
}

.step-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-md);
}

.step-icon svg {
  width: 36px;
  height: 36px;
  color: var(--veris-primary);
}

.step h3 {
  margin-bottom: var(--space-sm);
}

.step p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.step-connector {
  flex: 0 0 60px;
  padding-top: 140px;
  color: var(--veris-primary-light);
}

.step-connector svg {
  width: 100%;
  height: 20px;
}

/* ===================================
   SRS Section
   =================================== */
.srs-section {
  background: var(--color-bg);
}

.srs-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.srs-text h2 {
  margin-bottom: var(--space-lg);
}

.srs-text > p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.srs-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.srs-benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.srs-benefits svg {
  width: 24px;
  height: 24px;
  color: var(--veris-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.srs-visual {
  padding: var(--space-xl);
}

.leitner-boxes {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.leitner-box {
  width: 80px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.leitner-box:hover {
  transform: translateY(-4px);
  border-color: var(--veris-primary);
  box-shadow: var(--shadow-md);
}

.leitner-box[data-box="0"] { border-color: var(--color-text-muted); background: rgba(148, 163, 184, 0.05); }
.leitner-box[data-box="1"] { border-color: #9b4426; background: rgba(155, 68, 38, 0.08); }
.leitner-box[data-box="2"] { border-color: #c2541a; background: rgba(194, 84, 26, 0.07); }
.leitner-box[data-box="3"] { border-color: #d97706; background: rgba(217, 119, 6, 0.06); }
.leitner-box[data-box="4"] { border-color: #84cc16; background: rgba(132, 204, 22, 0.06); }
.leitner-box[data-box="5"] { border-color: #22c55e; background: rgba(34, 197, 94, 0.06); }
.leitner-box.mastered { 
  border-color: var(--veris-primary);
  background: rgba(20, 184, 166, 0.1);
}

.box-label {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.box-interval {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.srs-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.flow-arrow {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.flow-arrow.correct {
  background: rgba(16, 185, 129, 0.1);
  color: var(--veris-success);
}

.flow-arrow.wrong {
  background: rgba(239, 68, 68, 0.1);
  color: var(--veris-error);
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
  background: var(--gradient-hero);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

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

.testimonial-content {
  margin-bottom: var(--space-lg);
}

.testimonial-content p {
  color: var(--color-text);
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: var(--font-size-lg);
  border-radius: 50%;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-info cite {
  font-weight: 600;
  font-style: normal;
}

.author-info span {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

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

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

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

.faq-item:hover {
  border-color: var(--veris-primary-light);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--color-text-muted);
  transition: transform var(--transition-base);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-secondary);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   Pricing Section
   — Veris Fluid Scholar Design System
   =================================== */
.pricing {
  /* Signature "Fluid Scholar" gradient instead of radial blobs */
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  padding: var(--space-4xl) 0;
}

[data-theme="dark"] .pricing {
  background: linear-gradient(135deg, #0d2520 0%, #112e29 50%, #0d2520 100%);
}

/* Pricing comparison table */
.pricing-comparison {
  margin: 0 auto var(--space-3xl);
  max-width: 640px;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.pricing-table thead tr {
  background: var(--veris-primary);
  color: white;
}

.pricing-table th {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-weight: 600;
}

.pricing-table th:not(:first-child) {
  text-align: center;
}

.pricing-table td {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.pricing-table td:not(:first-child) {
  text-align: center;
  font-weight: 600;
  color: var(--veris-primary-dark);
}

.pricing-table tr.premium-row td:first-child {
  font-weight: 500;
}

.pricing-table tr.premium-row td:nth-child(2) {
  color: var(--color-text-secondary);
  font-weight: 400;
}

.pricing-table tbody tr:hover {
  background: rgba(20, 184, 166, 0.04);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  position: relative;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: calc(var(--space-xl) + 0.5rem);
  /* Tonal layering: surface-container-low — no hard border */
  background: #eff5f2;
  border: none;
  border-radius: var(--radius-2xl);
  transition: transform var(--transition-slow);
}

[data-theme="dark"] .pricing-card {
  background: #1a3d36;
}

.pricing-card:hover {
  transform: translateY(-2px);
}

.pricing-card-featured {
  /* surface-container-lowest (pure white) sits higher — tonal depth */
  background: #ffffff;
  /* Ambient teal-tinted shadow + ghost border — "felt, not seen" */
  box-shadow:
    0 40px 60px -15px rgba(20, 184, 166, 0.1),
    0 0 0 1px rgba(20, 184, 166, 0.18);
  transform: translateY(-4px);
}

[data-theme="dark"] .pricing-card-featured {
  background: #112e29;
  box-shadow:
    0 40px 60px -15px rgba(20, 184, 166, 0.08),
    0 0 0 1px rgba(20, 184, 166, 0.22);
}

.pricing-card-featured:hover {
  transform: translateY(-6px);
}

.pricing-card-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  /* Glassmorphism: subtle primary tint + backdrop blur */
  background: rgba(20, 184, 166, 0.18);
  color: var(--veris-primary-dark);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Featured card badge gets jewel-like gradient */
.pricing-card-featured .pricing-badge {
  background: linear-gradient(135deg, #006b5f 0%, var(--veris-primary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

[data-theme="dark"] .pricing-card-featured .pricing-badge {
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.pricing-badge-secondary {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18) 0%, rgba(52, 211, 153, 0.22) 100%);
  color: #0d9488;
  border: 1.5px solid rgba(20, 184, 166, 0.35);
  animation: badge-free-pulse 3s ease-in-out infinite;
}

@keyframes badge-free-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
  50% { box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.13); }
}

[data-theme="dark"] .pricing-badge-secondary {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.22) 0%, rgba(52, 211, 153, 0.28) 100%);
  color: #5eead4;
  border: 1.5px solid rgba(20, 184, 166, 0.4);
}

.pricing-subtitle {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.pricing-features-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
}

.pricing-features-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.pricing-features-list li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--veris-primary);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* Featured card bullets use gradient — same "jewel" technique as CTA */
.pricing-card-featured .pricing-features-list li::before {
  background: linear-gradient(135deg, #006b5f, var(--veris-primary));
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.pricing-action {
  width: 100%;
  margin-top: auto;
  text-align: center;
}

/* Featured CTA: gradient fill, full roundness, scale-hover */
.pricing-card-featured .pricing-action.btn-primary {
  background: linear-gradient(135deg, #006b5f 0%, var(--veris-primary) 100%);
  border: none;
  border-radius: var(--radius-full);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.pricing-card-featured .pricing-action.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.35);
}

/* Standard CTA: vibrant teal-to-emerald gradient */
.pricing-card:not(.pricing-card-featured) .pricing-action.btn-ghost {
  background: linear-gradient(135deg, #14b8a6 0%, #34d399 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  transition: transform var(--transition-slow), box-shadow var(--transition-base), background var(--transition-base);
  box-shadow: 0 4px 18px rgba(20, 184, 166, 0.32);
  font-weight: 600;
}

.pricing-card:not(.pricing-card-featured) .pricing-action.btn-ghost:hover {
  background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
  transform: scale(1.02);
  box-shadow: 0 6px 28px rgba(20, 184, 166, 0.48);
}

[data-theme="dark"] .pricing-card:not(.pricing-card-featured) .pricing-action.btn-ghost {
  background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(20, 184, 166, 0.25);
}

[data-theme="dark"] .pricing-card:not(.pricing-card-featured) .pricing-action.btn-ghost:hover {
  background: linear-gradient(135deg, #0a7c73 0%, #059669 100%);
  box-shadow: 0 6px 28px rgba(20, 184, 166, 0.38);
}

.pricing-card-note,
.pricing-footnote,
.pricing-status {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.pricing-footer {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}

.pricing-status {
  min-height: 1.5rem;
}

.pricing-status.is-error {
  color: var(--veris-error);
}

.pricing-status.is-success {
  color: var(--veris-success);
}

/* ===================================
   Student CTA Section
   =================================== */
.student-cta {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #e0e7ff 100%);
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .student-cta {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(99, 102, 241, 0.12) 50%, rgba(79, 70, 229, 0.12) 100%);
}

.student-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(167, 139, 250, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.student-cta-card {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: 
    0 20px 40px rgba(139, 92, 246, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(139, 92, 246, 0.1);
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .student-cta-card {
  background: rgba(30, 27, 75, 0.8);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(139, 92, 246, 0.2);
}

.student-cta-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.student-cta-icon {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.3));
}

.student-badge {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.student-cta h2 {
  color: #4f46e5;
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-3xl);
}

[data-theme="dark"] .student-cta h2 {
  color: #a5b4fc;
}

.student-cta-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.student-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-xl);
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.student-benefit {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.student-benefit svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #22c55e;
}

.student-cta-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: rgba(139, 92, 246, 0.06);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(139, 92, 246, 0.2);
}

[data-theme="dark"] .student-cta-note {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

.btn-student {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.btn-student:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn-student .btn-icon {
  width: 20px;
  height: 20px;
  stroke: white;
}

/* ===================================
   Student Access Form
   =================================== */
.student-form {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.student-form-row {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.student-input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: 1.5px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-sm);
  font-family: var(--font-label);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.student-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.student-input::placeholder {
  color: var(--color-text-muted);
}

[data-theme="dark"] .student-input {
  background: rgba(30, 27, 75, 0.5);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--color-text);
}

.student-form .btn-student {
  width: 100%;
  justify-content: center;
}

.student-form .btn-student:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
  box-shadow: none;
}

.student-form-status {
  min-height: 1.5rem;
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.student-form-status:empty {
  display: none;
}

.student-form-status.is-error {
  color: #b91c1c;
}

.student-form-success {
  text-align: center;
  padding: var(--space-xl);
}

.student-form-success .success-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.student-form-success p {
  color: #4f46e5;
  font-weight: 600;
  line-height: 1.6;
}

[data-theme="dark"] .student-form-success p {
  color: #a5b4fc;
}

[data-theme="dark"] .student-form-status.is-error {
  color: #fca5a5;
}

@media (max-width: 480px) {
  .student-form-row {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .student-benefits {
    grid-template-columns: 1fr;
  }
  
  .student-cta-card {
    padding: var(--space-xl) var(--space-md);
  }
  
  .student-cta-header {
    flex-direction: column;
  }
}

/* ===================================
   Download CTA Section
   =================================== */
.download-cta {
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  padding: var(--space-4xl) 0;
}

.cta-content h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.cta-content > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

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

.cta-buttons .btn-primary:hover {
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-xl);
}

.download-cta .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.download-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: white;
  color: white;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.cta-features span {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
}

.cta-features svg {
  width: 20px;
  height: 20px;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

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

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.footer-section h4 {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-section a {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.footer-section a:hover {
  color: var(--veris-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* Theme Toggle */
.theme-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

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

.theme-btn svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-secondary);
}

.sun-icon { display: block; }
.moon-icon { display: none; }

[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
  .pain-points-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  
  .hero-subtitle {
    margin: 0 auto var(--space-xl);
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    max-width: 700px;
    margin: 0 auto;
  }

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

  .pricing-card-featured {
    transform: none;
  }
  
  .browser-content {
    min-height: 450px;
  }
  
  .demo-bubble {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 350px;
    margin: var(--space-lg) auto 0;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card.featured {
    grid-column: span 1;
  }

  .features-grid > .feature-card:last-child {
    grid-column: span 1;
    display: block;
  }

  .features-grid > .feature-card:last-child .feature-icon {
    grid-row: auto;
    margin-bottom: var(--space-lg);
  }

  .features-grid > .feature-card:last-child h3 {
    align-self: auto;
    margin-bottom: var(--space-sm);
  }
  
  .srs-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
  
  .footer-brand {
    grid-column: span 2;
    max-width: none;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
  }
  
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    order: 3;
  }

  .nav-actions {
    order: 2;
  }
  
  .pain-points-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step-connector {
    padding-top: 0;
    transform: rotate(90deg);
    flex: 0 0 25px;
  }
  
  .leitner-boxes {
    gap: var(--space-sm);
  }
  
  .leitner-box {
    width: 60px;
    height: 80px;
  }

  .box-label {
    font-size: var(--font-size-xs);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .cta-features {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: var(--font-size-3xl);
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .browser-mockup {
    margin: 0 calc(-1 * var(--space-lg));
    border-radius: 0;
  }
  
  /* Demo bubble responsive */
  .demo-bubble {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    margin-top: var(--space-md);
  }
  
  .mock-article {
    padding: var(--space-md);
  }
  
  .mock-title {
    font-size: var(--font-size-base);
  }
  
  .mock-paragraph {
    font-size: var(--font-size-xs);
  }
  
  .selectable-word {
    padding: 1px 4px;
    font-size: inherit;
  }
  
  .demo-instructions {
    font-size: var(--font-size-xs);
    padding: var(--space-sm);
  }
  
  .scroll-indicator {
    display: none;
  }
}

/* ===================================
   Animations for scroll reveal
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for grid items */
.features-grid .feature-card,
.testimonials-grid .testimonial-card,
.steps .step {
  opacity: 0;
  transform: translateY(20px);
}

.features-grid .feature-card.visible,
.testimonials-grid .testimonial-card.visible,
.steps .step.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .scroll-indicator,
  .theme-toggle,
  .download-cta {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
}
