/* ============================================================
   KEDMATHIC — Marketing Website Styles
   AI-Powered Math Learning Platform
   Color palette derived from V2 app logo (blue-purple gradient + cyan)
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Brand Colors — V2 Logo (blue-purple gradient + cyan) */
  --bg-deep: #08081A;
  --bg-primary: #0D1025;
  --bg-card: #161838;
  --bg-card-hover: #1C2045;
  --accent: #2D6FE0;
  --accent-light: #4D8FFF;
  --accent-glow: #6BA3FF;
  --accent-dark: #1E5BC0;
  --purple: #7B3FBF;
  --purple-light: #9B6FDF;
  --success: #00E5CC;
  --success-dark: #00C4AE;
  --warning: #FBBF24;
  --text: #FFFFFF;
  --text-muted: #9B9FC4;
  --text-dim: #5A5F80;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-hover: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(16px);

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  --gradient-purple: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  --gradient-hero: linear-gradient(135deg, #08081A 0%, #0D1025 40%, #121430 100%);
  --gradient-glow: linear-gradient(135deg, rgba(45,111,224,0.15) 0%, rgba(123,63,191,0.15) 100%);

  /* Typography */
  --font-hebrew: 'Heebo', 'Segoe UI', Tahoma, sans-serif;
  --font-latin: 'Inter', 'Segoe UI', Tahoma, sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-hebrew);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

body[dir="ltr"] {
  direction: ltr;
  text-align: left;
  font-family: var(--font-latin);
}

body[dir="ltr"] .btn {
  font-family: var(--font-latin);
}

/* ---- Language Switcher ---- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline: 16px;
}

.lang-option {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-family: var(--font-latin);
}

.lang-option:hover {
  color: var(--text);
  background: var(--glass-bg);
}

.lang-option.active {
  color: var(--accent-light);
  background: rgba(45, 111, 224, 0.1);
  pointer-events: none;
}

.lang-divider {
  color: var(--text-dim);
  font-size: 0.75rem;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-glow);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

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

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(45, 111, 224, 0.1);
  border: 1px solid rgba(45, 111, 224, 0.2);
  border-radius: 100px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.8;
}

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

.mx-auto {
  margin-inline: auto;
}

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

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

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---- Glass Card ---- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 40px rgba(45, 111, 224, 0.1);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-hebrew);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 20px rgba(45, 111, 224, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 111, 224, 0.6);
  color: white;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-light);
  padding: 14px 24px;
}

.btn-ghost:hover {
  background: rgba(45, 111, 224, 0.1);
  color: var(--accent-light);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* Pulsing glow on primary CTA */
.btn-pulse {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(45, 111, 224, 0.4);
  }
  50% {
    box-shadow: 0 4px 40px rgba(45, 111, 224, 0.7),
                0 0 60px rgba(45, 111, 224, 0.3);
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(8, 8, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-brand img,
.navbar-brand img.navbar-logo,
img.navbar-logo {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.navbar-brand span,
.navbar-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-inline-start: auto;
}

.navbar-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-links a:hover {
  color: var(--text);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  inset-inline-end: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-base);
  border-radius: 2px;
}

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

.navbar-cta {
  padding: 10px 24px !important;
  font-size: 0.9rem !important;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 26, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}

/* Animated gradient mesh background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blob-float 20s ease-in-out infinite;
}

.hero-bg .blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 111, 224, 0.3) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.hero-bg .blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 63, 191, 0.25) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-delay: -7s;
}

.hero-bg .blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 229, 204, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes blob-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(50px, 30px) scale(1.05);
  }
}

/* Particle canvas */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Floating math symbols */
.math-symbols {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.math-symbol {
  position: absolute;
  font-size: 2rem;
  color: rgba(45, 111, 224, 0.12);
  font-family: 'Times New Roman', serif;
  animation: float-symbol linear infinite;
  user-select: none;
}

@keyframes float-symbol {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(45, 111, 224, 0.1);
  border: 1px solid rgba(45, 111, 224, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
}

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

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-light);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero visual - app mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-mockup {
  position: relative;
  width: 320px;
  height: 640px;
  background: var(--bg-card);
  border-radius: 40px;
  border: 3px solid var(--glass-border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5),
              0 0 80px rgba(45, 111, 224, 0.15);
  overflow: hidden;
  animation: mockup-float 6s ease-in-out infinite;
}

@keyframes mockup-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-mockup-inner,
.mockup-screen {
  padding: 48px 20px 20px;
  height: 100%;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-card) 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.mockup-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.mockup-card-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mockup-card-content {
  font-size: 0.9rem;
  color: var(--text);
}

.mockup-bar {
  height: 8px;
  background: var(--glass-bg);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.mockup-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gradient-accent);
  animation: bar-fill 3s ease-in-out infinite;
}

@keyframes bar-fill {
  0% { width: 0; }
  50% { width: 85%; }
  100% { width: 85%; }
}

/* Floating orbs around mockup */
.hero-orb,
.floating-orb {
  position: absolute;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: orb-float 4s ease-in-out infinite;
  color: var(--accent-light);
}

.hero-orb-1,
.orb-1 {
  width: 64px;
  height: 64px;
  top: 10%;
  left: -30px;
  animation-delay: 0s;
  font-size: 1.5rem;
}

.hero-orb-2,
.orb-2 {
  width: 56px;
  height: 56px;
  top: 40%;
  right: -20px;
  animation-delay: -1.5s;
  font-size: 1.3rem;
}

.hero-orb-3,
.orb-3 {
  width: 48px;
  height: 48px;
  bottom: 20%;
  left: -20px;
  animation-delay: -3s;
  font-size: 1.2rem;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* Mockup card styles */
.mockup-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-card-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.mockup-card-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.mockup-card-subtitle {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mockup-card-progress {
  width: 100%;
}

.mockup-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}

.mockup-progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 3px;
  transition: width 2s ease;
}

/* Social proof grid */
.social-proof-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.social-proof-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.social-proof-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(45, 111, 224, 0.1);
  border: 1px solid rgba(45, 111, 224, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}

.social-proof-content {
  text-align: start;
}

.social-proof-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.social-proof-plus {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-light);
}

.social-proof-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Navbar brand */
.navbar-brand {
  text-decoration: none;
}

.navbar-name {
  color: var(--text);
  text-decoration: none;
}

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.social-proof {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(13, 16, 37, 0.6);
  backdrop-filter: blur(10px);
}

.social-proof .container {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.proof-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(45, 111, 224, 0.1);
  border: 1px solid rgba(45, 111, 224, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.proof-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.proof-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
  background: var(--bg-primary);
}

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

.feature-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-lg);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
}

.feature-icon.blue { background: rgba(45, 111, 224, 0.15); border: 1px solid rgba(45, 111, 224, 0.3); }
.feature-icon.purple { background: rgba(123, 63, 191, 0.15); border: 1px solid rgba(123, 63, 191, 0.3); }
.feature-icon.green { background: rgba(0, 229, 204, 0.15); border: 1px solid rgba(0, 229, 204, 0.3); }
.feature-icon.orange { background: rgba(251, 191, 36, 0.15); border: 1px solid rgba(251, 191, 36, 0.3); }

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.feature-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  position: relative;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: var(--bg-deep);
}

.steps-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  position: relative;
}

/* Connecting line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.step-card {
  flex: 1;
  max-width: 300px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
  position: relative;
  z-index: 1;
  animation: step-pulse 3s ease-in-out infinite;
}

.step-card:nth-child(2) .step-number { animation-delay: -1s; }
.step-card:nth-child(3) .step-number { animation-delay: -2s; }

@keyframes step-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(45, 111, 224, 0.3);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(45, 111, 224, 0);
  }
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   AI DEMO SECTION
   ============================================================ */
.ai-demo {
  background: var(--bg-primary);
}

.ai-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.terminal {
  background: #0A0D1F;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 40px rgba(45, 111, 224, 0.08);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--glass-border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FEBC2E; }
.terminal-dot.green { background: #28C840; }

.terminal-title {
  margin-inline-start: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.terminal-body {
  padding: 24px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  min-height: 300px;
  direction: ltr;
  text-align: left;
}

.terminal-line {
  margin-bottom: 4px;
  opacity: 0;
  animation: line-appear 0.3s ease forwards;
}

.terminal-line .prompt {
  color: var(--success);
}

.terminal-line .command {
  color: var(--accent-light);
}

.terminal-line .output {
  color: var(--text-muted);
}

.terminal-line .highlight {
  color: var(--purple-light);
}

.terminal-line .result {
  color: var(--success);
}

.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--accent-light);
  animation: cursor-blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes line-appear {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-demo-info h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.ai-demo-info p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.ai-capabilities {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-capability {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.ai-capability:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.ai-capability-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(45, 111, 224, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.ai-capability-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.ai-capability-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   CANVAS SHOWCASE
   ============================================================ */
.canvas-showcase {
  background: var(--bg-deep);
  overflow: hidden;
}

.canvas-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.canvas-visual {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.canvas-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(45, 111, 224, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* SVG handwriting animation */
.canvas-handwriting {
  position: relative;
  z-index: 1;
}

.canvas-handwriting path {
  stroke: var(--accent-light);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: draw-path 3s ease forwards;
  animation-delay: 0.5s;
}

@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}

.canvas-recognition-result {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: var(--glass-bg);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 1.2rem;
  color: var(--success);
  opacity: 0;
  animation: result-appear 0.5s ease forwards;
  animation-delay: 3.5s;
  backdrop-filter: blur(8px);
}

@keyframes result-appear {
  from { opacity: 0; transform: translateY(10px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.canvas-info h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.canvas-info p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.canvas-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.canvas-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.canvas-checklist-item .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 229, 204, 0.15);
  border: 1px solid rgba(0, 229, 204, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing {
  background: var(--bg-primary);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
}

.pricing-toggle-btn {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 10px 28px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.pricing-toggle-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.pricing-toggle-btn.active {
  color: #fff;
  background: var(--gradient-accent);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(45, 111, 224, 0.3);
}

.pricing-save-badge {
  padding: 4px 12px;
  background: rgba(0, 229, 204, 0.15);
  border: 1px solid rgba(0, 229, 204, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.pricing-card {
  padding: 36px 28px;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(45, 111, 224, 0.15);
}

.pricing-card.popular::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-accent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gradient-accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.pricing-plan-name {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 4px;
  direction: ltr;
  display: inline-block;
}

.pricing-price .currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  vertical-align: super;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-feature .icon {
  color: var(--success);
  font-size: 0.9rem;
}

.pricing-feature.disabled {
  color: var(--text-dim);
  text-decoration: line-through;
}

.pricing-feature.disabled .icon {
  color: var(--text-dim);
}

.pricing-btn {
  width: 100%;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--bg-deep);
}

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

.testimonial-card {
  padding: 32px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--warning);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

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

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

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

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.active {
  border-color: rgba(45, 111, 224, 0.3);
  background: rgba(45, 111, 224, 0.05);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: color var(--transition-fast);
  user-select: none;
}

.faq-question:hover {
  color: var(--accent-light);
}

.faq-arrow {
  font-size: 1.2rem;
  transition: transform var(--transition-base);
  color: var(--text-muted);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-light);
}

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

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.faq-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-weight: 600;
}

/* ============================================================
   CTA SECTION (Final)
   ============================================================ */
.final-cta {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(45, 111, 224, 0.1) 0%, rgba(123, 63, 191, 0.1) 100%);
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-deep);
  opacity: 0.8;
}

.final-cta .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.final-cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.final-cta-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Store badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  color: var(--text);
}

.store-badge:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  color: var(--text);
}

.store-badge-icon {
  font-size: 1.5rem;
}

.store-badge-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.store-badge-text span {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 16px;
  max-width: 300px;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-base);
  color: var(--text-muted);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-legal a:hover {
  color: var(--text-muted);
}

/* ============================================================
   BLOG STYLES
   ============================================================ */
.blog-hero {
  padding: 140px 0 60px;
  background: var(--bg-primary);
}

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

.blog-card {
  overflow: hidden;
}

.blog-card-image {
  height: 200px;
  background: var(--gradient-glow);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,111,224,0.2), rgba(123,63,191,0.2));
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-title {
  color: var(--accent-light);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.blog-card-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(45, 111, 224, 0.1);
  border: 1px solid rgba(45, 111, 224, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--accent-light);
  margin-top: 12px;
}

/* Blog article page */
.article-header {
  padding: 140px 0 60px;
  background: var(--bg-primary);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-breadcrumb a {
  color: var(--text-muted);
}

.article-breadcrumb a:hover {
  color: var(--accent-light);
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.article-content h2 {
  font-size: 1.6rem;
  margin: 48px 0 16px;
  color: var(--text);
}

.article-content h3 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.article-content p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.article-content ul, .article-content ol {
  padding-inline-start: 24px;
  margin-bottom: 20px;
}

.article-content li {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

.article-content blockquote {
  border-inline-start: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--glass-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content blockquote p {
  color: var(--text);
  font-style: italic;
  margin: 0;
}

.article-toc {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 40px;
}

.article-toc h4 {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.article-toc ul {
  padding-inline-start: 0;
}

.article-toc li {
  list-style: none;
  margin-bottom: 8px;
}

.article-toc a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-toc a:hover {
  color: var(--accent-light);
}

/* Author bio */
.author-bio {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-top: 48px;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.author-description {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Related articles */
.related-articles {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}

.related-articles h3 {
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Article CTA */
.article-cta {
  padding: 40px;
  background: var(--gradient-glow);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 48px;
}

.article-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.article-cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Blog category filters */
.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.blog-filter {
  padding: 6px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-hebrew);
}

.blog-filter:hover, .blog-filter.active {
  background: rgba(45, 111, 224, 0.15);
  border-color: rgba(45, 111, 224, 0.3);
  color: var(--accent-light);
}

/* ============================================================
   FAQ PAGE (standalone)
   ============================================================ */
.faq-page-hero {
  padding: 140px 0 60px;
  background: var(--bg-primary);
}

.faq-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 40px;
  justify-content: center;
}

.faq-category-btn {
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-hebrew);
}

.faq-category-btn:hover, .faq-category-btn.active {
  background: rgba(45, 111, 224, 0.15);
  border-color: rgba(45, 111, 224, 0.3);
  color: var(--accent-light);
}

.faq-category-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  padding: 140px 0 80px;
  background: var(--bg-primary);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 60px;
}

.about-section h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.about-section p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.value-card {
  padding: 28px;
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   PRICING PAGE (standalone)
   ============================================================ */
.pricing-page-hero {
  padding: 140px 0 60px;
  background: var(--bg-primary);
}

.comparison-table {
  margin-top: 60px;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  padding: 16px 20px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg);
}

.comparison-table th:first-child {
  text-align: start;
}

.comparison-table td {
  padding: 14px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-table td:first-child {
  text-align: start;
  color: var(--text);
  font-weight: 500;
}

.comparison-table tr:hover td {
  background: var(--glass-bg);
}

.comparison-check {
  color: var(--success);
  font-size: 1.1rem;
}

.comparison-cross {
  color: var(--text-dim);
  font-size: 1.1rem;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-mockup {
    width: 260px;
    height: 520px;
  }

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

  .ai-demo-grid,
  .canvas-showcase-grid {
    grid-template-columns: 1fr;
  }

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

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
  }

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

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

  .steps-grid::before {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .container {
    padding: 0 16px;
  }

  .navbar-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

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

  .hero-description {
    font-size: 1rem;
  }

  .hero-mockup {
    width: 220px;
    height: 440px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-orb {
    display: none;
  }

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

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .social-proof .container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

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

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

  .section-title {
    font-size: 1.8rem;
  }

  .final-cta-title {
    font-size: 1.8rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .pricing-toggle {
    gap: 8px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  right: 0;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: white;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .navbar, .footer, .final-cta, .math-symbols, .hero-bg, #particles-canvas {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 20px 0;
  }
}
