/* =========================================================================
   SpandIoT — landing page
   Design tokens first: every colour, radius and step used below is defined
   here once. Change a token, change the whole page.
   Palette values were sampled directly from the reference screenshot.
   ========================================================================= */

:root {
  /* Brand greens — the button/heading gradient runs lime -> emerald */
  --lime: #a5d63f;
  --lime-bright: #b6e152;
  --emerald: #35a957;
  --teal: #17a07a;
  --grad-brand: linear-gradient(90deg, var(--lime) 0%, var(--emerald) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(165, 214, 63, .14), rgba(53, 169, 87, .14));

  /* Dark surfaces */
  --navy-950: #00111d;   /* header, utility bar */
  --navy-900: #04101d;   /* hero base */
  --navy-850: #071827;   /* hero glow centre */
  --navy-800: #0d1a23;   /* stats band */
  --navy-750: #0f1f2c;   /* footer */
  --navy-card: #0f1b26;  /* floating dark cards */
  --navy-line: rgba(255, 255, 255, .09);

  /* Light surfaces */
  --white: #ffffff;
  --bg-light: #fbfbfd;
  --bg-band: #f6f7fc;
  --border: #e7eaf1;
  --border-soft: #eef0f6;

  /* Type */
  --ink: #0a1420;        /* headings on light */
  --ink-2: #1b2836;      /* card titles */
  --body: #6b7688;       /* body copy on light */
  --body-dark: #9aa6b6;  /* body copy on dark */
  --muted-dark: #7d8b9c;

  /* Geometry */
  --container: 1400px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .05);
  --shadow-lift: 0 10px 30px rgba(16, 24, 40, .10);
  --shadow-btn: 0 6px 18px rgba(53, 169, 87, .30);

  --header-h: 66px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-light);
  color: var(--body);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; font-weight: 700; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-brand {
  background: var(--grad-brand);
  color: #08210f;
  box-shadow: var(--shadow-btn);
}
.btn-brand:hover { box-shadow: 0 10px 26px rgba(53, 169, 87, .42); }

.btn-ghost-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .28);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .08); }

.btn-ghost-light {
  background: var(--white);
  color: var(--ink-2);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}
.btn-ghost-light:hover { border-color: #cfd6e2; }

.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* --- logo --- */
.logo { display: flex; align-items: center; gap: 9px; flex: none; }
/* full lockup image: mark + wordmark + tagline, sized by height (2048x768 source) */
.logo-img { display: block; height: 46px; width: auto; }
.logo-footer .logo-img { height: 54px; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-word { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1; }
.logo-word .io { color: var(--lime); }
.logo-tag {
  display: block;
  margin-top: 3px;
  font-size: 5.5px;
  letter-spacing: .16em;
  color: var(--muted-dark);
  font-weight: 600;
  text-transform: uppercase;
}

/* --- nav --- */
.nav { margin-inline: auto; display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #dfe5ee;
  border-radius: var(--r-sm);
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav-link:hover, .nav-item.open > .nav-link { color: var(--lime); background: rgba(255, 255, 255, .05); }
.nav-link .caret { transition: transform .18s var(--ease); }
.nav-item.open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 232px;
  padding: 8px;
  background: #0b1a27;
  border: 1px solid var(--navy-line);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 13.5px;
  color: #c8d2df;
  border-radius: var(--r-sm);
  transition: background-color .14s var(--ease), color .14s var(--ease);
}
.dropdown a:hover { background: rgba(165, 214, 63, .12); color: var(--lime); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-actions .btn { padding: 8px 18px; font-size: 13.5px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-sm);
  padding: 7px 9px;
  color: #fff;
  cursor: pointer;
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
  padding: 68px 0 0;
}
/* soft radial glow behind the visual, matching the screenshot's lit centre */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 460px at 72% 34%, rgba(23, 160, 122, .17), transparent 62%),
    radial-gradient(700px 420px at 28% 70%, rgba(165, 214, 63, .07), transparent 60%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .04);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e6ecf4;
}

.hero h1 {
  margin: 22px 0 0;
  font-size: 52px;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: #fff;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--lime-bright), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 20px 0 0;
  max-width: 500px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--body-dark);
}

.hero-points {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px 22px;
  margin: 28px 0 0;
}
.hero-points li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #cfd8e3;
}
.hero-points svg { color: var(--lime); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }

/* --- hero visual + the crisp cards layered over it --- */
.hero-visual { position: relative; }
.hero-visual > img {
  width: 100%;
  height: auto;
  /* The composite is a rectangular crop on a near-black ground. Feathering all
     four edges lets it dissolve into the hero backdrop instead of reading as a
     box — a radial mask leaves the edge midpoints hard, so intersect two
     linear masks instead. */
  --feather-x: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  --feather-y: linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: var(--feather-x), var(--feather-y);
          mask-image: var(--feather-x), var(--feather-y);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.hero-card {
  position: absolute;
  background: #0a1824;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--r-md);
  padding: 12px 14px;
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
}
.hero-card h4 {
  font-size: 11px;
  font-weight: 600;
  color: #dbe3ec;
  letter-spacing: .01em;
}
/* Percentages track the baked-in cards inside hero-visual.png so the crisp
   markup versions sit exactly on top of (and fully hide) them. */
.card-overview { left: 21.5%; top: 7.4%;  width: 38%;   min-height: 26.5%; }
.card-tracking { left: 58.5%; top: 12.2%; width: 38.5%; min-height: 29%; }
.card-health   { left: 48.5%; top: 43.4%; width: 48.5%; min-height: 24.5%; }

.stat-big { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 8px; }
.stat-big .num { font-size: 25px; font-weight: 700; color: #fff; line-height: 1.05; letter-spacing: -.02em; }
.stat-big .lbl { display: block; font-size: 9.5px; color: var(--muted-dark); margin-top: 2px; }
.stat-big .delta { font-size: 9.5px; color: var(--lime); font-weight: 600; }
.spark { width: 52%; height: 34px; }

.map { width: 100%; height: 74px; margin-top: 8px; border-radius: var(--r-sm); overflow: hidden; }
.map-note { font-size: 8.5px; color: var(--teal); text-align: right; margin-top: 3px; }

.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.health-cell {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--r-sm);
  padding: 7px 9px;
}
.health-cell .k { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--muted-dark); }
.health-cell .k svg { color: var(--lime); }
.health-cell .v { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; }
.health-cell .v b { font-size: 14px; color: #fff; font-weight: 700; }
.health-cell .v span { font-size: 8.5px; color: var(--muted-dark); }
.bar { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .12); margin-top: 5px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 2px; background: var(--grad-brand); }

/* --- protocol strip --- */
.proto {
  position: relative;
  z-index: 1;
  margin: 56px 0 0;
  padding-bottom: 22px;
}
.proto-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 13px 26px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r-pill);
}
.proto-inner li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #d6dde7;
}
.proto-inner svg { color: var(--lime); flex: none; }

/* =========================================================================
   Section shell
   ========================================================================= */
/* Vertical rhythm is deliberately tight — it matches the reference layout,
   where sections butt up close rather than sitting in generous whitespace. */
.section { padding: 40px 0; }
#platform   { padding: 38px 0 33px; }
#scale      { padding: 0 0 38px; }
#industries { padding: 0 0 58px; }
#oem        { padding: 0 0 42px; }

.section-head { text-align: center; max-width: 820px; margin: 0 auto 26px; }
.section-head h2 { font-size: 40px; letter-spacing: -.025em; }
.section-head p { margin: 8px 0 0; font-size: 16px; color: var(--body); }

/* =========================================================================
   Platform — 6 feature cards
   ========================================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 16px 24px;
  box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #d8e6c6;
}
.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--grad-brand-soft);
  color: var(--emerald);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 14px; color: var(--ink-2); letter-spacing: -.01em; }
.feature-card p { margin: 9px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--body); }

/* =========================================================================
   Scale — copy + architecture diagram
   ========================================================================= */
.scale-band {
  background: var(--bg-band);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 44px;
}
.scale-grid {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.scale-copy h2 { font-size: 36px; letter-spacing: -.02em; }
.scale-copy > p { margin: 18px 0 0; font-size: 14.5px; line-height: 1.75; }

.check-list { margin: 24px 0 0; display: grid; gap: 11px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.check-list svg { color: var(--emerald); flex: none; }
.scale-copy .btn { margin-top: 28px; }

/* --- diagram --- */
.diagram {
  display: grid;
  grid-template-columns: 1fr auto 1.12fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}
.dia-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
}
.dia-col > h4 { font-size: 12.5px; color: var(--ink-2); margin-bottom: 14px; }
.dia-col ul { display: grid; gap: 12px; }
.dia-col li { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--body); }
.dia-ic {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--grad-brand-soft);
  color: var(--emerald);
}
.dia-arrows { display: grid; align-content: center; gap: 46px; color: #c3cbd8; }

.dia-cloud {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cloud-ic { color: var(--teal); }
.dia-cloud .brand { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.dia-cloud .brand .logo-word { font-size: 17px; color: var(--ink); }
.dia-cloud .cap { font-size: 9.5px; color: var(--body); margin: 2px 0 14px; }
.dia-cloud ul { width: 100%; display: grid; gap: 8px; }
.dia-cloud li {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--ink-2);
  background: var(--bg-band);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
}
.dia-cloud li svg { color: var(--emerald); flex: none; }

/* =========================================================================
   Industries
   ========================================================================= */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.industry-card {
  position: relative;
  aspect-ratio: 200 / 178;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: block;
}
.industry-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.industry-card:hover img { transform: scale(1.07); }
.industry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 12, 20, .92) 0%, rgba(3, 12, 20, .55) 26%, transparent 58%);
}
.industry-card .tag {
  position: absolute;
  left: 12px;
  right: 10px;
  bottom: 11px;
  z-index: 1;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}
.section-foot { display: flex; justify-content: center; margin-top: 34px; }

/* =========================================================================
   OEM
   ========================================================================= */
.oem-grid {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}
.oem-copy h2 { font-size: 38px; letter-spacing: -.025em; }
.oem-copy > p { margin: 18px 0 0; font-size: 14.5px; line-height: 1.75; }
.oem-copy .btn { margin-top: 28px; }

.oem-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.oem-visual > img { width: 100%; height: auto; }
.oem-cards {
  position: absolute;
  top: 4%;
  right: 1.8%;
  width: 59%;
  height: 92%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6%;
}
.oem-card {
  background: rgba(12, 26, 34, .95);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--r-md);
  padding: 14px 15px;
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
}
.oem-card .ic { color: var(--lime); margin-bottom: 10px; }
.oem-card h4 { font-size: 13.5px; font-weight: 700; color: #fff; }
.oem-card p { margin: 7px 0 0; font-size: 11.5px; line-height: 1.55; color: #a7b3c1; }
.oem-card .rule { margin-top: auto; height: 2px; border-radius: 2px; background: var(--grad-brand); opacity: .85; }

/* =========================================================================
   Stats band
   ========================================================================= */
.stats {
  background: var(--navy-800);
  padding: 40px 0;
}
.stats ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.stats li { display: flex; align-items: center; gap: 14px; }
.stats .ic { color: var(--lime); flex: none; }
.stats .num { font-size: 46px; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -.03em; }
.stats .lbl { display: block; margin-top: 6px; font-size: 12.5px; color: var(--body-dark); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--navy-750); padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.15fr);
  gap: 32px;
}
.footer-about p {
  margin: 22px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--body-dark);
  max-width: 260px;
}
.socials { display: flex; gap: 9px; margin-top: 22px; }
.socials a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, .07);
  color: #c6d0dc;
  transition: background-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.socials a:hover { background: var(--emerald); color: #fff; transform: translateY(-2px); }

.footer-col h4 { font-size: 13.5px; color: #fff; margin-bottom: 18px; }
.footer-col li + li { margin-top: 11px; }
/* :not(.btn) so the Request Demo button keeps its own colour and size. */
.footer-col a:not(.btn) { font-size: 12.5px; color: var(--body-dark); transition: color .14s var(--ease); }
.footer-col a:not(.btn):hover { color: var(--lime); }

.footer-contact li { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--body-dark); }
.footer-contact li + li { margin-top: 12px; }
.footer-contact svg { color: var(--lime); flex: none; margin-top: 3px; }
.footer-contact .btn { margin-top: 20px; }

.footer-bar {
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: var(--navy-950);
}
.footer-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  font-size: 12px;
  color: var(--muted-dark);
}
.footer-bar nav { display: flex; gap: 26px; }
.footer-bar a:hover { color: var(--lime); }

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .nav, .header-actions .btn-ghost-dark { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions { order: 3; }

  .nav.is-open {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #0b1a27;
    border-bottom: 1px solid var(--navy-line);
    padding: 12px 24px 20px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open .nav-item { width: 100%; }
  .nav.is-open .nav-link { width: 100%; justify-content: space-between; padding: 12px 4px; }
  .nav.is-open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    background: transparent;
    border: 0;
    border-left: 2px solid rgba(165, 214, 63, .35);
    border-radius: 0;
    margin: 2px 0 8px 6px;
    min-width: 0;
  }
  .nav.is-open .nav-item.open .dropdown { display: block; }

  .hero-grid, .scale-grid, .oem-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 44px; }
  .stats ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
  .scale-band { padding: 34px; }
  .diagram { grid-template-columns: 1fr; }
  .dia-arrows { display: none; }
}

@media (max-width: 720px) {
  .logo-img { height: 38px; }
  .logo-footer .logo-img { height: 44px; }
  .section { padding: 52px 0; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 28px; }
  .scale-copy h2, .oem-copy h2 { font-size: 26px; }
  .hero-points { flex-wrap: wrap; gap: 14px 22px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .num { font-size: 30px; }
  .proto-inner { border-radius: var(--r-lg); justify-content: flex-start; gap: 12px 18px; }
  .footer-bar .container { flex-direction: column; align-items: flex-start; }
  /* the layered hero/OEM cards stop being legible at this size */
  .hero-card, .oem-cards { position: static; width: auto; height: auto; }
  .hero-visual { display: grid; gap: 12px; }
  .oem-cards { margin-top: 12px; }
  .oem-visual { overflow: visible; box-shadow: none; }
  .oem-visual > img { border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
  .scale-band { padding: 24px 18px; }
}

@media (max-width: 460px) {
  .feature-grid, .industry-grid, .footer-grid, .stats ul, .oem-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-points { gap: 14px 20px; }
}

/* =========================================================================
   Contact modal
   Opened by every Contact Us / Talk to Sales / Request Demo CTA. Dark panel
   so it sits on the same surface family as the header and footer.
   ========================================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 18, .72);
  backdrop-filter: blur(3px);
  animation: modal-fade .18s var(--ease);
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px;
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  animation: modal-rise .22s var(--ease);
}

@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
}

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-panel { animation: none; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--body-dark);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.modal-close:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.modal-title {
  margin: 0;
  padding-right: 40px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.modal-sub {
  margin: 8px 0 22px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--body-dark);
}

/* --- form --- */
/* display:grid would otherwise beat the UA's [hidden] rule and keep the form
   on screen behind the success panel. */
.contact-form { display: grid; gap: 15px; }
.contact-form[hidden] { display: none; }

.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }

.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #d6dde6;
}
.field .req { color: var(--lime); }
.field .opt { font-weight: 500; color: var(--muted-dark); }

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--navy-line);
  border-radius: var(--r-sm);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #63707f; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(165, 214, 63, .18);
}

/* Only flags fields the user has actually left invalid, never on first paint. */
.field.is-invalid input,
.field.is-invalid textarea { border-color: #e0685f; }
.field.is-invalid input:focus,
.field.is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(224, 104, 95, .18); }

.field-error, .form-error {
  margin: 0;
  font-size: 12px;
  color: #f0938b;
}
.form-error {
  padding: 10px 12px;
  background: rgba(224, 104, 95, .1);
  border: 1px solid rgba(224, 104, 95, .3);
  border-radius: var(--r-sm);
  line-height: 1.55;
}
.field-error[hidden], .form-error[hidden] { display: none; }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.modal-submit {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}
.modal-submit[disabled] { opacity: .65; cursor: progress; }

.modal-privacy {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-dark);
  text-align: center;
}

/* --- success state --- */
.modal-success { display: grid; justify-items: center; gap: 10px; padding: 18px 0 6px; text-align: center; }
.modal-success[hidden] { display: none; }
.modal-success .success-ic { color: var(--lime); }
.modal-success h3 { margin: 4px 0 0; font-size: 20px; font-weight: 700; color: #fff; }
.modal-success p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.65; color: var(--body-dark); }

/* Prevents the page behind the dialog from scrolling on iOS and desktop alike. */
body.modal-open { overflow: hidden; }

@media (max-width: 560px) {
  .modal { padding: 14px; }
  .modal-panel { padding: 26px 20px; border-radius: var(--r-lg); }
  .modal-title { font-size: 22px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}
