:root {
  --paper: #f7f7f2;
  --white: #ffffff;
  --ink: #17231e;
  --muted: #66716b;
  --line: rgba(17, 55, 43, .13);
  --green: #2f9d69;
  --green-dark: #0c3127;
  --green-deep: #08261e;
  --green-soft: #e1f0e7;
  --yellow: #eabf37;
  --red: #dc554d;
  --shadow: 0 30px 90px rgba(12, 49, 39, .12);
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 98px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Heebo, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { color: #fff; background: var(--green); }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding: 118px 0; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 999;
  padding: 10px 14px; color: #fff; background: var(--green-dark);
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,247,242,.92); backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 12px 35px rgba(12,49,39,.06); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 188px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 31px; color: #3c4741; font-size: .88rem; font-weight: 600; }
.main-nav > a:not(.nav-cta) { position: relative; padding: 8px 0; }
.main-nav > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px;
  background: var(--green); transition: width .2s ease;
}
.main-nav > a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: 12px 18px; color: #fff; background: var(--green-dark); border-radius: 7px; }
.nav-cta:hover { background: var(--green); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--green-dark); transition: .2s ease; }

.hero { position: relative; min-height: calc(100vh - 88px); display: grid; align-items: center; padding-top: 86px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .43;
  background-image: linear-gradient(rgba(12,49,39,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(12,49,39,.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 86%);
}
.hero::before {
  content: ""; position: absolute; width: 580px; height: 580px; right: -230px; top: 30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,157,105,.14), transparent 68%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(55px, 7vw, 110px); }
.hero-copy { max-width: 610px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 25px; color: var(--green-dark); font-size: .74rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(47,157,105,.12); }
h1, h2, h3 { font-family: Heebo, Arial, sans-serif; }
.hero h1 { margin: 0; color: var(--green-deep); font-size: clamp(3.55rem, 5.7vw, 6.55rem); line-height: .99; letter-spacing: -.06em; font-weight: 700; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-lead { max-width: 660px; margin: 31px 0 0; color: #56625b; font-size: clamp(1.06rem, 1.45vw, 1.22rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 37px; }
.button { min-height: 53px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 13px 21px; border: 1px solid transparent; border-radius: 7px; font-size: .9rem; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--green-dark); box-shadow: 0 14px 28px rgba(12,49,39,.17); }
.button-primary:hover { background: var(--green); box-shadow: 0 18px 36px rgba(47,157,105,.2); }
.button-ghost { border-color: var(--line); color: var(--green-dark); background: rgba(255,255,255,.68); }
.button-ghost:hover { border-color: rgba(47,157,105,.35); background: #fff; }
.proof-strip { display: flex; flex-wrap: wrap; gap: 10px 23px; margin-top: 31px; color: #65716a; font-size: .76rem; font-weight: 600; }
.proof-strip span { position: relative; padding-left: 16px; }
.proof-strip span::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.decision-visual { padding: 30px; border: 1px solid rgba(12,49,39,.12); background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.visual-meta, .visual-title-row, .flow-card-head, .visual-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.visual-meta { padding-bottom: 19px; border-bottom: 1px solid var(--line); color: #77817b; font-size: .62rem; font-weight: 700; letter-spacing: .12em; }
.live-status { display: inline-flex; align-items: center; gap: 7px; color: var(--green-dark); }
.live-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.visual-title-row { padding: 24px 0 20px; }
.visual-title-row small, .signal-score small { display: block; color: #7d8781; font-size: .7rem; }
.visual-title-row h2 { margin: 5px 0 0; color: var(--green-deep); font-size: 1.35rem; letter-spacing: -.025em; }
.signal-score { min-width: 110px; padding-left: 18px; border-left: 1px solid var(--line); }
.signal-score strong { display: block; margin-top: 4px; color: var(--red); font-family: Heebo, Arial, sans-serif; font-size: 1.15rem; }
.decision-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 12px; }
.flow-card { min-width: 0; padding: 18px; border: 1px solid var(--line); background: #fbfcfa; }
.flow-index { color: #8a948e; font-size: .62rem; font-weight: 700; }
.flow-label { color: var(--green); font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
.flow-card h3 { margin: 31px 0 3px; color: var(--green-deep); font-size: .93rem; }
.flow-card p { min-height: 46px; margin: 0; color: #6b756f; font-size: .77rem; }
.predict-card p, .action-card p { color: var(--green-dark); font-size: 1.04rem; font-weight: 700; }
.flow-arrow { display: grid; place-items: center; color: var(--green); font-size: 1.4rem; }
.micro-chart { height: 54px; display: flex; align-items: flex-end; gap: 4px; margin-top: 18px; }
.micro-chart span { flex: 1; min-width: 4px; background: var(--green-soft); border-top: 2px solid var(--green); }
.micro-chart span:nth-child(5), .micro-chart span:nth-child(6) { background: rgba(220,85,77,.16); border-color: var(--red); }
.action-chip { min-height: 54px; display: flex; align-items: center; gap: 9px; margin-top: 18px; padding: 10px; color: var(--green-dark); background: var(--green-soft); font-size: .68rem; font-weight: 650; }
.action-chip span { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }
.metric-lines { display: grid; gap: 8px; margin-top: 18px; }
.metric-lines span { height: 8px; background: #e7ece9; }
.metric-lines span:nth-child(1) { width: 100%; }
.metric-lines span:nth-child(2) { width: 78%; }
.metric-lines span:nth-child(3) { width: 57%; background: var(--green-soft); }
.visual-footer { margin-top: 18px; padding: 15px 17px; color: #fff; background: var(--green-dark); font-size: .68rem; }
.visual-footer span { color: rgba(255,255,255,.62); }
.visual-footer strong { font-weight: 650; }

.problem-section { background: #fff; }
.problem-layout { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; }
.section-heading { max-width: 820px; }
.section-kicker { display: inline-block; margin-bottom: 16px; color: var(--green); font-size: .7rem; font-weight: 800; letter-spacing: .14em; }
.section-heading h2, .operator-copy h2, .contact-copy h2 { margin: 0; color: var(--green-deep); font-size: clamp(2.5rem, 4.2vw, 4.8rem); line-height: 1.08; letter-spacing: -.05em; }
.section-heading p { max-width: 670px; margin: 22px 0 0; color: var(--muted); font-size: 1.04rem; }
.problem-copy p { margin: 0; color: #657069; font-size: 1.05rem; line-height: 1.85; }
.issue-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 67px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.issue-card { min-height: 274px; padding: 31px 30px; border-right: 1px solid var(--line); }
.issue-card:last-child { border-right: 0; }
.issue-number { display: block; color: var(--green); font-size: .72rem; font-weight: 800; }
.issue-card h3 { max-width: 290px; margin: 72px 0 12px; color: var(--green-deep); font-size: 1.23rem; line-height: 1.3; }
.issue-card p { max-width: 320px; margin: 0; color: var(--muted); font-size: .9rem; }

.system-section { background: var(--paper); }
.system-intro .section-heading { max-width: 900px; }
.system-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 66px; border: 1px solid var(--line); background: #fff; }
.system-step { min-height: 390px; padding: 29px 27px; border-right: 1px solid var(--line); }
.system-step:last-child { border-right: 0; }
.step-tag { color: #7a857f; font-size: .63rem; font-weight: 800; letter-spacing: .09em; }
.step-mark { width: 66px; height: 66px; display: grid; place-items: center; margin-top: 63px; color: var(--green); border: 1px solid rgba(47,157,105,.2); background: var(--green-soft); }
.bars-mark { grid-template-columns: repeat(3, 6px); align-items: end; gap: 4px; }
.bars-mark i { display: block; width: 6px; background: var(--green); }
.bars-mark i:nth-child(1) { height: 17px; opacity: .45; }
.bars-mark i:nth-child(2) { height: 30px; opacity: .72; }
.bars-mark i:nth-child(3) { height: 23px; }
.line-mark svg { width: 37px; }
.line-mark path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.target-mark { position: relative; }
.target-mark i { width: 31px; height: 31px; border: 3px solid var(--green); border-radius: 50%; }
.target-mark b { position: absolute; font-size: 1.35rem; transform: translateX(2px); }
.loop-mark { font-family: Heebo, Arial, sans-serif; font-size: 2.2rem; font-weight: 700; }
.system-step h3 { margin: 26px 0 10px; color: var(--green-deep); font-size: 1.04rem; }
.system-step p { margin: 0; color: var(--muted); font-size: .86rem; }

.operator-section { color: #fff; background: var(--green-deep); }
.operator-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(60px, 8vw, 120px); }
.section-kicker.light { color: #75d49f; }
.operator-copy h2 { color: #fff; }
.operator-copy p { max-width: 610px; margin: 24px 0 0; color: rgba(255,255,255,.67); font-size: 1rem; }
.operator-list { border-top: 1px solid rgba(255,255,255,.15); }
.operator-list > div { display: grid; grid-template-columns: 45px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.operator-list > div > span { color: #75d49f; font-size: .7rem; font-weight: 800; }
.operator-list p { margin: 0; }
.operator-list strong { display: block; color: #fff; font-family: Heebo, Arial, sans-serif; font-size: 1rem; }
.operator-list small { display: block; margin-top: 4px; color: rgba(255,255,255,.58); font-size: .8rem; }


.contact-section { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: start; gap: clamp(55px, 8vw, 110px); }
.contact-copy p { max-width: 610px; margin: 24px 0 0; color: var(--muted); font-size: 1rem; }
.contact-meta { display: grid; gap: 15px; margin-top: 38px; }
.contact-meta > a, .contact-meta > div { display: flex; align-items: center; gap: 14px; }
.contact-meta > a > span, .contact-meta > div > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); font-weight: 800; }
.contact-meta small { display: block; color: #7c8780; font-size: .61rem; font-weight: 800; letter-spacing: .1em; }
.contact-meta strong { display: block; color: var(--green-dark); font-size: .87rem; }
.contact-form { padding: 34px; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 65px rgba(12,49,39,.07); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form label { display: block; margin-bottom: 17px; color: var(--green-dark); font-size: .74rem; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 7px; padding: 14px 14px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: #fcfdfb; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,157,105,.1); }
.contact-form textarea { min-height: 122px; resize: vertical; }
.form-submit { width: 100%; border: 0; }
.form-note { margin: 11px 0 0; color: #808a84; text-align: center; font-size: .67rem; }

.site-footer { padding: 31px 0; border-top: 1px solid var(--line); background: var(--paper); }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-brand img { width: 158px; height: auto; }
.footer-wrap p { margin: 0; color: #7b857f; font-size: .72rem; }
.footer-links { display: flex; gap: 19px; color: #59655e; font-size: .75rem; font-weight: 600; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .18s; }
.reveal-delay-3 { transition-delay: .26s; }

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

@media (max-width: 1020px) {
  .section { padding: 96px 0; }
  .hero { min-height: auto; }
  .hero-grid, .problem-layout, .operator-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .decision-visual { max-width: 850px; }
  .issue-grid { grid-template-columns: 1fr; border-bottom: 0; }
  .issue-card { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .issue-card h3 { margin-top: 40px; }
  .system-grid { grid-template-columns: 1fr 1fr; }
  .system-step:nth-child(2) { border-right: 0; }
  .system-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav-wrap { min-height: 74px; }
  .brand img { width: 158px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 74px; left: 14px; right: 14px; display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 22px 45px rgba(12,49,39,.14); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease; }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { padding: 11px 12px; }
  .main-nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding-top: 62px; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 4.8rem); }
  .hero-actions .button { width: 100%; }
  .decision-visual { padding: 20px; }
  .visual-title-row { align-items: flex-start; }
  .signal-score { min-width: auto; }
  .decision-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); min-height: 22px; }
  .flow-card h3 { margin-top: 22px; }
  .visual-footer { align-items: flex-start; flex-direction: column; }
  .section-heading h2, .operator-copy h2, .contact-copy h2 { font-size: 2.55rem; }
  .system-grid, .form-row { grid-template-columns: 1fr; }
  .system-step { min-height: 330px; border-right: 0; border-bottom: 1px solid var(--line); }
  .system-step:last-child { border-bottom: 0; }
  .step-mark { margin-top: 40px; }
  .contact-form { padding: 24px 18px; }
  .footer-wrap { flex-direction: column; text-align: center; }
}

@media (max-width: 430px) {
  .section { padding: 78px 0; }
  .hero h1 { font-size: 3.2rem; }
  .eyebrow { font-size: .62rem; }
  .visual-title-row { flex-direction: column; }
  .signal-score { padding-left: 0; border-left: 0; }
}


/* Contact & partnerships refinements */
.contact-section {
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -260px;
  bottom: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,157,105,.09), transparent 70%);
  pointer-events: none;
}
.contact-grid { position: relative; z-index: 1; }
.contact-copy .section-kicker { color: var(--green); }
.contact-form { border-top: 3px solid var(--green); }
@media (max-width: 760px) {
  .brand img { width: 154px; }
  .footer-brand img { width: 146px; }
}


/* Hebrew RTL adaptation */
html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .skip-link {
  left: auto;
  right: 12px;
}

html[dir="rtl"] .main-nav > a:not(.nav-cta)::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .hero::before {
  right: auto;
  left: -230px;
}

html[dir="rtl"] .eyebrow,
html[dir="rtl"] .visual-meta,
html[dir="rtl"] .flow-label,
html[dir="rtl"] .section-kicker,
html[dir="rtl"] .step-tag,
html[dir="rtl"] .contact-meta small {
  letter-spacing: .035em;
}

html[dir="rtl"] .hero h1 {
  letter-spacing: -.045em;
}

html[dir="rtl"] .proof-strip span {
  padding-left: 0;
  padding-right: 16px;
}

html[dir="rtl"] .proof-strip span::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .signal-score {
  padding-left: 0;
  padding-right: 18px;
  border-left: 0;
  border-right: 1px solid var(--line);
}

html[dir="rtl"] .decision-flow {
  direction: rtl;
}

html[dir="rtl"] .issue-card {
  border-right: 0;
  border-left: 1px solid var(--line);
}

html[dir="rtl"] .issue-card:last-child {
  border-left: 0;
}

html[dir="rtl"] .system-step {
  border-right: 0;
  border-left: 1px solid var(--line);
}

html[dir="rtl"] .system-step:last-child {
  border-left: 0;
}

html[dir="rtl"] .target-mark b {
  transform: translateX(-2px);
}

html[dir="rtl"] .contact-section::before {
  right: auto;
  left: -260px;
}

html[dir="rtl"] input[dir="ltr"] {
  text-align: left;
}

@media (max-width: 1020px) {
  html[dir="rtl"] .issue-card {
    border-left: 0;
  }

  html[dir="rtl"] .system-step {
    border-left: 1px solid var(--line);
  }

  html[dir="rtl"] .system-step:nth-child(2) {
    border-left: 0;
  }
}

@media (max-width: 760px) {
  html[dir="rtl"] .signal-score {
    padding-right: 0;
    border-right: 0;
  }

  html[dir="rtl"] .system-step {
    border-left: 0;
  }

  html[dir="rtl"] .flow-arrow {
    transform: rotate(-90deg);
  }
}


/* Web3Forms integration */
.hidden-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-submit {
  position: relative;
  gap: 10px;
}

.form-submit:disabled {
  cursor: wait;
  opacity: .78;
}

.form-submit.is-loading .submit-arrow {
  width: 17px;
  height: 17px;
  font-size: 0;
  border: 2px solid rgba(255,255,255,.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: form-spin .75s linear infinite;
}

.form-status {
  min-height: 0;
  margin-top: 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.65;
  overflow: hidden;
}

.form-status.success,
.form-status.error {
  padding: 13px 15px;
  border: 1px solid;
}

.form-status.success {
  color: #0c5a42;
  background: #edf8f3;
  border-color: #b9dfd1;
}

.form-status.error {
  color: #8d312b;
  background: #fff2f0;
  border-color: #efc3bd;
}

.form-status strong,
.form-status span {
  display: block;
}

.form-status span {
  margin-top: 2px;
  opacity: .88;
}

@keyframes form-spin {
  to { transform: rotate(360deg); }
}
