/* =====================================================================
   Advance Vision Tech — Premium Design System
   ===================================================================== */

/* ---- 1. Tokens ------------------------------------------------------ */
:root {
  /* Core Colors */
  --brand-primary: #3b82f6;
  --brand-secondary: #6366f1;
  --brand-accent: #06b6d4;
  --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #d946ef 100%);
  --brand-gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  
  /* Backgrounds & Surfaces */
  --bg-main: #030712;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --bg-glass: rgba(17, 24, 39, 0.65);
  
  /* Text Colors */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  --text-inverse: #030712;

  /* Status Colors */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(99, 102, 241, 0.4);

  /* Layout & Spacing */
  --container-width: 1280px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
  --shadow-glow-strong: 0 0 40px rgba(99, 102, 241, 0.3);

  /* Typography */
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-ar: 'Tajawal', system-ui, -apple-system, sans-serif;
}

/* ---- 2. Base & Resets ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
  scroll-padding-top: calc(var(--header-height) + 2rem); 
  background-color: var(--bg-main);
  color: var(--text-primary);
}
body {
  margin: 0;
  font-family: var(--font-en);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.8; }

h1, h2, h3, h4, h5, h6 { 
  margin: 0 0 1rem; 
  font-weight: 700; 
  line-height: 1.2; 
  color: var(--text-primary); 
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; }

p { margin: 0 0 1.25rem; color: var(--text-secondary); }
a { color: var(--brand-primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--brand-secondary); }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
::selection { background: rgba(99, 102, 241, 0.3); color: white; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--bg-surface-elevated); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* Progressive Reveal Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- 3. Layout & Typography Utils ----------------------------------- */
.container { 
  width: 100%; 
  max-width: var(--container-width); 
  margin: 0 auto; 
  padding: 0 clamp(1.5rem, 4vw, 3rem); 
}
.section { padding: clamp(5rem, 8vw, 8rem) 0; position: relative; }
.section--soft { background-color: var(--bg-surface); }
.section--glass { background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.section-head { 
  max-width: 800px; 
  margin: 0 auto clamp(3rem, 5vw, 5rem); 
  text-align: center; 
}
.section-head p { 
  font-size: 1.125rem; 
  color: var(--text-secondary); 
  margin-top: 1rem; 
}

.text-gradient { 
  background: var(--brand-gradient); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
  display: inline-block;
}

.eyebrow {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #818cf8;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
html[lang="ar"] .eyebrow { letter-spacing: 0.02em; }

/* ---- 4. Components: Buttons ----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn--primary:hover {
  box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.9), var(--shadow-glow);
  color: white;
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.btn--ghost { background: transparent; color: var(--text-primary); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); }

.btn--light { background: white; color: var(--text-inverse); }
.btn--light:hover { background: #f3f4f6; color: var(--text-inverse); }

.btn--lg { padding: 1.125rem 2.5rem; font-size: 1.125rem; }
.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; }

.action-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---- 5. Layout: Header & Navigation --------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(3, 7, 18, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(3, 7, 18, 0.85);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: white;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-glow);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand__text strong { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; }
.brand__text small { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-nav > a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.site-nav > a:hover { color: white; background: rgba(255, 255, 255, 0.05); }
.site-nav > a[aria-current="page"] { color: white; background: rgba(255, 255, 255, 0.1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.account-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-glow);
}

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-toggle:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle { display: none; }

/* ---- 6. Components: Cards & Grids ----------------------------------- */
.grid { display: grid; gap: 2rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.card--hover:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--bg-surface-elevated);
}
.card--hover:hover::before { opacity: 1; }

.num-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.card--hover:hover .num-chip {
  background: var(--brand-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.card h3 { margin-bottom: 1rem; font-size: 1.35rem; }
.card p { margin: 0; color: var(--text-secondary); font-size: 1.05rem; }

/* ---- 7. Hero Section ------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(30, 58, 138, 0.3), transparent 50%),
              radial-gradient(circle at bottom left, rgba(88, 28, 135, 0.2), transparent 50%);
}

.hero-bg-shapes {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-shapes .shape {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 20s infinite ease-in-out;
}
.hero-bg-shapes .shape-1 {
  top: -10%; right: -5%;
  width: 600px; height: 600px;
  background: rgba(59, 130, 246, 0.3);
}
.hero-bg-shapes .shape-2 {
  bottom: -10%; left: -10%;
  width: 500px; height: 500px;
  background: rgba(139, 92, 246, 0.25);
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(5%, 5%); }
  50% { transform: translate(-5%, 10%); }
  75% { transform: translate(-10%, -5%); }
}

.hero .container { position: relative; z-index: 10; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 1.5rem; }
.hero-lead { 
  font-size: 1.25rem; 
  color: var(--text-secondary); 
  max-width: 90%; 
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.hero-meta div { display: flex; flex-direction: column; gap: 0.25rem; }
.hero-meta strong { font-size: 1.75rem; color: white; font-weight: 800; line-height: 1; }
.hero-meta span { font-size: 0.9rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* Abstract Premium Mockup replacing old standard mockup */
.mockup {
  position: relative;
  width: 100%;
  padding-bottom: 80%;
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}
.mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.mockup__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 8px;
}
.mockup__bar i { width: 12px; height: 12px; border-radius: 50%; background: #374151; }
.mockup__bar i:nth-child(1) { background: #ef4444; }
.mockup__bar i:nth-child(2) { background: #f59e0b; }
.mockup__bar i:nth-child(3) { background: #10b981; }

.mockup__body {
  position: absolute;
  top: 48px; left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 80px 1fr;
}
.mockup__side {
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mockup__side b {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}
.mockup__side b:first-child { background: var(--brand-gradient); width: 80%; height: 32px; border-radius: 8px; margin-bottom: 1rem; }
.mockup__side b:nth-child(2) { background: rgba(255, 255, 255, 0.3); }

.mockup__main {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.mockup__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.mockup__kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.mockup__kpi::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--brand-gradient); opacity: 0.5;
}
.mockup__kpi span { display: block; height: 8px; width: 40%; background: rgba(255,255,255,0.2); border-radius: 4px; margin-bottom: 1rem; }
.mockup__kpi b { font-size: 1.5rem; color: white; font-weight: 700; }

.mockup__chart {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 2rem;
  position: relative;
}
.mockup__chart i {
  flex: 1;
  background: var(--brand-gradient);
  border-radius: 6px 6px 0 0;
  opacity: 0.8;
  position: relative;
  transition: height 1s ease;
}
.mockup__chart i::before {
  content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; background: rgba(255,255,255,0.8); border-radius: 50%; filter: blur(10px);
}
.mockup__chart i:nth-child(even) { opacity: 0.4; background: white; }

/* ---- 8. Split / Media Row ------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split--rev .split__media { order: -1; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.check-list li {
  position: relative;
  padding-inline-start: 2.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* ---- 9. CTA Band ---------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), var(--shadow-glow);
}
.cta-band::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: white; margin-bottom: 1.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.8); max-width: 600px; margin: 0 auto 2.5rem; font-size: 1.15rem; }
.cta-band .action-row { justify-content: center; }

/* ---- 10. Pricing ---------------------------------------------------- */
.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  background: var(--bg-surface-elevated);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
  z-index: 2;
}
.price-card--featured::before {
  content: 'POPULAR';
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--brand-gradient);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.price-amount {
  font-size: clamp(3rem, 4vw, 4.5rem);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.price-amount small {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.price-card .check-list {
  text-align: start;
  margin: 2.5rem 0;
  flex-grow: 1;
}
.price-card .btn { width: 100%; }

/* ---- 11. Footer ----------------------------------------------------- */
.site-footer {
  background: #030712;
  border-top: 1px solid transparent;
  position: relative;
  padding-top: 5rem;
  color: var(--text-tertiary);
  overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), transparent);
}
.site-footer::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 80%; height: 300px;
  background: radial-gradient(ellipse at top, rgba(99,102,241,0.08), transparent 70%);
  pointer-events: none;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; padding-bottom: 4rem; position: relative; z-index: 1; }
.footer-mission { margin-top: 1.5rem; max-width: 320px; color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; }
.footer-col h4 { color: white; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; font-weight: 700; }
.footer-col a, .footer-col span { display: block; color: var(--text-secondary); margin-bottom: 1.2rem; font-size: 0.95rem; transition: all 0.3s ease; }
.footer-contact-link { display: inline-flex !important; align-items: center; gap: 0.75rem; width: fit-content; word-break: break-word; text-decoration: none; }
.footer-contact-link svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 0; }
.contact-text { direction: ltr; unicode-bidi: isolate; text-align: left; }
.footer-col a:hover { color: white; transform: translateX(5px); }
html[dir="rtl"] .footer-col a:hover { transform: translateX(-5px); }

.social { display: flex; gap: 1rem; margin-top: 2rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); color: var(--text-secondary); transition: all 0.3s ease; }
.social a:hover { background: var(--brand-primary); color: white; border-color: transparent; transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-glow); }

.footer-bottom { border-top: 1px solid var(--border-subtle); padding: 2rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; font-size: 0.9rem; position: relative; z-index: 1; }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { color: var(--text-tertiary); transition: color 0.3s ease; }
.footer-legal a:hover { color: white; }
.footer-status { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1rem; background: rgba(16,185,129,0.05); border: 1px solid rgba(16,185,129,0.1); border-radius: var(--radius-pill); color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; }
.status-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); position: relative; }
.status-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }

/* ---- 12. Billing Hooks Preservation (DO NOT REMOVE) ----------------- */
.billing-wrap { max-width: 500px; margin: 0 auto; }
.billing-panel {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.billing-panel::before {
  content: ""; display: block; height: 4px; border-radius: var(--radius-pill);
  background: var(--brand-gradient); width: 60px; margin-bottom: 2rem;
}
.billing-root { display: flex; flex-direction: column; gap: 1.25rem; }
.billing-root h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: white; }
.billing-input {
  width: 100%; padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: white; font-size: 1rem; font-family: inherit;
  transition: all 0.3s ease;
}
.billing-input::placeholder { color: var(--text-tertiary); }
.billing-input:focus-visible { border-color: var(--brand-primary); box-shadow: var(--shadow-glow); outline: none; }
.billing-status { margin-top: 0.5rem; font-size: 0.9rem; min-height: 1.2em; }
.billing-status--ok { color: var(--success); }
.billing-status--error { color: var(--error); }
.billing-muted { color: var(--text-secondary); font-size: 0.95rem; }
.billing-link { color: var(--brand-accent); font-weight: 600; cursor: pointer; transition: color 0.2s; }
.billing-link:hover { color: white; text-decoration: underline; }
.billing-note { text-align: center; color: var(--text-tertiary); font-size: 0.85rem; margin-top: 2rem; }

/* ---- 13. WhatsApp Float --------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.whatsapp-float:hover { transform: scale(1.1) translateY(-5px); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6); color: white; }
.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; }

/* ---- 14. Prose & Legal ---------------------------------------------- */
.page-head {
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: var(--bg-surface);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}
.page-head p { max-width: 600px; margin: 0 auto; font-size: 1.15rem; }

.legal-layout { display: grid; grid-template-columns: 280px 1fr; gap: 4rem; }
.legal-aside { position: sticky; top: calc(var(--header-height) + 2rem); }
.legal-aside h4 { color: var(--text-tertiary); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.legal-aside a { display: block; padding: 0.5rem 0; color: var(--text-secondary); font-weight: 500; border-left: 2px solid transparent; padding-left: 1rem; margin-left: -1rem; }
.legal-aside a:hover { color: white; border-left-color: var(--brand-primary); }

.prose { max-width: 800px; }
.prose .updated { color: var(--brand-primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 2.5rem; display: inline-block; padding: 0.4rem 1rem; background: rgba(59, 130, 246, 0.1); border-radius: var(--radius-pill); }
.prose h2 { margin-top: 3rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-subtle); }
.prose p, .prose li { color: var(--text-secondary); font-size: 1.05rem; }

/* ---- 15. Responsive ------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin: 0 auto 2.5rem; }
  .hero-meta { justify-content: center; }
  .hero .action-row { justify-content: center; }
  .mockup { width: 80%; margin: 0 auto; padding-bottom: 60%; transform: none; }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split--rev .split__media { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-aside { display: none; }
  
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .nav-toggle span {
    display: block; width: 20px; height: 2px; background: white; margin: 0 auto;
    transition: all 0.3s ease; border-radius: 2px;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--bg-main);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: -1;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav > a { width: 100%; text-align: center; padding: 1rem; border-bottom: 1px solid var(--border-subtle); border-radius: 0; }
  .nav-actions { margin-left: auto; }
  
  .mockup { width: 100%; padding-bottom: 80%; }
}

@media (max-width: 480px) {
  .grid--2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-meta strong { font-size: 1.25rem; }
  .action-row { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
}

/* ---- 16. RTL Support ------------------------------------------------ */
html[dir="rtl"] .mockup { transform: perspective(1000px) rotateY(5deg) rotateX(5deg); }
html[dir="rtl"] .mockup:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
html[dir="rtl"] .check-list li::before { transform: scaleX(-1); }
html[dir="rtl"] .nav-actions { margin-left: 0; margin-right: auto; }
@media (max-width: 768px) {
  html[dir="rtl"] .nav-actions { margin-right: auto; margin-left: 0; }
}
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---- 17. Icon & Media Strict Restraints ----------------------------- */
.icon-chip svg { width: 24px; height: 24px; fill: none; stroke: currentColor; }
.status-icon svg { width: 48px; height: 48px; color: var(--success); margin: 0 auto 1.5rem; fill: none; stroke: currentColor; }
svg { max-width: 100%; height: auto; }

/* ---- 18. Advanced Polish Elements ----------------------------------- */
.bg-mesh { position: relative; }
.bg-mesh > * { position: relative; z-index: 1; }
.bg-mesh::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(99,102,241,0.1), transparent 70%),
              radial-gradient(circle at 100% 100%, rgba(139,92,246,0.1), transparent 50%);
}
.bg-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.15;
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(255,255,255,0.1) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,0.1) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
}
.premium-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-primary), #8b5cf6);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  margin-bottom: 1.5rem; position: relative;
  transition: all 0.3s ease;
}
.premium-icon::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: var(--shadow-glow); opacity: 0; z-index: -1;
  transition: opacity 0.3s ease;
}
.card--hover:hover .premium-icon { transform: translateY(-3px) scale(1.05); border-color: rgba(99,102,241,0.4); }
.card--hover:hover .premium-icon::after { opacity: 0.5; }
.premium-icon svg { width: 28px; height: 28px; color: #ffffff; }



@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
  }
  html[dir='rtl'] .whatsapp-float { left: 1.5rem; right: auto; }
  .whatsapp-float svg { width: 24px; height: 24px; max-width: 24px; max-height: 24px; }
}

img, svg {
  max-width: 100%;
  height: auto;
}
.btn svg, .icon, .timeline-icon svg {
  max-width: 100%;
  max-height: 100%;
}

/* ---- 14. Product status & product cards ----------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill--ready { color: var(--success); background: rgba(16, 185, 129, 0.10); border-color: rgba(16, 185, 129, 0.30); }
.status-pill--soon  { color: var(--warning); background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.30); }

/* Product cards used on the homepage + products hub */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card .check-list { flex-grow: 1; }
.product-card .action-row { margin-top: 1.5rem; }
.product-card--soon { opacity: 0.96; }
.product-card--soon .premium-icon { filter: grayscale(0.35); }

/* A disabled-looking, non-clickable "coming soon" marker (never a checkout link) */
.soon-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-tertiary);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

/* Pricing meta line under the amount */
.price-period { color: var(--text-secondary); font-weight: 500; font-size: 1rem; }
.price-monthly { color: var(--text-tertiary); font-size: 0.9rem; margin-top: -0.5rem; }

