:root {
  --ink: #0b0b14;
  --grad: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
  --cyan: #06b6d4;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  background: var(--ink);
  color: #fff;
  font-family: Rubik, system-ui, sans-serif;
}
body {
  overscroll-behavior-y: none;
}
h1,
h2 {
  font-family: "Secular One", Rubik, sans-serif;
  font-weight: 400;
  line-height: 1.05;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.track {
  height: 600vh;
  position: relative;
}
.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* overlays: opacity driven by main.js */
.hero,
.marker,
.finale {
  position: absolute;
  inset-inline: 0;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}
.hero h1,
.marker h2,
.finale h2,
.hero p,
.marker p {
  text-shadow: 0 2px 18px rgba(11, 11, 20, 0.55);
}
.hero h1 .grad,
.finale h2 .grad {
  text-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(11, 11, 20, 0.5));
}

.hero {
  top: max(7svh, 48px);
}
.kicker {
  font-size: 15px;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.hero h1 {
  font-size: clamp(52px, 15vw, 96px);
  margin: 6px 0 10px;
}
.sub {
  font-size: 18px;
  max-width: 22em;
  margin-inline: auto;
}
.hint {
  position: fixed;
  bottom: 28px;
  inset-inline: 0;
  font-size: 15px;
  opacity: 0.85;
}
.arrow {
  display: inline-block;
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(5px);
  }
}

.marker {
  top: max(9svh, 56px);
  opacity: 0;
}
.marker h2 {
  font-size: clamp(56px, 17vw, 110px);
}
.marker p {
  font-size: 19px;
  margin-top: 6px;
}

.gauge {
  position: absolute;
  inset-inline-start: 14px;
  top: 30svh;
  height: 40svh;
  width: 2px;
  background: rgba(255, 255, 255, 0.28);
  opacity: 0;
}
.tick {
  position: absolute;
  inset-inline-start: 10px;
  bottom: calc(var(--y) * 100%);
  transform: translateY(50%);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0.75;
}
.tick::before {
  content: "";
  position: absolute;
  inset-inline-start: -14px;
  top: 50%;
  width: 8px;
  height: 2px;
  background: #fff;
}
.dot {
  position: absolute;
  inset-inline-start: -5px;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 12px var(--cyan),
    0 0 3px var(--cyan);
  transform: translateY(50%);
}

.finale {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
}
.finale h2 {
  font-size: clamp(30px, 8.4vw, 52px);
}
.phone {
  width: min(56vw, 230px, 30svh);
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  padding: 8px;
  background: #15151f;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 40px rgba(6, 182, 212, 0.35),
    0 30px 60px rgba(0, 0, 0, 0.5);
}
.screen {
  height: 100%;
  border-radius: 23px;
  background: #faf8f4;
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: right;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  font-size: 12px;
}
.logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad);
}
.burger {
  margin-inline-start: auto;
  width: 16px;
  height: 10px;
  border-block: 2px solid var(--ink);
}
.site-hero {
  margin: 0 10px;
  padding: 14px 12px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.site-hero strong {
  font-family: "Secular One", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.15;
}
.pill {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 8px;
  border-radius: 99px;
}
.site-btn {
  font-size: 11px;
  background: #fff;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 99px;
  font-weight: 700;
}
.site-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px;
}
.site-cards i {
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(160deg, #e9e3f7, #f6d9e8);
}
.site-lines {
  margin: 0 12px;
  display: grid;
  gap: 6px;
}
.site-lines i {
  height: 6px;
  border-radius: 3px;
  background: #e6e2ea;
}
.site-lines i:nth-child(2) {
  width: 80%;
}
.site-lines i:nth-child(3) {
  width: 60%;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 99px;
  background: #6d28d9;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(109, 40, 217, 0.4);
}

button,
.cta {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
.cta:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.sound {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  inset-inline-end: 12px;
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(11, 11, 20, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.start {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: 16svh;
  background: linear-gradient(
    to top,
    rgba(11, 11, 20, 0.75),
    rgba(11, 11, 20, 0) 55%
  );
  cursor: pointer;
  transition: opacity 0.4s;
}
.start.gone {
  opacity: 0;
  pointer-events: none;
}
.start button {
  min-height: 56px;
  padding: 0 30px;
  border-radius: 99px;
  border: 0;
  background: var(--grad);
  color: #fff;
  font:
    700 19px Rubik,
    sans-serif;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
  cursor: pointer;
}
.start p {
  font-size: 14px;
  opacity: 0.85;
}

/* Reduced motion: no pinned timeline. Static frame behind, all text as a normal page. */
.rm .track {
  height: auto;
}
.rm .stage {
  position: relative;
  height: auto;
  overflow: visible;
}
.rm #scene {
  position: fixed;
  z-index: -1;
}
.rm .hero,
.rm .marker,
.rm .finale {
  position: relative;
  inset: auto;
  top: auto;
  opacity: 1 !important;
  transform: none !important;
  min-height: 70svh;
  padding-block: 12svh 0;
  pointer-events: auto;
}
.rm .finale {
  min-height: 100svh;
  padding-block: 6svh;
}
.rm .hint,
.rm .gauge {
  display: none;
}
.rm .arrow {
  animation: none;
}
.rm .start {
  transition: none;
}

/* accessibility statement link under the end CTA (published at takeoff.first-site.co.il) */
.a11y-link {
  display: block;
  margin-block-start: 0.9rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}
