:root {
  color-scheme: dark;
  --bg: #050607;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --border: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.06);
  --shadow: rgba(0, 0, 0, 0.55);
  --green: #00ff5e;
  --greenSoft: rgba(0, 255, 94, 0.18);
  --greenSoft2: rgba(0, 255, 94, 0.12);
  --hero-pad: 86px; /* minimal top offset for hero text */
  --phones-overhang: 225px; /* how much phones extend below the hero */
  --phones-height: 520px;
  --after-phones-gap: 100px; /* requested gap below phones */
  /* ~3x less accent than before */
  --blue: rgba(0, 122, 255, 0.25);
  --pink: rgba(255, 45, 85, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Inter, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg::after {
  /* subtle vignette */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    80% 80% at 50% 20%,
    transparent 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
  opacity: 0.9;
}

.pageShell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
}

.viewport {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  z-index: 1;
}

.topbar {
  width: min(980px, 100%);
  margin: 0 auto;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 6px 10px;
  border-radius: 999px;
}

.brandIcon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 26px rgba(0, 255, 94, 0.18);
}

.brandIcon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.lang a {
  color: var(--muted);
}

.lang a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 94, 0.55);
  text-underline-offset: 5px;
}

.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  /*
    Keep minimal top offset as before (86px), and reserve the space where
    phones sit inside the hero + minimal gap. This prevents the text block
    from drifting too far from the phones on tall screens while never
    getting closer than the minimal offsets.
  */
  padding: var(--hero-pad) 0 calc((var(--phones-height) - var(--phones-overhang)) + var(--hero-pad));
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  flex: 1 0 0;
  min-height: 0;
}

.heroGlow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.heroGlow::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -40px;
  right: -40px;
  height: calc(100vh + var(--phones-overhang) + var(--after-phones-gap) + 120px);
  height: calc(100dvh + var(--phones-overhang) + var(--after-phones-gap) + 120px);
  background: radial-gradient(640px 420px at 50% 27%, rgba(0, 255, 94, 0.22), transparent 64%),
    radial-gradient(520px 420px at 16% 18%, var(--blue), transparent 66%),
    radial-gradient(540px 440px at 86% 18%, var(--pink), transparent 66%);
  filter: blur(18px);
  opacity: 0.95;
}

.heroInner {
  width: min(920px, 100%);
  position: relative;
  z-index: 2;
  padding: 0 6px;
  margin: 0 auto;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.sub {
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 62ch;
}

.cta {
  margin-top: 30px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btnPrimary {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 42px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.92);
  background: rgba(0, 255, 94, 0.92);
  box-shadow:
    0 0 0 1px rgba(0, 255, 94, 0.26),
    0 16px 40px rgba(0, 0, 0, 0.42),
    0 0 48px rgba(0, 255, 94, 0.35),
    0 18px 64px rgba(0, 255, 94, 0.18);
  position: relative;
  overflow: hidden;
  margin-top: 16px; /* more top offset from "Now focusing" */
  transition: box-shadow 220ms ease, background-color 220ms ease;
}

.btnPrimary:hover {
  background: rgba(40, 255, 118, 0.98);
  box-shadow:
    0 0 0 1px rgba(0, 255, 94, 0.34),
    0 22px 52px rgba(0, 0, 0, 0.5),
    0 0 86px rgba(0, 255, 94, 0.62),
    0 24px 80px rgba(0, 255, 94, 0.24);
}

.btnPrimary::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -40%;
  width: 32%;
  height: 220%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg) translateX(-220%);
  opacity: 0;
  animation: shine 6.2s ease-in-out infinite;
}

.btnPrimary:focus-visible {
  outline: 2px solid rgba(0, 255, 94, 0.65);
  outline-offset: 3px;
}

.platforms {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.focusNow {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.focusNowDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 255, 94, 0.8);
  box-shadow: 0 0 18px rgba(0, 255, 94, 0.35);
}

@keyframes shine {
  0%,
  72% {
    transform: skewX(-20deg) translateX(-220%);
    opacity: 0;
  }

  73% {
    opacity: 1;
  }

  100% {
    transform: skewX(-20deg) translateX(420%);
    opacity: 0;
  }
}

/* Screens cluster */
.phones {
  position: absolute;
  left: 50%;
  bottom: calc(0px - var(--phones-overhang));
  width: min(980px, 100%);
  height: var(--phones-height);
  transform: translateX(-50%);
  pointer-events: auto;
  z-index: 1;
  filter: drop-shadow(0 26px 60px rgba(0, 0, 0, 0.55));
}

.phoneWrap {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--w);
  aspect-ratio: 9 / 19.5;
  pointer-events: auto;
  z-index: 1;
}

.phoneTag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -115%);
  z-index: 20;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  letter-spacing: 0.1px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
  white-space: nowrap;
  transition: transform 460ms cubic-bezier(0.16, 0.84, 0.44, 1);
}

.phone {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 255, 94, 0.08);
  transform-origin: 50% 0%;
  transform: translateZ(0);
  transition: transform 460ms cubic-bezier(0.16, 0.84, 0.44, 1),
    box-shadow 460ms cubic-bezier(0.16, 0.84, 0.44, 1),
    border-color 460ms cubic-bezier(0.16, 0.84, 0.44, 1);
}

.phone::before {
  /* glass highlight */
  content: "";
  position: absolute;
  inset: -30% -60% auto -60%;
  height: 70%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 55%);
  transform: rotate(-18deg);
  opacity: 0.6;
  pointer-events: none;
}

.phoneWrap:hover {
  z-index: 30;
}

.phoneWrap:hover .phoneTag {
  transform: translate(-50%, -115%) translateY(-24px);
}

.phoneWrap:hover .phone {
  transform: translateY(-24px) scale(1.12);
  border-color: rgba(0, 255, 94, 0.2);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 255, 94, 0.18);
}

.screen {
  position: relative;
  height: 100%;
  padding: 0;
}

.screenImage {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sk {
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.12) 22%,
    rgba(255, 255, 255, 0.06) 46%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 220% 100%;
  animation: shimmer 1.25s linear infinite;
}

.skRow {
  display: flex;
  gap: 10px;
}

.skChip {
  height: 26px;
  width: 92px;
  border-radius: 999px;
}

.skTitle {
  height: 22px;
  width: 78%;
}

.skLine {
  height: 12px;
  width: 92%;
  border-radius: 999px;
  opacity: 0.9;
}

.skLine.short {
  width: 68%;
}

.skCard {
  height: 120px;
  border-radius: 18px;
}

.skCard.small {
  height: 92px;
}

.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.phoneWrap.one {
  --w: 240px;
  animation: floatA 6.4s ease-in-out infinite;
}

.phoneWrap.two {
  --w: 268px;
  animation: floatB 7.2s ease-in-out infinite;
}

.phoneWrap.three {
  --w: 240px;
  animation: floatC 6.8s ease-in-out infinite;
}

.phoneWrap.four {
  --w: 236px;
  animation: floatD 7.6s ease-in-out infinite;
}

.phoneWrap.five {
  --w: 236px;
  animation: floatE 7.0s ease-in-out infinite;
}

/* Keep phone stacking (overlaps) but always render labels above all screens */
.phoneWrap.one .phone {
  z-index: 3;
}

.phoneWrap.two .phone {
  z-index: 4;
}

.phoneWrap.three .phone {
  z-index: 3;
}

.phoneWrap.four .phone {
  z-index: 2;
}

.phoneWrap.five .phone {
  z-index: 2;
}

@keyframes floatA {
  0%,
  100% {
    transform: translateX(calc(-50% - 190px)) translateY(22px) rotate(-10deg);
  }

  50% {
    transform: translateX(calc(-50% - 190px)) translateY(2px) rotate(-10deg);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translateX(-50%) translateY(8px) rotate(2deg);
  }

  50% {
    transform: translateX(-50%) translateY(-10px) rotate(2deg);
  }
}

@keyframes floatC {
  0%,
  100% {
    transform: translateX(calc(-50% + 190px)) translateY(28px) rotate(9deg);
  }

  50% {
    transform: translateX(calc(-50% + 190px)) translateY(6px) rotate(9deg);
  }
}

@keyframes floatD {
  0%,
  100% {
    transform: translateX(calc(-50% - clamp(260px, 32vw, 360px))) translateY(54px)
      rotate(-14deg);
  }

  50% {
    transform: translateX(calc(-50% - clamp(260px, 32vw, 360px))) translateY(30px)
      rotate(-14deg);
  }
}

@keyframes floatE {
  0%,
  100% {
    transform: translateX(calc(-50% + clamp(260px, 32vw, 360px))) translateY(60px)
      rotate(14deg);
  }

  50% {
    transform: translateX(calc(-50% + clamp(260px, 32vw, 360px))) translateY(34px)
      rotate(14deg);
  }
}

@media (max-width: 520px) {
  :root {
    --phones-height: 480px;
    --phones-overhang: 262px;
  }

  .phoneWrap.one {
    --w: 200px;
  }

  .phoneWrap.two {
    --w: 220px;
  }

  .phoneWrap.three {
    --w: 200px;
  }

  .phoneWrap.four {
    --w: 196px;
  }

  .phoneWrap.five {
    --w: 196px;
  }

  @keyframes floatA {
    0%,
    100% {
      transform: translateX(calc(-50% - 140px)) translateY(22px) rotate(-10deg);
    }

    50% {
      transform: translateX(calc(-50% - 140px)) translateY(4px) rotate(-10deg);
    }
  }

  @keyframes floatC {
    0%,
    100% {
      transform: translateX(calc(-50% + 140px)) translateY(28px) rotate(9deg);
    }

    50% {
      transform: translateX(calc(-50% + 140px)) translateY(8px) rotate(9deg);
    }
  }

  @keyframes floatD {
    0%,
    100% {
      transform: translateX(calc(-50% - clamp(200px, 44vw, 260px))) translateY(56px)
        rotate(-14deg);
    }

    50% {
      transform: translateX(calc(-50% - clamp(200px, 44vw, 260px))) translateY(34px)
        rotate(-14deg);
    }
  }

  @keyframes floatE {
    0%,
    100% {
      transform: translateX(calc(-50% + clamp(200px, 44vw, 260px))) translateY(62px)
        rotate(14deg);
    }

    50% {
      transform: translateX(calc(-50% + clamp(200px, 44vw, 260px))) translateY(38px)
        rotate(14deg);
    }
  }
}

@media (max-height: 720px) {
  :root {
    --hero-pad: 62px;
    --phones-overhang: 288px;
  }

  .sub {
    margin-top: 16px;
  }
}

.afterPhones {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--phones-overhang) + var(--after-phones-gap));
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 16px 22px;
}

.footerInner {
  width: min(980px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.footerLeft {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footerBrand {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.78);
}

.footerNav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 10px;
  max-width: 720px;
}

.footerLink {
  display: block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid transparent;
  text-decoration: none;
}

.footerLink:hover {
  color: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(0, 255, 94, 0.35);
}

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

@media (max-width: 520px) {
  .footerInner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footerNav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sk {
    animation: none;
  }

  .phoneWrap {
    animation: none;
  }

  .btnPrimary::after {
    animation: none;
  }
}
