/* ===== Hero Styles ===== */

.hero {
  text-align: center;
  padding: 30px 24px 64px;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 8%;
  width: clamp(260px, 30vw, 480px);
  height: clamp(260px, 30vw, 480px);
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  left: calc(-1 * (50vw - 50%) - 80px);
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 55%, transparent) 0%, transparent 70%);
  opacity: .28;
}

.hero::after {
  right: calc(-1 * (50vw - 50%) - 80px);
  top: 32%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 35%, transparent) 0%, transparent 70%);
  opacity: .22;
}

@media(max-width:640px) {

  .hero::before,
  .hero::after {
    width: 220px;
    height: 220px;
    filter: blur(60px);
  }
}

/* ===== Hand-drawn spiral pointer arrows (point down into the demo box) ===== */
.demo-pointer-zone {
  position: relative;
}

.hero-arrow {
  position: absolute;
  width: 90px;
  height: 130px;
  pointer-events: none;
  z-index: 5;
  top: -100px;
}

.hero-arrow svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-arrow path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-arrow path#arrowLeftPath,
.hero-arrow path#arrowRightPath {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: hero-arrow-draw .9s ease-in-out .85s forwards;
}

.hero-arrow path#arrowLeftHead,
.hero-arrow path#arrowRightHead {
  opacity: 0;
  animation: hero-fade-in .25s ease-out 1.6s forwards;
}

.arrow-left {
  left: 6%;
  opacity: 0;
  animation: hero-fade-in .3s ease-out .85s forwards,
    hero-arrow-bounce-l .9s ease-in-out 1.85s infinite alternate backwards;
}

.arrow-right {
  right: 6%;
  opacity: 0;
  animation: hero-fade-in .3s ease-out .85s forwards,
    hero-arrow-bounce-r .9s ease-in-out 1.85s infinite alternate backwards;
}

@keyframes hero-arrow-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hero-arrow-bounce-l {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(8px);
  }
}

@keyframes hero-arrow-bounce-r {
  from {
    transform: scaleX(-1) translateY(0);
  }

  to {
    transform: scaleX(-1) translateY(8px);
  }
}

@media(max-width:1180px) {
  .hero-arrow {
    width: 70px;
    height: 100px;
    top: -78px;
  }

  .hero-arrow path {
    stroke-width: 4.5;
  }
}

@media(max-width:820px) {
  .hero-arrow {
    width: 56px;
    height: 80px;
    top: -62px;
  }

  .arrow-left {
    left: 2%;
  }

  .arrow-right {
    right: 2%;
  }
}

@media(max-width:560px) {
  .hero-arrow {
    display: none;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple-bg);
  color: var(--purple-text);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

@keyframes hero-fade-in {
  to {
    opacity: 1;
  }
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: clamp(-0.5px, -0.03em, -1.5px);
  line-height: 1.15;
  margin: 0 0 20px;
  word-wrap: break-word;
  opacity: 0;
  animation: hero-fade-up .6s ease-out forwards;
}


.hero h1 span {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 2px 14px;
  border-radius: 10px;
}

.hero p {
  font-size: clamp(13px, 2vw, 16px);
  color: #3d3f52;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0;
  animation: hero-fade-up .5s ease-out .12s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions .btn-hero {
  opacity: 0;
  animation: hero-fade-up .45s ease-out .22s forwards;
}

.hero-actions .btn-hero:nth-child(2) {
  animation-delay: .3s;
}

.btn-hero {
  height: 54px;
  padding: 0 30px;
  border-radius: var(--page-radius);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--blue);
}

.btn-hero-solid {
  background: var(--blue);
  color: #fff;
}

.btn-hero-solid:hover {
  background: #6f2fd6;
}

.btn-hero-outline {
  background: #fff;
  color: var(--blue);
}

.btn-hero-outline:hover {
  background: #f2f3ff;
}

@media(max-width:560px) {
  .hero-actions {
    gap: 10px;
    flex-wrap: nowrap;
  }

  .btn-hero {
    height: 42px;
    padding: 0 14px;
    font-size: 12.5px;
    gap: 5px;
    flex: 1;
    white-space: nowrap;
  }

  .btn-hero svg {
    width: 14px;
    height: 14px;
  }
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  opacity: 0;
  animation: hero-fade-in .4s ease-out .4s forwards;
}

/* ===== Hero live demo ===== */
.hero-demo {
  max-width: 1000px;
  margin: 48px auto 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 20px 60px -20px rgba(15, 18, 34, .25);
  opacity: 0;
  animation: hero-fade-up .6s ease-out .4s forwards;
}

.hero-demo .browser-bar {
  height: 38px;
  background: #f1f1f1;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}

.hero-demo .browser-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-demo .browser-bar .dot:nth-child(1) {
  background: #ff5f56;
}

.hero-demo .browser-bar .dot:nth-child(2) {
  background: #ffbd2e;
}

.hero-demo .browser-bar .dot:nth-child(3) {
  background: #27c93f;
}

.hero-demo .browser-bar .url {
  flex: 1;
  margin-inline-start: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 7px;
  font-size: 12px;
  color: #888;
  padding: 5px 12px;
  text-align: center;
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hero-demo .browser-bar .url svg {
  width: 11px;
  height: 11px;
  color: #27c93f;
}

.hero-demo .browser-bar .live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #27c93f;
  flex-shrink: 0;
}

.hero-demo .browser-bar .live-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27c93f;
  animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.8);
  }
}

.hero-demo-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #fafafa;
}

.hero-demo-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 900px;
  border: none;
  transform-origin: 0 0;
}

@media(max-width:640px) {
  .hero-demo {
    margin-top: 32px;
    border-radius: 14px;
  }
}
