/* =========================================================
   MikroCards Public Site — Enhanced UI
   Mobile-first, smooth animations, glassmorphism
   ========================================================= */

/* ---- Design Tokens ---- */
:root {
  --bg: #f6f8fb;
  --bg-soft: #eef3f7;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-muted: rgba(246, 248, 251, 0.92);
  --text: #0f172a;
  --text-soft: #334155;
  --text-muted: #64748b;
  --line: rgba(15, 23, 42, 0.07);
  --line-strong: rgba(14, 165, 233, 0.35);
  --accent: #0ea5e9;
  --accent-strong: #0284c7;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.12);
  --warm: #f59e0b;
  --warm-soft: rgba(245, 158, 11, 0.12);
  --blue-soft: rgba(30, 64, 175, 0.08);
  --shadow-hero: 0 28px 80px rgba(15, 23, 42, 0.22);
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.07);
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.15);
  --radius-2xl: 32px;
  --radius-xl: 26px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background: linear-gradient(180deg, #fbfcfd 0%, #f5f8fb 40%, #edf3f7 100%);
  font-family: "Tajawal", "Segoe UI", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Ambient Background ---- */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28), transparent 70%);
  top: -180px;
  right: -120px;
  animation: orbFloat 14s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: orbFloat 16s ease-in-out infinite reverse;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14), transparent 70%);
  top: 40%;
  left: 30%;
  animation: orbFloat 18s ease-in-out infinite 2s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ---- Keyframes ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeInBlur {
  from { opacity: 0; filter: blur(8px); transform: translateY(16px); }
  to   { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(20px, -20px) scale(1.04); }
  50%      { transform: translate(-10px, 10px) scale(0.98); }
  75%      { transform: translate(15px, 15px) scale(1.02); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.7) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.12); }
  50%      { box-shadow: 0 0 40px rgba(14, 165, 233, 0.28); }
}

@keyframes badgePulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.03); }
}

@keyframes borderShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Scroll Reveal States ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---- Site Shell ---- */
.site-shell {
  position: relative;
  width: min(1280px, calc(100% - 24px));
  margin: 16px auto 80px;
  z-index: 1;
}

/* ---- Hero ---- */
.hero-section {
  position: relative;
  animation: fadeInUp 0.9s var(--transition-smooth) both;
}

.hero-surface {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(520px, 72vh, 720px);
  padding: 16px 16px 24px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10, 18, 26, 0.58) 0%, rgba(10, 18, 26, 0.28) 42%, rgba(12, 74, 68, 0.40) 100%),
    url("/static/public/hero-network-systems-v1.png") center center / cover no-repeat;
  box-shadow: var(--shadow-hero);
  transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
}

.hero-surface:hover {
  transform: translateY(-2px);
  box-shadow: 0 36px 100px rgba(15, 23, 42, 0.28);
}

.hero-surface::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #2bd4c7, #f59e0b, #0ea5e9, #8b5cf6);
  background-size: 300% 100%;
  animation: borderShimmer 5s linear infinite;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 25%, rgba(5, 10, 18, 0.42) 70%, rgba(5, 10, 18, 0.72) 100%);
  pointer-events: none;
}

/* ---- Navigation ---- */
.top-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: auto;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(24px) saturate(1.3);
  animation: fadeInUp 0.7s var(--transition-smooth) 0.15s both;
  transition: all 0.35s var(--transition-smooth);
}

.top-nav:hover {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.14);
}

.top-nav.scrolled {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 24px));
  border-radius: 16px;
  padding: 10px 16px;
  z-index: 50;
  animation: fadeInScale 0.4s var(--transition-smooth) both;
}

.brand-lockup strong {
  display: block;
  font-family: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, var(--accent-strong), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--transition-smooth);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.15);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.menu-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text-soft);
  border-radius: 2px;
  transition: all 0.35s var(--transition-bounce);
  transform-origin: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 23, 42, 0.05);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), var(--violet-soft));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-2px);
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(14, 165, 233, 0.25);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.14);
  outline: none;
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
  opacity: 1;
}

.nav-link span,
.nav-link {
  position: relative;
  z-index: 1;
}

/* ---- Hero Copy ---- */
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 80px 6px 0;
  animation: fadeInBlur 1s var(--transition-smooth) 0.25s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
  animation: fadeInUp 0.7s var(--transition-smooth) 0.3s both, badgePulse 3s ease-in-out infinite 1.2s;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2bd4c7;
  box-shadow: 0 0 10px #2bd4c7;
  animation: badgePulse 2s ease-in-out infinite;
}

.hero-copy h1 {
  margin: 0 0 16px;
  max-width: 13ch;
  color: #ffffff;
  font-family: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 0.98;
  text-shadow: 0 16px 40px rgba(4, 8, 15, 0.45);
  animation: fadeInUp 0.9s var(--transition-smooth) 0.35s both;
  letter-spacing: -0.03em;
}

.hero-copy p {
  max-width: 56ch;
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: rgba(245, 248, 252, 0.9);
  line-height: 1.85;
  animation: fadeInUp 0.9s var(--transition-smooth) 0.45s both;
}

/* ---- Buttons ---- */
.hero-actions,
.card-actions,
.contact-links,
.team-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
  animation: fadeInUp 0.9s var(--transition-smooth) 0.55s both;
}

.primary-link,
.secondary-link,
.contact-link,
.team-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: all 0.3s var(--transition-bounce);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.link-arrow {
  display: inline-block;
  transition: transform 0.3s var(--transition-bounce);
}

.primary-link:hover .link-arrow {
  transform: translateX(-4px);
}

.primary-link::before,
.secondary-link::before,
.contact-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.primary-link:hover::before,
.secondary-link:hover::before,
.contact-link:hover::before {
  transform: translateX(100%);
}

.primary-link:hover,
.secondary-link:hover,
.contact-link:hover,
.team-links a:hover {
  transform: translateY(-3px) scale(1.02);
}

.primary-link {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.28), 0 0 0 1px rgba(255,255,255,0.12) inset;
}

.primary-link:hover {
  box-shadow: 0 20px 44px rgba(14, 165, 233, 0.38), 0 0 24px rgba(14, 165, 233, 0.22);
}

.secondary-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.08);
}

.hero-actions .primary-link {
  box-shadow: 0 18px 36px rgba(3, 10, 18, 0.28), 0 0 0 1px rgba(255,255,255,0.12) inset;
}

.hero-actions .primary-link:hover {
  box-shadow: 0 24px 52px rgba(3, 10, 18, 0.34), 0 0 36px rgba(14, 165, 233, 0.28);
}

.hero-actions .secondary-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.hero-actions .secondary-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
}

/* Magnetic button effect wrapper */
.magnetic {
  transition: transform 0.2s var(--transition-smooth);
}

/* ---- Stats Band ---- */
.hero-stats-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
  animation: fadeInUp 0.9s var(--transition-smooth) 0.65s both;
}

.hero-band-card {
  min-height: 120px;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px) saturate(1.2);
  transition: all 0.35s var(--transition-bounce);
  animation: fadeInScale 0.6s var(--transition-smooth) both;
  position: relative;
  overflow: hidden;
}

.hero-band-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.hero-band-card:nth-child(1) { animation-delay: 0.75s; }
.hero-band-card:nth-child(2) { animation-delay: 0.85s; }
.hero-band-card:nth-child(3) { animation-delay: 0.95s; }
.hero-band-card:nth-child(4) { animation-delay: 1.05s; }

.hero-band-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.18);
  border-color: var(--line-strong);
}

.hero-band-card:hover::before {
  opacity: 1;
}

.hero-band-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-band-card strong {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-strong), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countUp 0.7s var(--transition-bounce) both;
}

/* ---- Content Stack ---- */
.content-stack {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 52px;
}

.content-card {
  position: relative;
  scroll-margin-top: 120px;
}

.content-card + .content-card {
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), var(--violet-soft));
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  letter-spacing: 0.02em;
}

.section-heading h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  line-height: 1.08;
  position: relative;
  letter-spacing: -0.02em;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  border-radius: 2px;
  transition: width 0.4s var(--transition-bounce);
}

.content-card.revealed .section-heading h2::after {
  width: 72px;
}

.section-copy {
  margin: 0;
  max-width: 68ch;
  color: var(--text-muted);
  line-height: 1.95;
}

/* ---- About ---- */
.about-layout {
  display: block;
}

.about-copy-wrap {
  max-width: 74ch;
  padding: 14px 0 0;
}

.about-copy {
  margin: 0;
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  line-height: 2.1;
  color: var(--text-soft);
}

/* ---- Products ---- */
.products-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 22px;
  align-items: start;
  direction: ltr;
}

.featured-product-wrap {
  min-height: 100%;
}

.featured-product-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  min-height: 100%;
  padding: 26px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  direction: ltr;
  transition: all 0.45s var(--transition-bounce);
}

.featured-product-card:hover {
  transform: translateY(-5px) scale(1.005);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.16);
  border-color: var(--line-strong);
}

.featured-product-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--warm), var(--violet));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

.featured-product-visual,
.featured-product-copy {
  position: relative;
  z-index: 1;
}

.featured-product-visual {
  display: flex;
  align-items: stretch;
  min-height: 340px;
}

.featured-preview-frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #ecf3f7;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: transform 0.5s var(--transition-bounce);
}

.featured-product-card:hover .featured-preview-frame {
  transform: scale(1.03) rotate(-0.5deg);
}

.featured-preview-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.featured-preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.12);
  transition: transform 0.3s var(--transition-bounce);
}

.featured-product-card:hover .featured-preview-topbar span:nth-child(1) { transform: translateY(-2px); }
.featured-product-card:hover .featured-preview-topbar span:nth-child(2) { transform: translateY(-2px); transition-delay: 0.05s; }
.featured-product-card:hover .featured-preview-topbar span:nth-child(3) { transform: translateY(-2px); transition-delay: 0.1s; }

.featured-preview-topbar span:first-child {
  background: rgba(14, 165, 233, 0.72);
}

.featured-preview-topbar span:nth-child(2) {
  background: rgba(245, 158, 11, 0.72);
}

.featured-preview-topbar span:nth-child(3) {
  background: rgba(139, 92, 246, 0.7);
}

.featured-preview-image {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--transition-smooth);
}

.featured-product-card:hover .featured-preview-image {
  transform: scale(1.04);
}

.featured-product-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  direction: rtl;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.card-head h3,
.promo-card h3,
.team-card-item h3 {
  margin: 0;
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", sans-serif;
  line-height: 1.18;
}

.card-head-featured h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.card-head-featured p,
.featured-product-card p {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.85;
}

.featured-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.featured-meta-item {
  min-height: 100px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 249, 0.98));
  border: 1px solid rgba(15, 23, 42, 0.07);
  transition: all 0.35s var(--transition-bounce);
}

.featured-meta-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.12);
  border-color: var(--line-strong);
}

.featured-meta-item span {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.featured-meta-item strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.featured-product-card .card-actions {
  margin-top: auto;
  padding-top: 24px;
}

/* ---- Grids ---- */
.card-grid,
.promo-grid,
.team-grid {
  display: grid;
  gap: 20px;
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.product-card,
.promo-card,
.team-card-item {
  position: relative;
  min-height: 100%;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: all 0.4s var(--transition-bounce);
}

.product-card:hover,
.promo-card:hover,
.team-card-item:hover {
  transform: translateY(-7px) scale(1.01);
  border-color: var(--line-strong);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.14), var(--shadow-glow);
}

.product-card::before,
.promo-card::before,
.team-card-item::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  opacity: 0.7;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.product-card:hover::before,
.promo-card:hover::before,
.team-card-item:hover::before {
  opacity: 1;
  height: 4px;
}

.product-card h3 {
  font-size: 1.25rem;
}

.product-card p {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.85;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), var(--violet-soft));
  color: var(--accent-strong);
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid rgba(14, 165, 233, 0.15);
  transition: all 0.3s var(--transition-bounce);
}

.card-badge:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.22);
}

.card-meta {
  margin-top: 14px;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.95rem;
}

.card-actions {
  margin-top: 18px;
}

/* ---- Promotions ---- */
.promo-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.promo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 251, 0.95));
}

.promo-card h3 {
  font-size: 1.35rem;
}

.promo-card p {
  margin: 14px 0 0;
  color: var(--text-muted);
  line-height: 1.85;
}

.promo-card .primary-link {
  margin-top: 24px;
  align-self: flex-start;
}

/* ---- Team ---- */
.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.team-card-item {
  text-align: right;
}

.avatar-frame {
  width: 88px;
  aspect-ratio: 1 / 1;
  margin: 0 0 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(139, 92, 246, 0.12));
  color: var(--accent-strong);
  font-family: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.16);
  transition: all 0.45s var(--transition-bounce);
}

.team-card-item:hover .avatar-frame {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.28);
  border-color: rgba(139, 92, 246, 0.35);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition-smooth);
}

.team-card-item:hover .avatar-frame img {
  transform: scale(1.1);
}

.team-card-item h3 {
  font-size: 1.25rem;
}

.team-card-item strong {
  display: block;
  margin-top: 10px;
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.team-card-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.85;
}

.team-links {
  margin-top: 18px;
}

.team-links a {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(139, 92, 246, 0.08));
  border-color: rgba(14, 165, 233, 0.12);
  color: var(--accent-strong);
  padding: 8px 18px;
  min-height: 40px;
  font-size: 0.92rem;
}

.team-links a:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(139, 92, 246, 0.16));
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.18);
}

/* ---- Contact ---- */
.contact-card {
  padding-bottom: 8px;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, #0f172a 0%, #1e293b 58%, #0f172a 100%);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(255,255,255,0.05) inset;
  transition: all 0.45s var(--transition-smooth);
}

.contact-panel:hover {
  box-shadow: 0 36px 88px rgba(15, 23, 42, 0.30), 0 0 48px rgba(14, 165, 233, 0.10);
  transform: translateY(-3px);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 96%, rgba(255, 255, 255, 0.06) 100%),
    linear-gradient(90deg, transparent 96%, rgba(255, 255, 255, 0.06) 100%);
  background-size: 82px 82px;
  opacity: 0.28;
  pointer-events: none;
}

.contact-panel::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.07) 0%, transparent 60%);
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}

.contact-panel .section-heading,
.contact-copy {
  position: relative;
  z-index: 1;
}

.contact-panel .section-heading h2 {
  color: #ffffff;
}

.contact-panel .section-heading h2::after {
  background: linear-gradient(90deg, var(--accent), var(--violet));
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 64ch;
}

.contact-links {
  gap: 14px;
}

.contact-link {
  min-width: 140px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.22);
}

.footer-note {
  margin: 0;
  max-width: 58ch;
  color: rgba(236, 242, 246, 0.82);
  line-height: 1.85;
}

/* ---- Empty State ---- */
.empty-state-public {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 28px;
  border-radius: 22px;
  border: 1.5px dashed rgba(14, 165, 233, 0.22);
  background: rgba(255, 255, 255, 0.75);
  text-align: center;
  backdrop-filter: blur(10px);
  color: var(--text-muted);
  font-weight: 500;
  animation: fadeInScale 0.5s var(--transition-smooth) both;
}

/* ---- Flash Toast ---- */
.public-flash {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(420px, calc(100% - 36px));
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fdfa, #e0f2fe);
  color: var(--accent-strong);
  border: 1px solid rgba(14, 165, 233, 0.25);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12), 0 0 24px rgba(14, 165, 233, 0.12);
  animation: fadeInUp 0.5s var(--transition-bounce) both;
  font-weight: 500;
  line-height: 1.6;
}

/* ---- Skeleton Loading ---- */
.skeleton {
  background: linear-gradient(90deg, rgba(15,23,42,0.05) 25%, rgba(15,23,42,0.10) 50%, rgba(15,23,42,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

/* =========================================================
   RESPONSIVE — Tablet
   ========================================================= */
@media (max-width: 1120px) {
  .hero-stats-band,
  .featured-meta-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-layout,
  .featured-product-card {
    grid-template-columns: 1fr;
  }

  .featured-product-visual {
    min-height: 300px;
  }
}

/* =========================================================
   RESPONSIVE — Mobile Landscape / Small Tablet
   ========================================================= */
@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 20px, 1280px);
    margin-top: 12px;
  }

  .hero-surface {
    min-height: 600px;
    padding: 14px 14px 20px;
    border-radius: 28px;
  }

  .hero-copy {
    padding-top: 70px;
  }

  .content-stack {
    gap: 52px;
    margin-top: 40px;
  }

  .content-card + .content-card {
    padding-top: 48px;
  }
}

/* =========================================================
   RESPONSIVE — Mobile Portrait (Primary)
   ========================================================= */
@media (max-width: 720px) {
  :root {
    --radius-2xl: 24px;
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 14px;
    --radius-sm: 12px;
  }

  .site-shell {
    width: min(100% - 16px, 1280px);
    margin-top: 10px;
    margin-bottom: 60px;
  }

  /* Hero mobile */
  .hero-surface {
    min-height: auto;
    padding: 14px 14px 22px;
    border-radius: 24px;
  }

  .hero-copy {
    max-width: 100%;
    padding-top: 50px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 11vw, 3.6rem);
    line-height: 1.05;
    margin-bottom: 14px;
  }

  .hero-badge {
    font-size: 0.82rem;
    padding: 6px 14px;
    margin-bottom: 14px;
  }

  .hero-copy p {
    font-size: 1rem;
    line-height: 1.75;
  }

  /* Mobile Menu */
  .menu-toggle {
    display: flex;
  }

  .top-nav {
    flex-wrap: wrap;
    padding: 10px 12px;
    border-radius: 16px;
    gap: 10px;
  }

  .top-nav.scrolled {
    width: min(100% - 16px, 1280px);
    border-radius: 14px;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 6px;
    padding-top: 6px;
    animation: fadeInUp 0.35s var(--transition-smooth) both;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    min-height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
  }

  /* Stats mobile */
  .hero-stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .hero-band-card {
    min-height: auto;
    padding: 16px 14px;
    border-radius: 16px;
  }

  .hero-band-card strong {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-top: 10px;
  }

  .hero-band-card span {
    font-size: 0.82rem;
  }

  /* Actions mobile */
  .hero-actions,
  .card-actions,
  .contact-links,
  .team-links {
    width: 100%;
  }

  .primary-link,
  .secondary-link,
  .contact-link,
  .team-links a {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
  }

  /* Content mobile */
  .content-stack {
    gap: 44px;
    margin-top: 32px;
  }

  .content-card + .content-card {
    padding-top: 38px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .section-label {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  /* Products mobile */
  .featured-product-card,
  .product-card,
  .promo-card,
  .team-card-item,
  .contact-panel {
    padding: 18px;
    border-radius: var(--radius-lg);
  }

  .featured-product-visual {
    min-height: 220px;
  }

  .featured-preview-frame {
    border-radius: 16px;
  }

  .featured-meta-grid,
  .compact-grid,
  .promo-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .compact-grid {
    grid-template-columns: 1fr;
  }

  .featured-meta-item {
    padding: 14px;
    min-height: auto;
  }

  .card-head-featured h3 {
    font-size: 1.5rem;
  }

  /* Team mobile */
  .avatar-frame {
    width: 72px;
    font-size: 1.3rem;
  }

  .team-card-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .team-links {
    justify-content: center;
  }

  /* Contact mobile */
  .contact-panel {
    padding: 24px 20px;
  }

  .contact-links {
    gap: 10px;
  }

  /* Ambient orbs mobile */
  .orb-1 { width: 300px; height: 300px; top: -80px; right: -80px; }
  .orb-2 { width: 250px; height: 250px; bottom: -60px; left: -60px; }
  .orb-3 { width: 200px; height: 200px; }
}

@media (max-width: 480px) {
  .hero-stats-band {
    grid-template-columns: 1fr;
  }

  .hero-band-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
  }

  .hero-band-card strong {
    margin-top: 0;
    font-size: 1.6rem;
  }
}

/* =========================================================
   SCROLLBAR
   ========================================================= */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(14, 165, 233, 0.28);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 165, 233, 0.48);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 165, 233, 0.28) transparent;
}
