@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../assets/fonts/rubik-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../assets/fonts/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f8f6f3;
  --ink: #151515;
  --muted: #8c8c8c;
  --orange: #ec6b3d;
  --orange-text: #b4441a;
  --indigo: #4f4ee6;
  --lavender: #e2e1fc;
  --purple: #9b7bf0;
  --yellow: #f6c945;
  --font: 'Rubik', system-ui, sans-serif;
  --ease-out: cubic-bezier(.2, .9, .25, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --nav-h: 88px;
  --promo-h: 0px;
}
html.has-promo { --promo-h: 38px; }

/* ---------- Launch offer bar ---------- */

.promo {
  position: fixed; top: 0; inset-inline: 0; z-index: 62; display: none; align-items: center;
  height: var(--promo-h); background: var(--ink); color: #f8f6f3;
}
html.has-promo .promo { display: flex; }
.promo-link {
  flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 48px); mask-image: linear-gradient(to left, transparent, #000 48px);
}
.promo-marquee { display: flex; overflow: hidden; width: 100%; }
.promo-track { display: flex; flex: none; animation: promo-roll 36s linear infinite; }
.promo-link:hover .promo-track, .promo-link:focus-visible .promo-track { animation-play-state: paused; }
.promo-group { display: flex; flex: none; align-items: center; gap: 16px; padding-inline-end: 16px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.promo-group b { color: var(--orange); font-weight: 700; }
.promo-group i { font-style: normal; color: var(--orange); font-size: 11px; }
@keyframes promo-roll { to { transform: translateX(50%); } }
.promo-close {
  flex: none; display: grid; place-items: center; width: var(--promo-h); height: 100%;
  border: 0; background: var(--ink); color: #f8f6f3; cursor: pointer; font-size: 16px;
}
@media (prefers-reduced-motion: reduce) { .promo-track { animation: none; } }
html.a11y-still .promo-track { animation: none !important; }

*, *::before, *::after { box-sizing: border-box; margin: 0; }

html, body { background: var(--bg); color: var(--ink); font-family: var(--font); }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* Decorative overflow (rotated art, marquees) must never widen the page on mobile */
main, footer { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, video, svg { max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.ic {
  width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Hidden until the intro animation takes over */
.js .nav, .js .headline .w, .js .hero-after { opacity: 0; }

/* ---------- Nav (fixed) ---------- */

.nav {
  position: fixed; top: var(--promo-h); inset-inline: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--nav-h); padding: 0 40px;
  transition: background-color .35s, box-shadow .35s, height .35s;
}
.nav.scrolled {
  --nav-h: 70px;
  background: rgba(248, 246, 243, .86); box-shadow: 0 1px 0 rgba(21, 21, 21, .08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.brand { justify-self: start; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: .26em; font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
/* The ring from the brand video: thick, deep orange shading to light */
.logo-ring {
  flex: none; width: .74em; height: .74em; border-radius: 50%;
  background: linear-gradient(135deg, #e2531d 15%, #f7a35d 85%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - .165em), #000 calc(100% - .158em));
  mask: radial-gradient(farthest-side, transparent calc(100% - .165em), #000 calc(100% - .158em));
}
.tagline { font-size: 12px; line-height: 1.45; color: #6b6b6b; transition: opacity .3s; }
.nav.scrolled .tagline { opacity: 0; pointer-events: none; }

.menu-toggle {
  justify-self: center; display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  transition: background-color .3s, color .3s;
}
.mt-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4a3d; }
.mt-lines { position: relative; width: 18px; height: 10px; }
.mt-lines i {
  position: absolute; inset-inline: 0; height: 1.6px; border-radius: 2px; background: currentColor;
  transition: transform .45s var(--ease-io), top .45s var(--ease-io);
}
.mt-lines i:first-child { top: 0; }
.mt-lines i:last-child { top: 8.4px; }
.menu-open .menu-toggle { background: #f8f6f3; color: var(--ink); }
.menu-open .mt-lines i:first-child { top: 4.2px; transform: rotate(45deg); }
.menu-open .mt-lines i:last-child { top: 4.2px; transform: rotate(-45deg); }
.menu-open .nav { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .logo, .menu-open .tagline { color: #f8f6f3; }
.menu-open .tagline { opacity: .7; }

.nav-cta { justify-self: end; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: calc(var(--promo-h) + var(--nav-h) + 54px) 0 0; overflow: hidden; }

/* Grid paper + dots, faded at the edges */
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(21, 21, 21, .22) 1.3px, transparent 1.8px),
    linear-gradient(to right, rgba(21, 21, 21, .065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 21, 21, .065) 1px, transparent 1px);
  background-size: 84px 84px;
  background-position: -0.5px -0.5px, 0 0, 0 0;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 32%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 32%, #000 45%, transparent 100%);
}
.hero-beams {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 32%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 32%, #000 45%, transparent 100%);
}

.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 0 16px; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
  padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .7);
  box-shadow: 0 0 0 1px rgba(21, 21, 21, .08); font-size: 14px; font-weight: 500;
}
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #20b26b; }
.live-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; background: #20b26b; opacity: .35;
  animation: live 1.8s ease-out infinite;
}
@keyframes live { from { transform: scale(.4); opacity: .5; } to { transform: scale(1.6); opacity: 0; } }

.stage { position: relative; }

.headline {
  font-size: clamp(34px, 6.6vw, 98px); font-weight: 800;
  line-height: 1.1; letter-spacing: -.025em; text-align: center;
}
.line { display: block; white-space: nowrap; }
.w { display: inline-block; }
.muted { color: var(--muted); }

.hero-sub {
  max-width: 640px; margin-top: 88px;
  font-size: clamp(16px, 1.45vw, 20px); font-weight: 400; line-height: 1.55; color: #4d4d4d;
}
.hero-claim, .hero-price { text-wrap: balance; }
.hero-claim {
  display: block;
  font-size: clamp(22px, 2.3vw, 32px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--ink);
}
.hero-price { display: block; margin-top: 8px; }

.hero-ctas { display: flex; align-items: center; gap: 22px; margin-top: 30px; }

.hero-video { position: relative; z-index: 2; margin-top: 64px; padding: 0 16px 20px; }
.video-frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-height: 86vh; margin: 0 auto;
  border-radius: 22px; background: #4f4ee6;
  box-shadow: 0 40px 80px -40px rgba(21, 21, 21, .45);
  clip-path: inset(0 12% 0 12% round 28px);
  will-change: clip-path;
}
.hero-clip { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-toggle {
  position: absolute; bottom: 18px; left: 20px; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 18px;
  transition: transform .2s;
}
.video-toggle:hover { transform: scale(1.06); }

/* Inline image pill — mini website cards */
.pill {
  position: relative; overflow: hidden; vertical-align: -.04em;
  width: 1.5em; height: .74em; border-radius: .19em; background: #18181c;
}
.card {
  position: absolute; width: .62em; height: .43em; border-radius: .04em;
  transform: rotate(-16deg); box-shadow: 0 .02em .08em rgba(0, 0, 0, .45);
}
.c1 {
  left: .05em; top: .24em;
  background:
    linear-gradient(var(--orange), var(--orange)) 0 0 / 100% 22% no-repeat,
    linear-gradient(#d9d9de, #d9d9de) 14% 48% / 62% 9% no-repeat,
    linear-gradient(#d9d9de, #d9d9de) 14% 66% / 38% 9% no-repeat,
    #fff;
}
.c2 {
  left: .45em; top: .09em;
  background:
    linear-gradient(#fff, #fff) 14% 30% / 56% 12% no-repeat,
    linear-gradient(#c9c6fb, #c9c6fb) 14% 56% / 40% 9% no-repeat,
    linear-gradient(#fff, #fff) 86% 82% / 30% 16% no-repeat,
    var(--indigo);
}
.c3 {
  left: .86em; top: .22em;
  background:
    linear-gradient(#4fd1b5, #4fd1b5) 50% 26% / 76% 34% no-repeat,
    linear-gradient(#5b5b66, #5b5b66) 14% 72% / 50% 9% no-repeat,
    #24242b;
}

/* ---------- The live-edited word ---------- */

.slot { position: relative; isolation: isolate; text-align: center; }
.slot-word {
  position: relative; z-index: 1; display: inline-block;
  transition: color .35s, font-weight .3s, transform .45s var(--ease-out);
}
.slot[data-state="dev"] .slot-word { color: var(--indigo); font-weight: 500; }
.slot[data-state="site"] .slot-word { color: var(--orange); }
.slot.italic .slot-word { transform: skewX(-9deg); }
.slot.bold .slot-word { font-weight: 900; }
.slot.selected .slot-word { color: #fff; }
.slot.leaving .sel, .slot.leaving .mark { opacity: 0; }

.sel {
  position: absolute; inset: .1em -.04em .02em; z-index: 0;
  background: var(--ink); border-radius: .08em;
  outline: 1.5px solid #8f8cf5; outline-offset: 3px;
  opacity: 0; transform: scale(.97);
  transition: opacity .2s, transform .3s var(--ease-out), background-color .45s;
}
.sel i {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 1.5px solid #8f8cf5;
}
.sel i:nth-child(1) { top: -8px; left: -8px; }
.sel i:nth-child(2) { top: -8px; right: -8px; }
.sel i:nth-child(3) { bottom: -8px; left: -8px; }
.sel i:nth-child(4) { bottom: -8px; right: -8px; }
.slot.selected .sel { opacity: 1; transform: none; }
.slot.purple .sel { background: var(--purple); }

.mark {
  position: absolute; inset: .12em -.05em .04em; z-index: 0;
  background: var(--lavender);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s cubic-bezier(.65, 0, .35, 1), opacity .2s;
}
.slot.marked .mark { transform: scaleX(1); }

/* max-width: none, or the global svg { max-width: 100% } caps it to the word and the ring drifts left */
.ring {
  position: absolute; z-index: 2; left: -14%; top: -2%; width: 128%; max-width: none; height: 118%;
  overflow: visible; pointer-events: none; opacity: 0; transition: opacity .3s;
}
.slot.ringed .ring { opacity: 1; }
.ring path {
  fill: none; stroke: var(--yellow); stroke-width: .05em; stroke-linecap: round;
  vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1;
}

/* Figma-style popovers under the word */
.pop {
  position: absolute; z-index: 3; top: calc(100% + 8px); left: 50%;
  padding: 10px 12px; border-radius: 10px; background: #1d1d21;
  font: 400 12px/1.2 var(--font); letter-spacing: 0; color: #fff;
  white-space: nowrap; text-align: left; pointer-events: none;
  opacity: 0; transform: translate(-50%, 6px) scale(.94);
  transition: opacity .25s, transform .35s var(--ease-out);
}
.pop.show { opacity: 1; transform: translate(-50%, 0); }
.pop-head { display: flex; justify-content: space-between; gap: 34px; margin-bottom: 10px; color: #cfcfd4; }
.sws { display: flex; gap: 8px; }
.sw { width: 18px; height: 18px; border-radius: 50%; background: var(--c); transition: box-shadow .2s; }
.sw.on { box-shadow: 0 0 0 2px #1d1d21, 0 0 0 3.5px #fff; }

.pop-toolbar { display: flex; gap: 2px; padding: 5px; }
.tb {
  display: grid; place-items: center; width: 27px; height: 25px; border-radius: 6px;
  color: #e8e8ec; font-size: 13px; transition: background-color .2s;
}
.tb.on { background: #3d3d46; }

/* Multiplayer cursors in the headline */
.cursor {
  position: absolute; top: 0; left: 0; z-index: 6; pointer-events: none;
  opacity: 0; transition: opacity .3s; will-change: transform;
}
.cursor.on { opacity: 1; }
.cursor svg { display: block; width: 16px; height: 18px; fill: var(--c); stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.cursor span {
  position: absolute; top: 15px; left: 11px; padding: 4px 7px; border-radius: 5px;
  background: var(--c); color: #fff; font: 500 12px/1 var(--font); white-space: nowrap;
}
/* The customer's cursor works near the right edge on phones: its label hangs to the left so it isn't cut off */
.cursor[data-cursor="c"] span { left: auto; right: 11px; }

@media (max-width: 899px) {
  :root { --nav-h: 70px; }
  .nav { padding: 0 16px; }
  .tagline { display: none; }
  .logo { font-size: 21px; }
  .menu-toggle { height: 38px; padding: 0 13px; font-size: 13px; }
  .hero { padding-top: calc(var(--promo-h) + var(--nav-h) + 30px); }
  .promo-group { font-size: 12.5px; }
  .hero-badge { margin-bottom: 20px; font-size: 13px; }
  .headline { font-size: min(14vw, 64px); }
  .part { display: block; }
  .hero-sub { margin-top: 100px; }
  .pop { transform-origin: 50% 0; transform: translate(-50%, 6px) scale(.84); }
  .pop.show { transform: translate(-50%, 0) scale(.9); }
  .hero-ctas { flex-direction: column; gap: 14px; }
  .hero-video { margin-top: 44px; padding: 0 10px 12px; }
  .video-frame { aspect-ratio: 4 / 3; border-radius: 16px; clip-path: inset(0 6% 0 6% round 20px); }
}
