/* Lab2000+MB LIS Promotional Website — Vibrant Light & Dark Design System */

:root {
  --bg-page: #f4f7ff;
  --bg-surface: rgba(255, 255, 255, 0.86);
  --bg-surface-solid: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.96);
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-subtle: rgba(99, 102, 241, 0.16);
  --border-strong: rgba(99, 102, 241, 0.34);
  --shadow-card: 0 20px 50px -15px rgba(30, 41, 59, 0.12), 0 4px 16px rgba(99, 102, 241, 0.08);
  --shadow-glow: 0 24px 64px -12px rgba(79, 70, 229, 0.25);

  --accent-primary: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --mb-grad: linear-gradient(135deg, #f43f5e 0%, #f59e0b 55%, #ec4899 100%);
  --hero-grad: linear-gradient(135deg, #4f46e5 0%, #06b6d4 52%, #ec4899 100%);
  --pill-bg: rgba(79, 70, 229, 0.09);
  --nav-bg: rgba(248, 250, 255, 0.78);
}

[data-theme="dark"] {
  --bg-page: #060916;
  --bg-surface: rgba(15, 23, 42, 0.78);
  --bg-surface-solid: #0f172a;
  --bg-elevated: rgba(19, 28, 52, 0.92);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-subtle: rgba(129, 140, 248, 0.2);
  --border-strong: rgba(56, 189, 248, 0.42);
  --shadow-card: 0 24px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(129, 140, 248, 0.14);
  --shadow-glow: 0 28px 80px -12px rgba(34, 211, 238, 0.28);

  --accent-primary: #818cf8;
  --accent-cyan: #22d3ee;
  --accent-violet: #a78bfa;
  --accent-pink: #fb7185;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;

  --mb-grad: linear-gradient(135deg, #ff4d79 0%, #fbbf24 55%, #38bdf8 100%);
  --hero-grad: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #f472b6 100%);
  --pill-bg: rgba(56, 189, 248, 0.12);
  --nav-bg: rgba(6, 9, 22, 0.78);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', 'Cairo', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.3s ease;
}

html[dir="rtl"] body {
  font-family: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Ambient Mesh Orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.36;
  animation: orbFloat 16s ease-in-out infinite alternate;
}
[data-theme="dark"] .orb { opacity: 0.26; }
.orb-1 { width: 540px; height: 540px; top: -140px; left: -120px; background: radial-gradient(circle, #4f46e5, transparent 70%); }
.orb-2 { width: 480px; height: 480px; top: 18%; right: -140px; background: radial-gradient(circle, #06b6d4, transparent 70%); animation-delay: -5s; }
.orb-3 { width: 520px; height: 520px; bottom: -160px; left: 28%; background: radial-gradient(circle, #ec4899, transparent 70%); animation-delay: -10s; }

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35px, 28px) scale(1.08); }
}

/* Signature Brand Title: Lab2000+MB LIS with italic colored MB */
.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  font-weight: 800;
  letter-spacing: -0.025em;
  direction: ltr;
  unicode-bidi: isolate;
}
.brand-core {
  background: var(--hero-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-mb {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.12em;
  letter-spacing: 0.01em;
  background: var(--mb-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-inline-end: 0.08em;
  text-shadow: 0 0 28px rgba(244, 63, 94, 0.22);
}
.brand-lis {
  font-weight: 800;
  color: var(--text-main);
  opacity: 0.9;
}

/* Sticky Frosted Navbar */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-link-item {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.nav-link-item:hover {
  color: var(--text-main);
  background: var(--pill-bg);
}

.ctrl-pill {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-weight: 700;
  font-size: 0.83rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
}
.ctrl-pill:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.2);
}

/* Gradient Buttons */
.btn-vibrant {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 55%, #ec4899 100%);
  background-size: 160% 160%;
  color: #fff !important;
  border: none;
  font-weight: 700;
  border-radius: 14px;
  padding: 0.82rem 1.55rem;
  box-shadow: 0 14px 32px -8px rgba(79, 70, 229, 0.5);
  transition: all 0.28s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.btn-vibrant:hover {
  background-position: 100% 0%;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -8px rgba(236, 72, 153, 0.5);
}

.btn-glass {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-main) !important;
  font-weight: 700;
  border-radius: 14px;
  padding: 0.82rem 1.45rem;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.btn-glass:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}
.hero-badge-wrap {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3b30, #ff9500, #ffcc00, #34c759, #06b6d4, #6366f1, #ec4899, #ff3b30);
  background-size: 300% 300%;
  animation: rainbowBorderFlow 6s linear infinite;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.22);
}
.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #131c31 0%, #1e1b4b 55%, #172554 100%);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
  color: var(--accent-primary);
}
html[data-bs-theme="light"] .hero-badge {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 55%, #ecfeff 100%);
}
.hero-legacy-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3b30, #ff9500, #ffcc00, #34c759, #06b6d4, #6366f1, #ec4899, #ff3b30);
  background-size: 300% 300%;
  animation: rainbowBorderFlow 6s linear infinite;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
@keyframes rainbowBorderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.rainbow-heritage-wrap {
  max-width: 880px;
  padding: 2.5px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ff3b30, #ff9500, #ffcc00, #34c759, #06b6d4, #6366f1, #ec4899, #ff3b30);
  background-size: 300% 300%;
  animation: rainbowBorderFlow 6s linear infinite;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.22);
}
.rainbow-heritage-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.25rem 1.75rem;
  border-radius: 17.5px;
  background: linear-gradient(135deg, #131c31 0%, #1e1b4b 55%, #172554 100%);
  text-align: center;
}
html[data-bs-theme="light"] .rainbow-heritage-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 55%, #ecfeff 100%);
}
.dr-banner-wrap {
  padding: 2px;
  border-radius: 22px;
  background: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #10b981 100%);
  box-shadow: 0 14px 36px rgba(6, 182, 212, 0.22);
}
.dr-banner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.6rem 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #172554 55%, #0f2942 100%);
}
html[data-bs-theme="light"] .dr-banner {
  background: linear-gradient(135deg, #ffffff 0%, #ecfeff 55%, #eef2ff 100%);
}
.dr-icon-orb {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.35);
  flex-shrink: 0;
}
.dr-pill {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
html[data-bs-theme="light"] .dr-pill {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
@media (max-width: 767px) {
  .dr-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.35rem 1.25rem;
  }
}
.rainbow-heritage-icon {
  font-size: 1.4rem;
  background: linear-gradient(135deg, #06b6d4, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.rainbow-heritage-text {
  font-family: 'Georgia', 'Cairo', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-main);
}
.hero-title {
  font-size: clamp(2.15rem, 4.3vw, 3.6rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.grad-text {
  background: var(--hero-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero Visual Frame & Diagonal Split Showcase */
.hero-frame {
  position: relative;
  border-radius: 22px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(6, 182, 212, 0.45), rgba(236, 72, 153, 0.45));
  box-shadow: var(--shadow-glow);
}
.hero-frame-inner {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: #0b1120;
}
.hero-frame-inner img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}
.hero-frame-inner img:hover {
  transform: scale(1.015);
}

.split-tag {
  position: absolute;
  top: 14px;
  z-index: 5;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
.split-tag-light { left: 14px; background: rgba(255, 255, 255, 0.92); color: #0f172a; border: 1px solid rgba(99, 102, 241, 0.25); }
.split-tag-dark  { right: 14px; background: rgba(15, 23, 42, 0.9); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }

.floating-chip {
  position: absolute;
  z-index: 6;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 0.65rem 0.95rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.chip-1 { bottom: -18px; left: 20px; }
.chip-2 { bottom: -18px; right: 20px; }

/* Metrics Ribbon */
.stat-glass {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 1.35rem 1.2rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.stat-glass:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--hero-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Interactive Screenshot Tabs & Diagonal Live Comparator */
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.showcase-tab-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 0.65rem 1.2rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.24s ease;
}
.showcase-tab-btn:hover { border-color: var(--accent-primary); transform: translateY(-1px); }
.showcase-tab-btn.active {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 26px -6px rgba(79, 70, 229, 0.5);
}

/* Live Interactive Diagonal Comparator Container */
.diag-compare-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  background: #090d1c;
}
.diag-compare-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.diag-dark-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Dynamically updated via JS --split-pct */
  clip-path: polygon(calc(var(--split-pct, 50%) + 12%) 0%, 100% 0%, 100% 100%, calc(var(--split-pct, 50%) - 12%) 100%);
}
.diag-range-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.diag-range-input {
  max-width: 340px;
  accent-color: var(--accent-cyan);
  cursor: ew-resize;
}

/* Feature Cards & Pillar Tabs */
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: 1.7rem;
  box-shadow: var(--shadow-card);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.glass-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, var(--hero-grad));
}

.icon-orb {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 1.05rem;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.3);
}
.orb-indigo  { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.orb-cyan    { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.orb-pink    { background: linear-gradient(135deg, #db2777, #fb7185); }
.orb-emerald { background: linear-gradient(135deg, #059669, #34d399); }
.orb-amber   { background: linear-gradient(135deg, #d97706, #fbbf24); }
.orb-violet  { background: linear-gradient(135deg, #7c3aed, #c084fc); }

.feature-ul {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
}
.feature-ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}
.feature-ul li i {
  color: var(--accent-emerald);
  margin-top: 0.28rem;
  flex-shrink: 0;
}

/* Architecture Flow Nodes */
.arch-node {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  height: 100%;
}
.arch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-cyan);
}
html[dir="rtl"] .arch-arrow i {
  transform: scaleX(-1);
}

/* Contact Banner */
.contact-banner {
  border-radius: 28px;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 42%, #0e7490 78%, #9d174d 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 70px -15px rgba(79, 70, 229, 0.5);
}
.contact-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.16), transparent 45%);
  pointer-events: none;
}
.contact-chip {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  border-radius: 16px;
  padding: 0.95rem 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}
.contact-chip:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Section Headings */
.sec-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--accent-cyan);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
}
.sec-title {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery Thumbnails & Multi-Device Mockup */
.thumb-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 0.55rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
}
.thumb-card:hover, .thumb-card.active-thumb {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.thumb-card img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  display: block;
}

.device-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.2rem;
  padding: 1rem 0.5rem 0.5rem;
}
.mockup-tablet {
  flex: 1 1 68%;
  max-width: 520px;
  background: #0b1120;
  border: 3px solid rgba(148, 163, 184, 0.35);
  border-radius: 20px;
  padding: 8px;
  box-shadow: var(--shadow-glow);
}
.mockup-phone {
  flex: 0 0 30%;
  max-width: 185px;
  background: #0b1120;
  border: 3px solid rgba(56, 189, 248, 0.5);
  border-radius: 24px;
  padding: 7px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  transform: translateY(10px);
}
.mockup-screen {
  border-radius: 13px;
  overflow: hidden;
  background: #0f172a;
}
.mockup-screen img {
  width: 100%;
  height: auto;
  display: block;
}
.badge-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.proto-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .floating-chip { display: none; }
  .arch-arrow { transform: rotate(90deg); padding: 0.5rem 0; }
  html[dir="rtl"] .arch-arrow { transform: rotate(90deg); }
}
