:root {
  --paper: #F7F6F2;
  --paper-2: #EEECE5;
  --ink: #16181A;
  --ink-2: #33373A;
  --muted: #5B6063;
  --line: #DDDAD2;
  --accent: #1F5F63;
  --accent-deep: #174A4D;
  --accent-soft: #E2EBE9;
  --serif: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "IBM Plex Sans Hebrew", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(16px, 5vw, 56px);
  --max: 1240px;
}
html[lang="he"] {
  --sans: "Assistant", "IBM Plex Sans Hebrew", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Assistant", "IBM Plex Sans Hebrew", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --he-h1-measure: 20ch;
  --he-h1-scale: 1;
  --he-h1-lh: 1.14;
  --he-hero-split: 1.4fr;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="he"] body { line-height: 1.7; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-soft); }

/* Language visibility */
html[lang="he"] .en, html:not([lang="he"]) .he { display: none !important; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }

/* Labels */
.label {
  font: 500 12.5px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="he"] .label { font-family: var(--sans); font-size: 14px; letter-spacing: 0; font-weight: 500; }
.section-label { display: flex; gap: 14px; align-items: baseline; }
.section-label .num { color: var(--accent); font-family: var(--mono); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 246, 242, 0.86);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.mark { width: 26px; height: 26px; display: block; }
.wordmark { font: 600 18px/1 "IBM Plex Sans", var(--sans); letter-spacing: -0.015em; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: 500 13.5px/1 "IBM Plex Sans", "IBM Plex Sans Hebrew", sans-serif; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  min-height: 32px;
}
.lang-switch button[lang="he"] { font-family: "IBM Plex Sans Hebrew", sans-serif; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang-switch .short { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 500 16px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: 14.5px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { color: var(--ink); padding-inline: 6px; }
.btn-ghost:hover { color: var(--accent); }
.btn-light { background: var(--paper); color: var(--accent-deep); }
.btn-light:hover { background: #fff; color: var(--ink); }
.arrow { display: inline-block; transition: transform .2s ease; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* Hero */
.hero { padding-block: clamp(40px, 8vw, 112px) clamp(56px, 9vw, 128px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
h1 {
  font: 400 clamp(40px, 6vw, 80px)/1.03 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 14ch;
}
html[lang="he"] h1 {
  font-size: calc(clamp(34px, 4.6vw, 62px) * var(--he-h1-scale, 1));
  font-weight: 500; line-height: var(--he-h1-lh, 1.14); letter-spacing: -0.02em;
  max-width: var(--he-h1-measure, 20ch);
}
html[lang="he"] .hero-grid { grid-template-columns: minmax(0, var(--he-hero-split, 1.4fr)) minmax(0, 1fr); }
@media (max-width: 900px) { html[lang="he"] .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
html[lang="he"] .lede { line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 4px; }

.hero-visual {
  position: relative; aspect-ratio: 1 / 1; width: 100%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(226, 235, 233, 0.95), rgba(238, 236, 229, 0.55) 70%, rgba(247, 246, 242, 0) 100%);
}
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 128px); border-top: 1px solid var(--line); }
h2 {
  font: 400 clamp(32px, 4.2vw, 54px)/1.08 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
html[lang="he"] h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.body { font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; max-width: 36em; }
html[lang="he"] .body { line-height: 1.75; }
.note { color: var(--muted); font-size: 16px; text-wrap: pretty; }

.product {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); margin-top: clamp(32px, 4vw, 56px); align-items: start;
}
.product-intro { display: flex; flex-direction: column; gap: 22px; }
.status {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep);
  font: 500 13px/1.3 var(--mono); letter-spacing: 0.02em;
}
html[lang="he"] .status { font-family: var(--sans); font-size: 14px; letter-spacing: 0; padding: 7px 12px 7px 14px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .status-dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
    animation: pulse 2.4s ease-out infinite;
  }
}
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

.features { border-top: 1px solid var(--ink); }
.features li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.features .num { font: 500 13px/1.9 var(--mono); color: var(--accent); }
.features h3 { font: 500 19px/1.35 var(--sans); margin-bottom: 6px; }
.features p { color: var(--muted); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
html[lang="he"] .features p { line-height: 1.7; }

.principles { margin-top: clamp(56px, 7vw, 96px); }
.principles ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); margin-top: 20px; }
.principles li {
  padding-top: 18px; border-top: 1px solid var(--line);
  font: 400 clamp(20px, 1.9vw, 24px)/1.35 var(--serif); color: var(--ink);
  text-wrap: pretty;
}
html[lang="he"] .principles li { font-size: clamp(19px, 1.7vw, 22px); font-weight: 400; line-height: 1.5; }

.next {
  display: flex; align-items: center; gap: 18px;
  margin-top: clamp(48px, 6vw, 80px); padding: 22px 24px;
  border: 1px dashed #BEBAB0; border-radius: 14px;
}
.next p { color: var(--muted); font-size: 16px; text-wrap: pretty; }
.next strong { color: var(--ink); font-weight: 500; }
.next-mark {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px dashed var(--accent); position: relative;
}
.next-mark::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--accent); opacity: .35; }

/* Pilot */
.pilot { border-top: 0; padding-top: 0; }
.pilot-panel {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end;
  background: var(--accent); color: #fff;
  border-radius: 24px; padding: clamp(32px, 6vw, 80px);
}
.pilot-copy { display: flex; flex-direction: column; gap: 20px; }
.pilot .label, .pilot .section-label .num { color: #CFE0DD; }
.pilot .body { color: #E6EFED; }
.pilot h2 { color: #fff; }
.pilot-action { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; justify-self: end; }
.pilot .email { font: 400 15px/1.4 var(--mono); color: #CFE0DD; }
.pilot :focus-visible { outline-color: #fff; }

/* Footer */
.site-footer { padding-block: 56px 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; border-top: 1px solid var(--line); padding-top: 32px; }
.name-note { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 40em; text-wrap: pretty; }
.label-inline {
  display: block; margin-bottom: 6px; color: var(--ink);
  font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
html[lang="he"] .label-inline { font: 500 14px/1.4 var(--sans); letter-spacing: 0; }
[lang="ja"] { font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; font-size: .95em; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.footer-meta nav { display: flex; gap: 20px; }
.footer-meta a { color: var(--ink-2); font-size: 15px; text-decoration: none; }
.footer-meta a:hover { color: var(--accent); text-decoration: underline; }
.copy { color: var(--muted); font-size: 14px; }

/* Legal pages */
.legal { padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 128px); }
.legal-inner { max-width: 720px; }
.legal h1 { font-size: clamp(38px, 5vw, 60px); max-width: none; margin-top: 18px; }
html[lang="he"] .legal h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: none; }
.legal .updated { margin-top: 16px; color: var(--muted); font-size: 15px; }
.legal .intro { margin-top: 28px; font-size: 19px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.legal section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.legal h2 { font: 500 20px/1.35 var(--sans); letter-spacing: 0; }
html[lang="he"] .legal h2 { font-size: 21px; line-height: 1.4; letter-spacing: 0; }
.legal section p, .legal section li { color: var(--ink-2); font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.legal section ul { display: flex; flex-direction: column; gap: 8px; }
.legal section li { position: relative; padding-inline-start: 20px; }
.legal section li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.footer-meta a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .product, .pilot-panel { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 460px; justify-self: center; order: -1; width: 78%; }
  .hero-copy { gap: 24px; }
  .principles ul { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .principles li { padding-block: 16px; }
  .pilot-action { justify-self: start; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-meta { align-items: flex-start; }
  .lang-switch .long { display: none; }
  .lang-switch .short { display: inline; }
  .lang-switch button { padding: 8px 10px; }
  .next { align-items: flex-start; padding: 18px; }
}
@media (max-width: 400px) {
  .header-actions { gap: 6px; }
  .btn-sm { padding: 8px 12px; font-size: 13.5px; }
  .wordmark { font-size: 16.5px; }
  .mark { width: 22px; height: 22px; }
  .brand { gap: 7px; }
}

/* 404 page: space between the explanation and its button */
.legal .intro + .actions { margin-top: 28px; }
