/* dev-kit/css/colors.css (vendored by build.py) */
/* NativOps — Color tokens. Flat only: no gradients anywhere. */
:root {
  /* Brand */
  --blue: #0057FF;            /* the ONE accent — logo box, primary actions, links */
  --blue-hover: #2470FF;
  --blue-active: #0046CC;
  --on-blue: #FFFFFF;

  /* Neutrals — near-black scale */
  --black-0: #0A0A0A;         /* page background */
  --black-1: #111111;         /* surface / card */
  --black-2: #171717;         /* raised surface, hovered card */
  --black-3: #1F1F1F;         /* inputs, wells */
  --black-4: #2A2A2A;         /* borders */
  --black-5: #3A3A3A;         /* strong borders, dividers on raised */

  --gray-1: #6E6E6E;          /* disabled text, placeholders */
  --gray-2: #9A9A9A;          /* muted / secondary text */
  --gray-3: #C7C7C7;          /* tertiary emphasis */
  --white: #F5F5F5;           /* primary text (soft white) */
  --white-pure: #FFFFFF;      /* logo, on-blue text only */

  /* Semantic — flat, desaturated-but-clear */
  --ok: #2EA84A;
  --warn: #D9A21B;
  --danger: #E23D3D;
  --info: var(--blue);

  /* Semantic aliases */
  --bg-page: var(--black-0);
  --surface-card: var(--black-1);
  --surface-raised: var(--black-2);
  --surface-input: var(--black-3);
  --border-default: var(--black-4);
  --border-strong: var(--black-5);
  --text-body: var(--white);
  --text-muted: var(--gray-2);
  --text-faint: var(--gray-1);
  --text-link: var(--blue-hover);
}

/* dev-kit/css/typography.css (vendored by build.py) */
/* NativOps — Typography. IBM Plex Sans (UI/display) + IBM Plex Mono (code, data, labels). */
:root {
  --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;

  /* Scale */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 21px;
  --text-xl: 28px;
  --text-2xl: 40px;
  --text-3xl: 56px;   /* hero display */

  --leading-tight: 1.15;
  --leading-normal: 1.55;

  --tracking-caps: 0.08em;  /* mono uppercase labels */
}

/* dev-kit/css/spacing.css (vendored by build.py) */
/* NativOps — Spacing + radius. 4px base grid; radii stay small (2–4px). */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 2px;   /* badges, tags, checkboxes */
  --radius-md: 3px;   /* buttons, inputs */
  --radius-lg: 4px;   /* cards, dialogs — the maximum */
}

/* dev-kit/css/effects.css (vendored by build.py) */
/* NativOps — Effects. Flat system: borders carry structure, not shadows. No gradients, ever. */
:root {
  /* Shadows are near-absent; only dialogs/popovers float. */
  --shadow-overlay: 0 8px 32px rgba(0, 0, 0, 0.6);

  --focus-ring: 0 0 0 2px var(--black-0), 0 0 0 4px var(--blue);

  --transition-fast: 120ms ease;
}

/* ---- www/assets/css/site.css (site styles) ---- */
/* NativOps — site styles.
   Design tokens come from the dev-kit: build.py prepends dev-kit/css/{colors,
   typography,spacing,effects}.css to this file (see scripts/build.py). Style
   only with the tokens (var(--blue), var(--space-6), …) — never hard-code a hex
   a token already names. Flat only: no gradients, no card shadows.
   RTL is handled with CSS logical properties + dir="rtl" on <html>. */

/* IBM Plex Sans covers Latin only; the HE page also loads IBM Plex Sans Hebrew
   (build.py font_head). Listing both faces lets Hebrew glyphs resolve per-char. */
:root {
  --font-sans: "IBM Plex Sans", "IBM Plex Sans Hebrew", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  /* Accessible accent for SMALL blue text (eyebrows, step numbers, badges).
     The dev-kit blue (#0057FF) / blue-hover (#2470FF) fall just under WCAG AA
     4.5:1 as ~12px text on the #111 card surfaces; this lighter blue clears it.
     Action buttons no longer use the blue at all — see .btn-primary below. */
  --accent-text: #4C8DFF;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-block-start: 76px; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-inline-size: 100%; }
.icon { flex: none; }

/* Directional icons (arrows) mirror in RTL. */
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

.container {
  max-inline-size: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--blue-hover); }
/* Links inside running text carry an underline so they're not distinguished by
   colour alone (WCAG 1.4.1). Standalone links (nav, buttons, tags) don't. */
.consent a, .contact-direct a, .form-status a, .about-copy a, .section-note a { text-decoration: underline; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

h1, h2, h3 {
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  color: var(--text-body);
}
h1 { font-size: var(--text-3xl); max-inline-size: 16ch; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-md); margin-block-end: var(--space-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--space-4);
}
/* Hebrew has no case and no mono Plex face — use the sans, no uppercase. */
:lang(he) .eyebrow { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.section-lead { color: var(--text-muted); max-inline-size: 60ch; margin: 0 0 var(--space-7); }

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: var(--space-4);
  background: var(--surface-raised);
  color: var(--text-body);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  z-index: 100;
}
.skip-link:focus { inset-block-start: var(--space-3); color: var(--text-body); }

/* ---- Buttons (dev-kit: 30/36/42px, radius 3px). Primary is a flat neutral
   fill so the brand blue stays reserved for the logo only. ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  block-size: 36px;
  padding-inline: var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.btn-sm { block-size: 30px; padding-inline: var(--space-3); font-size: var(--text-sm); }
.btn-lg { block-size: 42px; padding-inline: var(--space-5); font-size: var(--text-base); }
.btn-primary { background: var(--surface-input); color: var(--text-body); border-color: var(--border-strong); }
.btn-primary:hover { background: var(--border-default); border-color: var(--border-strong); color: var(--text-body); }
.btn-primary:active { background: var(--surface-raised); border-color: var(--border-strong); }
.btn-secondary { background: transparent; color: var(--text-body); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-raised); border-color: var(--border-strong); color: var(--text-body); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  background: var(--bg-page);
  border-block-end: 1px solid var(--border-default);
  z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: var(--space-6); block-size: 64px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.nav { display: flex; gap: var(--space-6); margin-inline-end: auto; font-size: var(--text-sm); }
.nav a { color: var(--text-muted); }
.nav a:hover { color: var(--text-body); }
.header-actions { display: flex; align-items: center; gap: var(--space-4); flex: none; }
.lang-switch { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-muted); }
.lang-switch:hover { color: var(--blue-hover); }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  inline-size: 36px;
  block-size: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-body);
  cursor: pointer;
}
.nav-toggle-box { position: relative; inline-size: 16px; block-size: 10px; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  block-size: 1.5px;
  background: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-toggle-bar { inset-block-start: 50%; translate: 0 -50%; }
.nav-toggle-bar::before { inset-block-start: -5px; }
.nav-toggle-bar::after { inset-block-start: 5px; }
.site-header.is-open .nav-toggle-bar { background: transparent; }
.site-header.is-open .nav-toggle-bar::before { inset-block-start: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle-bar::after { inset-block-start: 0; transform: rotate(-45deg); }

/* ---- Hero ---- */
.hero { padding-block: var(--space-9) var(--space-8); position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.hero-sub { color: var(--text-muted); font-size: var(--text-md); max-inline-size: 60ch; margin-block: var(--space-5) var(--space-6); }

/* ---- Animated hero network (decorative) ----
   A deliberate exception to the dev-kit "no gradients / one blue" flat rule, at
   the user's request: a canvas of light "wires" that grow toward each other and
   spark where they meet. All rendering is thin glowing lines + spark particles
   (no solid fills). The animation lives in site.js (initHeroNet), pauses when
   off-screen, and renders a single static frame under prefers-reduced-motion.
   The canvas sits behind .container (z-index 0) and is masked to fade near the
   top so the hero heading stays readable. */
.hero-net {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 100%);
}

.tag-row { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-7) 0 0; padding: 0; }
.tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 4px var(--space-2);
}

/* ---- Sections ---- */
.section { padding-block: var(--space-9); border-block-start: 1px solid var(--border-default); }
.section-alt { background: var(--surface-card); }

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-block-start: var(--space-6);
}
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.card .icon { color: var(--text-faint); margin-block-end: var(--space-3); }
.card p { color: var(--text-muted); margin: 0; font-size: var(--text-sm); }

/* ---- Footer ---- */
.site-footer { border-block-start: 1px solid var(--border-default); margin-block-start: var(--space-8); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  justify-content: space-between;
  padding-block: var(--space-8);
}
.footer-brand { display: flex; align-items: flex-start; gap: var(--space-3); max-inline-size: 34ch; }
.footer-brand p { margin: 0; font-size: var(--text-sm); }
.footer-nav, .footer-legal { display: flex; flex-direction: column; gap: var(--space-3); font-size: var(--text-sm); }
.footer-nav a, .footer-legal a { color: var(--text-muted); }
.footer-nav a:hover, .footer-legal a:hover { color: var(--text-body); }
.footer-bar { border-block-start: 1px solid var(--border-default); }
.footer-bar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); block-size: 56px; }
.footer-bar span { font-size: var(--text-xs); color: var(--text-muted); }

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Badge (dev-kit: tinted flat fill, mono uppercase) */
.badge {
  display: inline-block;
  align-self: start;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  margin-block-end: var(--space-3);
}
.badge-blue {
  color: var(--accent-text);
  background: rgba(0, 87, 255, 0.12);
  border: 1px solid rgba(0, 87, 255, 0.4);
}
:lang(he) .badge { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }

.solution { display: flex; flex-direction: column; }
.solution-flag { border-color: var(--border-strong); }

/* ---- Open-source groups ---- */
.os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-block-start: var(--space-6);
}
.os-group-name { font-size: var(--text-sm); color: var(--text-body); margin: 0 0 var(--space-3); }
.os-group .tag-row { margin: 0; }

/* ---- Supported projects: grayscale logo wall (open_source section) ---- */
.oss-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: var(--space-5) var(--space-4);
  margin: 0;
  padding: 0;
}
.oss-item { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; }
/* Monochrome logo: the SVG masks a flat gray fill — grayscale by construction. */
.oss-mark {
  inline-size: 30px;
  block-size: 30px;
  background: var(--text-muted);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  transition: background var(--transition-fast);
}
/* Fallback for projects without a logo: an on-brand mono monogram box. */
.oss-mono {
  display: flex; align-items: center; justify-content: center;
  inline-size: 30px; block-size: 30px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.oss-name { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); line-height: 1.2; }
:lang(he) .oss-name { font-family: var(--font-sans); }
.oss-item:hover .oss-mark { background: var(--text-body); }
.oss-item:hover .oss-mono { color: var(--text-body); border-color: var(--text-muted); }
.oss-item:hover .oss-name { color: var(--text-muted); }

/* ---- Process (how we work) ---- */
.process-grid {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.step { border-inline-start: 1px solid var(--border-strong); padding-inline-start: var(--space-5); }
.step-num { display: block; font-size: var(--text-sm); color: var(--accent-text); margin-block-end: var(--space-3); }
.step h3 { font-size: var(--text-md); margin-block-end: var(--space-2); }
.step p { color: var(--text-muted); margin: 0; font-size: var(--text-sm); }

/* ---- Team ---- */
.role-card .icon { color: var(--text-faint); }
.section-note { margin-block-start: var(--space-5); font-size: var(--text-sm); }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-8); align-items: start; }
.about-copy p { color: var(--text-muted); max-inline-size: 62ch; }
.about-copy > p:last-child { margin-block-end: 0; }
.value-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.value { border-inline-start: 2px solid var(--blue); padding-inline-start: var(--space-4); }
.value h3 { font-size: var(--text-md); margin-block-end: var(--space-1); }
.value p { color: var(--text-muted); margin: 0; font-size: var(--text-sm); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
.contact-direct { font-size: var(--text-sm); margin-block-start: var(--space-5); }
.contact-form { max-inline-size: 32rem; }
.field { margin-block-end: var(--space-4); }
.field > label { display: block; font-size: var(--text-sm); margin-block-end: var(--space-2); color: var(--text-body); }
.field .opt { color: var(--text-muted); }
.field input, .field textarea {
  inline-size: 100%;
  background: var(--surface-input);
  color: var(--text-body);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font: inherit;
  font-size: var(--text-sm);
}
.field textarea { resize: vertical; min-block-size: 88px; }
.field input:focus, .field textarea:focus { border-color: var(--blue-hover); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-err { color: var(--danger); font-size: var(--text-sm); margin: var(--space-2) 0 0; }
.field-consent .consent { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-muted); }
.field-consent input { inline-size: 16px; block-size: 16px; margin-block-start: 3px; accent-color: var(--blue); flex: none; }
/* Honeypot — kept in the DOM for bots, hidden from people and AT */
.hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-status {
  margin-block-start: var(--space-4);
  padding: var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-inline-start: 2px solid var(--warn);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-body);
}
.form-status a { font-family: var(--font-mono); }

/* ---- Legal pages ---- */
.header-actions-legal { margin-inline-start: auto; }
.legal { max-inline-size: 70ch; }
.legal h1 { font-size: var(--text-2xl); max-inline-size: none; }
.legal .eyebrow a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--accent-text); text-decoration: none; }
.legal .eyebrow a:hover { text-decoration: underline; }
.legal-updated { margin-block: 0 var(--space-6); font-size: var(--text-sm); }
.legal-section { margin-block-start: var(--space-6); }
.legal-section h2 { font-size: var(--text-lg); margin-block-end: var(--space-3); }
.legal-section p { color: var(--text-muted); margin-block: 0 var(--space-3); }

/* ---- Cookie consent banner (fixed → no CLS) ---- */
.consent-banner {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 60;
  background: var(--surface-raised);
  border-block-start: 1px solid var(--border-strong);
}
.consent-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-block: var(--space-4);
}
.consent-text { margin: 0; flex: 1 1 22rem; font-size: var(--text-sm); color: var(--text-muted); }
.consent-text a { color: var(--accent-text); text-decoration: underline; }
.consent-actions { display: flex; gap: var(--space-3); flex: none; margin-inline-start: auto; }

/* Link-styled button (footer "Cookie preferences") */
.linklike {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: start;
  cursor: pointer;
}
.linklike:hover { color: var(--text-body); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--bg-page);
    border-block-end: 1px solid var(--border-default);
    padding: var(--space-3) var(--space-5) var(--space-5);
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding-block: var(--space-3); border-block-end: 1px solid var(--border-default); }
  .nav-toggle { display: inline-flex; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}
@media (max-width: 640px) {
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }
  .hero { padding-block: var(--space-8) var(--space-7); }
  .card-grid, .card-grid-2, .card-grid-4, .process-grid { grid-template-columns: 1fr; }
  .header-actions .btn-primary { display: none; } /* CTA lives in the hero + nav on mobile */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  /* The hero network (site.js) checks this query too and renders a static frame. */
}
