/* ===================================================================
   SOLVIATECH (solviatech.org) — UNIFIED MULTI-PRODUCT STYLESHEET
   Palette: Paper (#f4f1e6) + Deep Ink (#121711) + Electric Lime (#d6ff4b)
   Supports seamless RTL (Arabic) & LTR (English)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Readex+Pro:wght@300;400;500;600;700&display=swap');

:root {
  --paper: #f4f1e6;
  --paper-bright: #fbf9f2;
  --paper-deep: #e8e4d7;
  --paper-card: #ffffff;
  --ink: #121711;
  --ink-2: #1b231a;
  --ink-soft: #273126;
  --lime: #d6ff4b;
  --lime-soft: #efffc0;
  --lime-ink: #2f4507;
  --core-accent: #10b981;
  --alban-accent: #0284c7;
  --diag-accent: #4f46e5;
  --muted: #5d6559;
  --muted-dark: #8c9787;
  --line: rgba(18, 23, 17, 0.12);
  --line-strong: rgba(18, 23, 17, 0.24);
  --line-light: rgba(244, 241, 230, 0.16);
  --font-display: 'Readex Pro', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Readex Pro', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --container: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 22px 48px -24px rgba(18, 23, 17, 0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="ltr"] body { direction: ltr; text-align: left; font-family: 'Plus Jakarta Sans', 'Readex Pro', sans-serif; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ================= Header & Navigation ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(244, 241, 230, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 12px 32px -14px rgba(18, 23, 17, 0.14); }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -6px rgba(18, 23, 17, 0.35);
}
.brand-title { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; line-height: 1.15; }
.brand-sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.18s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-start: 0;
  min-width: 265px;
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s var(--ease);
  z-index: 150;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.15s;
}
.dropdown-item:hover { background: var(--paper); }
.dropdown-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dropdown-item strong { display: block; font-size: 13.5px; color: var(--ink); }
.dropdown-item span { display: block; font-size: 11.5px; color: var(--muted); }

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper-card);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  transition: all 0.2s;
}
.lang-toggle:hover { background: var(--ink); color: var(--lime); border-color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(18, 23, 17, 0.35); }
.btn-lime { background: var(--lime); color: var(--ink); border: 1px solid rgba(18, 23, 17, 0.15); }
.btn-lime:hover { background: #e3ff73; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(214, 255, 75, 0.55); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); background: rgba(18, 23, 17, 0.05); }
.btn-light-outline { background: rgba(255, 255, 255, 0.08); color: var(--paper); border: 1px solid rgba(255, 255, 255, 0.24); }
.btn-light-outline:hover { background: rgba(255, 255, 255, 0.16); border-color: var(--lime); color: var(--lime); }

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.mobile-drawer {
  display: none;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  background: var(--paper-bright);
}
.mobile-drawer.active { display: block; }
.mobile-drawer-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.mobile-drawer-links a { font-weight: 700; padding: 8px 10px; border-radius: 8px; }
.mobile-drawer-links a:hover { background: var(--paper-deep); }

/* ================= Badges & Section Headers ================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--core-accent); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16); }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 42px;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-desc {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}
.section-dark .section-desc { color: var(--muted-dark); }
.highlight-lime {
  background: var(--lime);
  color: var(--ink);
  padding: 0 10px;
  border-radius: 8px;
  display: inline-block;
}

/* ================= Hero Layout ================= */
.hero {
  padding: clamp(42px, 6vw, 80px) 0 clamp(48px, 6vw, 84px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}
.hero-title {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.hero-desc {
  font-size: clamp(15.5px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.hero-stat span { font-size: 12.5px; color: var(--muted); }

/* ================= Product Switcher Panel / Dark Showcase ================= */
.showcase-panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 64px -26px rgba(18, 23, 17, 0.45);
}
.showcase-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-light);
}
.win-dots { display: flex; gap: 6px; }
.win-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.win-dots span:first-child { background: #ef4444; }
.win-dots span:nth-child(2) { background: #f59e0b; }
.win-dots span:nth-child(3) { background: #10b981; }
.domain-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--lime);
  background: rgba(214, 255, 75, 0.1);
  border: 1px solid rgba(214, 255, 75, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
}

.eco-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.eco-tab {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(244, 241, 230, 0.78);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
}
.eco-tab.active { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.eco-pane { display: none; }
.eco-pane.active { display: block; animation: fadeUp 0.28s var(--ease); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.mini-metric {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
}
.mini-metric small { display: block; font-size: 11.5px; color: var(--muted-dark); margin-bottom: 4px; }
.mini-metric strong { font-size: 16px; color: var(--lime); font-family: var(--font-mono); }

/* ================= Product Grid Cards ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}
.product-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: rgba(214, 255, 75, 0.3);
}
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.product-title { font-size: 24px; font-weight: 800; margin: 12px 0 8px; }
.product-summary { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.product-card.featured .product-summary { color: rgba(244, 241, 230, 0.78); }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 14px 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
}
.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 3px;
}
.product-card.featured .check-icon { background: rgba(214, 255, 75, 0.16); color: var(--lime); }

.card-footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.product-card.featured .card-footer-actions { border-top-color: var(--line-light); }

/* ================= Features & Grids ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.section-dark .feature-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.feature-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lime-soft);
  color: var(--lime-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.section-dark .feature-ico { background: rgba(214, 255, 75, 0.14); color: var(--lime); }
.feature-card h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }
.section-dark .feature-card p { color: rgba(244, 241, 230, 0.72); }

/* ================= Screenshots & Media ================= */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.shot-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
}
.shot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.shot-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.shot-card .shot-caption { padding: 12px 14px; font-size: 13.5px; font-weight: 700; }

.video-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0b0e0a;
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.55);
}
.video-frame video { width: 100%; max-height: 540px; display: block; background: #000; }

/* ================= Quote Builder / Custom Software ================= */
.builder-box {
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 22px; }
.scope-chip {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.18s;
}
.scope-chip.selected {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
}

/* ================= Pricing Cards ================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.price-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.price-card.popular {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--lime);
}
.price-amount {
  font-size: 34px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin: 10px 0;
}
.price-card.popular .price-amount { color: var(--lime); }

/* ================= Diagnostic Sample Table & AlbanPro Sim ================= */
.sim-card {
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.sim-field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.sim-field input, .sim-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper-bright);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}
.table-scroll { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { background: var(--ink); color: var(--paper); padding: 12px 14px; text-align: start; font-weight: 700; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--paper-card); }
.data-table tr:nth-child(even) td { background: var(--paper-bright); }
.pill-ok {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 12px;
}

/* ================= FAQ ================= */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15.5px;
  font-weight: 700;
  text-align: start;
  color: var(--ink);
}
.faq-icon { font-family: var(--font-mono); font-size: 20px; transition: transform 0.2s; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 14.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.faq-item.active .faq-answer { display: block; }

/* ================= CTA Banner & Footer ================= */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  margin: 40px auto;
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; margin-bottom: 12px; }
.cta-banner p { color: var(--muted-dark); max-width: 620px; margin: 0 auto 24px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 28px;
  background: var(--paper-bright);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 34px;
}
.footer-col-title { font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ================= Lightbox Modal ================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 11, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 500;
}
.lightbox.active { display: flex; }
.lightbox-inner {
  max-width: 1080px;
  width: 100%;
  background: var(--ink);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.lightbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--paper);
  padding-bottom: 10px;
  font-weight: 700;
}
.lightbox-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
}
.lightbox-inner img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 10px; }

/* ================= Floating WhatsApp Button ================= */
.wa-float {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 200;
  background: #16a34a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 28px -8px rgba(22, 163, 74, 0.55);
  transition: transform 0.2s;
}
.wa-float:hover { transform: translateY(-2px) scale(1.02); }

/* ================= Responsive Breakpoints ================= */
@media (max-width: 980px) {
  .hero-grid, .products-grid, .features-grid, .pricing-grid, .builder-box, .screenshots-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-desktop-cta { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .eco-tabs { grid-template-columns: 1fr; }
}
