/* iagi.co.il - single page, RTL, dark.
   Palette is the brand's: ink, teal, teal-light, paper. Nothing else.
   Colours live only here; if a hex appears in index.html it is a bug. */

:root {
  --ink:        #0D1219;   /* brand ink - the page ground */
  --ink-soft:   #111923;   /* alternating band */
  --panel:      #16202b;   /* cards */
  --panel-hi:   #1b2733;   /* card hover */
  --line:       rgba(45, 212, 191, .14);
  --line-soft:  rgba(245, 248, 248, .09);

  --paper:      #F5F8F8;   /* brand paper - headings */
  --text:       #cdd8dd;   /* body copy, softer than headings */
  --muted:      #8298a2;

  --teal:       #0E7C7B;   /* brand teal - fills on light, borders here */
  --teal-lt:    #2DD4BF;   /* brand teal light - dark grounds only */

  --maxw:       1080px;
  --radius:     16px;
  --pad:        clamp(20px, 5vw, 32px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;   /* the sticky header, so anchors do not hide under it */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Heebo', 'Rubik', 'Assistant', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.75;
  direction: rtl;
  overflow-x: hidden;
}

a { color: var(--teal-lt); }

:focus-visible {
  outline: 2px solid var(--teal-lt);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Parked above the viewport, never beside it. The usual -9999px trick is
   wrong in RTL: an inline-start offset resolves to the right, and the page
   ends up 9999px wide with everything clipped on a phone. */
.skip {
  position: absolute; inset-inline-start: 0; top: -80px;
  background: var(--teal-lt); color: var(--ink);
  padding: 10px 16px; z-index: 100; font-weight: 700;
  text-decoration: none; transition: top .15s;
}
.skip:focus { top: 0; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 18, 25, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-head.scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(13, 18, 25, .94);
}

.head-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 72px;
}
.brand { display: flex; line-height: 0; }
.brand img { height: 40px; width: auto; }

.nav {
  display: flex; gap: 26px;
  margin-inline-start: 10px;
  margin-inline-end: auto;   /* nav hugs the mark; the CTA is pushed to the far edge */
  font-size: 15px;
}
.nav a {
  color: var(--text); text-decoration: none;
  padding: 4px 0; position: relative;
}
.nav a::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0;
  height: 1px; background: var(--teal-lt);
  transform: scaleX(0); transition: transform .2s;
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; text-decoration: none;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal-lt); color: #06231f;
  box-shadow: 0 8px 30px -12px rgba(45, 212, 191, .8);
}
.btn-primary:hover { background: #6ee7d6; }

.btn-ghost {
  border-color: var(--line); color: var(--paper);
  background: rgba(45, 212, 191, .05);
}
.btn-ghost:hover { border-color: var(--teal-lt); background: rgba(45, 212, 191, .12); }

.btn-sm {
  padding: 9px 18px; font-size: 14px;
  border-color: var(--line); color: var(--paper);
  margin-inline-start: 4px;
}
.btn-sm:hover { border-color: var(--teal-lt); background: rgba(45, 212, 191, .1); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(64px, 12vh, 120px) clamp(56px, 10vh, 96px);
  overflow: hidden;
}
/* Two soft teal lights behind the headline, and a faint grid under them.
   Decorative only - the mark itself is never redrawn in CSS. */
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background:
    radial-gradient(46% 60% at 78% 18%, rgba(45, 212, 191, .16), transparent 70%),
    radial-gradient(40% 55% at 20% 0%,  rgba(14, 124, 123, .22), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 25%, #000 0%, transparent 75%);
  opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }

.eyebrow {
  color: var(--teal-lt); font-weight: 500; font-size: 14px;
  letter-spacing: .12em; margin-bottom: 22px;
}

h1 {
  font-size: clamp(34px, 6.4vw, 62px);
  line-height: 1.12; font-weight: 800;
  color: var(--paper); letter-spacing: -.01em;
  margin-bottom: 24px;
}
h1 .accent { color: var(--teal-lt); }

.lede {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 62ch; color: var(--text);
}

.cta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 36px;
}
.cta-center { justify-content: center; }

.proof {
  margin-top: clamp(48px, 8vh, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.proof-label {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--muted); font-size: 13px; letter-spacing: .06em;
}
.proof-label::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-lt);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, .18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 9px rgba(45, 212, 191, 0); }
}

.chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 16px; list-style: none;
}
.chips li {
  font-size: 14px; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; background: rgba(45, 212, 191, .04);
}

/* ---------- bands ---------- */

.band { padding-block: clamp(64px, 11vh, 108px); }
.band-alt {
  background: var(--ink-soft);
  border-block: 1px solid var(--line-soft);
}

.kicker {
  color: var(--teal-lt); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.25; font-weight: 800; color: var(--paper);
  max-width: 22ch; margin-bottom: clamp(32px, 5vh, 52px);
}

/* ---------- what: three cards ---------- */

.cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: transform .22s, border-color .22s, background .22s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: var(--panel-hi);
}
.card-num {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--teal-lt); letter-spacing: .1em; margin-bottom: 14px;
}
.card h3 {
  font-size: 20px; font-weight: 700; color: var(--paper);
  margin-bottom: 12px;
}
.card p + p { margin-top: 14px; }
.card-note {
  font-size: 14.5px; color: var(--muted);
  padding-top: 14px; border-top: 1px solid var(--line-soft);
}

/* ---------- work: three cases ---------- */

.work { display: grid; gap: 18px; }
.case {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px var(--pad);
  border-inline-start: 3px solid var(--teal);
  transition: border-inline-start-color .22s, background .22s;
}
.case:hover { border-inline-start-color: var(--teal-lt); background: var(--panel-hi); }

.case-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px;
  margin-bottom: 14px;
}
.case h3 { font-size: clamp(19px, 2.4vw, 23px); font-weight: 700; color: var(--paper); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li {
  font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 6px;
  padding: 2px 9px;
}
.case p { max-width: 72ch; }
.case-out {
  margin-top: 12px; color: var(--paper); font-weight: 500;
}

/* ---------- how: numbered steps ---------- */

.steps {
  display: grid; gap: 18px; list-style: none; counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 54px;
  border-top: 1px solid var(--line-soft);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 16px; inset-inline-start: 0;
  font-size: 15px; font-weight: 800; color: var(--teal-lt);
  letter-spacing: .08em;
}
.steps h3 { font-size: 18px; font-weight: 700; color: var(--paper); margin-bottom: 8px; }
.steps p { font-size: 15.5px; }

/* ---------- contact ---------- */

.contact {
  text-align: center; max-width: 640px; margin-inline: auto;
}
.contact h2 {
  font-size: clamp(26px, 4vw, 40px); line-height: 1.22;
  font-weight: 800; color: var(--paper); margin-bottom: 18px;
}
.contact p { color: var(--text); }
.fineprint { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line-soft);
  padding-block: 36px;
  background: var(--ink);
}
.foot-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px 24px;
}
.foot-mark { height: 26px; width: auto; opacity: .8; }
.foot-line { font-size: 14px; color: var(--muted); }
.foot-line a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.foot-line a:hover { color: var(--teal-lt); }

/* ---------- 404 ---------- */

/* The page a wrong URL lands on. It reuses the hero's type and buttons rather
   than inventing a second visual language for a page nobody plans to see. */
.notfound {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-block: 64px;
}
.notfound::before {
  content: ''; position: absolute; inset: -30% -10% auto -10%; height: 620px;
  background: radial-gradient(45% 60% at 60% 10%, rgba(14, 124, 123, .22), transparent 70%);
  pointer-events: none;
}
.notfound-inner { position: relative; z-index: 1; max-width: 640px; }
.notfound .brand { display: inline-flex; margin-bottom: 40px; }
.notfound .brand img { height: 40px; width: auto; }
.notfound h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 20px; }

/* ---------- reveal on scroll ---------- */

.reveal > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in > * { opacity: 1; transform: none; }
.reveal.in > *:nth-child(2) { transition-delay: .08s; }
.reveal.in > *:nth-child(3) { transition-delay: .16s; }
.reveal.in > *:nth-child(4) { transition-delay: .24s; }

/* JS adds .js to <html>; without it nothing is ever hidden. */
html:not(.js) .reveal > * { opacity: 1; transform: none; }

/* ---------- narrow screens ---------- */

@media (max-width: 700px) {
  .nav { display: none; }          /* the whatsapp button is the only action worth keeping */
  .btn-sm { margin-inline-start: auto; }
  .brand img { height: 34px; }
  .case { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal > * { opacity: 1; transform: none; }
}
