/* Hero: headline, the laptop + phone stage with floating cards, and the facts strip under it. .hero-bg is reused by legal pages and 404. */
/* hero */
.hero {
  position: relative;
  background: var(--night);
  color: #fff;
  padding-top: calc(env(safe-area-inset-top, 0px) + 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 38% at 50% 8%, rgba(37, 99, 235, 0.42), transparent 70%),
    radial-gradient(35% 40% at 85% 55%, rgba(19, 48, 106, 0.9), transparent 70%),
    radial-gradient(35% 40% at 12% 70%, rgba(19, 48, 106, 0.7), transparent 70%),
    linear-gradient(to bottom, var(--night), var(--night-2) 70%, var(--night-2));
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 55% at 50% 30%, #000 30%, transparent 75%);
}
.hero-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.25);
  background: rgba(37, 99, 235, 0.12);
  color: var(--on-night);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s;
}
[dir='rtl'] .pill {
  padding: 5px 6px 5px 14px;
}
.pill:hover {
  border-color: rgba(147, 197, 253, 0.5);
}
.pill b {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  padding: 2px 10px;
  border-radius: 999px;
}
.pill span {
  color: var(--sky);
}
.hero h1 {
  margin-top: 26px;
  font-size: clamp(36px, 6.2vw, 72px);
  font-weight: 700;
  line-height: 1.18;
  max-width: 15ch;
  letter-spacing: -0.015em;
}
.grad {
  background: linear-gradient(100deg, #93c5fd, #60a5fa 40%, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  max-width: 62ch;
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--on-night-soft);
  line-height: 1.85;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

/* hero product stage */
.stage {
  position: relative;
  width: min(980px, 100%);
  margin-top: 64px;
  padding-bottom: 0;
}
.laptop {
  position: relative;
  width: 100%;
}
.laptop-screen {
  border-radius: 18px 18px 0 0;
  padding: 12px 12px 0;
  background: linear-gradient(180deg, #1c2a45, #111c33);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  box-shadow: 0 -20px 80px rgba(37, 99, 235, 0.18);
}
.laptop-screen img {
  border-radius: 8px 8px 0 0;
  aspect-ratio: 1440 / 900;
  width: 100%;
  object-fit: cover;
  object-position: top;
}
.laptop-base {
  height: 18px;
  margin: 0 -4%;
  background: linear-gradient(180deg, #3a4a68, #1d2943 60%, #0f182b);
  border-radius: 0 0 22px 22px;
  position: relative;
}
.laptop-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: rgba(0, 0, 0, 0.35);
}
.phone {
  border-radius: 38px;
  padding: 8px;
  background: linear-gradient(150deg, #2c3d61, #0c172e 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    var(--shadow-lg);
}
.phone img {
  border-radius: 31px;
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
}
.stage-phone {
  position: absolute;
  width: 23%;
  min-width: 150px;
  inset-inline-end: -3%;
  bottom: -40px;
}
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  text-align: start;
  box-shadow: 0 18px 50px rgba(3, 10, 25, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: rise 0.9s var(--ease) both;
}
.float b {
  display: block;
  font-family: var(--f-head);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}
.float small {
  display: block;
  font-size: 12.5px;
  color: var(--soft);
  line-height: 1.4;
}
.f-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eaf1fe;
  color: var(--blue);
}
.f-ic svg {
  width: 19px;
  height: 19px;
}
.f-ic.ok {
  background: #e8f7ee;
  color: var(--ok);
}
.f-order {
  top: 18%;
  inset-inline-start: -5%;
  animation-delay: 0.35s;
}
.f-ready {
  top: 46%;
  inset-inline-start: -2%;
  animation-delay: 0.55s;
}
.f-sales {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  top: 8%;
  inset-inline-end: -4%;
  animation-delay: 0.75s;
}
.f-sales b {
  font-size: 22px;
  color: var(--navy);
}
.f-sales b i {
  font-style: normal;
  font-size: 13px;
  color: var(--soft);
}
.spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
  margin-top: 4px;
}
.spark i {
  width: 8px;
  border-radius: 3px;
  background: #c7d8fb;
}
.spark i:nth-child(1) {
  height: 30%;
}
.spark i:nth-child(2) {
  height: 45%;
}
.spark i:nth-child(3) {
  height: 38%;
}
.spark i:nth-child(4) {
  height: 60%;
}
.spark i:nth-child(5) {
  height: 52%;
}
.spark i:nth-child(6) {
  height: 75%;
}
.spark i:nth-child(7) {
  height: 100%;
  background: var(--blue);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@media (max-width: 900px) {
  .hero {
    padding-top: calc(env(safe-area-inset-top, 0px) + 112px);
  }
  .stage {
    margin-top: 44px;
  }
  .stage-phone {
    width: 32%;
    min-width: 0;
    inset-inline-end: -2%;
    bottom: -26px;
    border-radius: 24px;
    padding: 5px;
  }
  .stage-phone img {
    border-radius: 20px;
  }
  .f-ready,
  .f-sales {
    display: none;
  }
  .f-order {
    top: auto;
    bottom: 12%;
    inset-inline-start: -2%;
    padding: 9px 12px;
  }
  .float b {
    font-size: 13px;
  }
}

/* facts */
.facts {
  background: var(--night-2);
  color: var(--on-night);
  padding-block: 92px 56px;
  border-bottom: 1px solid var(--line-night);
}
.facts-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.facts-in div {
  display: grid;
  gap: 4px;
  padding-inline-start: 20px;
  border-inline-start: 1px solid var(--line-night);
}
.facts-in div:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}
.facts b {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}
.facts span {
  font-size: 14.5px;
  color: var(--on-night-soft);
  line-height: 1.6;
}
@media (max-width: 760px) {
  .facts-in {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
  }
  .facts-in div:nth-child(3) {
    border-inline-start: 0;
    padding-inline-start: 0;
  }
  .facts {
    padding-block: 72px 44px;
  }
}
