/* Hero */
.hero {
  position: relative;
  padding: 64px 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.hero > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0.1;
}

.hero__visual svg {
  [data-color="1"] {
    fill: var(--color-primary);
  }
  [data-color="2"] {
    fill: var(--color-black);
  }
}

.hero__inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 25px;
  align-items: flex-start;
}

.hero__eyebrow {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: rgba(11, 16, 32, 0.85);
}

.hero__title {
  font-family: "Roboto Primary", sans-serif;
  font-size: 50px;
  line-height: normal;
  color: var(--color-black);
  font-weight: 400;
}

.hero__title-strong {
  font-family: "Roboto Accent", sans-serif !important;
  font-weight: bold;
  font-size: 50px;
  line-height: normal;
  color: var(--color-black);
}

.hero__lead,
.hero__text {
  margin: 40px 0 0 0;
  font-size: 20px;
  font-family: "Roboto Primary", sans-serif;
  line-height: 1.5;
  color: var(--color-black);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;

  margin: 40px 0 0 0;
}

.btn {
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  transition: inherit;
  line-height: unset;
  color: var(--color-black);
  font-family: "Roboto Accent", sans-serif;
  font-size: 20px;
  font-weight: 700;
  user-select: none;
  white-space: nowrap;

  transition:
    all 0.2s ease,
    visibility 0s;
  border-radius: 5px;
}

.btn--lg {
  padding: 14px 34px;
}

.btn--shadow-strong {
  box-shadow: 0 14px 26px rgba(213, 7, 126, 0.28);
}

.btn--wide {
  display: inline-flex;
  margin-top: 16px;
}

.btn--primary {
  color: var(--color-white);
  background: repeat padding-box border-box 0% 0% / auto auto scroll
    linear-gradient(
      180deg,
      var(--color-primary) 0%,
      var(--color-primary-dark) 100%
    );
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.btn--primary:hover {
  background:
    repeat padding-box border-box 0% / auto scroll
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.2) 100%
      ),
    repeat padding-box border-box 0% 0% / auto auto scroll
      linear-gradient(
        180deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%
      );
}

.btn--secondary {
  color: var(--color-black);
  background: transparent;
  font-weight: bold;
  border: 2px solid rgb(144, 144, 144);
}

.btn--secondary:hover {
  background: var(--color-black);
  color: var(--color-white);
  border: 2px solid var(--color-black);
}

.hero__visual {
  width: min(520px, 100%);
  margin-left: auto;
  filter: drop-shadow(0 18px 30px rgba(11, 16, 32, 0.12));
}

.hero__visual svg,
.hero__visual img {
  width: 110%;
  margin-left: -5%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .hero {
    padding: 44px 0 12px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero__visual {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .hero__title {
    font-size: 30px;
  }
  .hero__title-strong {
    font-size: 32px;
  }
  .hero__actions {
    justify-content: center;
  }
  .quote-band__inner {
    padding: 40px 16px;
  }
  .hero__visual img,
  .hero__visual svg {
    width: 80%;
    margin-left: 0;
  }
  .hero__visual img {
    max-width: 450px;
  }
  .quote-band__quote {
    font-size: 32px;
  }
}

/* ============================================
   HERO LAPTOP SVG ANIMATION
   ============================================ */

.hero-animation {
  width: 100%;
  height: auto;
}

/* Initial States */
.hero-animation #ha-laptop,
.hero-animation #ha-sparkle-2,
.hero-animation #ha-sparkle-3,
.hero-animation #ha-arrow-bottom,
.hero-animation .anim-sec-1,
.hero-animation .anim-sec-2,
.hero-animation .anim-sec-3,
.hero-animation .anim-sec-4 {
  opacity: 0;
  transform-origin: center;
}

.hero-animation #ha-laptop {
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.hero-animation #ha-sparkle-2,
.hero-animation #ha-sparkle-3 {
  transform: scale(0.2);
  transition:
    opacity 0.4s ease-out,
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-animation #ha-arrow-bottom {
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease-out,
    transform 0.3s ease-out;
}

@keyframes drawDash {
  to {
    opacity: 1;
  }
}

/* 1. Left Line (Upper arrow arc) builds up first */
/* 15 elements -> ends at 0.75s */
.hero-animation.is-visible .anim-sec-1 {
  animation: drawDash 0.05s forwards;
  animation-delay: calc(var(--i) * 0.05s);
}

/* 2. Laptop appears (starts at 0.8s) */
.hero-animation.is-visible #ha-laptop {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

/* Sparkles pop in after laptop appears (1.4s) */
.hero-animation.is-visible #ha-sparkle-2 {
  opacity: 1;
  transform: scale(1);
  transition-delay: 1.4s;
}

.hero-animation.is-visible #ha-sparkle-3 {
  opacity: 1;
  transform: scale(1);
  transition-delay: 1.5s;
}

/* 3. Section 2 (Right arc) starts at 1.0s */
/* 16 elements -> ends at 1.8s */
.hero-animation.is-visible .anim-sec-2 {
  animation: drawDash 0.05s forwards;
  animation-delay: calc(1s + (var(--i) * 0.05s));
}

/* 4. Section 3 (Straight connector) starts AFTER Section 2 finishes (1.8s) */
/* 3 elements -> ends at 1.95s */
.hero-animation.is-visible .anim-sec-3 {
  animation: drawDash 0.05s forwards;
  animation-delay: calc(1.8s + (var(--i) * 0.05s));
}

/* 5. Section 4 (Arc + Down line) starts AFTER Section 3 finishes (1.95s) */
/* 13 elements -> ends at 2.6s */
.hero-animation.is-visible .anim-sec-4 {
  animation: drawDash 0.05s forwards;
  animation-delay: calc(1.95s + (var(--i) * 0.05s));
}

/* Arrow bottom appears at the end of Section 4 (2.6s) */
.hero-animation.is-visible #ha-arrow-bottom {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 2.6s;
}
