/* ==========================================================================
   NITARTI — Design System
   Clean editorial B2B-tech aesthetic (inspired by se.com), RTL Hebrew.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800&family=Roboto+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Brand ---- */
  --navy-900: #08111f;
  --navy-800: #0a1628;
  --navy-700: #0f1f3d;
  --navy-600: #16294a;
  --navy-500: #1e3a5f;

  --teal-600: #008a44;
  --teal-500: #00ab55;   /* primary accent */
  --teal-400: #2ed47a;
  --teal-300: #6ddbaa;
  --teal-50:  #e6f9ee;

  --green-500: #10b981;  /* success / safe */
  --amber-500: #f59e0b;  /* warning */
  --red-500:   #ef4444;  /* danger */

  /* ---- Neutrals ---- */
  --white: #ffffff;
  --paper: #f6f8fb;
  --paper-2: #eef2f7;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink-900: #0f1c2e;
  --ink-700: #1e293b;
  --ink-500: #475569;
  --ink-400: #64748b;
  --ink-300: #94a3b8;

  /* ---- Type ---- */
  --font-sans: 'Assistant', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, monospace;

  /* ---- Radius & shadow ---- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(15,28,46,.08), 0 1px 2px rgba(15,28,46,.04);
  --shadow-md: 0 6px 22px rgba(15,28,46,.10);
  --shadow-lg: 0 18px 50px rgba(15,28,46,.16);
  --shadow-teal: 0 12px 34px rgba(0,171,85,.28);

  /* ---- Layout ---- */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 100px;
  --logo-h: 56px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  /* clip (not hidden) — it stops stray horizontal overflow without turning the
     body into a scroll container, so position:sticky keeps working */
  overflow-x: clip;
  font-family: var(--font-sans);
  color: var(--ink-700);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.12; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; border-radius: 4px; }

/* English technical terms inside RTL stay LTR */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 110px); }
.section-sm { padding-block: clamp(40px, 5vw, 70px); }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy-800); color: #dde6f1; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-600);
  margin-bottom: 16px;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--teal-500); display:inline-block; }
.bg-navy .eyebrow { color: var(--teal-300); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 50px); }
.section-head p { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-500); margin-bottom: 0; }
.bg-navy .section-head p { color: #aebcd0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--teal-500); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--bg); color: var(--fg);
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn .arr { transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-teal); }
.btn:hover .arr { transform: translateX(-4px); }     /* RTL: arrow points/moves left */
.btn-primary { --bg: var(--teal-500); --fg: #fff; }
.btn-dark { --bg: var(--navy-800); --fg: #fff; }
.btn-dark:hover { box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent; color: var(--ink-900);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-900); background: transparent; }
.btn-white { --bg:#fff; --fg: var(--navy-800); }
.btn-lg { padding: 18px 34px; font-size: 18px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--teal-600);
}
.link-arrow svg { width: 17px; height: 17px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(-5px); }
.bg-navy .link-arrow { color: var(--teal-300); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .22s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

/* ---------- Image slots / placeholders ---------- */
image-slot {
  --slot-bg: linear-gradient(135deg, #e8edf3, #dde5ee);
  background: var(--slot-bg);
  display: block;
}
.ph {
  background:
    linear-gradient(135deg, #e9eef4 0%, #dde5ee 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-300); font-size: 14px; text-align: center; padding: 16px;
  position: relative; overflow: hidden;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(120,140,165,.18) 1.5px, transparent 1.5px);
  background-size: 16px 16px; opacity: .5;
}

/* ---------- Floating dashboard chips (shared) ---------- */
.float-card {
  position: absolute; background: rgba(255,255,255,.97); border-radius: 14px; padding: 13px 15px;
  box-shadow: var(--shadow-lg); display: flex; gap: 11px; align-items: center; backdrop-filter: blur(6px); z-index: 4;
}
.float-card .fc-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.float-card .fc-ic svg { width: 20px; height: 20px; }
.float-card .fc-t { font-size: 12.5px; color: var(--ink-400); line-height: 1.2; display: block; }
.float-card .fc-v { font-family: var(--font-mono); font-weight: 600; font-size: 17px; color: var(--ink-900); display: block; }

/* ---------- Status / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-500);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-live { background: var(--green-500); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 1.8s infinite; }
.dot-warn { background: var(--amber-500); }
.dot-alert { background: var(--red-500); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ---------- Feature list ---------- */
.feat-list { display: grid; gap: 14px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; }
.feat-list .ic {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  background: var(--teal-50); color: var(--teal-600);
  display: grid; place-items: center; margin-top: 2px;
}
.feat-list .ic svg { width: 15px; height: 15px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Skip link ---------- */
.skip { position: absolute; right: 12px; top: -60px; background: var(--navy-800); color:#fff; padding: 10px 16px; border-radius: 8px; z-index: 200; transition: top .2s; }
.skip:focus { top: 12px; }

/* ============================ HEADER ============================ */
.utility-bar {
  background: var(--navy-900); color: #9fb0c7; font-size: 13.5px;
}
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.utility-bar a { color: #b9c6d8; display: inline-flex; align-items: center; gap: 6px; }
.utility-bar a:hover { color: #fff; }
.utility-bar .u-left { display: flex; gap: 22px; align-items: center; }
.utility-bar .u-right { display: flex; gap: 20px; align-items: center; }
.utility-bar svg { width: 14px; height: 14px; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 22px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--teal-400), var(--teal-600));
  position: relative; box-shadow: 0 4px 12px rgba(7,180,209,.35);
}
.brand .mark::before, .brand .mark::after { content:""; position:absolute; background:#fff; border-radius: 2px; }
.brand .mark::before { width: 4px; height: 14px; left: 9px; bottom: 9px; box-shadow: 6px 0 0 #fff, 12px 4px 0 #fff; opacity:.95; }
.brand .name { font-size: 23px; color: var(--navy-800); }
.brand .name b { color: var(--teal-600); }

.site-header nav { margin-inline-start: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li > a, .main-nav > li > button {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--ink-700);
  padding: 10px 14px; border-radius: 10px; background: none; border: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.main-nav > li > a:hover, .main-nav > li > button:hover,
.main-nav > li.open > button { background: var(--paper); color: var(--navy-800); }
.main-nav .chev { width: 14px; height: 14px; transition: transform .2s; }
.main-nav li.open .chev { transform: rotate(180deg); }
.main-nav a.active { color: var(--teal-600); }

.has-mega { position: static; }
.mega {
  position: absolute; inset-inline: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 90;
}
.has-mega.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 14px; padding: 28px var(--gutter) 34px; max-width: var(--container); margin-inline: auto; }
.mega .lead { background: var(--navy-800); border-radius: var(--r-md); padding: 24px; color: #cdd9e8; display:flex; flex-direction:column; justify-content:space-between; }
.mega .lead h4 { color:#fff; font-size: 20px; }
.mega .lead p { font-size: 14.5px; margin-bottom: 16px; }
.mega-link {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: var(--r-md);
  transition: background .15s;
}
.mega-link:hover { background: var(--paper); }
.mega-link .mi {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-600);
}
.mega-link .mi svg { width: 21px; height: 21px; }
.mega-link h5 { margin: 0 0 3px; font-size: 16px; color: var(--navy-800); font-weight: 700; }
.mega-link p { margin: 0; font-size: 13.5px; color: var(--ink-400); line-height: 1.45; }

.header-cta { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Contact form status message ---------- */
.form-msg {
  margin: 12px 0 0; padding: 11px 14px; border-radius: var(--r-sm);
  font-size: 14.5px; color: var(--teal-600); background: var(--teal-50);
}
.form-msg.is-error { color: #b42318; background: #fdecec; }

/* ---------- Cookie consent ---------- */
.cc {
  position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 300;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -10px 40px rgba(15,28,46,.14);
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.cc.is-in { transform: none; }
.cc__in {
  max-width: var(--container); margin-inline: auto;
  padding: 18px var(--gutter); display: grid; gap: 14px;
  grid-template-columns: 1fr auto; align-items: center;
}
.cc__text b { display: block; font-size: 16px; color: var(--ink-900); margin-bottom: 4px; }
.cc__text p { margin: 0; font-size: 14px; color: var(--ink-500); max-width: 70ch; }
.cc__btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.cc__link {
  background: none; border: 0; cursor: pointer; font: inherit; font-size: 14px;
  font-weight: 600; color: var(--teal-600); text-decoration: underline;
  text-underline-offset: 3px; padding: 6px;
}
/* an explicit display: value beats the [hidden] attribute, so restore it */
.cc [hidden] { display: none; }
.cc__opts { grid-column: 1 / -1; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.cc__opt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-500); cursor: pointer; }
.cc__opt input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--teal-500); flex: none; }
.cc__opt b { color: var(--ink-900); font-weight: 700; }
@media (max-width: 820px) {
  .cc__in { grid-template-columns: 1fr; }
  .cc__btns { justify-content: stretch; }
  .cc__btns .btn { flex: 1; justify-content: center; }
}

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-500);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
  transition: border-color .18s, color .18s;
}
.lang-btn:hover { color: var(--navy-800); border-color: var(--line-strong); }
.lang-btn svg { width: 17px; height: 17px; }
.lang-menu {
  position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 120;
  min-width: 150px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px;
  display: none;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: start; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--ink-700);
  background: none; border: 0; border-radius: 8px; padding: 8px 12px;
}
.lang-menu button:hover { background: var(--paper); }
.lang-menu button[aria-current="true"] { background: var(--teal-50); color: var(--teal-600); font-weight: 700; }
.m-lang { padding: 6px 0 2px; }
.m-lang .lang-menu { inset-inline-end: auto; inset-inline-start: 0; }

/* mobile nav */
.mobile-panel { display: none; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--navy-900); color: #9fb0c7; padding-block: 64px 30px; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.site-footer ul { display: grid; gap: 11px; }
.site-footer .f-brand .brand .name { color: #fff; }
.site-footer .f-brand p { color: #8497ad; max-width: 30ch; margin-top: 16px; font-size: 14.5px; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact svg { width: 17px; height: 17px; color: var(--teal-400); flex: 0 0 auto; margin-top: 3px; }
.f-social { display: flex; gap: 10px; margin-top: 18px; }
.f-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; }
.f-social a:hover { background: var(--teal-600); }
.f-social svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #6f8299; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mega-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; --logo-h: 40px; }
  .utility-bar { display: none; }
  .main-nav, .header-cta { display: none; }
  .burger { display: block; margin-inline-start: auto; }
  .mega { display: none; }
  .mobile-panel {
    display: block; position: fixed; inset: var(--header-h) 0 0; background: #fff; z-index: 95;
    transform: translateX(100%); transition: transform .3s ease, visibility .3s; overflow-y: auto; padding: 18px var(--gutter) 40px;
    /* while closed the drawer sits outside the viewport — hiding it keeps its
       links out of the keyboard tab order and out of screen readers */
    visibility: hidden;
  }
  .mobile-panel.open { transform: none; visibility: visible; }
  /* in an LTR language the drawer belongs on the other side */
  [dir="ltr"] .mobile-panel { transform: translateX(-100%); }
  [dir="ltr"] .mobile-panel.open { transform: none; }
  .mobile-panel .m-head { font-weight: 800; font-size: 18px; padding: 16px 4px 8px; color: var(--navy-800); }
  .mobile-panel .m-group > button { width: 100%; display: flex; justify-content: space-between; align-items: center; font: inherit; font-weight: 700; font-size: 18px; padding: 16px 4px; background: none; border: none; border-bottom: 1px solid var(--line); cursor: pointer; }
  .mobile-panel .m-sub { display: none; padding: 0 4px 14px; gap: 4px; }
  .mobile-panel .m-group-open .m-sub { display: grid; }
  .mobile-panel .m-group-open { border-bottom: 1px solid var(--line); }
  .mobile-panel .m-group.open .m-sub { display: grid; }
  .mobile-panel .m-sub a { padding: 11px 14px; color: var(--ink-500); font-weight: 600; border-radius: 8px; }
  .mobile-panel .m-sub a:hover { background: var(--paper); }
  .mobile-panel .m-top { display: block; font-weight: 700; font-size: 18px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .mobile-panel .m-cta { margin-top: 24px; display: grid; gap: 12px; }
  .mobile-panel .m-cta .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Dark bg stat overrides */
.bg-navy .stat .n { color: #fff; }
.bg-navy .stat .l { color: #aebcd0; }
.bg-navy .flow-step { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.bg-navy .flow-step h3 { color: #fff; }
.bg-navy .flow-step p { color: #aebcd0; }
.bg-navy .flow-step .num { color: #6ddbaa; }

/* ==========================================================================
   Legal / policy pages
   ========================================================================== */
.legal-hero { background: var(--navy-800); color: #e8eef6; padding: 64px 0 44px; }
.legal-hero .container { max-width: 860px; }
.legal-hero .breadcrumb { color: #9fb2c8; margin-bottom: 14px; }
.legal-hero .breadcrumb a { color: #9fb2c8; }
.legal-hero .breadcrumb svg { width: 16px; height: 16px; opacity: .6; }
.legal-hero .eyebrow { color: var(--teal-300); }
.legal-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin: 6px 0 10px; }
.legal-hero .legal-updated { color: #9fb2c8; font-size: 14px; margin: 0; }
.legal-wrap { max-width: 860px; margin: 0 auto; padding: 52px var(--gutter) 88px; }
.legal-wrap h2 { font-size: 22px; margin: 38px 0 10px; padding-top: 6px; }
.legal-wrap h2:first-child { margin-top: 0; }
.legal-wrap h3 { font-size: 17px; color: var(--ink-900); margin: 22px 0 6px; }
.legal-wrap p { color: var(--ink-700); line-height: 1.85; margin: 0 0 14px; }
.legal-wrap ul { list-style: disc; padding-inline-start: 24px; margin: 0 0 16px; }
.legal-wrap li { color: var(--ink-700); line-height: 1.8; margin-bottom: 6px; }
.legal-wrap a { color: var(--teal-600); text-decoration: underline; }
.legal-contact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; margin-top: 26px; }
.legal-contact p { margin: 0 0 6px; }
.legal-note { background: #fffbeb; border: 1px solid #fde68a; border-inline-start: 3px solid var(--amber-500); border-radius: 10px; padding: 13px 16px; margin: 18px 0; font-size: 14px; color: #92600a; }
.legal-fill { color: var(--ink-400); font-style: italic; }
