/* ==========================================================================
   Xentinel Labs — design system
   1. Tokens
   2. Reset & base
   3. Layout primitives
   4. Typography
   5. Buttons & pills
   6. Header / navigation
   7. Cards & components
   8. Sections & patterns
   9. Forms
   10. Footer
   11. Motion & utilities
   12. Responsive
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  /* Brand */
  --brand-700: #0f3fc4;
  --brand-600: #1b5cff;
  --brand-500: #3b76ff;
  --brand-200: #b9cdff;
  --brand-100: #dde7ff;
  --brand-50:  #eef3ff;

  /* Product accents */
  --agri-600: #0e9f56;
  --agri-50:  #e6f8ee;
  --med-600:  #0d9aa0;
  --med-50:   #e3f7f7;
  --iot-600:  #7c3aed;
  --iot-50:   #f1eaff;
  --xr-600:   #e0357f;
  --xr-50:    #ffe9f2;
  --amber-600:#f08a24;
  --amber-50: #fff2e0;

  /* Ink & surface */
  --ink-900: #08102a;
  --ink-800: #101a3a;
  --ink-700: #1e2a4d;
  --ink-600: #3d4b70;
  --ink-500: #5b6a8e;
  --ink-400: #7d8aac;
  --ink-300: #a8b2ca;

  --surface:    #ffffff;
  --surface-2:  #f6f8fd;
  --surface-3:  #edf2fc;
  --line:       #e3e9f5;
  --line-strong:#cfd8ec;

  /* Type */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Liberation Sans", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Liberation Mono", Menlo, monospace;

  /* Space & shape */
  --container: 1200px;
  --gutter: 24px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Elevation */
  --sh-xs: 0 1px 2px rgba(8, 16, 42, .06);
  --sh-sm: 0 2px 8px rgba(8, 16, 42, .06), 0 1px 2px rgba(8, 16, 42, .04);
  --sh-md: 0 12px 28px -12px rgba(8, 16, 42, .18), 0 2px 6px rgba(8, 16, 42, .05);
  --sh-lg: 0 32px 64px -28px rgba(8, 16, 42, .32), 0 8px 20px -12px rgba(8, 16, 42, .14);
  --sh-brand: 0 14px 30px -12px rgba(27, 92, 255, .55);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-600);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--brand-200); color: var(--ink-900); }

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 200;
  background: var(--ink-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* 3. Layout primitives --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: clamp(64px, 8vw, 116px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--tint { background: var(--surface-2); }
.section--ink { background: var(--ink-900); color: #cdd6ee; overflow: hidden; }
.section--ink h2, .section--ink h3, .section--ink .h1 { color: #fff; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.grid--sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.stack > * + * { margin-top: 18px; }
.cluster { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

/* 4. Typography ---------------------------------------------------------- */
h1, h2, h3, h4, h5, .h1, .h2, .h3 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink-900);
  text-wrap: balance;
}

.h1, h1 { font-size: clamp(2.35rem, 1.45rem + 2.9vw, 3.65rem); }
.h2, h2 { font-size: clamp(1.95rem, 1.25rem + 2.2vw, 3rem); line-height: 1.12; }
.h3, h3 { font-size: clamp(1.3rem, 1.05rem + .8vw, 1.72rem); line-height: 1.22; letter-spacing: -.018em; }
h4 { font-size: 1.12rem; line-height: 1.35; letter-spacing: -.01em; }

.lede {
  font-size: clamp(1.06rem, .98rem + .38vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-500);
  text-wrap: pretty;
}
.muted { color: var(--ink-500); }
.small { font-size: .93rem; line-height: 1.55; }
.tiny { font-size: .82rem; letter-spacing: .01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section--ink .eyebrow { color: var(--brand-200); }

.section-head { max-width: 720px; }
.section-head .h2, .section-head h2 { margin-top: 14px; }
.section-head .lede { margin-top: 18px; }

.grad-text {
  background: linear-gradient(100deg, var(--brand-600) 0%, var(--iot-600) 55%, var(--xr-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.underline-mark {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.underline-mark::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: .08em;
  height: .32em;
  background: linear-gradient(90deg, var(--brand-100), var(--brand-200));
  border-radius: 4px;
  z-index: -1;
}

/* 5. Buttons & pills ----------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: .97rem;
  letter-spacing: -.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary { box-shadow: var(--sh-brand); }
.btn--primary:hover { background: var(--brand-700); }

.btn--dark { --btn-bg: var(--ink-900); box-shadow: var(--sh-md); }
.btn--dark:hover { --btn-bg: #131f45; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-800);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--brand-600); color: var(--brand-600); background: var(--brand-50); }

.btn--white { --btn-bg: #fff; --btn-fg: var(--ink-900); }
.btn--outline-white { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-white:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.btn--lg { padding: 16px 30px; font-size: 1.03rem; }
.btn--sm { padding: 9px 18px; font-size: .89rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--brand-600);
  font-size: .96rem;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: -.005em;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #dbe4ff; }

.tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .01em;
  background: var(--surface-3);
  color: var(--ink-600);
}

/* 6. Header / navigation -------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(8, 16, 42, .5);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 74px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo__mark { width: 34px; height: 34px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -.03em;
  color: var(--ink-900);
}
.logo__sub {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
/* static so the mega panel is positioned against the header, not the nav item —
   keeps a wide dropdown centred on the page instead of clipping off-screen */
.nav__item { position: static; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-weight: 650;
  font-size: .96rem;
  color: var(--ink-700);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__link:hover { color: var(--brand-600); background: var(--brand-50); }
.nav__link[aria-current="page"] { color: var(--brand-600); }
.nav__link .chev { width: 11px; height: 11px; transition: transform .2s var(--ease); opacity: .65; }
.nav__item.is-open .nav__link { color: var(--brand-600); }
.nav__item.is-open .chev { transform: rotate(180deg); }

.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }

/* Mega menu */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: min(900px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto 0;
  height: 12px;
}
.mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mega__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mega__link {
  display: flex;
  gap: 13px;
  padding: 13px;
  border-radius: var(--r-md);
  transition: background .16s var(--ease);
}
.mega__link:hover { background: var(--surface-2); }
.mega__ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
}
.mega__ico svg { width: 19px; height: 19px; }
.mega__title { font-weight: 750; color: var(--ink-900); font-size: .96rem; letter-spacing: -.01em; }
.mega__desc { font-size: .83rem; color: var(--ink-500); line-height: 1.45; margin-top: 2px; }

.mega__foot {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(100deg, var(--brand-50), var(--surface-3));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mega__foot p { font-size: .89rem; color: var(--ink-600); }
.mega__foot strong { color: var(--ink-900); }

/* Mobile nav */
.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  place-items: center;
}
.burger span {
  display: block;
  width: 17px; height: 2px;
  background: var(--ink-800);
  border-radius: 2px;
  position: relative;
  transition: background .2s var(--ease);
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px; height: 2px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform .25s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 74px 0 0 0;
  z-index: 99;
  background: #fff;
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer__group { border-bottom: 1px solid var(--line); padding: 6px 0; }
.drawer__top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  background: none;
  border: 0;
  font-size: 1.06rem;
  font-weight: 750;
  color: var(--ink-900);
  cursor: pointer;
  text-align: left;
}
.drawer__top .chev { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.drawer__group.is-open .chev { transform: rotate(180deg); }
.drawer__panel { display: none; padding: 2px 2px 14px; }
.drawer__group.is-open .drawer__panel { display: block; }
.drawer__panel a { display: block; padding: 9px 0; color: var(--ink-600); font-weight: 600; font-size: .97rem; }
.drawer__panel a:hover { color: var(--brand-600); }
.drawer__cta { margin-top: 26px; display: grid; gap: 12px; }

/* 7. Cards & components --------------------------------------------------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.card--flat { border-radius: var(--r-md); padding: 24px; }
.card--pad-lg { padding: 34px; }
.card h3, .card h4 { margin-bottom: 10px; }
.card p { color: var(--ink-500); font-size: .97rem; }
.card__foot { margin-top: 20px; }

.card--accent { overflow: hidden; }
.card--accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent, var(--brand-600));
}

.ico {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.ico svg { width: 24px; height: 24px; }
.ico--sm { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 14px; }
.ico--sm svg { width: 19px; height: 19px; }

.t-brand { background: var(--brand-50); color: var(--brand-600); }
.t-agri  { background: var(--agri-50);  color: var(--agri-600); }
.t-med   { background: var(--med-50);   color: var(--med-600); }
.t-iot   { background: var(--iot-50);   color: var(--iot-600); }
.t-xr    { background: var(--xr-50);    color: var(--xr-600); }
.t-amber { background: var(--amber-50); color: var(--amber-600); }
.t-ink   { background: var(--surface-3); color: var(--ink-800); }

.a-brand { --accent: var(--brand-600); }
.a-agri  { --accent: var(--agri-600); }
.a-med   { --accent: var(--med-600); }
.a-iot   { --accent: var(--iot-600); }
.a-xr    { --accent: var(--xr-600); }
.a-amber { --accent: var(--amber-600); }

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-top: 12px;
  color: var(--ink-600);
  font-size: .98rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b5cff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section--ink .checklist li { color: #c3cee8; }
.section--ink .checklist li::before { background-color: rgba(59, 118, 255, .2); }

.stat__num {
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--ink-900);
}
.stat__label { margin-top: 10px; font-size: .93rem; color: var(--ink-500); }
.section--ink .stat__num { color: #fff; }
.section--ink .stat__label { color: #9fb0d6; }

.steps { counter-reset: step; display: grid; gap: 20px; }
.step { position: relative; padding-left: 62px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-weight: 800;
  font-size: .92rem;
  border: 1px solid var(--brand-100);
}
.step h4 { margin-bottom: 6px; }
.step p { color: var(--ink-500); font-size: .96rem; }

.quote {
  font-size: clamp(1.18rem, 1rem + .8vw, 1.6rem);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--ink-900);
  text-wrap: pretty;
}
.section--ink .quote { color: #fff; }
.byline { display: flex; align-items: center; gap: 13px; margin-top: 24px; }
.byline__av {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .95rem;
  background: var(--brand-100);
  color: var(--brand-700);
  flex: none;
}
.byline__name { font-weight: 750; color: var(--ink-900); font-size: .95rem; }
.byline__role { font-size: .85rem; color: var(--ink-400); }
.section--ink .byline__name { color: #fff; }

/* Tabs */
.tabs__list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  width: fit-content;
  max-width: 100%;
}
.tabs__btn {
  padding: 10px 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font-weight: 700;
  font-size: .93rem;
  color: var(--ink-500);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.tabs__btn:hover { color: var(--ink-800); }
.tabs__btn[aria-selected="true"] {
  background: #fff;
  color: var(--brand-600);
  box-shadow: var(--sh-sm);
}
.tabs__panel { display: none; margin-top: 34px; }
.tabs__panel.is-active { display: block; animation: fade-up .4s var(--ease) both; }

/* Accordion */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex;
  width: 100%;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.012em;
  color: var(--ink-900);
  cursor: pointer;
}
.acc__btn .plus { position: relative; width: 15px; height: 15px; flex: none; }
.acc__btn .plus::before, .acc__btn .plus::after {
  content: "";
  position: absolute;
  background: var(--brand-600);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.acc__btn .plus::before { inset: 6.5px 0; height: 2px; }
.acc__btn .plus::after { inset: 0 6.5px; width: 2px; }
.acc__item.is-open .plus::after { transform: rotate(90deg); opacity: 0; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 40px 24px 4px; color: var(--ink-500); font-size: .98rem; }

/* Logo strip */
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 42px; }
.strip__item {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.02rem;
  color: var(--ink-400);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  filter: grayscale(1);
  opacity: .78;
  transition: opacity .2s var(--ease), filter .2s var(--ease);
}
.strip__item:hover { opacity: 1; filter: none; }
.strip__item svg { width: 22px; height: 22px; }

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 42px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* 8. Sections & patterns -------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 7vw, 92px) clamp(56px, 7vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(58% 78% at 12% 0%, var(--brand-50) 0%, transparent 62%),
    radial-gradient(52% 70% at 92% 6%, var(--xr-50) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__media { position: relative; }
.hero__copy > * + * { margin-top: 22px; }
.hero .h1 { margin-top: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; font-size: .89rem; font-weight: 650; color: var(--ink-500); }
.hero__meta svg { width: 16px; height: 16px; color: var(--agri-600); flex: none; }

.hero--sub {
  padding-block: clamp(52px, 6vw, 86px);
  background:
    radial-gradient(60% 90% at 8% 0%, var(--brand-50) 0%, transparent 60%),
    radial-gradient(50% 80% at 96% 10%, var(--surface-3) 0%, transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero--sub .hero__inner { grid-template-columns: minmax(0, 1fr); }
.hero--sub:not(.hero--split) .hero__copy { max-width: 820px; }
.hero--sub.hero--split .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }

.crumbs { display: flex; gap: 9px; font-size: .84rem; color: var(--ink-400); font-weight: 600; margin-bottom: 20px; }
.crumbs a:hover { color: var(--brand-600); }
.crumbs span { color: var(--ink-300); }

/* Decorative blobs & grid */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }

.dotgrid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%);
  opacity: .55;
  pointer-events: none;
}

/* Media / mockups */
.media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
}
.media--flat { box-shadow: var(--sh-md); border-radius: var(--r-lg); }
.media--plain { border: 0; box-shadow: none; background: none; overflow: visible; }

.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-card__k { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); }
.float-card__v { font-weight: 800; font-size: 1.08rem; color: var(--ink-900); letter-spacing: -.02em; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }

/* Feature row */
.featrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.featrow + .featrow { margin-top: clamp(56px, 7vw, 104px); }
.featrow--rev .featrow__media { order: -1; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(38px, 5vw, 64px);
  background: linear-gradient(115deg, var(--ink-900) 0%, #14235c 48%, var(--brand-700) 100%);
  color: #c6d2ef;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 32px;
  align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 16px; font-size: 1.05rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: flex-end; }
.cta-band .blob { width: 380px; height: 380px; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 16px 20px; text-align: left; font-size: .95rem; border-bottom: 1px solid var(--line); }
th { font-weight: 750; color: var(--ink-900); background: var(--surface-2); font-size: .87rem; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink-900); }

/* 9. Forms ---------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form > .btn { justify-self: start; }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 700; color: var(--ink-800); }
.field label .req { color: var(--xr-600); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: .97rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-50);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--xr-600); }
.field__err { font-size: .82rem; color: var(--xr-600); display: none; }
.field.has-error .field__err { display: block; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form__note { font-size: .84rem; color: var(--ink-400); }
.form__ok {
  display: none;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--agri-50);
  color: #0a6c3c;
  font-weight: 650;
  font-size: .95rem;
  border: 1px solid #bfe8d2;
}
.form__ok.is-visible { display: block; }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Turnstile reserves its own height so the button does not jump on load. */
.cf-turnstile { min-height: 65px; }

/* Submit button states */
.btn__spin { display: none; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form.is-sending .btn__icon { display: none; }
.form.is-sending .btn__spin { display: block; }
.form.is-sending button[type="submit"] { pointer-events: none; opacity: .72; }

.form__err {
  display: none;
  margin: 0;
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: #fdecf3;
  border: 1px solid #f6c9dc;
  color: #a31149;
  font-size: .9rem;
  line-height: 1.5;
}
.form__err.is-visible { display: block; }

.checkbox { display: flex; gap: 11px; align-items: flex-start; font-size: .89rem; color: var(--ink-500); }
.checkbox input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--brand-600); flex: none; }

/* 10. Footer -------------------------------------------------------------- */
.footer { background: var(--ink-900); color: #93a3c8; padding-block: clamp(52px, 6vw, 80px) 32px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.footer .logo__name { color: #fff; }
.footer .logo__sub { color: #6c7ca6; }
.footer__blurb { margin-top: 20px; font-size: .93rem; line-height: 1.6; max-width: 320px; color: #8d9dc4; }
.footer h5 {
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer li + li { margin-top: 11px; }
.footer a { font-size: .93rem; transition: color .18s var(--ease); }
.footer a:hover { color: #fff; }
.footer__bottom {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: .87rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 22px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .07);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.social a:hover { background: var(--brand-600); transform: translateY(-2px); }
.social svg { width: 16px; height: 16px; }

/* 11. Motion & utilities --------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse-ring { 0% { transform: scale(.9); opacity: .7; } 70% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.floaty { animation: float-y 6s ease-in-out infinite; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 26px; }
.mt-5 { margin-top: 38px; }
.mt-6 { margin-top: 52px; }
.mb-4 { margin-bottom: 26px; }
.hide-sm { display: initial; }

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

/* 12. Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav, .header__actions .btn--ghost { display: none; }
  .burger { display: grid; }
  .header__bar { gap: 16px; justify-content: space-between; }
  .header__actions { margin-left: auto; }
  .footer__top { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero__inner, .hero--sub.hero--split .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: 2; }
  .grid--split, .featrow, .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
  .featrow--rev .featrow__media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 2; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band__actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .grid--2, .grid--3, .grid--4, .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 1; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .card { padding: 24px; }
  .hide-sm { display: none; }
  .btn { width: auto; }
  .hero__actions .btn { flex: 1 1 auto; }
  .float-card { display: none; }
  .tabs__list { width: 100%; border-radius: var(--r-md); }
  .tabs__btn { flex: 1 1 auto; }
}
