/* ========================================
   StaffSay - Professional Landing Page
   Clean. Refined. Modern.
   ======================================== */

:root {
  /* Core Colors - Refined Palette */
  --bg: #FAFBFD;
  --bg-alt: #F4F6FA;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;

  --text-primary: #0A0F1C;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;

  --border: rgba(10, 15, 28, 0.06);
  --border-strong: rgba(10, 15, 28, 0.12);

  /* Brand Colors */
  --accent: #1D6FE0;
  --accent-soft: #EDF4FC;
  --accent-hover: #1558B8;

  --dark: #0A0F1C;
  --dark-soft: #1A202C;

  /* Shadows - Layered */
  --shadow-sm: 0 1px 2px rgba(10, 15, 28, 0.04), 0 2px 4px rgba(10, 15, 28, 0.04);
  --shadow-md: 0 4px 6px rgba(10, 15, 28, 0.04), 0 12px 16px rgba(10, 15, 28, 0.06);
  --shadow-lg: 0 8px 12px rgba(10, 15, 28, 0.06), 0 24px 48px rgba(10, 15, 28, 0.1);
  --shadow-xl: 0 16px 24px rgba(10, 15, 28, 0.08), 0 48px 80px rgba(10, 15, 28, 0.12);

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --max-width: 1200px;

  /* Timing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode */
html.dark {
  --bg: #0A0F1C;
  --bg-alt: #111827;
  --surface: #1A202C;
  --surface-elevated: #1F2937;

  --text-primary: #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-muted: #6B7280;

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);

  --accent-soft: rgba(29, 111, 224, 0.15);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2), 0 12px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 12px rgba(0, 0, 0, 0.3), 0 24px 48px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 24px rgba(0, 0, 0, 0.3), 0 48px 80px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Reset & Base
   ======================================== */

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

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

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[dir="rtl"] body {
  font-family: 'IBM Plex Sans Arabic', 'DM Sans', system-ui, sans-serif;
}

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

/* ========================================
   Skip Link
   ======================================== */

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  padding: 12px 24px;
  z-index: 10000;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ========================================
   Background Effects
   ======================================== */

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -10;
  opacity: 0.3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

html.dark .bg-grain {
  opacity: 0.15;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(29, 111, 224, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(29, 111, 224, 0.04), transparent 50%);
}

html.dark .bg-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(29, 111, 224, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(29, 111, 224, 0.06), transparent 50%);
}

/* ========================================
   Container
   ======================================== */

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

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
}

/* ========================================
   Reveal Animations
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* Stagger effect for children */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ========================================
   Navigation
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 251, 253, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

html.dark .nav {
  background: rgba(10, 15, 28, 0.85);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
  transition: transform 0.3s var(--ease-spring);
}

.brand:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.nav-links > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease);
}

.nav-links > a:hover {
  color: var(--text-primary);
  background: var(--border);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 20px;
  padding-inline-start: 20px;
  border-inline-start: 1px solid var(--border);
}

.nav-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}

.nav-btn:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.theme-btn {
  width: 40px;
  padding: 0;
}

.theme-btn svg {
  width: 18px;
  height: 18px;
}

.theme-btn .moon-icon { display: none; }
html.dark .theme-btn .sun-icon { display: none; }
html.dark .theme-btn .moon-icon { display: block; }

/* Mobile Menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

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

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

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

.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease);
}

.mobile-menu a:hover {
  background: var(--bg-alt);
}

.mobile-menu-footer {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .burger { display: flex; }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}

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

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
}

.hero-content {
  max-width: 540px;
}

@media (max-width: 1024px) {
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(29, 111, 224, 0.15);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* Hero Title */
.hero-title {
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title .dot {
  color: var(--accent);
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
}

@media (max-width: 1024px) {
  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .hero-subtitle {
    font-size: 16px;
  }
}

/* Hero Actions */
.hero-actions {
  margin-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-primary {
  padding: 16px 28px;
  background: var(--dark);
  color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  justify-content: center;
}

@media (max-width: 1024px) {
  .btn-primary {
    width: 100%;
    max-width: 300px;
  }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--dark-soft);
}

html.dark .btn-primary {
  background: var(--accent);
}

html.dark .btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary .play-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
}

.btn-label {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

@media (max-width: 1024px) {
  .trust-indicators {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .trust-indicators {
    gap: 20px;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ========================================
   Hero Visual - Phone Mockup
   ======================================== */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (max-width: 1024px) {
  .hero-visual {
    max-width: 340px;
    margin: 0 auto;
  }
}

.phone-wrapper {
  position: relative;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(29, 111, 224, 0.15), transparent 70%);
  z-index: -1;
}

html.dark .phone-glow {
  background: radial-gradient(ellipse at center, rgba(29, 111, 224, 0.25), transparent 70%);
}

.phone-device {
  width: 280px;
  background: var(--dark);
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

html.dark .phone-device {
  background: #1F2937;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), var(--shadow-xl);
}

.phone-bezel {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-speaker {
  width: 60px;
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

html.dark .phone-speaker {
  background: rgba(255, 255, 255, 0.1);
}

.phone-screen {
  width: 100%;
  aspect-ratio: 9/19.5;
  background: var(--surface);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}

html.dark .phone-screen {
  background: #111827;
}

.screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-button {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Floating Stats Cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
  z-index: 20;
}

.float-1 {
  top: 80px;
  right: -50px;
  animation-delay: 0s;
}

.float-2 {
  bottom: 120px;
  left: -50px;
  animation-delay: -3s;
}

html[dir="rtl"] .float-1 {
  right: auto;
  left: -50px;
}

html[dir="rtl"] .float-2 {
  left: auto;
  right: -50px;
}

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

.float-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.float-icon.users {
  background: rgba(16, 185, 129, 0.1);
}

.float-icon.users svg {
  color: #10B981;
}

.float-text {
  display: flex;
  flex-direction: column;
}

.float-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .float-card {
    display: none;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 2px;
  height: 48px;
  background: var(--border-strong);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
  0% { top: -40%; }
  100% { top: 140%; }
}

@media (max-width: 768px) {
  .scroll-indicator {
    display: none;
  }
}

/* ========================================
   Stats Section
   ======================================== */

.stats-section {
  background: var(--dark);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 120%, rgba(29, 111, 224, 0.25), transparent);
}

html.dark .stats-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.stat-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  transition: all 0.3s var(--ease);
}

.stat-block:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

html.dark .stat-block {
  background: var(--surface-elevated);
  border-color: var(--border);
}

html.dark .stat-block:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.stat-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(29, 111, 224, 0.2), rgba(29, 111, 224, 0.05));
  border: 1px solid rgba(29, 111, 224, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

html.dark .stat-icon {
  background: linear-gradient(135deg, rgba(29, 111, 224, 0.25), rgba(29, 111, 224, 0.1));
  border-color: rgba(29, 111, 224, 0.3);
}

.stat-label {
  font-size: 17px;
  font-weight: 600;
  color: white;
  line-height: 1.4;
}

html.dark .stat-label {
  color: var(--text-primary);
}

.stat-divider {
  display: none;
}

/* ========================================
   Sections
   ======================================== */

.section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }
}

.section-alt {
  background: var(--bg-alt);
}

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

.section-eyebrow {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent-soft);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

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

@media (max-width: 640px) {
  .section-desc {
    font-size: 16px;
  }
}

/* ========================================
   Steps Grid
   ======================================== */

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

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
  transition: all 0.3s var(--ease);
}

.step-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
}

html[dir="rtl"] .step-number {
  right: auto;
  left: 20px;
}

.step-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s var(--ease);
}

.step-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.step-card:hover .step-icon {
  background: var(--accent);
  transform: scale(1.05);
}

.step-card:hover .step-icon svg {
  color: white;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   Features Grid
   ======================================== */

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

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 40px;
  transition: all 0.4s var(--ease);
}

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

.feature-icon-wrap {
  width: 60px;
  height: 60px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s var(--ease);
}

html.dark .feature-icon-wrap {
  background: var(--surface-elevated);
}

.feature-icon-wrap svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.feature-card:hover .feature-icon-wrap {
  background: var(--accent);
  transform: scale(1.05) rotate(-3deg);
}

.feature-card:hover .feature-icon-wrap svg {
  color: white;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   Testimonial Section
   ======================================== */

.testimonial-section {
  padding: 80px 0;
}

.testimonial-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  position: relative;
}

.quote-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  color: var(--accent);
  opacity: 0.3;
}

.quote-icon svg {
  width: 100%;
  height: 100%;
}

.testimonial-card blockquote {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .testimonial-card blockquote {
    font-size: 18px;
  }

  .testimonial-card {
    padding: 32px 24px;
  }
}

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

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

.author-details {
  display: flex;
  flex-direction: column;
  text-align: start;
}

.author-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.author-role {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   FAQ Section
   ======================================== */

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

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

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  gap: 16px;
  transition: color 0.2s var(--ease);
}

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

.faq-item summary:hover {
  color: var(--accent);
}

.faq-toggle {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}

.faq-toggle svg {
  width: 100%;
  height: 100%;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-content {
  padding: 0 24px 22px;
}

.faq-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */

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

.cta-wrapper {
  position: relative;
  text-align: center;
  padding: 80px 48px;
  background: var(--dark);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

html.dark .cta-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
}

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

.cta-wrapper h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

html.dark .cta-wrapper h2 {
  color: var(--text-primary);
}

.cta-wrapper p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  max-width: 480px;
  margin-inline: auto;
}

html.dark .cta-wrapper p {
  color: var(--text-secondary);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: white;
  color: var(--dark);
  border-radius: var(--radius-lg);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

html.dark .btn-cta {
  background: var(--accent);
  color: white;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-cta .play-icon {
  width: 24px;
  height: 24px;
}

.cta-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-circle:first-child {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
}

.cta-circle.small {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -100px;
}

html[dir="rtl"] .cta-circle:first-child {
  right: auto;
  left: -100px;
}

html[dir="rtl"] .cta-circle.small {
  left: auto;
  right: -100px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--dark);
  color: white;
  padding: 72px 0 36px;
}

html.dark .footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .footer-logo {
    justify-content: center;
  }
}

.footer-logo .logo-img {
  width: 36px;
  height: 36px;
}

.footer-logo span {
  font-size: 22px;
  font-weight: 700;
}

.footer-tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  line-height: 1.6;
}

html.dark .footer-tagline {
  color: var(--text-muted);
}

.footer-email {
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s var(--ease);
}

.footer-email:hover {
  opacity: 0.8;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
}

html.dark .footer-links h4 {
  color: var(--text-muted);
}

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

@media (max-width: 768px) {
  .footer-links nav {
    align-items: center;
  }
}

.footer-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

html.dark .footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: white;
}

html.dark .footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

html.dark .footer-bottom {
  border-color: var(--border);
}

.copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

html.dark .copyright {
  color: var(--text-muted);
}
