#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(52, 86, 134, 0.18), transparent 40%),
    radial-gradient(circle at 20% 20%, rgba(72, 169, 166, 0.15), transparent 35%),
    linear-gradient(180deg, #e9f0f7 0%, #f4f7fb 55%, #ffffff 100%);
}

#webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding-bottom: 100px;
}

.hero-inner {
  max-width: 980px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.06);
  color: #90f3ff;
  font-size: 13px;
  margin-bottom: 18px;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.08);
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #ffffff 0%, #95ecff 60%, #49c7ff 100%);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 45px rgba(0, 229, 255, 0.18);
}

.hero-content p {
  max-width: 680px;
  margin: 20px auto 0;
  color: rgba(222, 244, 255, 0.78);
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.8;
}

.cta-row {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.hero-inner .btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-inner .btn-primary {
  background: #F7BE1B;
  color: #345686;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  transition: all .25s ease;
}

.hero-inner .btn-primary:hover {
  background: rgb(252, 236, 100);
  transform: translateY(-2px);
}

.hero-inner .btn-secondary {
  background: transparent;
  color: #345686c9;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  border: 2px solid #345686;
  transition: all .25s ease;
}

.hero-inner .btn-secondary:hover {
  background: rgba(204, 217, 235, 0.863);
  transform: translateY(-2px);
}

#tooltip {
  position: fixed;
  z-index: 20;
  min-width: 240px;
  max-width: 280px;
  display: none;
  pointer-events: none;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(20, 66, 100, 0.86);
  border: 1px solid rgba(221, 242, 245, 0.849);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 20px 70px rgba(0,0,0,0.4),
    0 0 45px rgba(0, 229, 255, 0.18);
  backdrop-filter: blur(18px);
  direction: ltr;
  text-align: right;
}

#tooltip .title {
  color: #7df3ff;
  font-weight: 900;
  margin-bottom: 8px;
}

#tooltip .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(236, 250, 255, 0.86);
  font-size: 13px;
  margin-top: 5px;
}

#tooltip .hint {
  margin-top: 10px;
  color: rgba(255,255,255,0.52);
  font-size: 12px;
}

#debug {
  position: fixed;
  z-index: 9999;
  left: 14px;
  bottom: 14px;
  max-width: 640px;
  display: none;
  direction: ltr;
  white-space: pre-wrap;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(120, 0, 0, 0.9);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
}

#caseSection {
  padding: 110px 22px 40px 22px;
}

.case-card {
  max-width: 1020px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
  border-radius: 34px;
  border: 1px solid rgba(180, 178, 178, 0.712);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
}

.case-label {
  color: #242424;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 14px;
}

.case-card h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.case-card p {
  color: rgba(8, 8, 8, 0.72);
  line-height: 1.9;
  text-align: justify;
  font-size: 17px;
}

.case-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.case-stat {
  padding: 22px;
  border-radius: 22px;
  background: rgba(247, 247, 247, 0.822);
  border: 1px solid rgba(200, 204, 204, 0.493);
}

.case-stat span {
  display: block;
  color: rgba(14, 62, 78, 0.58);
  font-size: 13px;
  margin-bottom: 8px;
}

.case-stat strong {
  display: block;
  font-size: 28px;
  color: #000;
}

.cta-box {
    background-color: #f8f9fa !important; /* رنگ دقیق خاکستری وایرفریم */
    position: relative;
    overflow: hidden;
}

.btn-warning {
  font-size: 20px;
}

.btn-warning:hover, .btn-warning:click {
  font-size: 20px;
  background-color: darkorange;
  border-color: darkorange;
}

.final-cta .btn-dark {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.final-cta .btn-dark:hover {
    transform: scale(1.05);
    background-color: #333;
}

@media (max-width: 760px) {
  .case-stats {
    grid-template-columns: 1fr;
  }

  #tooltip {
    display: none !important;
  }

  .cta-box {
        padding: 30px 20px !important;
    }
    .display-5 {
        font-size: 1.8rem;
    }
}