/* ===== FirstOfCAD — Modern Website Styles v5 ===== */

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

:root {
  --bg: #09071A;
  --bg-2: #110E24;
  --bg-card: rgba(20, 16, 42, 0.6);
  --bg-card-solid: #14102A;
  --accent: #7C3AED;
  --accent-2: #6D28D9;
  --accent-light: #A78BFA;
  --accent-glow: rgba(124, 58, 237, 0.25);
  --accent-glow-2: rgba(124, 58, 237, 0.08);
  --purple-soft: rgba(167, 139, 250, 0.1);
  --green: #10B981;
  --red: #EF4444;
  --yellow: #F59E0B;
  --text: #F4F2FF;
  --text-2: #B8B2CC;
  --text-3: #736B8A;
  --border: rgba(124, 58, 237, 0.12);
  --border-hover: rgba(124, 58, 237, 0.35);
  --gradient: linear-gradient(135deg, #6D28D9, #7C3AED, #A78BFA);
  --gradient-2: linear-gradient(135deg, #4C1D95, #7C3AED);
  --gradient-warm: linear-gradient(135deg, #7C3AED, #EC4899);
  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.12);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

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

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

/* RTL */
[dir="rtl"] body { direction: rtl; text-align: right; }
[dir="rtl"] .features-grid, [dir="rtl"] .languages-grid, [dir="rtl"] .pricing-cards { direction: rtl; }
[dir="rtl"] .nav-links, [dir="rtl"] .mobile-nav-links { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .pricing-features { text-align: right; }
[dir="rtl"] .faq-item summary::after { left: 0; right: auto; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .step-connector { transform: scaleX(-1); }
[dir="rtl"] .comparison-table td:first-child { text-align: right; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--text); }
h1 { font-size: clamp(2.8rem, 7vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { color: var(--text-2); }
a { color: inherit; }

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

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 7rem 0; position: relative; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-badge {
  display: inline-block;
  background: var(--purple-soft);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 50px;
  padding: 0.35rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}
.section-title { text-align: center; margin-bottom: 1rem; }
.section-subtitle {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes gradient-x {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}
@keyframes draw-line {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}
@keyframes point-pop {
  0% { r: 0; opacity: 0; }
  60% { r: 4; opacity: 1; }
  100% { r: 3; opacity: 1; }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.3; filter: blur(60px); }
  50% { opacity: 0.6; filter: blur(80px); }
}
@keyframes float-device {
  0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(-2deg); }
  50% { transform: translateY(-12px) rotateX(2deg) rotateY(-2deg); }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
  font-family: var(--font);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-2);
  background-size: 200% 200%;
  color: white;
  animation: gradient-x 4s ease infinite;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.45);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-hover);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--purple-soft);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 2.2rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: white;
  color: #000;
  transition: all 0.3s var(--ease);
  font-family: var(--font);
  box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}
.btn-appstore:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(255,255,255,0.2);
}
.btn-appstore .apple-logo { width: 22px; height: 22px; flex-shrink: 0; }
.btn-nav-cta {
  background: var(--accent);
  color: white;
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s var(--ease);
}
.btn-nav-cta:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.9rem 0;
  transition: all 0.4s var(--ease);
  background: transparent;
}
.site-header.scrolled {
  background: rgba(9, 7, 26, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}
.logo-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}
.logo-text { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.nav-desktop { display: flex; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 0.8rem; }

/* Language Selector */
.lang-selector { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.3s var(--ease);
  font-family: var(--font);
}
.lang-btn:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.08); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  min-width: 180px;
  display: none;
  z-index: 100;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  max-height: 400px;
  overflow-y: auto;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}
[dir="rtl"] .lang-option { text-align: right; }
.lang-option:hover { background: var(--purple-soft); color: var(--text); }
.lang-option.active { background: rgba(124, 58, 237, 0.15); color: var(--accent-light); }

/* Hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.mobile-menu-btn.active .hamburger { background: transparent; }
.mobile-menu-btn.active .hamburger::before { top: 0; transform: rotate(45deg); }
.mobile-menu-btn.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 7, 26, 0.97);
  backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.mobile-nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 600;
  transition: color 0.3s;
}
.mobile-nav-links a:hover { color: var(--accent-light); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 6s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.15) 0%, transparent 70%);
  top: 20%;
  right: 5%;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(76, 29, 149, 0.12) 0%, transparent 70%);
  bottom: 10%;
  left: 10%;
  animation: float 10s ease-in-out infinite reverse;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Hero layout - side by side */
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
}
.hero-text {
  text-align: left;
}
[dir="rtl"] .hero-text { text-align: right; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--purple-soft);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 50px;
  padding: 0.45rem 1.3rem;
  font-size: 0.82rem;
  color: var(--accent-light);
  margin-bottom: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--text-2);
  max-width: 520px;
  margin: 0 0 2.5rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-platforms {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.platform-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 500;
}

/* Hero Device Mockup */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}
.hero-device {
  position: relative;
  animation: float-device 6s ease-in-out infinite;
}
.hero-device-frame {
  background: linear-gradient(145deg, #1a1635, #0d0b1e);
  border-radius: 20px;
  border: 2px solid rgba(124, 58, 237, 0.2);
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 100px rgba(124, 58, 237, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
}
.hero-device-screen {
  background: #0a0920;
  border-radius: 12px;
  overflow: hidden;
}
.hero-cad-ui {
  display: flex;
  flex-direction: column;
}
.cad-toolbar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(124, 58, 237, 0.08);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}
.cad-toolbar span {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.1);
}
.cad-canvas {
  padding: 0;
  min-height: 200px;
}
.cad-canvas svg {
  width: 100%;
  height: auto;
  display: block;
}
.cad-statusbar {
  display: flex;
  gap: 12px;
  padding: 5px 10px;
  background: rgba(124, 58, 237, 0.06);
  border-top: 1px solid rgba(124, 58, 237, 0.1);
}
.cad-statusbar span {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-light);
  opacity: 0.6;
  letter-spacing: 0.05em;
}
.hero-device-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.15), transparent 60%);
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

/* CAD Drawing Animations */
.cad-draw-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-line 2s ease forwards;
}
.cad-draw-d1 { animation-delay: 0.3s; }
.cad-draw-d2 { animation-delay: 0.6s; }
.cad-draw-d3 { animation-delay: 0.9s; }
.cad-draw-d4 { animation-delay: 1.2s; }
.cad-draw-d5 { animation-delay: 1.5s; }
.cad-point {
  opacity: 0;
  animation: point-pop 0.4s ease forwards;
  animation-delay: 1.8s;
}

/* --- Stats --- */
.stats {
  padding: 4rem 0;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--accent-light);
  margin-left: 2px;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-3);
  font-weight: 500;
}

/* --- Features --- */
.features { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.1), 0 0 60px rgba(124, 58, 237, 0.05);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--purple-soft);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 1.2rem;
  transition: all 0.4s var(--ease);
}
.feature-card:hover .feature-icon-wrap {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.3);
  transform: scale(1.08);
}
.feature-card h3 { margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.9rem; line-height: 1.65; color: var(--text-2); }

/* --- Comparison --- */
.comparison { background: var(--bg-2); }
.comparison-table-wrap {
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.comparison-table thead th {
  padding: 1.2rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  background: rgba(124, 58, 237, 0.08);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.comparison-table thead th:first-child {
  text-align: left;
}
.comparison-table .col-us {
  background: rgba(124, 58, 237, 0.06);
}
.comparison-table thead .col-us {
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-light);
}
.compare-logo {
  border-radius: 6px;
  vertical-align: middle;
  margin-right: 6px;
}
.comparison-table tbody td {
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.06);
  text-align: center;
  color: var(--text-2);
}
.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.03);
}
.check-yes {
  color: var(--green);
  font-weight: 700;
  font-size: 1.2rem;
}
.check-no {
  color: var(--red);
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0.7;
}
.check-limited {
  color: var(--yellow);
  font-weight: 600;
  font-size: 0.85rem;
}
.row-price td {
  font-weight: 600;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.row-price .col-us strong {
  color: var(--accent-light);
  font-size: 1.1rem;
}

/* --- How It Works --- */
.how-it-works { background: var(--bg); }
.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}
.step-card {
  flex: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  margin: 0 auto 1.2rem;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}
.step-icon {
  width: 72px;
  height: 72px;
  background: var(--purple-soft);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin: 0 auto 1.2rem;
  transition: all 0.4s var(--ease);
}
.step-card:hover .step-icon {
  background: rgba(124, 58, 237, 0.2);
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}
.step-card h3 { margin-bottom: 0.6rem; }
.step-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; max-width: 260px; margin: 0 auto; }
.step-connector {
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  opacity: 0.4;
}

/* --- Pricing --- */
.pricing { background: var(--bg-2); }
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  transition: all 0.4s var(--ease);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.pricing-card-inner {
  background: var(--bg-card-solid);
  border-radius: calc(var(--radius) - 3px);
  padding: 2.5rem 2rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pricing-featured {
  background: var(--gradient);
  border: none;
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.25);
}
.pricing-featured:hover {
  box-shadow: 0 12px 60px rgba(124, 58, 237, 0.35);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: var(--accent-2);
  padding: 0.35rem 1.4rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1;
}
.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 0.3rem;
}
.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-2);
  align-self: flex-start;
  margin-top: 0.5rem;
}
.price-main {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-period {
  font-size: 0.9rem;
  color: var(--text-3);
  font-weight: 400;
}
.pricing-period {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}
.pricing-features {
  list-style: none;
  margin: 0 0 2rem;
  text-align: left;
  flex: 1;
}
.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-2);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.pricing-features li svg { flex-shrink: 0; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* --- Languages --- */
.languages { background: var(--bg); }
.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.language-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.3rem 0.8rem;
  text-align: center;
  transition: all 0.3s var(--ease);
  cursor: default;
}
.language-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.language-card .flag { font-size: 2.2rem; margin-bottom: 0.5rem; display: block; }
.language-card .lang-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* --- FAQ --- */
.faq { background: var(--bg-2); }
.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item[open] { border-color: rgba(124, 58, 237, 0.25); }
.faq-item summary {
  padding: 1.3rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  transition: color 0.3s;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-light);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-answer {
  padding: 0 1.5rem 1.3rem;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- CTA --- */
.cta-section { background: var(--bg); padding: 5rem 0 7rem; }
.cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 5rem 2rem;
  text-align: center;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(100px); }
.cta-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 70%);
  top: -100px;
  right: -100px;
  animation: pulse 8s ease-in-out infinite;
}
.cta-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(76, 29, 149, 0.15), transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float 10s ease-in-out infinite;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { margin-bottom: 1rem; }
.cta-content > p { max-width: 500px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.btn-appstore-lg {
  padding: 1rem 2.5rem;
  border-radius: 16px;
  font-size: 1.05rem;
}
.btn-appstore-text { display: flex; flex-direction: column; text-align: left; }
.btn-appstore-small { font-size: 0.7rem; font-weight: 400; opacity: 0.7; }
.btn-appstore-large { font-size: 1.4rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
[dir="rtl"] .btn-appstore-text { text-align: right; }
.cta-note { margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-3); }

/* --- Footer --- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; color: var(--text-3); }
.footer-section h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.6rem; }
.footer-section ul a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s var(--ease);
}
.footer-section ul a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-3); }

/* --- Legal Pages --- */
.legal-page { padding-top: 8rem; padding-bottom: 4rem; min-height: 100vh; }
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  backdrop-filter: blur(10px);
}
.legal-content h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.legal-content .last-updated { color: var(--text-3); font-size: 0.9rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.legal-content h2 { font-size: 1.3rem; margin: 2rem 0 0.8rem; color: var(--accent-light); }
.legal-content p, .legal-content li { font-size: 0.95rem; line-height: 1.8; color: var(--text-2); margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
[dir="rtl"] .legal-content ul { padding-left: 0; padding-right: 1.5rem; }
.legal-content a { color: var(--accent-light); text-decoration: underline; text-decoration-color: rgba(167, 139, 250, 0.3); transition: text-decoration-color 0.3s; }
.legal-content a:hover { text-decoration-color: var(--accent-light); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { text-align: center; }
  [dir="rtl"] .hero-text { text-align: center; }
  .hero-subtitle { margin: 0 auto 2.5rem; }
  .hero-cta { justify-content: center; }
  .hero-platforms { justify-content: center; }
  .hero-visual { margin-top: 2rem; }
  .hero-device-frame { max-width: 400px; }
  .pricing-cards { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .steps-grid { flex-wrap: wrap; gap: 0; }
  .step-connector { display: none; }
  .step-card { min-width: 250px; }
}
@media (max-width: 768px) {
  section { padding: 5rem 0; }
  .nav-desktop { display: none; }
  .btn-nav-cta { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { min-height: auto; padding: 9rem 0 5rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-platforms { flex-direction: column; gap: 0.5rem; }
  .hero-visual { display: none; }
  .hero-text { text-align: center; }
  [dir="rtl"] .hero-text { text-align: center; }
  .hero-subtitle { margin: 0 auto 2.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .languages-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-card { padding: 3.5rem 1.5rem; }
  .legal-content { padding: 2rem 1.5rem; }
  .comparison-table thead th { padding: 0.8rem 1rem; font-size: 0.8rem; }
  .comparison-table tbody td { padding: 0.7rem 1rem; font-size: 0.82rem; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-card { max-width: 340px; }
}
@media (max-width: 480px) {
  .languages-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .hero h1 { font-size: 2.2rem; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124, 58, 237, 0.5); }

/* --- Selection --- */
::selection { background: rgba(124, 58, 237, 0.3); color: var(--text); }

/* ===== Vision Pro Announcement Bar ===== */
.vp-announcement-bar {
  background: linear-gradient(90deg, #4C1D95, #6D28D9, #7C3AED, #6D28D9, #4C1D95);
  background-size: 200% 100%;
  animation: vpBarShimmer 6s linear infinite;
  color: #fff;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  position: relative;
  z-index: 1100;
}
@keyframes vpBarShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.vp-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.vp-bar-icon { opacity: 0.9; display: flex; align-items: center; }
.vp-announcement-bar p { color: rgba(255,255,255,0.95); margin: 0; font-size: 0.85rem; }
.vp-announcement-bar strong { color: #fff; font-weight: 700; }
.vp-bar-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255,255,255,0.2);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: background 0.2s;
  white-space: nowrap;
}
.vp-bar-link:hover { background: rgba(255,255,255,0.32); }
.vp-bar-close {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}
.vp-bar-close:hover { color: #fff; }
[dir="rtl"] .vp-bar-close { right: auto; left: 1rem; }

/* ===== Vision Pro Platform Chip ===== */
.platform-chip-vp {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(76,29,149,0.2));
  border-color: rgba(167,139,250,0.35);
  color: #C4B5FD;
}

/* ===== Vision Pro Cinematic Scroll Section ===== */
.vp-scene {
  position: relative;
  height: 400vh;
  background: linear-gradient(180deg, var(--bg) 0%, #0D0820 8%, #0D0820 92%, var(--bg) 100%);
}
.vp-scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background */
.vp-scene__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.vp-nebula { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0; }
.vp-nebula--1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(124,58,237,0.3), transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.vp-nebula--2 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(167,139,250,0.2), transparent 70%); top: 30%; left: 25%; }
.vp-nebula--3 { width: 250px; height: 250px; background: radial-gradient(circle, rgba(109,40,217,0.25), transparent 70%); bottom: 20%; right: 20%; }
.vp-particles { position: absolute; inset: 0; }
.vp-particle { position: absolute; width: 2px; height: 2px; background: #A78BFA; border-radius: 50%; opacity: 0; }

/* Headset */
.vp-act--headset {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; z-index: 2;
  opacity: 0; will-change: transform, opacity;
}
.vp-headset-container { will-change: transform; }
.vp-headset {
  width: clamp(280px, 40vw, 520px); height: auto;
  filter: drop-shadow(0 0 60px rgba(124,58,237,0.4));
  pointer-events: none; user-select: none;
}

/* Title */
.vp-scene__title { text-align: center; margin-top: 2rem; opacity: 0; will-change: transform, opacity; }
.vp-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(76,29,149,0.15));
  border: 1px solid rgba(167,139,250,0.3); color: #C4B5FD;
  padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem;
}
.vp-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  background: linear-gradient(135deg, #E9D5FF, #A78BFA, #7C3AED);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.75rem;
}
.vp-subtitle { font-size: clamp(0.9rem, 1.5vw, 1.1rem); color: var(--text-2); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* Floating Panels */
.vp-act--panels {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; max-width: 900px; height: 400px; z-index: 3;
  pointer-events: none; perspective: 1000px;
}
.vp-panel { position: absolute; opacity: 0; will-change: transform, opacity; }
.vp-panel--1 { top: 8%; left: 5%; }
.vp-panel--2 { top: 2%; left: 50%; transform: translateX(-50%); }
.vp-panel--3 { top: 12%; right: 5%; }
.vp-panel__glass {
  background: rgba(20, 16, 42, 0.7); border: 1px solid rgba(167,139,250,0.25);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 16px; padding: 1.2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  min-width: 160px; box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.vp-panel__glass span { font-size: 0.8rem; font-weight: 600; color: #C4B5FD; text-align: center; }
.vp-panel__icon { width: 120px; height: 80px; }
.vp-cube-g { animation: vpCubeRotate 8s linear infinite; transform-origin: 60px 40px; }
@keyframes vpCubeRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Feature details */
.vp-act--features {
  position: absolute; bottom: 22%; left: 50%; transform: translateX(-50%);
  z-index: 4; width: 100%; max-width: 750px; padding: 0 1.5rem;
}
.vp-features-list { display: flex; gap: 2rem; justify-content: center; }
.vp-feat {
  flex: 1; max-width: 220px; opacity: 0; will-change: transform, opacity; position: relative; padding-left: 0.75rem;
}
.vp-feat__line {
  position: absolute; left: 0; top: 0; width: 2px; height: 0;
  background: linear-gradient(180deg, #7C3AED, transparent); border-radius: 1px;
  transition: height 0.6s var(--ease);
}
.vp-feat.is-active .vp-feat__line { height: 100%; }
.vp-feat__icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(76,29,149,0.2));
  border: 1px solid rgba(167,139,250,0.25); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #A78BFA; margin-bottom: 0.5rem;
}
.vp-feat h4 { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.vp-feat p { font-size: 0.75rem; color: var(--text-2); line-height: 1.5; margin: 0; }

/* CTA */
.vp-act--cta {
  position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  opacity: 0; will-change: transform, opacity;
}
.btn-vp {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, #6D28D9, #7C3AED); color: #fff;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.9rem; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-vp:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.5); }
.vp-coming-soon {
  font-size: 0.82rem; color: #A78BFA; font-weight: 600;
  display: flex; align-items: center; gap: 0.4rem;
}
.vp-coming-soon::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #A78BFA;
  animation: vpPulse 1.8s ease-in-out infinite;
}
@keyframes vpPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

/* Responsive */
@media (max-width: 900px) {
  .vp-scene { height: 350vh; }
  .vp-headset { width: clamp(220px, 55vw, 320px) !important; }
  .vp-features-list { flex-direction: column; align-items: center; }
  .vp-feat { max-width: 300px; }
  .vp-act--panels { display: none; }
}
@media (max-width: 640px) {
  .vp-scene { height: 350vh; }
  .vp-scene__sticky { overflow-x: hidden; }
  .vp-headset { width: 220px !important; }
  .vp-subtitle { font-size: 0.85rem !important; }
  .vp-act--headset { padding: 0 1rem; }
  .vp-act--features { bottom: 18%; }
  .vp-features-list { gap: 0.8rem; }
  .vp-feat p { display: none; }
  .vp-feat__icon { width: 28px; height: 28px; margin-bottom: 0.3rem; }
  .vp-feat h4 { font-size: 0.78rem; }
  .vp-act--cta { bottom: 5%; }
  .btn-vp { padding: 0.6rem 1.2rem; font-size: 0.82rem; }
}

/* RTL */
[dir="rtl"] .vp-feat { padding-left: 0; padding-right: 0.75rem; }
[dir="rtl"] .vp-feat__line { left: auto; right: 0; }

/* ===== News Section ===== */
.news {
  padding: var(--section-pad) 0;
  position: relative;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent);
}

.news-card-inner {
  padding: 2rem;
}

.news-featured .news-card-inner {
  padding: 2.5rem;
}

.news-featured {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(167, 139, 250, 0.04));
  border-color: rgba(124, 58, 237, 0.3);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.news-tag-update {
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-light);
}

.news-tag-feature {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.news-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.news-featured .news-card-title {
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--text), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-card-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.news-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.news-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.news-feature-item:hover {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.2);
}

.news-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.12);
  border-radius: var(--radius-xs);
  color: var(--accent-light);
}

.news-feature-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.news-feature-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .news-features-grid {
    grid-template-columns: 1fr;
  }
  .news-featured .news-card-title {
    font-size: 1.35rem;
  }
  .news-card-inner {
    padding: 1.5rem;
  }
}

@media (min-width: 769px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .news-featured {
    grid-column: 1 / -1;
  }
}

/* RTL */
[dir="rtl"] .news-meta {
  flex-direction: row-reverse;
}
[dir="rtl"] .news-feature-item {
  flex-direction: row-reverse;
  text-align: right;
}


/* ===================================================================
   ENHANCED STYLES v6 — Glassmorphism, Animations & Polish
   Appended enhancements — do not modify existing CSS above
   =================================================================== */

/* --- 1. Glassmorphism Cards --- */
.glass-card {
  background: rgba(20, 16, 42, 0.45);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: var(--radius);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s var(--ease);
}

.glass-card:hover {
  background: rgba(20, 16, 42, 0.55);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(124, 58, 237, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* --- 2. Enhanced Feature Cards --- */
.feature-card {
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(124, 58, 237, 0.3), rgba(167, 139, 250, 0.4), transparent);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(124, 58, 237, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feature-card:hover::after {
  opacity: 1;
  animation: gradient-border-rotate 3s ease infinite;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

@keyframes gradient-border-rotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Staggered animation delays for feature cards */
.feature-card:nth-child(1)  { animation-delay: 0s; }
.feature-card:nth-child(2)  { animation-delay: 0.05s; }
.feature-card:nth-child(3)  { animation-delay: 0.1s; }
.feature-card:nth-child(4)  { animation-delay: 0.15s; }
.feature-card:nth-child(5)  { animation-delay: 0.2s; }
.feature-card:nth-child(6)  { animation-delay: 0.25s; }
.feature-card:nth-child(7)  { animation-delay: 0.3s; }
.feature-card:nth-child(8)  { animation-delay: 0.35s; }
.feature-card:nth-child(9)  { animation-delay: 0.4s; }
.feature-card:nth-child(10) { animation-delay: 0.45s; }
.feature-card:nth-child(11) { animation-delay: 0.5s; }
.feature-card:nth-child(12) { animation-delay: 0.55s; }
.feature-card:nth-child(13) { animation-delay: 0.6s; }
.feature-card:nth-child(14) { animation-delay: 0.65s; }
.feature-card:nth-child(15) { animation-delay: 0.7s; }
.feature-card:nth-child(16) { animation-delay: 0.75s; }
.feature-card:nth-child(17) { animation-delay: 0.8s; }
.feature-card:nth-child(18) { animation-delay: 0.85s; }
.feature-card:nth-child(19) { animation-delay: 0.9s; }
.feature-card:nth-child(20) { animation-delay: 0.95s; }

/* Inner glow on feature card hover */
.feature-card:hover .feature-icon {
  filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.5));
  transform: scale(1.1);
  transition: all 0.3s var(--ease);
}

/* --- 3. Animated Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, #7C3AED, #A78BFA, #C4B5FD, #7C3AED);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 0%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 100%; }
  100% { background-position: 0% 50%; }
}

/* --- 4. Floating Particles Enhancement --- */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.particle--sm {
  width: 3px;
  height: 3px;
  background: rgba(124, 58, 237, 0.35);
  box-shadow: 0 0 6px rgba(124, 58, 237, 0.3);
  animation: particle-float-sm 18s ease-in-out infinite;
}

.particle--md {
  width: 5px;
  height: 5px;
  background: rgba(167, 139, 250, 0.25);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.25);
  animation: particle-float-md 24s ease-in-out infinite;
}

.particle--lg {
  width: 8px;
  height: 8px;
  background: rgba(196, 181, 253, 0.15);
  box-shadow: 0 0 20px rgba(196, 181, 253, 0.2);
  animation: particle-float-lg 30s ease-in-out infinite;
}

.particle--glow {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  animation: particle-glow-drift 20s ease-in-out infinite;
}

@keyframes particle-float-sm {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%      { opacity: 0.7; }
  50%      { transform: translate(120px, -200px) rotate(180deg); opacity: 0.5; }
  90%      { opacity: 0.7; }
}

@keyframes particle-float-md {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
  15%      { opacity: 0.6; }
  50%      { transform: translate(-80px, -300px) scale(1.3); opacity: 0.4; }
  85%      { opacity: 0.6; }
}

@keyframes particle-float-lg {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0; }
  20%      { opacity: 0.5; }
  50%      { transform: translate(60px, -250px) rotate(90deg) scale(0.8); opacity: 0.3; }
  80%      { opacity: 0.5; }
}

@keyframes particle-glow-drift {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  33%      { transform: translate(100px, -150px); opacity: 0.6; }
  66%      { transform: translate(-50px, -300px); opacity: 0.3; }
}

/* Particle position variations */
.particle:nth-child(1)  { left: 5%;  top: 90%; animation-delay: 0s; }
.particle:nth-child(2)  { left: 15%; top: 85%; animation-delay: -3s; }
.particle:nth-child(3)  { left: 25%; top: 95%; animation-delay: -6s; }
.particle:nth-child(4)  { left: 35%; top: 80%; animation-delay: -9s; }
.particle:nth-child(5)  { left: 45%; top: 90%; animation-delay: -2s; }
.particle:nth-child(6)  { left: 55%; top: 85%; animation-delay: -5s; }
.particle:nth-child(7)  { left: 65%; top: 95%; animation-delay: -8s; }
.particle:nth-child(8)  { left: 75%; top: 88%; animation-delay: -1s; }
.particle:nth-child(9)  { left: 85%; top: 92%; animation-delay: -4s; }
.particle:nth-child(10) { left: 95%; top: 87%; animation-delay: -7s; }
.particle:nth-child(11) { left: 10%; top: 82%; animation-delay: -10s; }
.particle:nth-child(12) { left: 40%; top: 78%; animation-delay: -12s; }
.particle:nth-child(13) { left: 60%; top: 96%; animation-delay: -14s; }
.particle:nth-child(14) { left: 80%; top: 84%; animation-delay: -11s; }
.particle:nth-child(15) { left: 50%; top: 75%; animation-delay: -13s; }

/* --- 5. Enhanced News Cards --- */
.news-card {
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #7C3AED, #A78BFA) 1;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(124, 58, 237, 0.06);
  transition: all 0.4s var(--ease);
}

.news-card:hover {
  border-image: linear-gradient(180deg, #A78BFA, #C4B5FD) 1;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(124, 58, 237, 0.08);
  transform: translateY(-4px);
}

.news-card-inner {
  position: relative;
}

.news-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #7C3AED, #A78BFA);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

/* --- 6. Language Cards Hover Animation --- */
.lang-card {
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.lang-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.lang-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

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

.lang-card:hover .lang-flag,
.lang-card:hover .flag-emoji {
  transform: scale(1.2) rotate(-3deg);
  transition: transform 0.4s var(--ease);
}

.lang-flag,
.flag-emoji {
  transition: transform 0.4s var(--ease);
  display: inline-block;
}

/* --- 7. Pricing Cards — Glass Effect & Shadow Depth --- */
.pricing-card {
  background: rgba(20, 16, 42, 0.5);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(124, 58, 237, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.5s var(--ease);
}

.pricing-card:hover {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 50px rgba(124, 58, 237, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-8px);
}

.pricing-card.popular {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 0 60px rgba(124, 58, 237, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pricing-card.popular:hover {
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(124, 58, 237, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-10px) scale(1.02);
}

/* --- 8. Scroll Progress Indicator --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #7C3AED, #A78BFA, #C4B5FD);
  z-index: 10000;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
  border-radius: 0 2px 2px 0;
}

/* --- 9. Better Button Effects --- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  opacity: 0;
  z-index: -1;
  border-radius: inherit;
}

.btn:active::before {
  transform: scale(2.5);
  opacity: 1;
  transition: transform 0.3s var(--ease), opacity 0s;
}

.btn-primary {
  background: linear-gradient(135deg, #6D28D9, #7C3AED, #8B5CF6);
  background-size: 200% 200%;
  transition: all 0.4s var(--ease), background-position 0.4s var(--ease);
}

.btn-primary:hover {
  background-position: 100% 100%;
  box-shadow:
    0 8px 30px rgba(124, 58, 237, 0.4),
    0 0 20px rgba(124, 58, 237, 0.15);
}

.btn-outline {
  position: relative;
  transition: all 0.4s var(--ease);
}

.btn-outline:hover {
  box-shadow:
    0 0 20px rgba(124, 58, 237, 0.15),
    inset 0 0 20px rgba(124, 58, 237, 0.05);
}

/* --- 10. Smooth Page Transitions — Fade-In Sections --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

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

/* Staggered section entrance variations */
.fade-in-section.fade-from-left {
  transform: translateX(-40px);
}
.fade-in-section.fade-from-left.is-visible {
  transform: translateX(0);
}

.fade-in-section.fade-from-right {
  transform: translateX(40px);
}
.fade-in-section.fade-from-right.is-visible {
  transform: translateX(0);
}

.fade-in-section.fade-scale {
  transform: scale(0.95);
}
.fade-in-section.fade-scale.is-visible {
  transform: scale(1);
}

/* Per-item stagger inside grids */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.stagger-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.is-visible > *:nth-child(1)  { transition-delay: 0s; }
.stagger-children.is-visible > *:nth-child(2)  { transition-delay: 0.06s; }
.stagger-children.is-visible > *:nth-child(3)  { transition-delay: 0.12s; }
.stagger-children.is-visible > *:nth-child(4)  { transition-delay: 0.18s; }
.stagger-children.is-visible > *:nth-child(5)  { transition-delay: 0.24s; }
.stagger-children.is-visible > *:nth-child(6)  { transition-delay: 0.30s; }
.stagger-children.is-visible > *:nth-child(7)  { transition-delay: 0.36s; }
.stagger-children.is-visible > *:nth-child(8)  { transition-delay: 0.42s; }
.stagger-children.is-visible > *:nth-child(9)  { transition-delay: 0.48s; }
.stagger-children.is-visible > *:nth-child(10) { transition-delay: 0.54s; }
.stagger-children.is-visible > *:nth-child(11) { transition-delay: 0.60s; }
.stagger-children.is-visible > *:nth-child(12) { transition-delay: 0.66s; }
.stagger-children.is-visible > *:nth-child(13) { transition-delay: 0.72s; }
.stagger-children.is-visible > *:nth-child(14) { transition-delay: 0.78s; }
.stagger-children.is-visible > *:nth-child(15) { transition-delay: 0.84s; }
.stagger-children.is-visible > *:nth-child(16) { transition-delay: 0.90s; }
.stagger-children.is-visible > *:nth-child(17) { transition-delay: 0.96s; }
.stagger-children.is-visible > *:nth-child(18) { transition-delay: 1.02s; }
.stagger-children.is-visible > *:nth-child(19) { transition-delay: 1.08s; }
.stagger-children.is-visible > *:nth-child(20) { transition-delay: 1.14s; }

/* --- 11. Feature Grid — 20 Features Layout --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* --- 12. Dark Mode Polish — Noise Texture & Depth --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  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");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* Subtle depth layers for sections */
section {
  position: relative;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
  pointer-events: none;
}

section:last-child::after {
  display: none;
}

/* Ambient glow spots for depth */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.06;
  will-change: transform;
}

.ambient-glow--purple {
  background: #7C3AED;
  width: 400px;
  height: 400px;
  animation: ambient-drift-1 25s ease-in-out infinite;
}

.ambient-glow--blue {
  background: #3B82F6;
  width: 300px;
  height: 300px;
  animation: ambient-drift-2 30s ease-in-out infinite;
}

.ambient-glow--pink {
  background: #EC4899;
  width: 250px;
  height: 250px;
  animation: ambient-drift-3 22s ease-in-out infinite;
}

@keyframes ambient-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(60px, -40px); }
  66%      { transform: translate(-30px, 30px); }
}

@keyframes ambient-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(-50px, 50px); }
  66%      { transform: translate(40px, -30px); }
}

@keyframes ambient-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(30px, 40px); }
  66%      { transform: translate(-40px, -50px); }
}

/* Enhanced card depth perception in dark mode */
.feature-card,
.pricing-card,
.news-card,
.lang-card,
.glass-card {
  position: relative;
}

.feature-card > *,
.pricing-card > *,
.news-card > *,
.glass-card > * {
  position: relative;
  z-index: 1;
}

/* Subtle vignette overlay for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(9, 7, 26, 0.4) 100%);
}

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

  .fade-in-section {
    opacity: 1;
    transform: none;
  }

  .stagger-children > * {
    opacity: 1;
    transform: none;
  }

  .scroll-progress {
    transition: none;
  }
}

/* ===================================================================
   Coming Soon — Web Version Section
   =================================================================== */
.web-soon {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
}

.web-soon__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.web-soon__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
}

.web-soon__orb--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
  top: -10%; left: -8%;
  animation: webOrbDrift 22s ease-in-out infinite;
}

.web-soon__orb--2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #6D28D9 0%, transparent 70%);
  bottom: -10%; right: -10%;
  animation: webOrbDrift 26s ease-in-out infinite reverse;
}

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

.web-soon__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.web-soon .container { position: relative; z-index: 1; }

/* Pill badge */
.web-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(167,139,250,0.1));
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 20px rgba(124,58,237,0.25);
}

.web-pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #A78BFA;
  box-shadow: 0 0 12px #A78BFA;
  animation: vpPulse 1.6s ease-in-out infinite;
}

/* Showcase area with browser + floating chips */
.web-showcase {
  position: relative;
  max-width: 880px;
  margin: 3rem auto 4rem;
  padding: 2rem 1rem;
}

/* Browser mockup */
.web-browser {
  position: relative;
  background: linear-gradient(180deg, rgba(20,16,42,0.85), rgba(9,7,26,0.95));
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(124,58,237,0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.web-browser__chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(124,58,237,0.15);
}

.web-browser__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.web-browser__dot--r { background: #EF4444; }
.web-browser__dot--y { background: #F59E0B; }
.web-browser__dot--g { background: #10B981; }

.web-browser__url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  margin: 0 0.75rem;
  font-size: 0.78rem;
  color: var(--accent-light);
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.web-browser__live {
  font-size: 0.7rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.web-browser__screen {
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 280px;
}

.web-browser__sidebar {
  background: rgba(124,58,237,0.04);
  border-right: 1px solid rgba(124,58,237,0.1);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}
.web-browser__sidebar span {
  width: 28px; height: 28px;
  background: rgba(124,58,237,0.15);
  border-radius: 6px;
}
.web-browser__sidebar span:nth-child(1) { background: rgba(124,58,237,0.35); }

.web-browser__canvas {
  padding: 1rem;
  position: relative;
}
.web-browser__canvas svg { width: 100%; height: auto; display: block; }

/* Live collab cursors */
.web-cursor {
  opacity: 0;
}
.web-cursor--1 {
  animation: webCursorMove1 8s ease-in-out infinite;
}
.web-cursor--2 {
  animation: webCursorMove2 8s ease-in-out 1.5s infinite;
}
@keyframes webCursorMove1 {
  0%   { opacity: 0; transform: translate(80px, 50px); }
  10%  { opacity: 1; }
  50%  { transform: translate(190px, 90px); opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translate(220px, 140px); }
}
@keyframes webCursorMove2 {
  0%   { opacity: 0; transform: translate(250px, 130px); }
  10%  { opacity: 1; }
  50%  { transform: translate(140px, 80px); opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translate(60px, 60px); }
}

/* Floating device chips */
.web-device {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  background: rgba(20,16,42,0.85);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 20px rgba(124,58,237,0.12);
  z-index: 2;
  white-space: nowrap;
}
.web-device svg { color: var(--accent-light); }

.web-device--win    { top: 5%;  left: -3%;  animation: webFloat 6s ease-in-out infinite; }
.web-device--linux  { top: 25%; right: -3%; animation: webFloat 7s ease-in-out 1s infinite; }
.web-device--android{ bottom: 18%; left: -2%; animation: webFloat 7.5s ease-in-out 2s infinite; }
.web-device--chrome { bottom: 0%; right: -2%; animation: webFloat 6.5s ease-in-out 0.5s infinite; }

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

/* Features grid */
.web-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.web-feat {
  background: rgba(20,16,42,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.web-feat:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3), 0 0 30px rgba(124,58,237,0.15);
}

.web-feat__icon {
  width: 44px; height: 44px;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(167,139,250,0.1));
  border-radius: 12px;
  color: var(--accent-light);
}

.web-feat h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.web-feat p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

/* CTA */
.web-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.btn-web {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #6D28D9, #7C3AED, #A78BFA);
  background-size: 200% 200%;
  color: #fff;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(124,58,237,0.4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-position 0.5s var(--ease);
}
.btn-web:hover {
  transform: translateY(-2px);
  background-position: 100% 100%;
  box-shadow: 0 12px 40px rgba(124,58,237,0.55);
}

.web-eta {
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 500;
}

/* Nav "Soon" tag */
.nav-web { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-soon, .nav-new {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(124,58,237,0.35);
}
.nav-new {
  background: linear-gradient(135deg, #10B981, #34D399);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
  animation: pulse-new 2s ease-in-out infinite;
}
@keyframes pulse-new {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Live web-app nav link */
.nav-web-live { color: var(--accent-light); font-weight: 700 !important; }
.nav-web-live:hover { color: #fff; }

/* "Launch Web App" header CTA */
.btn-nav-web {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}
.btn-nav-web:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5) !important;
}

/* Web section "Available Now" pill */
.web-pill-live {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(124, 58, 237, 0.18)) !important;
  color: #34D399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}
.web-pill-live .web-pill__dot {
  background: #10B981 !important;
  box-shadow: 0 0 8px #10B981, 0 0 16px rgba(16, 185, 129, 0.6) !important;
}

/* Web section CTA "Launch Web App" */
.btn-web-launch {
  background: linear-gradient(135deg, #7C3AED, #6D28D9) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.4) !important;
}
.btn-web-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.55) !important;
}
.btn-web-signup {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
}

/* News "Coming Soon" tag */
.news-tag-soon {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(167,139,250,0.15));
  color: var(--accent-light);
  border: 1px solid rgba(124,58,237,0.3);
}

.news-card--web {
  position: relative;
  overflow: hidden;
}
.news-card--web::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.news-card--web .news-card-inner {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Responsive */
@media (max-width: 960px) {
  .web-features { grid-template-columns: repeat(2, 1fr); }
  .web-device--win    { top: 0; left: 2%; }
  .web-device--linux  { top: 12%; right: 2%; }
  .web-device--android{ bottom: 8%; left: 2%; }
  .web-device--chrome { bottom: 0; right: 2%; }
}

@media (max-width: 640px) {
  .web-soon { padding: 4.5rem 0; }
  .web-showcase { margin: 2rem auto 3rem; padding: 1rem 0.5rem; }
  .web-features { grid-template-columns: 1fr; gap: 0.9rem; }
  .web-browser__live { display: none; }
  .web-browser__url { font-size: 0.7rem; padding: 0.25rem 0.5rem; margin: 0 0.4rem; }
  .web-browser__screen { min-height: 200px; grid-template-columns: 36px 1fr; }
  .web-browser__sidebar span { width: 22px; height: 22px; }
  .web-device { font-size: 0.72rem; padding: 0.4rem 0.7rem; }
  .web-device svg { width: 16px; height: 16px; }
  .web-device--win    { top: -8px; left: 4%; }
  .web-device--linux  { top: -8px; right: 4%; }
  .web-device--android{ bottom: -8px; left: 4%; }
  .web-device--chrome { bottom: -8px; right: 4%; }
  .btn-web { padding: 0.8rem 1.4rem; font-size: 0.88rem; }
}

/* RTL */
[dir="rtl"] .web-pill { flex-direction: row-reverse; }
[dir="rtl"] .web-feat { text-align: center; }
[dir="rtl"] .web-device--win    { left: auto; right: -3%; }
[dir="rtl"] .web-device--linux  { right: auto; left: -3%; }
[dir="rtl"] .web-device--android{ left: auto; right: -2%; }
[dir="rtl"] .web-device--chrome { right: auto; left: -2%; }
