/* שלומי מערכות ואוטומציות — PCB / neon */
:root {
  --bg: oklch(0.155 0.022 195);
  --bg-2: oklch(0.19 0.026 195);
  --bg-3: oklch(0.23 0.03 195);
  --line: oklch(0.33 0.04 192);
  --trace: oklch(0.36 0.05 175);
  --ink: oklch(0.96 0.012 180);
  --ink-soft: oklch(0.8 0.02 185);
  --muted: oklch(0.62 0.03 190);
  /* INTELLECT AI gold, sampled from the logo */
  --brand: #F0D8A8;
  --gold: #D8B484;
  --gold-deep: #A88454;
  --phosphor: oklch(0.89 0.21 148);
  --cyan: oklch(0.86 0.14 205);
  --magenta: oklch(0.72 0.25 340);
  --amber: oklch(0.84 0.16 72);
  --violet: oklch(0.74 0.18 295);
  --led: var(--brand);

  --f-display: "Karantina", "Heebo", system-ui, sans-serif;
  --f-body: "Heebo", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* faint PCB dot grid */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(oklch(0.4 0.05 185 / 0.35) 1px, transparent 1.2px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.mono { font-family: var(--f-mono); letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.155 0.022 195 / 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 40px; height: auto; filter: drop-shadow(0 0 8px rgba(240,216,168,.25)); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text img { width: 150px; height: auto; margin-bottom: 4px; }
.logo-text span { font-size: 12.5px; color: var(--muted); }
.top nav { margin-inline-start: auto; display: flex; gap: 28px; }
.top nav a { text-decoration: none; color: var(--ink-soft); font-size: 15px; transition: color .2s; }
.top nav a:hover { color: var(--brand); }
.led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 6px var(--led), 0 0 14px var(--led);
  flex: none;
}
.led.blink { animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 0%, 92% { opacity: 1; } 93%, 97% { opacity: .25; } }

.btn {
  --c: var(--brand);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font: 600 16px/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  color: oklch(0.16 0.03 195);
  background: var(--c);
  border: 0; border-radius: 10px;
  box-shadow: 0 0 0 1px var(--c), 0 0 24px color-mix(in oklch, var(--c) 45%, transparent);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--c), 0 0 40px color-mix(in oklch, var(--c) 70%, transparent); }
.btn.ghost { background: transparent; color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); }
.btn.ghost:hover { background: color-mix(in oklch, var(--c) 12%, transparent); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn[aria-disabled="true"] { --c: var(--muted); background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
#board { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-logo { position: absolute; z-index: 2; left: max(4vw, calc((100vw - var(--maxw)) / 2 + 24px)); top: 50%; transform: translateY(-46%); width: min(32vw, 460px); pointer-events: none; }
.hero-logo::before { content: ""; position: absolute; inset: -38% -30%; background: radial-gradient(closest-side, var(--bg) 52%, oklch(0.155 0.022 195 / 0.75) 72%, transparent); }
.hero-logo img { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 0 26px rgba(240,216,168,.2)); }
@media (max-width: 899px) { .hero-logo { display: none; } }
.hero::after { /* readability fade at text side */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to left, var(--bg) 8%, oklch(0.155 0.022 195 / 0.72) 45%, transparent 85%);
}
.hero .wrap { position: relative; z-index: 3; padding-block: 96px 120px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-size: 15px; margin-bottom: 20px; }
.hero h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(76px, 13vw, 196px);
  line-height: 0.86;
  margin: 0 0 32px;
  letter-spacing: -0.005em;
  max-width: 11ch;
}
.hero h1 .glow { color: var(--brand); text-shadow: 0 0 18px rgba(240,216,168,.45), 0 0 60px rgba(216,180,132,.3); }
.hero p.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-soft); max-width: 46ch; margin: 0 0 36px; line-height: 1.75; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- system index (pin header) ---------- */
.pins { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.pins ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.pins li { border-inline-start: 1px solid var(--line); }
.pins li:nth-child(6n + 1) { border-inline-start: 0; }
.pins li:nth-child(n + 7) { border-top: 1px solid var(--line); }
.pins a {
  --led: var(--c);
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; text-decoration: none; font-size: 15px; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.pins a .mono { font-size: 12px; color: var(--muted); }
.pins a .led { box-shadow: none; opacity: .5; transition: opacity .2s, box-shadow .2s; }
.pins a:hover { background: var(--bg-3); color: var(--ink); }
.pins a:hover .led { opacity: 1; box-shadow: 0 0 6px var(--led), 0 0 14px var(--led); }

/* ---------- client logos ---------- */
.clients { padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.clients .wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px clamp(32px, 6vw, 96px); align-items: center; }
.clients h2 { font-family: var(--f-display); font-size: clamp(44px, 5vw, 68px); line-height: .9; margin: 0; font-weight: 700; color: var(--ink-soft); }
.client-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px 40px; align-items: end; }
.client-logos li { display: grid; gap: 12px; justify-items: start; }
.client-logos img {
  height: 46px; width: auto; max-width: 100%; object-fit: contain;
  filter: brightness(0) invert(0.93);
  opacity: .72;
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.client-logos li:hover img { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(240,216,168,.55)); }
.client-logos span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.client-logos b { display: block; color: var(--ink-soft); font-weight: 500; }
@media (max-width: 720px) { .clients .wrap { grid-template-columns: 1fr; } }

/* ---------- section headings ---------- */
.section-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head h2 { font-family: var(--f-display); font-size: clamp(56px, 8vw, 112px); line-height: .9; margin: 0; font-weight: 700; }
.section-head p { margin: 0; color: var(--muted); max-width: 44ch; padding-bottom: 10px; }

/* ---------- modules ---------- */
.systems { padding-block: clamp(80px, 10vw, 140px) 40px; }
.modules { position: relative; }
.modules::before { /* the bus */
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--trace) 4%, var(--trace) 96%, transparent);
}
.module {
  --c: var(--phosphor);
  --led: var(--c);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-inline-start: clamp(28px, 4vw, 64px);
  padding-block: clamp(48px, 7vw, 100px);
  scroll-margin-top: 80px;
}
.module:nth-child(even) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.module:nth-child(even) .module-text { order: 2; }
.module .node { /* pad on the bus */
  position: absolute; inset-inline-start: -7px; top: calc(clamp(48px, 7vw, 100px) + 22px);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold);
}
.module .node::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 8px var(--c), 0 0 20px var(--c);
  opacity: .25; transition: opacity .6s var(--ease);
}
.module.in .node::after { opacity: 1; }
.module .stub { /* trace from bus to label */
  position: absolute; inset-inline-start: 9px; top: calc(clamp(48px, 7vw, 100px) + 29px);
  width: clamp(14px, 3vw, 50px); height: 2px; background: var(--trace);
}
.module-num { font-family: var(--f-mono); font-size: 13px; color: var(--c); display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.module-num .kind { color: var(--muted); }
.module h3 { font-family: var(--f-display); font-size: clamp(56px, 6.5vw, 92px); line-height: .92; margin: 0 0 18px; font-weight: 700; }
.module h3 .en { letter-spacing: 0.01em; }
.module .desc { color: var(--ink-soft); margin: 0 0 22px; max-width: 48ch; }
.feats { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 9px; }
.feats li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; }
.feats li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--c); transform: translateY(-4px); box-shadow: 0 0 8px var(--c); }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 28px; padding: 0; list-style: none; font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
.tags li::before { content: "#"; color: var(--c); opacity: .7; }
.module-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.module-actions .note { font-size: 13.5px; color: var(--muted); }

/* ---------- devices ---------- */
.devices { position: relative; padding-bottom: 7%; padding-inline-end: 9%; }
.devices a { display: block; text-decoration: none; }
.laptop { position: relative; }
.laptop .lid {
  position: relative;
  padding: 2.2% 2.2% 3%;
  background: oklch(0.21 0.012 200);
  border-radius: 14px 14px 4px 4px;
  box-shadow: inset 0 0 0 1px oklch(0.35 0.02 200), 0 30px 80px -30px color-mix(in oklch, var(--c) 55%, transparent);
}
.laptop .lid::before { /* camera */
  content: ""; position: absolute; top: 0.9%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: oklch(0.32 0.02 200);
}
.laptop .base {
  height: 0; padding-bottom: 3.2%;
  margin-inline: -7%;
  background: linear-gradient(to bottom, oklch(0.42 0.012 200), oklch(0.26 0.01 200));
  border-radius: 0 0 18px 18px / 0 0 60px 60px;
  position: relative;
}
.laptop .base::before { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 40%; transform: translateX(-50%); background: oklch(0.3 0.01 200); border-radius: 0 0 8px 8px; }
.screen {
  position: relative; overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 16 / 10;
  border-radius: 3px;
}
.screen iframe {
  position: absolute; top: 0; left: 0;
  border: 0; transform-origin: 0 0;
  pointer-events: none;
  background: #f6f5fb;
}
.screen::after { /* glare */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, oklch(1 0 0 / 0.06) 0%, transparent 38%);
}
.phone {
  position: absolute; bottom: 0; inset-inline-end: 0;
  width: 25%;
  padding: 2.1%;
  background: oklch(0.2 0.01 200);
  border-radius: 13% / 6%;
  box-shadow: inset 0 0 0 1.5px oklch(0.4 0.02 200), 0 0 0 1px oklch(0.12 0.01 200), 0 24px 50px -10px oklch(0.05 0.01 200 / 0.8), 0 0 40px -6px color-mix(in oklch, var(--c) 50%, transparent);
  transition: transform .6s var(--ease);
}
.phone .screen { aspect-ratio: 9 / 19.5; border-radius: 11% / 5%; }
.phone .screen::before { /* island */
  content: ""; position: absolute; z-index: 2; top: 2.2%; left: 50%; width: 32%; height: 3.2%; transform: translateX(-50%); background: oklch(0.1 0.01 200); border-radius: 99px;
}
.devices:hover .phone { transform: translateY(-8px) rotate(-1.5deg); }

/* placeholder screens for systems whose demo is still being built */
.ph { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; font-family: var(--f-body); background: oklch(0.17 0.02 200); }
.ph-bar { display: flex; align-items: center; gap: 6px; padding: 4% 4% 3%; border-bottom: 1px solid var(--line); }
.ph-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.ph-bar b { margin-inline-start: auto; font-size: clamp(9px, 1.1vw, 14px); color: var(--c); font-weight: 600; }
.ph-body { display: grid; grid-template-columns: 22% 1fr; gap: 4%; padding: 4%; }
.phone .ph-body { grid-template-columns: 1fr; padding-top: 18%; }
.ph-side { display: grid; gap: 8%; align-content: start; }
.phone .ph-side { display: none; }
.ph-main { display: grid; gap: 5%; align-content: start; }
.ph-row { height: 10px; border-radius: 3px; background: var(--bg-3); position: relative; overflow: hidden; }
.ph-row.hi { background: color-mix(in oklch, var(--c) 35%, var(--bg-3)); }
.ph-row.w6 { width: 60%; } .ph-row.w8 { width: 80%; } .ph-row.w4 { width: 40%; }
.ph-row.tall { height: 46px; }
.ph-row::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--c) 30%, transparent), transparent); transform: translateX(-100%); animation: scan 2.8s var(--ease) infinite; }
@keyframes scan { to { transform: translateX(100%); } }
.ph-wip { position: absolute; inset-inline: 0; bottom: 6%; text-align: center; font-family: var(--f-mono); font-size: clamp(9px, 1vw, 12px); color: var(--muted); }

/* ---------- process ---------- */
.process { padding-block: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); background: var(--bg-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; top: 9px; inset-inline: 0; height: 2px; background: var(--trace); }
.steps li { position: relative; padding-top: 44px; padding-inline-end: 28px; }
.steps li::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--gold); }
.steps li::after { content: ""; position: absolute; top: 5px; inset-inline-start: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.steps .mono { font-size: 13px; color: var(--brand); }
.steps h3 { font-family: var(--f-display); font-size: 44px; line-height: 1; margin: 4px 0 10px; font-weight: 700; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 16px; max-width: 30ch; }
.stack { margin-top: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; color: var(--muted); font-family: var(--f-mono); font-size: 14px; }
.stack b { font-family: var(--f-body); color: var(--ink-soft); font-weight: 500; }

/* ---------- contact ---------- */
.contact { padding-block: clamp(100px, 13vw, 180px); position: relative; overflow: hidden; }
.contact h2 { font-family: var(--f-display); font-size: clamp(72px, 12vw, 180px); line-height: .86; margin: 0 0 28px; font-weight: 700; max-width: 12ch; }
.contact h2 .glow { color: var(--brand); text-shadow: 0 0 18px rgba(240,216,168,.45), 0 0 60px rgba(216,180,132,.25); }
.contact p { color: var(--ink-soft); max-width: 44ch; margin: 0 0 36px; font-size: 19px; }
.contact .btn { --c: var(--brand); font-size: 18px; padding: 16px 26px; }

footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .module .devices { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity 1.1s var(--ease) .1s, transform 1.1s var(--ease) .1s; }
.js .module.in .devices { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .module .devices { opacity: 1; transform: none; transition: none; }
  .ph-row::after, .led.blink { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .pins ol { grid-template-columns: repeat(3, 1fr); }
  .pins li:nth-child(6n + 1) { border-inline-start: 1px solid var(--line); }
  .pins li:nth-child(3n + 1) { border-inline-start: 0; }
  .pins li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .module, .module:nth-child(even) { grid-template-columns: 1fr; }
  .module:nth-child(even) .module-text { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .top .btn { margin-inline-start: auto; }
  .hero::after { background: linear-gradient(to top, var(--bg) 10%, oklch(0.155 0.022 195 / 0.8) 60%, oklch(0.155 0.022 195 / 0.5)); }
  .pins ol { grid-template-columns: repeat(2, 1fr); }
  .pins li:nth-child(n) { border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line); }
  .pins li:nth-child(2n + 1) { border-inline-start: 0; }
  .pins li:nth-child(-n + 2) { border-top: 0; }
  .section-head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .logo-text span { display: none; }
}
