/* Smart Market website. Layout: a luxury product film in scroll: a cream stage, very large navy type, a 3D camera and
   a 3D shelf, one navy band for the number that matters, and Signal blue only where something is found.
   Brand rules: brand/README.md (Cream & Navy). Every color is a token here; the 3D scenes read --signal, --signal-glow
   and --ground-2 from this block too. */
:root {
  --ground: #F1EBDF;      /* cream: the page */
  --ground-2: #DFE1E5;    /* light grey: the shelf section, and the 3D fog */
  --ground-3: #E9E4D8;
  --text: #142847;        /* navy */
  --muted: #5E6878;
  --line: rgba(20, 40, 71, 0.14);
  --line-strong: rgba(20, 40, 71, 0.3);
  --band: #142847;        /* the navy band and other solid navy surfaces */
  --band-text: #F1EBDF;
  --band-muted: #A9B3C4;
  --solid-hover: #22406E;
  --signal: #2A55C9;      /* found */
  --signal-deep: #142847;
  --signal-glow: #6E9BFF; /* the same blue as light, on dark surfaces (the camera LED, the lock inside the fridge) */
  --signal-line: rgba(42, 85, 201, 0.5);   /* the found label's border */
  --glow: #FFFDF8;        /* the soft light behind the hero camera and the shelf */
  --glow-2: #E9E4D8;
  --scrim: rgba(223, 225, 229, 0.88);   /* behind the shelf heading */
  --scrim-0: rgba(223, 225, 229, 0);
  --glass: rgba(241, 235, 223, 0.82);   /* the header once scrolled, and the found label */
  --font: "Instrument Sans", "Heebo", system-ui, sans-serif;
  --font-he: "Heebo", "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1320px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; }
.site[lang="he"] { font-family: var(--font-he); }
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 300; text-wrap: balance; letter-spacing: -0.03em; }
.site[lang="he"] h1, .site[lang="he"] h2 { letter-spacing: -0.015em; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; } }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.kicker { font-family: "Instrument Sans", "Heebo", sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--muted); }
.site[lang="he"] .kicker:not([lang]) { letter-spacing: 0.06em; font-size: 14px; }   /* spaced letters suit Latin capitals, not Hebrew */
.sub { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 38ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding-inline: 28px;
  border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 500; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; }
.ready .btn { transition: background 0.25s, border-color 0.25s, color 0.25s; }   /* only after load: nothing animates in on first paint */
.btn-solid { background: var(--text); color: var(--ground); }
.btn-solid:hover { background: var(--solid-hover); }
.btn-line { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--text); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* header */
.top { position: fixed; inset-inline: 0; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); }
.ready .top { transition: background 0.3s; }
.top.scrolled { background: var(--glass); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.top .logo img { height: 24px; width: auto; }
.top .end { margin-inline-start: auto; display: flex; align-items: center; gap: 22px; }
.top .lang { font-size: 14px; color: var(--muted); text-decoration: none; }
.top .lang:hover { color: var(--text); }
.top .btn { min-height: 40px; padding-inline: 20px; font-size: 14px; }
@media (max-width: 440px) { .top .logo img { height: 20px; } .top .end { gap: 14px; } .top .btn { padding-inline: 14px; } }

/* hero: the 3D camera fills the stage, the words sit on the start side */
.hero { position: relative; min-height: min(100svh, 980px); overflow: hidden; --hx: 70%;
  background: radial-gradient(ellipse 60% 70% at var(--hx) 38%, var(--glow) 0%, var(--ground-2) 48%, var(--ground) 100%); }
.site[dir="rtl"] .hero { --hx: 30%; }
.hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback { position: absolute; inset-inline-end: 8%; top: 22%; width: min(34vw, 380px); opacity: 0.9; display: none; }
.no-3d .hero-fallback { display: block; }
.hero .wrap { position: relative; z-index: 1; min-height: min(100svh, 980px); display: grid; align-content: end;
  padding-block: 140px clamp(72px, 12vh, 120px); pointer-events: none; }
.hero-copy { display: grid; gap: 22px; max-width: 640px; pointer-events: auto; }
.hero h1 { font-size: clamp(60px, 9.5vw, 140px); line-height: 0.92; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.cue { position: absolute; bottom: 28px; inset-inline-start: 50%; width: 1px; height: 46px; background: var(--line); overflow: hidden; z-index: 1; }
.cue::after { content: ""; position: absolute; inset-inline: 0; top: -50%; height: 50%; background: var(--text); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 760px) { .hero .wrap { padding-block: 55svh 64px; } .cue { display: none; } }

/* what it does: four words */
.caps { background: var(--ground); padding-block: clamp(96px, 14vw, 180px); }
.caps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cap { display: grid; gap: 14px; align-content: start; padding-block: 36px; padding-inline-end: 24px; }
.cap + .cap { border-inline-start: 1px solid var(--line); padding-inline-start: 28px; }
.cap h2 { font-size: clamp(44px, 5.6vw, 92px); font-weight: 200; line-height: 1; }
.cap p { color: var(--muted); font-size: 17px; max-width: 22ch; }
@media (max-width: 900px) {
  .caps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .cap:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .caps-grid { grid-template-columns: 1fr; }
  .cap + .cap { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); }
}

/* the 3D shelf: a sticky stage while the visitor scrolls through it */
.scan { position: relative; height: 320vh; background: var(--ground-2); }
.scan-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, var(--glow-2) 0%, var(--ground-2) 70%); }
.shelf-3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan-stage::before { content: ""; position: absolute; inset: 0 0 auto; height: 46%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, var(--ground-2) 0%, var(--scrim) 45%, var(--scrim-0) 100%); }
.scan .wrap { position: relative; z-index: 2; padding-top: clamp(100px, 13vh, 150px); }
.scan h2 { font-size: clamp(38px, 4.6vw, 76px); line-height: 1.02; max-width: 20ch; }
.lock-tag { position: absolute; z-index: 2; bottom: clamp(36px, 9vh, 90px); inset-inline-start: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--glass);
  border: 1px solid var(--signal-line); font-size: 15px; white-space: nowrap; opacity: 0; }
.site[dir="rtl"] .lock-tag { transform: translateX(50%); }
.lock-tag .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--signal); }
.scan-fallback { display: none; }
.no-3d .scan { height: auto; }
.no-3d .scan-stage { position: relative; height: auto; padding-bottom: 80px; }
.no-3d .scan-fallback { display: block; position: relative; z-index: 1; margin-top: 48px; border-radius: 16px; width: 100%; }
.no-3d .lock-tag { position: static; transform: none; opacity: 1; margin-top: 20px; }

/* the camera wall */
.wall-band { background: var(--ground-2); padding-block: clamp(96px, 12vw, 160px); overflow: hidden; }
.wall-head { display: grid; gap: 18px; margin-bottom: clamp(48px, 6vw, 80px); }
.wall-head h2 { font-size: clamp(40px, 5.4vw, 86px); line-height: 1.02; }
.wall { perspective: 1800px; }
.wall-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; transform-origin: 50% 100%;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--zoom, 1)); will-change: transform; }
.feed { position: relative; margin: 0; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-radius: 6px; background: #000; }
.feed img { width: 100%; height: 100%; object-fit: cover; }
.feed::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
              radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
.osd { position: absolute; z-index: 1; inset-inline: 12px; top: 10px; display: flex; justify-content: space-between; gap: 12px;
  direction: ltr; font-family: "Instrument Sans", sans-serif; font-size: 11px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.82); }
.rec::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); margin-right: 6px;
  vertical-align: 1px; animation: rec 1.6s steps(2) infinite; }
@keyframes rec { 50% { opacity: 0.2; } }
.clock { position: absolute; z-index: 1; left: 12px; bottom: 9px; direction: ltr; font-family: "Instrument Sans", sans-serif; font-size: 11px;
  letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.78); font-variant-numeric: tabular-nums; }
.found { position: absolute; z-index: 1; left: 30%; top: 40%; width: 14%; height: 24%; }
.found i { position: absolute; width: 22%; height: 30%; border-color: var(--signal); border-style: solid; border-width: 0; }
.found i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.found i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.found i:nth-child(3) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.found i:nth-child(4) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
@media (max-width: 760px) { .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .osd, .clock { font-size: 9px; } }

/* real cameras, three tall loops above the wall */
.reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.reel video { width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; object-fit: cover; border-radius: 6px; background: #000;
  filter: grayscale(0.35) contrast(1.05); }
@media (max-width: 760px) { .reel { gap: 6px; margin-bottom: 6px; } }

/* the number that matters, on white */
.statement { background: var(--text); color: var(--band-text); padding-block: clamp(110px, 14vw, 190px); }
.statement .wrap { display: grid; gap: 22px; }
.statement .big { font-size: clamp(56px, 10vw, 170px); font-weight: 200; line-height: 0.95; letter-spacing: -0.04em; }
.statement .sub { color: var(--band-muted); max-width: 44ch; }
.source { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #8E8E93; font-family: "Instrument Sans", sans-serif; }

/* the film */
.film { background: var(--ground); padding-block: clamp(96px, 12vw, 160px); }
.film .wrap { display: grid; gap: 28px; }
.film h2 { font-size: clamp(40px, 5.4vw, 86px); line-height: 1.02; }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }
.video video { width: 100%; height: 100%; object-fit: cover; }
.film .sound { justify-self: start; }
.film .sound.on { visibility: hidden; }

/* the team app */
.app-band { background: var(--band); color: var(--band-text); padding-block: clamp(96px, 12vw, 170px) 0; overflow: hidden; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.phone3d { perspective: 1400px; display: grid; justify-items: center; }
.phone { width: min(330px, 78vw); border-radius: 50px; border: 11px solid var(--text); background: #000; overflow: hidden;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(20, 40, 71, 0.4);
  transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg)); transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
  animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -12px; } }
.phone img { width: 100%; }
.app-copy { display: grid; gap: 22px; }
.app-copy .kicker { color: var(--band-muted); }
.app-copy h2 { font-size: clamp(40px, 5vw, 80px); line-height: 1.02; }
.app-copy .sub { color: var(--band-muted); }
.count { display: flex; align-items: baseline; gap: 16px; margin-top: 18px; }
.count b { font-family: "Instrument Sans", sans-serif; font-size: clamp(96px, 12vw, 180px); font-weight: 400; line-height: 0.85; letter-spacing: -0.06em; }
.count span { font-size: 22px; color: var(--band-muted); }
.langs { margin-top: clamp(72px, 9vw, 120px); padding-block: 28px 36px; border-top: 1px solid #DCDCE0; display: grid; gap: 10px;
  direction: ltr; overflow: hidden; }
.lane { display: flex; width: max-content; gap: 56px; animation: lane 60s linear infinite; }
.lane.back { animation-direction: reverse; animation-duration: 70s; }
.lane span { font-size: clamp(28px, 3.6vw, 52px); font-weight: 300; white-space: nowrap; color: var(--band-text); }
.lane span:nth-child(even) { color: #A1A1A6; }
@keyframes lane { to { transform: translateX(-50%); } }

/* privacy */
/* the engine: five agents, one list, same type as the rest of the page */
.agents { background: var(--ground); padding-block: clamp(110px, 14vw, 190px) clamp(40px, 6vw, 80px); }
.agents .wrap { display: grid; gap: 24px; }
.agents h2 { font-size: clamp(44px, 6.4vw, 108px); font-weight: 200; line-height: 1; }
.agent-list { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.agent-list li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline;
  padding-block: 26px; border-bottom: 1px solid var(--line); }
.agent-list .name { font-size: clamp(34px, 4.4vw, 72px); font-weight: 200; line-height: 1.05; letter-spacing: -0.02em; }
.agent-list .does { color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; max-width: 42ch; }
@media (max-width: 720px) { .agent-list li { grid-template-columns: 1fr; gap: 8px; } }

.privacy { background: var(--ground); padding-block: clamp(110px, 14vw, 200px); text-align: center; }
.privacy .wrap { display: grid; gap: 26px; justify-items: center; }
.privacy h2 { font-size: clamp(48px, 7.4vw, 124px); font-weight: 200; line-height: 0.98; }
.privacy .sub { max-width: none; }

/* contact */
.contact { background: var(--ground-2); padding-block: clamp(96px, 12vw, 170px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: end; }
.contact h2 { font-size: clamp(44px, 6vw, 96px); line-height: 1; }
.contact-copy { display: grid; gap: 22px; }
.direct { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); }
.direct span { color: var(--text); user-select: all; }
.direct a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-note { font-size: 14px; color: var(--muted); }
form { display: grid; gap: 26px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.site[lang="he"] .field label { letter-spacing: 0.04em; font-size: 13px; }
.field input { width: 100%; font: inherit; font-size: 20px; color: var(--text); background: transparent; border: 0;
  border-bottom: 1px solid var(--line-strong); padding: 10px 0 12px; border-radius: 0; }
.field input:focus { outline: none; border-bottom-color: var(--text); }
form .btn { justify-self: start; margin-top: 8px; }
.form-status { font-size: 15px; color: var(--muted); min-height: 1.5em; }
.form-status.ok { color: var(--text); }
@media (max-width: 860px) { .app-grid, .contact-grid { grid-template-columns: 1fr; } .phone3d { order: 2; } }

/* footer */
.foot { background: var(--ground); color: var(--muted); padding-block: 56px 72px; font-size: 13px; border-top: 1px solid var(--line); }
.foot .wrap { display: grid; gap: 22px; }
.foot .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.foot img { height: 20px; width: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

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