/* ===================== TOKENS ===================== */
:root {
  --bg: #D6EDF3;
  --surface-alt: #E4F1F6;
  --surface-white: #FFFFFF;
  --dark: #2E2D2C;
  --dark-2: #3B3A38;
  --teal: #1391B8;
  --teal-ink: #0F7291;

  --text: #45535A;
  --text-soft: #56626C;
  --muted: #667985; /* darkened for WCAG AA on light surfaces */

  --line: #C9E2EB;          /* hairline on tinted/base */
  --line-white: #E1EDF2;    /* hairline on white */
  --card-border: #D6E7EE;
  --badge-1: #EAF4F8;
  --badge-2: #DCEDF3;

  --cta-title: #F5FBFC;
  --cta-sub: #AEBDC3;

  --maxw: 1200px;
  --pad-x: 24px;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Geist', 'Inter', system-ui, sans-serif;

  --shadow-card: 0 1px 2px rgba(20,40,55,.04), 0 12px 28px -12px rgba(20,60,80,.14);
  --shadow-card-hover: 0 2px 4px rgba(20,40,55,.06), 0 22px 44px -16px rgba(20,60,80,.22);
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ===================== SHARED ===================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--teal-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.eyebrow--center { justify-content: center; }
.eyebrow--onDark { color: #6FC6E4; }

/* Language switch (dropdown, styled like the demo button) */
.nav__lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--dark); color: #fff;
  border: 1px solid transparent; border-radius: 9px; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 10px 16px;
  transition: background .18s ease;
}
.lang-toggle:hover { background: var(--dark-2); }
.lang-caret {
  width: 13px; height: 13px; fill: none; stroke: #fff;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s ease;
}
.nav__lang.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  margin: 0; padding: 5px; list-style: none;
  min-width: 72px;
  background: var(--dark); border-radius: 10px;
  box-shadow: 0 14px 30px -10px rgba(46,45,44,.55);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 30;
}
.nav__lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu .lang-btn {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: #B9C2C6; padding: 8px 12px; border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.lang-menu .lang-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.lang-menu .lang-btn.is-active { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn--dark { background: var(--dark); color: #fff; font-size: 14px; padding: 12px 20px; }
.btn--dark:hover { background: var(--dark-2); transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(46,45,44,.6); }
.btn--sm { font-size: 13px; padding: 10px 18px; }

.icon {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 30px; height: 30px; }
.icon--check { width: 20px; height: 20px; flex-shrink: 0; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 40px 0 24px;
  overflow: hidden;
  background: var(--bg);
}
/* Two-column hero: the eyebrow sits full-width on top; below it the headline
   leads on the left and the C2 command visual sits to its right, top-aligned
   with the headline so both read on the same level. */
.hero__eyebrow { display: flex; margin-bottom: 20px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 48px;
}
.hero__visual { position: relative; }
.hero__c2 {
  display: block;
  width: 100%;
  height: auto;
  max-width: 430px;
  margin-left: auto;
  margin-top: 26px; /* drop the C2 slightly so it reads level with the title */
}

/* Sticky site navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background .25s ease, box-shadow .25s ease, padding .2s ease;
}
.site-nav.scrolled {
  background: rgba(224,241,246,.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(20,60,80,.4);
  padding: 10px 0;
}
.nav { position: relative; z-index: 3; width: 100%; }
.hero__content { position: relative; z-index: 2; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__link { color: var(--text-soft); font-size: 14px; transition: color .15s ease; }
.nav__link:hover { color: var(--dark); }

.hero__content {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 22px;
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--dark);
}
.hero__sub { font-size: 17px; color: var(--text); max-width: 520px; }
.hero__micro { font-size: 12.5px; color: var(--text-soft); line-height: 1.7; }

/* Email capture bar */
.emailbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 470px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 10px 28px -12px rgba(12,17,22,.22);
}
.emailbar__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 12px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--dark);
}
.emailbar__input::placeholder { color: var(--muted); }
.emailbar:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19,145,184,.14), 0 10px 28px -12px rgba(12,17,22,.22); }

/* ===================== SECTION SURFACES & RHYTHM ===================== */
.section { position: relative; padding: 68px 0; }
.section--alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}
.section--white {
  background: var(--surface-white);
  border-block: 1px solid var(--line-white);
  box-shadow: inset 0 26px 44px -34px rgba(19,145,184,.18);
  padding: 76px 0;
}
.section--dark { background: var(--dark); }

.section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 40px;
}
.section__head--wide { max-width: 720px; }
.section__title {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.016em;
  color: var(--dark);
}
.section__lead { font-size: 16.5px; color: var(--text); max-width: 640px; }
.section__closing {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
}

/* ===================== GRIDS ===================== */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* Problem columns */
.grid--divided { gap: 48px; }
.problem { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); }
.problem__title { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--dark); }
.problem__desc { font-size: 14px; line-height: 1.6; color: var(--text); }

/* Badge (icon chip) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  background: linear-gradient(180deg, var(--badge-1), var(--badge-2));
  border: 1px solid #CFE4EC;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

/* Feature cards */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(19,145,184,.4); }
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__kicker { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: var(--muted); }
.card__kicker--accent { color: var(--teal); }
.card--feature { border-color: rgba(19,145,184,.35); }
.card--feature::before {
  content: ""; display: block; position: absolute;
}
.card__title { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--dark); }
.card__desc { font-size: 14px; line-height: 1.6; color: var(--text-soft); }
.card { position: relative; }
.card--feature { box-shadow: 0 1px 2px rgba(20,40,55,.04), 0 14px 30px -12px rgba(19,145,184,.28); }

/* ===================== HOW IT WORKS ===================== */
.steps {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px;
  background: var(--surface-white);
  border: 1px solid var(--line-white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
/* Shared numbered badge — one language across every section (DRY). */
.step__num, .problem__num {
  font-family: var(--display);
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--badge-1); border: 1px solid #CFE4EC;
}
.step__title { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--dark); }
.step__desc { font-size: 14px; line-height: 1.6; color: var(--text-soft); }
.step__arrow { display: flex; align-items: center; color: var(--muted); flex: 0 0 auto; }
.step__arrow .icon { stroke: #9DB8C4; width: 22px; height: 22px; }

/* ===================== BOUNDARY (dark) ===================== */
.boundary { overflow: hidden; padding: 60px 0; }
.boundary__mark {
  position: absolute;
  right: -80px; top: 50%;
  width: 420px; height: auto;
  transform: translateY(-50%);
  opacity: .05;
  pointer-events: none;
}
.boundary__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 760px;
}
.boundary__title {
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.016em;
  color: var(--cta-title);
}
.boundary__body { font-size: 16.5px; line-height: 1.6; color: var(--cta-sub); max-width: 660px; }

/* ===================== USE CASES ===================== */
/* Same card language as the products section for a coherent, integrated feel:
   framed media with a soft bottom gradient, subtle hover lift and image zoom. */
.usecase {
  display: flex;
  flex-direction: column;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.usecase:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.usecase__media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #dfeef4; }
.usecase__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.usecase:hover .usecase__img { transform: scale(1.05); }
.usecase__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,45,44,0) 55%, rgba(46,45,44,.18));
  pointer-events: none;
}
.usecase__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.usecase__title { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--dark); }
.usecase__desc { font-size: 14px; line-height: 1.6; color: var(--text); }

/* ===================== PRODUCTS ===================== */
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.product--primary { border-color: rgba(19,145,184,.45); box-shadow: 0 1px 2px rgba(20,40,55,.04), 0 16px 34px -14px rgba(19,145,184,.26); }
.product__media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #dfeef4; }
.product__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.product:hover .product__media img { transform: scale(1.05); }
.product__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,45,44,0) 55%, rgba(46,45,44,.18));
  pointer-events: none;
}
.product__body { display: flex; flex-direction: column; gap: 14px; padding: 26px 30px 30px; }
.product--primary .product__body { box-shadow: inset 0 2px 0 var(--teal); }
.product__head { display: flex; align-items: center; gap: 14px; }
.product__tag { color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; }
.product__name { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.012em; color: var(--dark); }
.product__desc { font-size: 15px; line-height: 1.55; color: var(--text-soft); }
.product__price {
  font-family: var(--display);
  font-size: 28px; font-weight: 600; letter-spacing: -0.01em; color: var(--dark);
  margin-top: 4px;
}
.product__from { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); margin-right: 4px; }
.product__unit { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--text-soft); }
.product__specs { display: flex; gap: 40px; padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--line-white); }
.spec { display: flex; flex-direction: column; gap: 3px; }
.spec__k { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.spec__v { font-size: 14px; font-weight: 600; color: var(--dark); }

/* ===================== PARTNERS (scrolling marquee) ===================== */
.partners { padding: 56px 0; overflow: hidden; }
.partners .eyebrow { display: flex; justify-content: center; margin-bottom: 30px; }
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > * { margin-left: 44px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partners__name {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #6E828C;
  white-space: nowrap;
}
.partners__dot { width: 5px; height: 5px; border-radius: 50%; background: #A9C6D2; flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ===================== STATS ===================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 24px;
  background: var(--surface-white);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.stat__num { font-family: var(--display); font-size: clamp(40px, 5vw, 54px); font-weight: 600; letter-spacing: -0.02em; color: var(--dark); line-height: 1; }
.stat__sym { color: inherit; }
.stat__label { font-size: 13.5px; color: var(--text); }

/* Proofs */
.proofs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
  margin-inline: auto;
}
.proof {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--dark);
}

/* ===================== TEAM ===================== */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 32px 24px;
  background: var(--surface-white);
  border: 1px solid var(--line-white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.member__mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(180deg, var(--badge-1), var(--badge-2));
  border: 1px solid #CFE4EC;
  font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--teal-ink);
  margin-bottom: 4px;
}
.member__name { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--dark); }
.member__role { font-size: 13px; color: var(--text-soft); }

/* ===================== CTA ===================== */
.section--cta { padding: 80px 0; }
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, #333230, #2A2928);
  box-shadow: 0 30px 60px -24px rgba(46,45,44,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
.cta__mark {
  position: absolute;
  right: -70px; bottom: -90px;
  width: 380px; height: auto;
  opacity: .05;
  pointer-events: none;
}
.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 56px 40px;
}
.cta__title { font-family: var(--display); font-size: clamp(30px, 4.4vw, 44px); font-weight: 600; letter-spacing: -0.018em; color: var(--cta-title); }
.cta__sub { font-size: 17px; color: var(--cta-sub); max-width: 520px; }
.cta__micro { font-size: 12.5px; color: #9FB4C0; } /* lighter: sits on the dark CTA */
.cta .emailbar:focus-within { box-shadow: 0 0 0 3px rgba(19,145,184,.4); }

/* ===================== FOOTER ===================== */
.footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 40px;
}
.footer__left { display: flex; flex-direction: column; gap: 8px; }
.footer__logo { height: 22px; width: auto; }
.footer__copy { font-size: 12px; color: var(--text-soft); }
.footer__links { display: flex; align-items: center; gap: 28px; }
.footer__links a { font-size: 13px; color: var(--text); transition: color .15s ease; }
.footer__links a:hover { color: var(--dark); }
.footer__mail { color: var(--teal-ink) !important; }

/* ===================== ACCESSIBILITY & FORM FEEDBACK ===================== */
a:focus-visible, button:focus-visible, .lang-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}
.emailbar__input:focus-visible { outline: none; }
section[id], header[id] { scroll-margin-top: 88px; }

.form-note {
  min-height: 18px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-ink);
}
.form-note.is-error { color: #C0453B; }
.form-note--dark { color: #8FD3EA; }
.form-note--dark.is-error { color: #F0A79E; }

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 940px) {
  .grid--3 { grid-template-columns: 1fr 1fr; gap: 24px; }
  .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; }
  .step__arrow { transform: rotate(90deg); align-self: center; }
  .section { padding: 56px 0; }
  .section--white { padding: 60px 0; }
  /* Hero stacks: copy on top (centered), C2 visual below. */
  .hero__eyebrow { justify-content: center; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero__content { max-width: 620px; margin-inline: auto; align-items: center; text-align: center; }
  .hero__c2 { margin-inline: auto; max-width: 560px; }
}
@media (max-width: 640px) {
  .nav__link, .nav__demo { display: none; }
  .site-nav { padding: 14px 0; }
  .grid--3, .grid--divided, .team { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .emailbar { flex-direction: column; align-items: stretch; padding: 10px; }
  .emailbar__input { padding: 8px 12px; }
  .emailbar .btn { width: 100%; }
  .cta__inner { padding: 52px 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .product__specs { gap: 28px; }
  .hero { padding: 28px 0 48px; }
  .hero__grid { gap: 24px; }
}
