/* YaegerAI for SMBs. Hi-Tech system: white surface, navy ink, one electric blue. Hebrew-first, logical properties only. */

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

:root {
  --primary: #0A1A2F;
  --surface: #FFFFFF;
  --container: #F4F6FA;
  --accent: #2456E8;
  --on-accent: #FFFFFF;
  --muted: #5B6B80;
  --line: #E1E6EE;
  --sans: "Heebo", "Assistant", "Rubik", "Noto Sans Hebrew", system-ui, sans-serif;
  --grotesk: "Space Grotesk", "Heebo", sans-serif;
  --r-sm: 8px; --r-md: 12px;
  --max: 1280px;
  --pad: 24px;
  color-scheme: light;
}
@media (min-width: 900px) { :root { --pad: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--surface); color: var(--primary);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-weight: 400;
  font-feature-settings: "kern", "calt"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(36,86,232,0.12);
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl, dd, dt, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 700; }
[id] { scroll-margin-top: 80px; }
.skip { position: absolute; inset-inline-start: 16px; top: -100px; padding: 8px 12px; background: var(--accent); color: #fff; border-radius: 4px; }
.skip:focus { top: 16px; z-index: 50; }
.wrap { width: min(var(--max), 100% - var(--pad) * 2); margin-inline: auto; }
.num { font-family: var(--grotesk); font-variant-numeric: tabular-nums; }
bdi, .ltr, .brand .house, .brand .product { direction: ltr; unicode-bidi: isolate; }

/* Type. Hebrew display: no negative tracking, line-height 1.15+. Bigger than the token defaults on purpose. */
body { font-size: 18px; }
.h-display { font-weight: 800; font-size: clamp(2.375rem, 6vw, 4.5rem); line-height: 1.15; letter-spacing: 0; text-wrap: balance; }
.h-lg { font-weight: 800; font-size: clamp(1.875rem, 3.8vw, 3rem); line-height: 1.18; text-wrap: balance; }
.h-md { font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; }
.lead { font-size: clamp(1.125rem, 1.7vw, 1.375rem); color: var(--muted); max-width: 44ch; line-height: 1.55; }
.muted { color: var(--muted); }
.sm { font-size: 15px; }

/* Buttons. One primary per viewport. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: var(--r-sm); font-weight: 600; font-size: 17px; touch-action: manipulation; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px -10px rgba(36,86,232,0.6); }
.btn-primary:hover { background: var(--primary); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--container); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: baseline; }
.brand .house { display: inline-flex; align-items: baseline; font-family: "Newsreader", Georgia, serif; font-weight: 600; font-size: 1.625rem; letter-spacing: -0.02em; line-height: 1; }
.brand .house .dot { color: var(--accent); }
.brand .house .dot { transition: color 200ms ease; }
.brand:hover .house .dot { color: var(--primary); }
.nav .btn { min-height: 42px; padding: 8px 18px; font-size: 15px; box-shadow: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 10vh, 128px) clamp(48px, 8vh, 96px); }
.particles { position: absolute; inset: 0; z-index: 0; pointer-events: auto; }
.particles canvas { display: block; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.hero .cadence { display: grid; gap: 22px; }
.hero .h-display { max-width: 16ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* The example: full-width band under the hero, values glide */
.example { grid-column: 1 / -1; margin-top: clamp(8px, 2vh, 24px); background: var(--container); border-radius: 20px; padding: clamp(22px, 3.5vw, 40px) clamp(22px, 4vw, 48px); display: grid; gap: 6px; position: relative; }
.ex-line { font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 600; white-space: normal; line-height: 1.6; letter-spacing: 0; text-wrap: pretty; }
.ex-result { color: var(--muted); font-weight: 500; }
.swap { display: inline-block; vertical-align: bottom; position: relative; clip-path: inset(-3px -10px); transition: width 520ms cubic-bezier(0.86, 0, 0.07, 1); white-space: nowrap; box-sizing: content-box; padding-inline: 0; }
.swap.num { font-family: var(--grotesk); font-weight: 700; font-size: 1.2em; line-height: 1.35; font-variant-numeric: tabular-nums; padding-inline: 0.06em; }
.swap.lose { color: #D93025; }
.swap.gain { color: #0E9F6E; }
.swap .word { display: block; transition: transform 460ms cubic-bezier(0.2,0.7,0.2,1), opacity 360ms ease; }
.swap .word.in { transform: translateY(100%); opacity: 0; }
.swap .word.out { position: absolute; inset-inline-start: 0; top: 0; transform: translateY(-100%); opacity: 0; }
.measure { position: absolute; visibility: hidden; white-space: nowrap; pointer-events: none; clip-path: none; transition: none; }
.ex-line .swap { vertical-align: baseline; }

/* Flow diagram */
.flow { margin: 0; }
.flow svg { width: 100%; height: auto; display: block; direction: ltr; font-family: var(--sans); filter: drop-shadow(0 12px 30px rgba(10,26,47,0.08)); }
.flow .wires use { stroke: #C9D3E3; stroke-width: 1.5; fill: none; }
.flow .dots circle { fill: var(--accent); }
.flow .node rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.flow .node text { font-size: 12px; font-weight: 500; fill: var(--primary); }
.flow .node.out rect { fill: var(--container); }
.flow .core rect { fill: var(--primary); }
.flow .core text { font-family: var(--grotesk); font-size: 18px; font-weight: 700; fill: #fff; }
.flow .core .pulse { fill: none; stroke: var(--accent); stroke-width: 2; transform-origin: 250px 180px; transform-box: view-box; animation: pulse 3.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }

/* Sections */
.section { padding-block: clamp(64px, 10vh, 120px); }
.section.alt { background: var(--container); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vh, 56px); }

/* Signs: three cards with tinted icons */
.signs { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .signs { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.sign { background: var(--container); border-radius: 16px; padding: 26px; display: grid; gap: 10px; align-content: start; opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2,0.7,0.2,1); transition-delay: calc(var(--i, 0) * 110ms); }
.signs.in .sign { opacity: 1; transform: none; }
.sign h3 { font-size: 1.25rem; font-weight: 700; }
.sign p { color: var(--muted); }
.sign-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--tint) 12%, white); margin-bottom: 6px; }
.sign-ico svg { width: 28px; height: 28px; }
.sign-ico path { fill: none; stroke: var(--tint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Domains: colorful tiles, icons draw in, blobs breathe */
.domains-title { margin-top: clamp(36px, 5vh, 56px); margin-bottom: 18px; }
.domains { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .domains { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.domains li { position: relative; overflow: hidden; display: grid; gap: 14px; justify-items: center; text-align: center; padding: 26px 16px 22px; border-radius: 18px; background: var(--bg); color: var(--primary); font-weight: 600; font-size: 1rem; opacity: 0; transform: translateY(16px) scale(0.96); transition: opacity 600ms ease, transform 700ms cubic-bezier(0.2,0.8,0.2,1); transition-delay: calc(var(--i, 0) * 100ms); }
.domains.in li { opacity: 1; transform: none; }
.domains li:hover { transform: translateY(-4px); }
.domains .blob { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--c); opacity: 0.16; filter: blur(22px); inset-inline-end: -30px; top: -30px; animation: breathe 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.2s); }
@keyframes breathe { 0%, 100% { transform: scale(1) translate(0, 0); } 50% { transform: scale(1.35) translate(-14px, 16px); } }
.domains svg { position: relative; width: 44px; height: 44px; }
.domains path { fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 220; stroke-dashoffset: 220; }
.domains.in path { animation: draw 1.5s cubic-bezier(0.2,0.7,0.2,1) forwards; animation-delay: calc(var(--i, 0) * 140ms + 200ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.domains li span:last-child { position: relative; }

/* Roadmap */
.roadmap { position: relative; }
@media (min-width: 900px) { .roadmap { position: relative; } }
.road { display: none; }
.steps { display: grid; gap: 28px; grid-template-columns: 1fr; position: relative; padding-inline-start: 34px; }
.steps::before { content: ""; position: absolute; inset-inline-start: 11px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(to bottom, var(--accent) 0 8px, transparent 8px 16px); opacity: 0.5; }
.step { position: relative; }
.milestone { position: absolute; inset-inline-start: -34px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--grotesk); font-weight: 700; font-size: 13px; box-shadow: 0 0 0 6px rgba(36,86,232,0.15); }
.card { background: var(--surface); border-radius: 18px; padding: 28px; display: grid; gap: 14px; align-content: start; box-shadow: 0 1px 0 rgba(10,26,47,0.04), 0 14px 40px -24px rgba(10,26,47,0.25); opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 700ms cubic-bezier(0.2,0.8,0.2,1); transition-delay: calc(var(--i, 0) * 160ms + 200ms); }
.roadmap.in .card { opacity: 1; transform: none; }
.card .k { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card .k .name { font-weight: 800; font-size: 1.5rem; }
.card .k .when { font-size: 14px; color: var(--accent); font-weight: 600; white-space: nowrap; background: rgba(36,86,232,0.08); padding: 4px 10px; border-radius: 999px; }
.card ul { display: grid; gap: 8px; color: var(--primary); }
.card li { padding-inline-start: 16px; position: relative; }
.card li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.75em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.6; }
.card .price { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.card .price .num { font-weight: 700; font-size: 1.375rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; padding-inline-start: 0; padding-top: 110px; }
  .steps::before { display: none; }
  .road { display: block; position: absolute; inset-inline: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
  .road path { fill: none; stroke-width: 3; stroke-linecap: round; }
  .road-bg { stroke: #D6DEEC; }
  .road-fg { stroke: var(--accent); stroke-dasharray: 1600; stroke-dashoffset: 1600; }
  .roadmap.in .road-fg { animation: road 2.2s cubic-bezier(0.2,0.7,0.2,1) forwards; }
  @keyframes road { to { stroke-dashoffset: 0; } }
  .step { position: static; }
  .milestone { position: absolute; inset-inline-start: auto; left: 0; top: 0; transform: translate(-50%, -50%) scale(0.4); width: 46px; height: 46px; font-size: 18px; box-shadow: 0 0 0 8px rgba(36,86,232,0.14), 0 10px 22px -6px rgba(36,86,232,0.6); opacity: 0; transition: opacity 350ms ease, transform 600ms cubic-bezier(0.2,1.2,0.3,1); z-index: 2; }
  .roadmap.in .milestone { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .card:hover { transform: translateY(-4px); }
}

/* Cases */
.cases { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cases { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1024px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case { position: relative; background: var(--container); border-radius: 18px; padding: 26px; display: grid; gap: 10px; align-content: start; opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 700ms cubic-bezier(0.2,0.8,0.2,1), box-shadow 300ms ease; transition-delay: calc(var(--i, 0) * 90ms); }
.cases.in .case { opacity: 1; transform: none; }
.case:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(10,26,47,0.3); }
.case-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, white); }
.case-ico svg { width: 26px; height: 26px; }
.case-ico path { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.case h3 { font-size: 1.1875rem; font-weight: 700; }
.case p { color: var(--muted); font-size: 16px; }
.chip { justify-self: start; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 10%, white); padding: 4px 10px; border-radius: 999px; }

/* Calculator */
.calc-section { background: var(--surface); padding-top: clamp(40px, 6vh, 72px); }
.calc { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px; align-items: start; } }
.calc-inputs { background: var(--container); border-radius: 20px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 26px; }
.field { display: grid; gap: 12px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 1.0625rem; }
.field-row output { color: var(--accent); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.field-hint { color: var(--muted); font-size: 15px; margin-top: -6px; line-height: 1.45; }
input[type="range"] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin: 0; cursor: pointer; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(to left, var(--accent) var(--p), #D6DEEC var(--p)); }
input[type="range"]:dir(ltr)::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--accent) var(--p), #D6DEEC var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 14px rgba(36,86,232,0.35); transition: transform 150ms ease; }
input[type="range"]:active::-webkit-slider-thumb, input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: #D6DEEC; }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--accent); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 14px rgba(36,86,232,0.35); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(36,86,232,0.25); }
.calc-note { color: var(--muted); font-size: 15px; }
.calc-out { background: var(--primary); color: #fff; border-radius: 20px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 22px; position: relative; overflow: hidden; }
.calc-out::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(36,86,232,0.55), transparent 70%); inset-inline-end: -120px; top: -140px; filter: blur(20px); pointer-events: none; }
.calc-out > * { position: relative; }
.calc-out .lbl { display: block; color: #B7C3D6; font-size: 15px; margin-bottom: 6px; }
.calc-out .big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc-out .big .num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.calc-out .big.money .num { color: #FCA5A5; }
.calc-out .saved .big.money .num { color: #6EE7B7; }
.calc-out .unit { color: #B7C3D6; font-size: 1rem; }
.calc-out .year { margin-top: 4px; color: #6EE7B7; font-weight: 700; font-size: 1.25rem; }
.calc-out .year .unit { color: #6EE7B7; font-weight: 600; }
.calc-out .lost { padding-bottom: 6px; }
.calc-out .saved { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; }
.calc-out .btn { justify-self: start; margin-top: 6px; }
.bar-track { position: relative; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar-manual, .bar-saved { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 10px; transition: width 500ms cubic-bezier(0.2,0.8,0.2,1); display: flex; align-items: center; padding-inline: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.bar-manual { background: rgba(252,165,165,0.35); color: #FECACA; }
.bar-saved { background: #10B981; color: #fff; }

/* Closing: navy finale */
.closing { background: var(--primary); color: #fff; padding-block: clamp(72px, 12vh, 140px); position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; border-radius: 50%; background: radial-gradient(closest-side, rgba(36,86,232,0.45), transparent 70%); inset-inline-end: -20vw; top: -30%; filter: blur(30px); pointer-events: none; animation: breathe 9s ease-in-out infinite; }
.closing .wrap { position: relative; display: grid; gap: 22px; max-width: 800px; }
.closing .lead { color: #B7C3D6; }
.closing .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.closing .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.closing .btn-ghost:hover { background: rgba(255,255,255,0.08); }
.closing .btn-primary:hover { background: #fff; color: var(--primary); }
.closing .contact { color: #B7C3D6; font-size: 16px; }
.closing .contact a { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: rgba(255,255,255,0.35); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.foot a:hover { color: var(--primary); }

/* Hero entrance */
.cadence > * { opacity: 0; transform: translateY(8px); transition: opacity 700ms cubic-bezier(0.2,0.7,0.2,1), transform 700ms cubic-bezier(0.2,0.7,0.2,1); transition-delay: var(--d, 0ms); }
.cadence.on > * { opacity: 1; transform: none; }
.rule { height: 2px; background: var(--accent); transform-origin: var(--origin, right); transform: scaleX(0); }
.rule:dir(ltr) { --origin: left; }
@supports (animation-timeline: view()) {
  .rule { animation: rule linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  @keyframes rule { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: view()) { .rule { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cadence > * { opacity: 1; transform: none; transition: none; }
  .rule { animation: none; transform: scaleX(1); }
  .swap, .swap .word { transition: none; }
  .flow .dots, .flow .core .pulse, .domains .blob, .closing::before { display: none; }
  .domains path { stroke-dashoffset: 0; animation: none; }
  .sign, .domains li, .card, .case, .milestone { opacity: 1; transform: none; transition: none; }
  .road-fg { stroke-dashoffset: 0; animation: none; }
  .bar-manual, .bar-saved { transition: none; }
}
