/* Advance Vision Tech Solutions - 2026 Premium Tech Design System */

:root {
  /* Colors - Light Theme */
  --page-bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-subtle: rgba(37, 99, 235, 0.08);
  --glow: rgba(37, 99, 235, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --max-w: 1200px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #090e17;
    --surface: #101623;
    --surface-alt: #161e2e;
    --border: #1e293b;
    --border-strong: #334155;
    --ink: #ffffff;
    --text: #cbd5e1;
    --muted: #94a3b8;
    
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-subtle: rgba(59, 130, 246, 0.12);
    --glow: rgba(59, 130, 246, 0.25);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  }
}

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

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

body {
  background-color: var(--page-bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, 'Noto Sans Arabic', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1.5rem; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; margin-bottom: 1rem; }

p { margin-bottom: 1.5rem; font-size: 1.125rem; color: var(--text); }
p:last-child { margin-bottom: 0; }

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

a:hover, a:focus-visible {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

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

/* Container & Layout */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section--alt {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(248, 250, 252, 0.85); /* fallback */
  background-color: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.brand__mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--ink), var(--border-strong));
  color: var(--page-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
  box-shadow: var(--shadow-sm);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__text strong {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.site-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  transform-origin: left;
}

html[dir="rtl"] .site-nav a::after {
  transform-origin: right;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Actions & Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  line-height: 1.5;
}

.btn--primary {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--glow);
}

.btn--primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--glow);
}

.btn--secondary {
  background-color: var(--surface);
  color: var(--ink) !important;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background-color: var(--surface-alt);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.lang-toggle:hover {
  background-color: var(--surface-alt);
  border-color: var(--ink);
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  position: relative;
  background-color: var(--page-bg);
  overflow: hidden;
}

/* Subtle background glowing orb effect */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-subtle) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-subtle);
  border-radius: var(--radius-full);
}

.hero-copy p {
  color: var(--text);
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
}

.action-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Services Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.glass-card, .service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.glass-card:hover, .service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.service-card span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 1.5rem;
  background-color: var(--primary-subtle);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

/* Method List */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.method-list article {
  padding: 2.5rem;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.method-list article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.method-list span {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  display: block;
  margin-bottom: 0.75rem;
}

/* Lists */
.check-list {
  list-style: none;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.check-list li {
  position: relative;
  padding-inline-start: 2rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: var(--text);
}

.check-list li::before {
  content: '→';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

html[dir="rtl"] .check-list li::before {
  content: '←';
}

/* Support Cards */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

/* Contact Details Block */
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.125rem;
}

.contact-detail a {
  color: var(--ink);
}

.contact-detail a:hover {
  color: var(--primary);
}

.contact-section {
  background-color: var(--surface-alt);
  padding: 7rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-section p {
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Legal Pages */
.legal-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 110px;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.legal-aside h3 {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.legal-aside a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: all var(--transition-fast);
}

.legal-aside a:hover, .legal-aside a.active {
  background-color: var(--surface-alt);
  color: var(--ink);
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-md);
}

.legal-content h2 {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p, .legal-content li { color: var(--text); }

.notice {
  background: var(--primary-subtle);
  border-left: 4px solid var(--primary);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2.5rem 0;
}

html[dir="rtl"] .notice {
  border-left: none;
  border-right: 4px solid var(--primary);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.notice strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

/* Feature Layer (Veylora Product) */
.feature-layer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 8rem;
}

.feature-layer:nth-child(even) { direction: rtl; }
.feature-layer:nth-child(even) .layer-content { direction: ltr; }
html[dir="rtl"] .feature-layer:nth-child(even) .layer-content { direction: rtl; }

.layer-image {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Pricing Page */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  border-top: 4px solid var(--primary);
  padding: 4rem;
}

/* Footer */
.site-footer {
  background-color: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 6rem 0 3rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--ink);
}

.footer-brand p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 320px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact h3, .footer-links h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer-contact a, .footer-contact span {
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-list a {
  color: var(--muted);
  font-weight: 500;
}

.footer-links-list a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .method-grid { grid-template-columns: 1fr; gap: 4rem; }
  .feature-layer { grid-template-columns: 1fr; gap: 3rem; }
  .feature-layer:nth-child(even) { direction: ltr; }
  html[dir="rtl"] .feature-layer:nth-child(even) { direction: rtl; }
  .legal-grid { grid-template-columns: 1fr; gap: 3rem; }
  .legal-aside {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem;
    white-space: nowrap;
  }
  .legal-aside h3 { display: none; }
  .legal-aside a { margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-shell { flex-wrap: wrap; height: auto; padding: 1.5rem 0; gap: 1.5rem; }
  .site-nav { order: 3; width: 100%; justify-content: center; overflow-x: auto; padding: 0.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .footer-brand, .footer-contact, .footer-links { align-items: center; }
  .footer-brand p { max-width: none; }
  .footer-bottom { justify-content: center; text-align: center; }
  .board-grid { grid-template-columns: 1fr; }
  .board-grid div { border-right: none !important; border-left: none !important; border-bottom: 1px solid var(--border); }
  .board-grid div:last-child { border-bottom: none; }
  .method-list { grid-template-columns: 1fr; }
  .hero { padding: 6rem 0 4rem; }
  .section { padding: 4rem 0; }
  .legal-content { padding: 2rem; }
  .pricing-card { padding: 2rem; }
}

/* Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Trust & Polish UI Enhancements
   ========================================================================== */

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

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

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 25px 30px -5px rgba(37, 211, 102, 0.4);
  color: #ffffff;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  fill: currentColor;
}

/* Legal Pages Typography Polish */
.legal-content h2 {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.legal-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  color: var(--text);
}

.legal-content .check-list {
  margin-bottom: 2.5rem;
}

.legal-content .check-list li {
  line-height: 1.7;
  margin-bottom: 0.875rem;
  font-size: 1.0625rem;
}

/* Data Deletion Status Timeline UI */
.status-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 3rem 0;
  padding: 0 1rem;
}

.status-timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

html[dir="rtl"] .status-timeline::before {
  right: 2rem;
  left: 2rem;
}

.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  width: 33%;
}

.timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--muted);
  transition: all var(--transition-normal);
}

.timeline-step.active .timeline-icon {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--primary-subtle);
}

.timeline-step.completed .timeline-icon {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

.timeline-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.timeline-step.active .timeline-label {
  color: var(--ink);
}

.timeline-step.completed .timeline-label {
  color: var(--ink);
}

.success-checkmark {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-checkmark svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@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; }
  
  .status-timeline { flex-direction: column; gap: 2rem; align-items: flex-start; }
  .status-timeline::before {
    top: 0; bottom: 0; left: 24px; width: 2px; height: auto; right: auto;
  }
  html[dir="rtl"] .status-timeline::before {
    right: 24px; left: auto;
  }
  .timeline-step { flex-direction: row; width: 100%; text-align: left; }
  html[dir="rtl"] .timeline-step { text-align: right; }
}

/* ==========================================================================
   Global Icon & Image Constraints (Safety)
   ========================================================================== */
img, svg {
  max-width: 100%;
  height: auto;
}
.btn svg, .icon, .timeline-icon svg {
  max-width: 100%;
  max-height: 100%;
}
