* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Vazirmatn", "IRANSans", "Segoe UI", Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(14, 165, 95, 0.12), transparent 50%),
              linear-gradient(180deg, #f9fffb 0%, #ebfff3 45%, #f6fff8 100%);
  color: #0b3d2e;
  display: flex;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  position: relative;
  overflow-x: hidden;
}

.background-art {
  position: fixed;
  inset: -20%;
  background: radial-gradient(circle at 30% 20%, rgba(34, 197, 94, 0.2), transparent 55%),
              radial-gradient(circle at 80% 0%, rgba(74, 222, 128, 0.22), transparent 55%),
              radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.7), transparent 40%);
  filter: blur(80px);
  opacity: 0.9;
  z-index: 0;
}

.page {
  position: relative;
  width: min(1100px, 100%);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 40px;
  padding: clamp(32px, 5vw, 64px);
  box-shadow:
    0 35px 80px rgba(16, 185, 129, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.back-chip {
  position: absolute;
  top: 24px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(16, 185, 129, 0.2);
  text-decoration: none;
  color: #047857;
  font-weight: 600;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.back-chip span {
  font-size: 1rem;
}

.back-chip:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 16px 35px rgba(16, 185, 129, 0.35);
}

.intro {
  margin-top: 48px;
  margin-bottom: 40px;
}

.intro__eyebrow {
  letter-spacing: 0.5em;
  font-size: 0.85rem;
  color: #23a36e;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.intro h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
  color: #065f46;
}

.intro__lede {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #134e42;
  max-width: 720px;
}

.erosion-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.erosion-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 20px 55px rgba(5, 150, 105, 0.12);
  position: relative;
  overflow: hidden;
}

.erosion-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--flare-x, 70%) var(--flare-y, 20%),
              rgba(134, 239, 172, 0.4), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.erosion-card:nth-child(odd) {
  --flare-x: 80%;
  --flare-y: 30%;
}

.erosion-card:nth-child(even) {
  --flare-x: 20%;
  --flare-y: 70%;
}

.card-text {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4);
}

.card-text h2 {
  font-size: 1.6rem;
  color: #065f46;
  margin-bottom: 16px;
}

.card-text p {
  color: #134e42;
  line-height: 1.9;
  font-size: 1rem;
}

.card-note {
  margin-top: 12px;
  font-weight: 600;
  color: #047857;
}

.card-figure {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 25px 40px rgba(4, 120, 87, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  z-index: 1;
}

.card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.card-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 60%);
  pointer-events: none;
}

.erosion-card:hover .card-figure img {
  transform: scale(1.05);
}

.zoom-link {
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.lightbox--green {
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.25), transparent 65%),
    rgba(15, 23, 42, 0.85);
}

.lightbox:target {
  display: flex;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.lightbox__content {
  position: relative;
  max-width: min(960px, 96vw);
  max-height: 88vh;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(187, 247, 208, 0.3), rgba(15, 23, 42, 0.95));
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.6),
    0 0 0 1px rgba(240, 253, 244, 0.25);
}

.lightbox__content img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 12px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 253, 244, 0.9);
  color: #047857;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.5);
}

.lightbox__close:hover {
  background: #bbf7d0;
}

@media (max-width: 768px) {
  .back-chip {
    position: static;
    margin-bottom: 16px;
  }
  .intro {
    margin-top: 16px;
  }
  .erosion-card {
    grid-template-columns: 1fr;
  }
}

