/* =========================================================
   CRO utilities + Hookly hero v2
   ========================================================= */

:root {
  --hero-lime: #c9f31d;
  --hero-ink: #070707;
  --hero-panel: rgba(18, 18, 18, 0.92);
  --hero-line: rgba(255, 255, 255, 0.1);
  --hero-mute: rgba(255, 255, 255, 0.58);
}

/* --- Floating Telegram --- */
.floating-telegram {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 10050;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #229ed9;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(34, 158, 217, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-telegram:hover,
.floating-telegram:focus {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(34, 158, 217, 0.45);
}

.floating-telegram i {
  font-size: 18px;
}

.floating-telegram__label {
  white-space: nowrap;
}

@media (max-width: 575px) {
  .floating-telegram {
    right: 12px;
    bottom: 16px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .footer-bottom .scroll-top {
    right: auto;
    left: 12px;
  }
}

/* --- Shared form helpers --- */
.form-expect {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--hero-mute);
  text-align: center;
}

.form-expect--dark {
  color: #666;
}

.form-alt-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--hero-mute);
}

.form-alt-telegram a {
  color: #5ec8f0;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 200, 240, 0.45);
}

.form-alt-telegram a:hover {
  color: #8fdfff;
}

.form-alt-telegram--dark {
  color: #555;
}

.form-success-inline {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.35);
  color: #b7f0bb;
  font-size: 14px;
  line-height: 1.4;
}

.form-success-inline.is-visible {
  display: block;
}

.hidden-bar .form-expect,
.hidden-bar .form-alt-telegram {
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.hidden-bar .form-alt-telegram a {
  color: #5ec8f0;
}

/* =========================================================
   HERO V2
   ========================================================= */

.hero-v2 {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 78% 42%, rgba(201, 243, 29, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 12% 80%, rgba(201, 243, 29, 0.05), transparent 55%),
    linear-gradient(180deg, #0b0b0b 0%, #131313 55%, #101010 100%);
}

.hero-v2__glow {
  position: absolute;
  width: min(560px, 55vw);
  height: min(560px, 55vw);
  right: -4%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 243, 29, 0.22) 0%, rgba(201, 243, 29, 0) 70%);
  filter: blur(8px);
  pointer-events: none;
  animation: heroGlow 7s ease-in-out infinite alternate;
}

.hero-v2__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.55;
}

@keyframes heroGlow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
  to { transform: translate3d(-18px, 14px, 0) scale(1.06); opacity: 1; }
}

.hero-v2__row {
  position: relative;
  z-index: 2;
  padding-top: 10px;
  padding-bottom: 10px;
}

.hero-v2__copy {
  max-width: 560px;
  padding-right: 12px;
}

.hero-v2__brand {
  margin: 0 0 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hero-lime);
}

.hero-v2__title {
  margin: 0 0 18px;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(2.35rem, 4.4vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-v2__title span {
  color: var(--hero-lime);
}

.hero-v2__lead {
  margin: 0 0 14px;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--hero-mute);
}

.hero-v2__capacity {
  margin: 0 0 28px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(201, 243, 29, 0.85);
}

.hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-bottom: 36px;
}

.hero-v2__actions .theme-btn {
  margin: 0 !important;
}

.hero-v2__link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-v2__link:hover {
  color: var(--hero-lime);
  border-color: rgba(201, 243, 29, 0.55);
}

.hero-v2__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--hero-line);
  max-width: 460px;
}

.hero-v2__stat {
  margin: 0;
}

.hero-v2__stat dt {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hero-lime);
}

.hero-v2__stat .count-text.plus:after {
  content: '+';
  margin-left: 1px;
}

.hero-v2__stat:last-child .count-text.plus:after {
  content: '';
}

.hero-v2__stat dd {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.48);
}

/* Panel / form */
.hero-v2__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  padding: 24px 24px 18px;
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--hero-panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  animation: heroPanelIn 0.7s ease both;
}

@keyframes heroPanelIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-v2__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(201, 243, 29, 0.45), transparent 35%, transparent 70%, rgba(201, 243, 29, 0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-v2__panel-head {
  margin-bottom: 14px;
}

.hero-v2__panel-title {
  margin: 0 0 4px;
  font-family: "DM Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.hero-v2__panel-hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--hero-mute);
}

.hero-v2__form .form-group {
  margin-bottom: 10px;
}

.hero-v2__form-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
}

.hero-v2__form input,
.hero-v2__form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.875rem;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-v2__form input::placeholder,
.hero-v2__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.875rem;
}

.hero-v2__form input:focus,
.hero-v2__form textarea:focus {
  border-color: rgba(201, 243, 29, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 243, 29, 0.12);
  background: rgba(0, 0, 0, 0.5);
}

.hero-v2__form textarea {
  min-height: 58px;
  resize: vertical;
}

.hero-v2__form .theme-btn {
  width: 100%;
  justify-content: center;
  margin-top: 2px;
  font-size: 0.9rem;
  padding-top: 12px;
  padding-bottom: 12px;
}

.hero-v2__form .form-expect {
  margin-top: 8px;
  font-size: 11px;
}

.hero-v2__form .form-alt-telegram {
  font-size: 13px;
  margin-top: 8px;
}

.hero-v2__review {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--hero-line);
}

.hero-v2__review img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-v2__review p {
  margin: 0 0 3px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.hero-v2__review cite {
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.42);
}

.hero-v2__trust {
  margin-top: 16px;
}

.hero-v2__trust > span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-v2__logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: stretch;
}

.hero-v2__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-v2__logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 28px;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.hero-v2__logo:hover img {
  opacity: 0.85;
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(201, 243, 29, 0.35));
}

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

  .hero-v2__logo {
    height: 44px;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .hero-v2 {
    min-height: auto;
    padding-top: 130px !important;
    padding-bottom: 70px !important;
  }

  .hero-v2__copy {
    max-width: none;
    margin-bottom: 36px;
    padding-right: 0;
  }

  .hero-v2__panel {
    margin-left: 0;
    max-width: none;
  }

  .hero-v2__stats {
    max-width: none;
  }
}

@media (max-width: 575px) {
  .hero-v2__title {
    font-size: 2.1rem;
  }

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

  .hero-v2__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-v2__stat dt {
    font-size: 1.45rem;
  }

  .hero-v2__stat dd {
    font-size: 0.68rem;
  }

  .hero-v2__panel {
    padding: 22px 18px 18px;
  }

  .hero-v2__actions {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v2__glow,
  .hero-v2__panel {
    animation: none;
  }
}
