:root {
  --bg: #f4fbf1;
  --bg-soft: #edf8ee;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #17352b;
  --muted: #537468;
  --primary: #2d8c5b;
  --primary-dark: #175238;
  --secondary: #84c6a2;
  --accent: #73b9b0;
  --accent-soft: rgba(115, 185, 176, 0.16);
  --line: rgba(24, 82, 55, 0.12);
  --shadow: 0 22px 60px rgba(26, 82, 55, 0.13);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  font-family: "Tajawal", sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(132, 198, 162, 0.25), transparent 20%),
    radial-gradient(circle at 82% 10%, rgba(115, 185, 176, 0.2), transparent 18%),
    radial-gradient(circle at 50% 80%, rgba(167, 224, 186, 0.18), transparent 24%),
    linear-gradient(180deg, #fbfffb 0%, #f2fbf4 44%, #edf8ef 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}

body::before {
  background:
    linear-gradient(rgba(45, 140, 91, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 140, 91, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.25;
}

body::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 100%);
  background-size: 22px 22px;
  opacity: 0.17;
}

img {
  width: 100%;
  display: block;
}

 a {
  text-decoration: none;
}

.microscope-stage {
  position: fixed;
  inset: -12% -8%;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
  filter: saturate(1.02);
}

.organelle {
  position: absolute;
  opacity: 0.44;
  transform-origin: center;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.membrane {
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.78), rgba(156, 220, 183, 0.18) 46%, rgba(115, 185, 176, 0.14) 72%, transparent 73%),
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(52, 133, 89, 0.16) 56% 61%, transparent 62%),
    radial-gradient(circle at 50% 50%, transparent 68%, rgba(35, 104, 70, 0.16) 69% 72%, transparent 73%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 18px rgba(132, 198, 162, 0.16);
}

.nucleus {
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 38%, rgba(255, 255, 255, 0.66), rgba(151, 188, 205, 0.26) 50%, rgba(103, 137, 161, 0.18) 100%);
  border: 1px solid rgba(83, 116, 104, 0.18);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2), 0 0 22px rgba(103, 137, 161, 0.08);
}

.nucleus::before {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 101, 120, 0.42), rgba(60, 79, 95, 0.18));
  box-shadow: 0 0 12px rgba(60, 79, 95, 0.12);
}

.mitochondria {
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 210, 146, 0.66), rgba(238, 160, 114, 0.36)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent);
  border: 1px solid rgba(178, 106, 71, 0.18);
  box-shadow: 0 10px 18px rgba(196, 132, 82, 0.08);
}

.mitochondria::before {
  content: "";
  position: absolute;
  inset: 16% 12%;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 7%,
      rgba(146, 77, 43, 0.32) 7% 12%,
      transparent 12% 19%,
      rgba(173, 90, 48, 0.28) 19% 24%,
      transparent 24% 32%);
  transform: skewY(-8deg);
}

.chloroplast {
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(134, 220, 134, 0.5), rgba(62, 162, 90, 0.35));
  border: 1px solid rgba(40, 112, 57, 0.18);
  box-shadow: 0 8px 20px rgba(56, 151, 84, 0.1);
}

.chloroplast::before {
  content: "";
  position: absolute;
  inset: 20% 14%;
  border-radius: 999px;
  background:
    repeating-linear-gradient(0deg,
      rgba(29, 104, 55, 0.28) 0 7%,
      transparent 7% 16%,
      rgba(33, 122, 63, 0.22) 16% 23%,
      transparent 23% 32%);
}

.er {
  background: transparent;
}

.er::before,
.er::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 46% 54% 44% 56% / 52% 42% 58% 48%;
  border: 2px solid rgba(98, 166, 142, 0.24);
  border-top-color: rgba(98, 166, 142, 0.48);
  border-bottom-color: rgba(98, 166, 142, 0.12);
  filter: blur(0.1px);
}

.er::after {
  inset: 12% 10%;
  border-radius: 54% 46% 58% 42% / 46% 54% 44% 56%;
  border-width: 1.5px;
}

.ribosome {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 136, 97, 0.6), rgba(56, 136, 97, 0.2));
  box-shadow:
    14px -10px 0 -2px rgba(56, 136, 97, 0.28),
    -16px 12px 0 -3px rgba(56, 136, 97, 0.26),
    22px 16px 0 -5px rgba(115, 185, 176, 0.24),
    -20px -14px 0 -4px rgba(115, 185, 176, 0.22);
}

.membrane-1 { width: 250px; height: 250px; top: 8%; right: 4%; animation: drift-right 26s infinite, pulse-soft 8s infinite; }
.nucleus-1 { width: 130px; height: 130px; top: 12%; right: 22%; animation: drift-left 21s infinite, pulse-soft 7s infinite; }
.mitochondria-1 { width: 140px; height: 70px; top: 22%; right: 50%; animation: drift-diagonal 24s infinite, pulse-soft 9s infinite; }
.chloroplast-1 { width: 170px; height: 82px; top: 14%; left: 12%; animation: drift-right 28s infinite, pulse-soft 8s infinite; }
.er-1 { width: 240px; height: 140px; top: 34%; left: 4%; animation: drift-left 30s infinite, pulse-soft 10s infinite; }
.ribosome-1 { width: 14px; height: 14px; top: 18%; left: 37%; animation: float-up 11s infinite; }

.membrane-2 { width: 210px; height: 210px; top: 44%; right: 6%; animation: drift-left 31s infinite, pulse-soft 9s infinite; }
.nucleus-2 { width: 114px; height: 114px; top: 48%; right: 25%; animation: drift-right 25s infinite, pulse-soft 8s infinite; }
.mitochondria-2 { width: 118px; height: 60px; top: 58%; right: 44%; animation: drift-right 19s infinite, pulse-soft 6s infinite; }
.chloroplast-2 { width: 145px; height: 72px; top: 64%; left: 16%; animation: drift-diagonal 27s infinite, pulse-soft 11s infinite; }
.er-2 { width: 220px; height: 126px; top: 60%; left: 42%; animation: drift-right 32s infinite, pulse-soft 11s infinite; }
.ribosome-2 { width: 11px; height: 11px; top: 52%; left: 78%; animation: float-up 9s infinite; }

.membrane-3 { width: 180px; height: 180px; bottom: 10%; right: 32%; animation: drift-diagonal 34s infinite, pulse-soft 7s infinite; }
.nucleus-3 { width: 102px; height: 102px; bottom: 18%; left: 46%; animation: drift-left 23s infinite, pulse-soft 10s infinite; }
.mitochondria-3 { width: 126px; height: 64px; bottom: 28%; left: 22%; animation: drift-left 22s infinite, pulse-soft 7s infinite; }
.chloroplast-3 { width: 138px; height: 68px; bottom: 12%; left: 8%; animation: drift-right 20s infinite, pulse-soft 9s infinite; }
.er-3 { width: 210px; height: 132px; bottom: 6%; right: 0%; animation: drift-left 29s infinite, pulse-soft 12s infinite; }
.ribosome-3 { width: 16px; height: 16px; bottom: 20%; right: 14%; animation: float-up 10s infinite; }

.membrane-4 { width: 160px; height: 160px; top: 32%; left: 30%; animation: drift-right 18s infinite, pulse-soft 6s infinite; }
.nucleus-4 { width: 92px; height: 92px; top: 72%; right: 64%; animation: drift-diagonal 26s infinite, pulse-soft 9s infinite; }
.mitochondria-4 { width: 102px; height: 52px; top: 8%; left: 60%; animation: drift-left 20s infinite, pulse-soft 8s infinite; }
.chloroplast-4 { width: 124px; height: 58px; top: 38%; right: 68%; animation: drift-diagonal 16s infinite, pulse-soft 7s infinite; }
.er-4 { width: 180px; height: 120px; top: 78%; left: 70%; animation: drift-right 33s infinite, pulse-soft 9s infinite; }
.ribosome-4 { width: 12px; height: 12px; top: 36%; right: 40%; animation: float-up 8s infinite; }
.ribosome-5 { width: 10px; height: 10px; bottom: 34%; left: 62%; animation: float-up 12s infinite; }
.ribosome-6 { width: 13px; height: 13px; bottom: 8%; left: 76%; animation: float-up 7s infinite; }

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 30px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.hero,
.highlight-box,
.footer,
.product-card {
  backdrop-filter: blur(16px);
}

.hero {
  position: relative;
  padding: 26px;
  border-radius: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.88), rgba(241, 251, 243, 0.7)),
    radial-gradient(circle at top right, rgba(132, 198, 162, 0.14), transparent 34%);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(115, 185, 176, 0.12), transparent 16%),
    radial-gradient(circle at 82% 72%, rgba(132, 198, 162, 0.12), transparent 18%),
    radial-gradient(circle at 64% 18%, rgba(45, 140, 91, 0.08), transparent 14%);
  opacity: 0.9;
}

.topbar,
.hero-grid,
.section-heading,
.product-grid,
.highlights,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark,
.brand-kicker,
.eyebrow,
.section-badge,
.product-tag,
.card-chip,
.highlight-box span,
.topbar-links a {
  font-family: "Orbitron", sans-serif;
}

.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f7fffa;
  font-size: 1.05rem;
  letter-spacing: 1.4px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 16px 35px rgba(29, 103, 63, 0.24);
}

.brand h1,
.brand p {
  margin: 0;
}

.brand h1 {
  font-size: clamp(1.5rem, 2vw, 1.95rem);
}

.brand-kicker {
  font-size: 0.66rem;
  letter-spacing: 1px;
  color: var(--muted);
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-links a {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(45, 140, 91, 0.1);
  border: 1px solid rgba(45, 140, 91, 0.14);
  font-size: 0.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: center;
}

.hero-copy {
  padding: 14px 6px 14px 0;
}

.eyebrow,
.section-badge,
.product-tag,
.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  color: var(--primary-dark);
  background: rgba(45, 140, 91, 0.09);
  border: 1px solid rgba(45, 140, 91, 0.1);
}

.hero-copy h2 {
  margin: 20px 0 16px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.12;
}

.hero-copy h2 span {
  color: var(--primary);
}

.hero-copy p,
.section-heading p,
.product-content p,
.highlight-box p,
.footer p,
.footer li,
.hero-card-body p {
  color: var(--muted);
  line-height: 1.95;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.hero-points div,
.hero-stats div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(45, 140, 91, 0.1);
  box-shadow: 0 14px 30px rgba(29, 103, 63, 0.06);
}

.hero-points div {
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 0.96rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-width: 164px;
  padding: 14px 22px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 16px 30px rgba(24, 92, 56, 0.26);
}

.button.secondary {
  color: var(--primary-dark);
  background: rgba(115, 185, 176, 0.12);
  border: 1px solid rgba(115, 185, 176, 0.3);
}

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

.hero-stats div {
  border-radius: 24px;
  padding: 18px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.hero-stats span {
  color: var(--muted);
  line-height: 1.75;
}

.hero-visual {
  position: relative;
  min-height: 610px;
}

.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 48px rgba(26, 82, 55, 0.14);
}

.hero-card img {
  height: 100%;
  object-fit: cover;
}

.main-card {
  inset: 48px 22px 52px 90px;
}

.main-card img {
  height: 420px;
}

.hero-card-body {
  padding: 18px 18px 20px;
}

.hero-card-body h3 {
  margin: 12px 0 10px;
  font-size: 1.35rem;
}

.card-chip {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.76);
}

.floating-card {
  width: 180px;
  height: 180px;
}

.floating-card img {
  height: 100%;
}

.card-lab {
  top: 0;
  left: 8px;
  animation: float-card 7s ease-in-out infinite;
}

.card-plant {
  bottom: 4px;
  right: 0;
  animation: float-card 8.5s ease-in-out infinite reverse;
}

.section-heading {
  text-align: center;
  padding: 58px 10px 26px;
}

.section-heading h3 {
  margin: 18px 0 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(26, 82, 55, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 54px rgba(26, 82, 55, 0.14);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08));
  border: 1px dashed rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.24);
}

.product-image img {
  height: 270px;
  object-fit: cover;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-content h4 {
  margin: 14px 0 10px;
  font-size: 1.24rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.product-meta strong {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.product-meta a {
  color: var(--primary);
  font-weight: 800;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.highlight-box,
.footer {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(26, 82, 55, 0.08);
}

.highlight-box {
  padding: 24px;
  border-radius: 28px;
}

.highlight-box span {
  color: var(--primary);
  font-size: 0.78rem;
}

.highlight-box h5,
.footer h6 {
  margin: 14px 0 10px;
  font-size: 1.15rem;
}

.footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 28px;
  border-radius: 30px;
  margin-top: 34px;
}

.footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

@keyframes drift-right {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  30% { transform: translate3d(38px, -24px, 0) rotate(10deg) scale(1.04); }
  60% { transform: translate3d(68px, 16px, 0) rotate(18deg) scale(0.97); }
}

@keyframes drift-left {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  35% { transform: translate3d(-46px, 24px, 0) rotate(-12deg) scale(1.03); }
  70% { transform: translate3d(-70px, -18px, 0) rotate(-18deg) scale(0.95); }
}

@keyframes drift-diagonal {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(30px, -26px, 0) rotate(8deg); }
  55% { transform: translate3d(-20px, 38px, 0) rotate(-12deg); }
  80% { transform: translate3d(42px, 24px, 0) rotate(10deg); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.3; filter: blur(0); }
  50% { opacity: 0.52; filter: blur(0.3px); }
}

@keyframes rotate-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes tilt-float {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-14px); }
}

@keyframes float-up {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.25; }
  50% { transform: translateY(-18px) scale(1.14); opacity: 0.5; }
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@media (max-width: 1080px) {
  .hero-grid,
  .product-grid,
  .highlights,
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: 560px;
  }

  .main-card {
    inset: 58px 10px 54px 54px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 12px;
  }

  .hero {
    padding: 18px;
    border-radius: 30px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .product-grid,
  .highlights,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: 2.35rem;
  }

  .hero-visual {
    min-height: 520px;
  }

  .main-card {
    inset: 54px 0 70px 0;
  }

  .main-card img {
    height: 320px;
  }

  .floating-card {
    width: 132px;
    height: 132px;
  }

  .card-lab {
    top: 8px;
    left: 10px;
  }

  .card-plant {
    bottom: 12px;
    right: 10px;
  }

  .product-image img {
    height: 230px;
  }

  .product-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .microscope-stage {
    inset: -20% -16%;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    font-size: 0.9rem;
  }

  .hero-copy h2 {
    font-size: 2rem;
  }

  .button {
    width: 100%;
  }

  .hero-points,
  .hero-actions {
    flex-direction: column;
  }

  .hero-stats div,
  .highlight-box,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .main-card {
    inset: 48px 0 86px 0;
  }

  .main-card img {
    height: 280px;
  }
}
