:root {
  --bg: #f7f4ef;
  --navy: #263149;
  --navy-text: #2b3550;
  --muted: #4a5068;
  --beige: #f0e0bf;
  --purple: #5f5bcd;
  --purple-hover: #4743c5;
  --white: #ffffff;
  --gutter: clamp(16px, 4vw, 72px);
  --font-body: "Assistant", system-ui, sans-serif;
  --font-display: "Aboreto", "Assistant", serif;
  --font-cta: "Poppins", "Assistant", sans-serif;
  --font-pill: "Barlow", "Assistant", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 10;
}
.skip-link:focus { top: 16px; }

.container { padding-inline: var(--gutter); max-width: 1920px; margin-inline: auto; }

.divider { border: 0; border-top: 1px solid var(--navy); margin: 0; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background-color .2s;
}
.btn-primary:hover { background: var(--purple-hover); }

.btn-secondary {
  display: inline-block;
  color: var(--navy);
  font-family: var(--font-cta);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 14px;
  border: 2px solid var(--navy);
  border-radius: 4px;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-pill {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-pill);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  padding: 13px 29px;
  border-radius: 999px;
  transition: opacity .2s;
}
.btn-pill:hover { opacity: .85; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
}
.site-header .logo img { width: 110px; height: auto; }
.lang-switch { display: flex; gap: 30px; font-size: 1rem; }
.lang-switch a { text-decoration: none; }
.lang-switch a[aria-current="page"] { font-weight: 600; }
.lang-switch a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-inline: clamp(0px, 1vw, 20px);
  min-height: clamp(560px, 38vw, 720px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero-en { background-image: url("../img/hero-en.jpg"); }
.hero-he { background-image: url("../img/hero-he.jpg"); }

.hero-content {
  margin-inline-start: 23.5%;
  max-width: 25vw;
  padding-block: 56px;
}
.hero-he .hero-content { margin-inline-start: 13%; max-width: 29vw; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.1vw, 3.75rem);
  line-height: 1.32;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 64px;
}
.hero-he h1 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(2.2rem, 3.3vw, 4rem);
  text-transform: none;
  line-height: 1.15;
  margin-block-end: 12px;
}
.hero .tagline {
  font-size: 1.25rem;
  letter-spacing: .2em;
  margin: 0 0 48px;
}
.hero p.lead {
  font-family: var(--font-cta);
  font-size: .95rem;
  line-height: 1.6;
  max-width: min(340px, 22vw);
  margin: 0 0 40px;
}
.hero-he p.lead { font-family: var(--font-body); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Section headings ---------- */
.section { padding-block: 72px; }
.section-title {
  text-align: center;
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 12px;
}
.section-title.bold { font-weight: 600; }
.section-sub {
  text-align: center;
  font-size: .95rem;
  margin: 0 0 24px;
}
.section-sub.large { font-size: 1.2rem; margin-block-end: 56px; }

/* ---------- Demo ---------- */
.demo-text { text-align: center; max-width: 720px; margin: 0 auto 32px; font-size: 1.05rem; }
.demo-frame {
  max-width: 960px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  color: var(--beige);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 1.15rem;
}
.demo-frame svg { width: 72px; height: 72px; }
.demo-frame iframe, .demo-frame video { width: 100%; height: 100%; border: 0; }

/* ---------- Expertise ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.expertise-card {
  grid-column: span 2;
  background: var(--navy);
  color: var(--white);
  padding: 28px 24px 32px;
  min-height: 210px;
}
.expertise-card.wide { grid-column: span 3; }
.expertise-card svg { width: 40px; height: 40px; fill: var(--beige); margin-block-end: 24px; }
.expertise-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; }
.expertise-card p { margin: 0; font-size: .95rem; max-width: 300px; }
.expertise-card.wide p { max-width: none; }

/* ---------- Contact band ---------- */
.contact-band {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 400px;
  margin-block: 80px 24px;
}
.contact-band .panel {
  background: var(--beige);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: 10%;
  padding-block: 48px;
}
.contact-band .support { font-size: .95rem; margin: 0 0 40px; }
.contact-band h2 { font-weight: 300; font-size: 2rem; margin: 0 0 48px; color: var(--navy); }
.contact-band .btn-pill { align-self: flex-start; }
.contact-band .photo { background: url("../img/blueprints.jpg") center / cover; min-height: 260px; }

/* ---------- Tiers ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-block: 120px 80px;
}
.tier svg { width: 42px; height: 42px; stroke: var(--navy); stroke-width: 1.6; fill: none; margin-block-end: 44px; }
[dir="rtl"] .tier svg { transform: scaleX(-1); }
.tier h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 6px; color: var(--navy); }
.tier p { margin: 0; font-size: .95rem; color: var(--muted); max-width: 300px; }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 12px;
}
.why-spacer { min-height: 1px; }
.why-card {
  display: flex;
  align-items: flex-start;
  aspect-ratio: 567 / 432;
  background-size: cover;
  background-position: center;
}
.why-card .label {
  width: max(52%, 230px);
  background: var(--navy);
  color: var(--white);
  padding: 32px 24px 14px;
}
.why-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 18px; }
.why-card p { font-size: .95rem; margin: 0; }
.why-cta { display: flex; align-items: center; justify-content: center; }
.bg-field { background-image: url("../img/field-connection.jpg"); }
.bg-onboarding { background-image: url("../img/onboarding-support.jpg"); }
.bg-unique { background-image: url("../img/unique-product.jpg"); }
.bg-feedback { background-image: url("../img/feedback-design.jpg"); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 64px 0; }
.footer-band {
  background: var(--navy);
  color: var(--white);
  margin-block-start: 24px;
  padding: 20px var(--gutter) 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px 64px;
  font-size: .95rem;
}
.footer-band .logo img { width: 112px; height: auto; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links a { color: var(--white); }
.footer-copy { font-size: .8rem; margin-block-start: 8px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin-inline: auto; padding-block: 48px 80px; }
.legal h1 { font-size: 2.2rem; font-weight: 600; color: var(--navy); margin: 0 0 8px; }
.legal h2 { font-size: 1.35rem; font-weight: 600; color: var(--navy); margin: 36px 0 8px; }
.legal h3 { font-size: 1.1rem; font-weight: 600; margin: 20px 0 6px; }
.legal p, .legal li { font-size: 1.05rem; }
.legal .lang-block + .lang-block { margin-block-start: 64px; padding-block-start: 48px; border-top: 1px solid var(--navy); }
.legal .placeholder { background: #fff3c4; padding-inline: 4px; }

/* ---------- Scroll reveal (active only when JS runs) ---------- */
.js :is(.hero-content, .section-title, .section-sub, .demo-frame, .expertise-card, .contact-band .panel, .contact-band .photo, .tier, .why-card, .why-cta) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.js .hero-content { transform: none; transition-duration: 1.2s; }
.js .is-visible:is(.hero-content, .section-title, .section-sub, .demo-frame, .expertise-card, .contact-band .panel, .contact-band .photo, .tier, .why-card, .why-cta) {
  opacity: 1;
  transform: none;
}
.js :is(.expertise-grid, .tiers, .why-grid) > :nth-child(2) { transition-delay: .12s; }
.js :is(.expertise-grid, .tiers, .why-grid) > :nth-child(3) { transition-delay: .24s; }
.js :is(.expertise-grid, .why-grid) > :nth-child(4) { transition-delay: .12s; }
.js :is(.expertise-grid, .why-grid) > :nth-child(5) { transition-delay: .24s; }
.js .why-grid > :nth-child(6) { transition-delay: .36s; }
.js .contact-band .photo { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js :is(.hero-content, .section-title, .section-sub, .demo-frame, .expertise-card, .contact-band .panel, .contact-band .photo, .tier, .why-card, .why-cta) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-spacer { display: none; }
}

@media (max-width: 1000px) {
  .hero-content { margin-inline-start: 8%; }
  .expertise-card, .expertise-card.wide { grid-column: span 3; }
  .expertise-card:nth-child(5) { grid-column: span 6; }
  .tiers { gap: 32px; }
}

@media (max-width: 680px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    margin-inline: 0;
    background-image: none;
  }
  .hero::before {
    content: "";
    display: block;
    aspect-ratio: 1600 / 827;
    background-size: cover;
    background-position: center;
  }
  .hero-en::before { background-image: url("../img/hero-en.jpg"); }
  .hero-he::before { background-image: url("../img/hero-he.jpg"); }
  .hero-content, .hero-he .hero-content { margin-inline: 0; padding: 32px var(--gutter) 16px; max-width: none; }
  .hero p.lead { max-width: none; }
  .hero h1 { margin-block-end: 28px; }
  .hero .tagline { margin-block-end: 28px; }
  .section { padding-block: 48px; }
  .expertise-card, .expertise-card.wide, .expertise-card:nth-child(5) { grid-column: span 6; min-height: 0; }
  .contact-band { grid-template-columns: 1fr; margin-block-start: 48px; }
  .tiers { grid-template-columns: 1fr; padding-block: 56px; }
  .tier svg { margin-block-end: 20px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { aspect-ratio: auto; min-height: 320px; }
  .why-card .label { width: 70%; }
  .js :is(.expertise-grid, .tiers, .why-grid) > * { transition-delay: 0s; }
  .why-cta { padding-block: 16px; }
  .footer-band { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
}
