/* =========================================
   RoleSense Marketing — style.css
   Dark Premium Design System
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #0f1218;
  --bg-card: rgba(20, 25, 36, 0.65);
  --bg-card-solid: #141924;
  --bg-hover: #1a2030;
  --bg-glass: rgba(20, 25, 36, 0.45);

  --border: #1e2638;
  --border-light: #2a3550;

  --accent: #4f7bff;
  --accent-light: #6b93ff;
  --accent-glow: rgba(79, 123, 255, 0.2);
  --accent-glow-strong: rgba(79, 123, 255, 0.35);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.2);
  --gradient: linear-gradient(135deg, #4f7bff, #8b5cf6);
  --gradient-reverse: linear-gradient(135deg, #8b5cf6, #4f7bff);
  --gradient-subtle: linear-gradient(135deg, rgba(79, 123, 255, 0.15), rgba(139, 92, 246, 0.15));

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --text-primary: #e8ecf4;
  --text-secondary: #8a94ab;
  --text-muted: #4f5b75;
  --text-heading: #f1f4f9;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(79, 123, 255, 0.12);
  --shadow-glow-strong: 0 0 60px rgba(79, 123, 255, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --nav-height: 72px;
  --section-gap: 120px;
  --content-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Inter', -apple-system, sans-serif;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }

/* ---- Background Effects ---- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(79, 123, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 123, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.bg-glow--1 { top: -200px; left: -100px; background: var(--accent); }
.bg-glow--2 { top: 50%; right: -200px; background: var(--purple); opacity: 0.08; }
.bg-glow--3 { bottom: -200px; left: 30%; background: var(--accent); opacity: 0.06; }

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

/* ---- Section ---- */
.section {
  padding: var(--section-gap) 0;
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: var(--accent-glow);
  border-radius: 99px;
  border: 1px solid rgba(79, 123, 255, 0.2);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-subtitle {
  margin: 0 auto;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-heading);
}
.nav-logo-text span { color: var(--accent); }

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }
[dir="rtl"] .nav-link::after { left: auto; right: 0; }

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(79, 123, 255, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(79, 123, 255, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(79, 123, 255, 0.25);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

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

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-heading);
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

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

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

.hero-stat-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-heading);
}
.hero-stat-val span { color: var(--accent); }

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

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

.hero-mockup {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

.hero-mockup img {
  width: 100%;
  display: block;
}

.hero-float-card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
  z-index: 3;
}
.hero-float-card:nth-child(2) { animation-delay: -1s; }
.hero-float-card:nth-child(3) { animation-delay: -2s; }

.float-card--1 { top: 10%; right: -30px; }
.float-card--2 { bottom: 20%; left: -30px; animation-delay: -1.5s; }
.float-card--3 { bottom: -10px; right: 20%; animation-delay: -2.5s; }

[dir="rtl"] .float-card--1 { right: auto; left: -30px; }
[dir="rtl"] .float-card--2 { left: auto; right: -30px; }

.float-card-icon {
  font-size: 20px;
  margin-bottom: 6px;
}
.float-card-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
}
.float-card-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* Hero glow effect */
.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(200px);
  opacity: 0.1;
  top: 20%;
  right: 10%;
  z-index: 0;
  pointer-events: none;
}
[dir="rtl"] .hero-glow { right: auto; left: 10%; }

/* ===== STATS BAR ===== */
.stats-bar {
  position: relative;
  z-index: 1;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.stats-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}

.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 36px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 24px;
  margin-bottom: 20px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(79, 123, 255, 0.15);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-heading);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--gradient);
  opacity: 0.3;
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  font-weight: 900;
  background: var(--gradient-subtle);
  border: 2px solid rgba(79, 123, 255, 0.2);
  transition: all 0.3s;
}

.step-card:hover .step-number {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow-strong);
  transform: scale(1.08);
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-heading);
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
}

/* ===== DASHBOARD PREVIEW ===== */
.preview-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.preview-mockup {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
  max-width: 1000px;
  margin: 0 auto;
}

.preview-mockup img {
  width: 100%;
  display: block;
}

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

.annotation-card {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s;
}
.annotation-card:hover { border-color: var(--accent); }

.annotation-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.annotation-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.annotation-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: all 0.4s;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-light);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow-strong);
  transform: scale(1.04);
}
.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 20px;
  background: var(--gradient);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price .currency { font-size: 24px; vertical-align: top; }
.pricing-price .period {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.pricing-features {
  margin-bottom: 32px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-features li .check {
  color: var(--success);
  font-weight: 700;
}
.pricing-features li .cross {
  color: var(--text-muted);
  font-weight: 700;
}

.pricing-card .btn { width: 100%; justify-content: center; }

/* ===== FAQ ===== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--border-light); }
.faq-item.open { border-color: var(--accent); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  width: 100%;
  text-align: left;
  color: var(--text-heading);
  font-size: 15px;
  font-weight: 600;
}
[dir="rtl"] .faq-question { text-align: right; }

.faq-arrow {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}
[dir="rtl"] .faq-arrow { margin-left: 0; margin-right: 16px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: var(--gradient-subtle);
  border: 1px solid rgba(79, 123, 255, 0.2);
  border-radius: var(--radius-2xl);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(79, 123, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 16px;
  position: relative;
}

.cta-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

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

/* ===== FOOTER ===== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo img { width: 36px; height: 36px; border-radius: 8px; }
.footer-logo-text { font-size: 18px; font-weight: 800; color: var(--text-heading); }
.footer-logo-text span { color: var(--accent); }

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 20px;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  transition: all 0.3s;
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

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

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[dir="rtl"] .reveal-left { transform: translateX(40px); }
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[dir="rtl"] .reveal-right { transform: translateX(-40px); }
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

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

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu .nav-link {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--text-primary);
  font-size: 28px;
  cursor: pointer;
}
[dir="rtl"] .mobile-menu-close { right: auto; left: 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root { --section-gap: 80px; }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 600px; margin: 40px auto 0; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .preview-annotations { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .float-card--1, .float-card--2, .float-card--3 { display: none; }
}

@media (max-width: 768px) {
  :root { --section-gap: 64px; --nav-height: 64px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn { display: none; }

  .hero-title { font-size: clamp(30px, 7vw, 48px); }
  .hero-stats { flex-direction: column; gap: 20px; align-items: center; }

  .features-grid { grid-template-columns: 1fr; }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps-grid::before { display: none; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-8px); }

  .preview-annotations { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-desc { margin: 0 auto 20px; }
  .footer-social { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; }
  .cta-box { padding: 48px 24px; }
}

/* ===== DEMO REQUEST MODAL ===== */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  padding: 20px;
}
.demo-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.demo-modal {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 560px;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.demo-modal-overlay.open .demo-modal {
  transform: translateY(0) scale(1);
}

.demo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.demo-modal-close:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}
[dir="rtl"] .demo-modal-close { right: auto; left: 16px; }

.demo-modal-header {
  text-align: center;
  margin-bottom: 28px;
}
.demo-modal-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.demo-modal-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.demo-modal-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.demo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.demo-form-group {
  margin-bottom: 16px;
}
.demo-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.demo-form-group input,
.demo-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
}
.demo-form-group input:focus,
.demo-form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.demo-form-group input::placeholder,
.demo-form-group textarea::placeholder {
  color: var(--text-muted);
}
.demo-form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.demo-form-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 8px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  position: relative;
}
.btn-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Success View */
.demo-success-view {
  text-align: center;
  padding: 20px 0;
}
.demo-success-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: success-bounce 0.6s ease;
}
@keyframes success-bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.demo-success-view h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
}
.demo-success-view p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .demo-modal { padding: 28px 20px; }
  .demo-form-row { grid-template-columns: 1fr; }
}
