/* Section 2 — What is Globwalk */

.what {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(5, 10, 24, 0.2) 0%, transparent 40%);
}

.what .section__head {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.what .section__lead {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
  perspective: 1200px;
}

.what-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(10, 18, 40, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
  transition:
    border-color 0.35s,
    box-shadow 0.35s,
    background 0.35s;
  will-change: transform;
}

.what-card:hover,
.what-card.is-tilting {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(34, 211, 238, 0.1);
  background: rgba(12, 22, 48, 0.72);
}

.what-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #0A1228;
}

.what-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  filter: saturate(0.85) brightness(0.88);
}

.what-card:hover .what-card__media > img,
.what-card.is-tilting .what-card__media > img {
  transform: scale(1.06);
}

.what-card__media-glow {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 24, 0.92));
  pointer-events: none;
}

.what-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-display, Inter, sans-serif);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(5, 10, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.what-card__media--ai .what-card__badge {
  border-color: rgba(34, 211, 238, 0.28);
  color: #67E8F9;
}

.what-card__media--time .what-card__badge {
  border-color: rgba(163, 230, 53, 0.28);
  color: #BEF264;
}

.what-card__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.what-card__era {
  position: relative;
  overflow: hidden;
}

.what-card__era img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.85);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.what-card:hover .what-card__era img,
.what-card.is-tilting .what-card__era img {
  transform: scale(1.05);
}

.what-card__era span {
  position: absolute;
  left: 10px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-display, Inter, sans-serif);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(5, 10, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.what-card__era--then span {
  color: #BEF264;
  border-color: rgba(163, 230, 53, 0.25);
}

.what-card__era--then::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 10, 24, 0.35), transparent 30%);
  pointer-events: none;
}

.what-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 24px;
  flex: 1;
}

.what-card__body h3 {
  font-family: var(--font-display, Inter, sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.what-card__body p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary, #94A3B8);
}

.what-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: auto;
  padding-top: 8px;
}

.what-card__tags li {
  font-family: var(--font-display, Inter, sans-serif);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(248, 250, 252, 0.7);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .what-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .what-grid {
    gap: 16px;
  }

  .what-card__body {
    padding: 18px;
  }

  .what-card__body h3 {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .what-card,
  .what-card__media > img,
  .what-card__era img {
    transition: none !important;
    transform: none !important;
  }
}
