/* Premium above-the-fold composition built around the CRM ecosystem artwork. */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(124px, 7.3vw, 150px);
  padding-bottom: clamp(52px, 3.5vw, 72px);
  background:
    radial-gradient(ellipse 48% 46% at 84% 26%, rgba(45, 94, 229, 0.13), transparent 72%),
    radial-gradient(ellipse 38% 34% at 13% 13%, rgba(71, 207, 100, 0.075), transparent 74%),
    linear-gradient(180deg, #fcfdff 0%, #f6f9ff 58%, #ffffff 100%);
}

.hero-bg {
  background:
    radial-gradient(circle at 72% 32%, rgba(45, 94, 229, 0.08), transparent 34%),
    radial-gradient(circle at 26% 10%, rgba(71, 207, 100, 0.055), transparent 30%);
}

.hero-grid {
  background-image: radial-gradient(rgba(16, 38, 79, 0.16) 0.7px, transparent 0.7px);
  background-size: 24px 24px;
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.72) 54%, transparent 92%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-main {
  grid-template-columns: minmax(0, 0.96fr) minmax(520px, 1.04fr);
  gap: clamp(44px, 4.8vw, 98px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1,
body.light-theme .hero h1 {
  max-width: 900px;
  margin-bottom: clamp(24px, 1.8vw, 34px);
  font-size: clamp(48px, 3.55vw, 76px);
  font-weight: 780;
  line-height: 1.055;
  letter-spacing: -0.052em;
}

.hero h1 span:last-of-type {
  background: linear-gradient(100deg, #173caa 0%, #2d5ee5 58%, #34b85c 112%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #2d5ee5;
}

.hero-description {
  width: min(100%, 760px);
  margin-bottom: clamp(30px, 2vw, 38px);
  color: #5f6e85;
  line-height: 1.72;
}

.hero-buttons {
  gap: 14px;
}

.hero .btn-large {
  min-height: 57px;
  padding: 16px 27px;
  border-radius: 15px;
  font-size: clamp(15px, 0.78vw, 17px);
}

.hero .btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2d5ee5 0%, #315fe7 62%, #214bc4 100%);
  box-shadow: 0 14px 30px rgba(45, 94, 229, 0.26);
}

.hero .btn-primary:hover {
  box-shadow: 0 18px 36px rgba(45, 94, 229, 0.32);
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(16, 38, 79, 0.07);
  backdrop-filter: blur(12px);
}

.hero-visual {
  min-height: clamp(500px, 31vw, 660px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-visual::before {
  width: 88%;
  height: 82%;
  border: 1px solid rgba(45, 94, 229, 0.1);
  border-radius: 44% 56% 52% 48% / 55% 46% 54% 45%;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.94) 0%, rgba(243, 247, 255, 0.82) 54%, rgba(235, 242, 255, 0.45) 100%);
  box-shadow:
    inset 0 0 0 18px rgba(255, 255, 255, 0.28),
    0 38px 90px rgba(45, 94, 229, 0.12);
  transform: rotate(-4deg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  border: 1px dashed rgba(45, 94, 229, 0.14);
  border-radius: 50%;
  transform: rotate(10deg);
}

.hero-visual-image {
  position: relative;
  z-index: 1;
  width: min(118%, 960px);
  max-width: none;
  height: auto;
  max-height: 650px;
  object-fit: contain;
  transform: translate(1.5%, 1%);
  filter: drop-shadow(0 24px 28px rgba(16, 38, 79, 0.08));
}

.hero-visual-brand {
  top: 8%;
  left: 6%;
  right: auto;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid rgba(45, 94, 229, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(16, 38, 79, 0.1);
  backdrop-filter: blur(14px);
}

.hero-visual-brand img {
  width: clamp(104px, 6.5vw, 132px);
}

.hero-live-dot {
  flex: 0 0 auto;
}

.hero-visual-note {
  width: 48px;
  height: 48px;
  border-color: rgba(45, 94, 229, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 32px rgba(16, 38, 79, 0.11);
  backdrop-filter: blur(14px);
}

.hero-visual-note.note-growth {
  top: 14%;
  right: 6%;
}

.hero-visual-note.note-connected {
  right: 8%;
  bottom: 12%;
}

.hero .hero-downloads {
  margin-top: clamp(42px, 3vw, 58px);
  padding-top: clamp(24px, 1.7vw, 32px);
  border-top-color: rgba(16, 38, 79, 0.09);
}

.hero .hero-downloads-cards {
  gap: clamp(10px, 0.8vw, 16px);
}

.hero .download-card,
body.light-theme .hero .download-card {
  min-height: 84px;
  border-color: rgba(16, 38, 79, 0.09);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(16, 38, 79, 0.065);
}

.hero .download-card:hover,
body.light-theme .hero .download-card:hover {
  border-color: rgba(45, 94, 229, 0.24);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(16, 38, 79, 0.11);
}

@media (min-width: 1600px) {
  .hero-main {
    grid-template-columns: minmax(0, 0.92fr) minmax(600px, 1.08fr);
  }

  .hero-copy {
    padding-left: clamp(0px, 0.7vw, 14px);
  }
}

@media (max-width: 1240px) {
  .hero-main {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.9fr);
    gap: 38px;
  }

  .hero h1,
  body.light-theme .hero h1 {
    font-size: clamp(44px, 4.4vw, 60px);
  }

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

@media (max-width: 980px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-visual {
    width: min(100%, 760px);
    min-height: 500px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 108px;
    padding-bottom: 46px;
  }

  .hero h1,
  body.light-theme .hero h1 {
    font-size: clamp(34px, 9vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
  }

  .hero-description {
    line-height: 1.65;
  }

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

  .hero .btn-large {
    width: 100%;
  }

  .hero-visual {
    min-height: 350px;
    margin-top: 4px;
  }

  .hero-visual::before {
    width: 94%;
    height: 88%;
  }

  .hero-visual-image {
    width: 122%;
    max-height: 390px;
    transform: translate(1%, 0);
  }

  .hero-visual-brand {
    top: 3%;
    left: 2%;
    padding: 9px 11px;
    border-radius: 13px;
  }

  .hero-visual-brand img {
    width: 94px;
  }

  .hero-visual-note {
    display: none;
  }
}
