/* ===================================================================
   FSM Global — Bento Modular Design System
   White surfaces · soft pastel tints · rounded tiles · glassy depth
   =================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; border-radius: 8px; }

/* ---------- Design Tokens ---------- */
:root {
  /* Surfaces */
  --bg:           #ffffff;
  --surface:      #ffffff;
  --surface-2:    #fafafb;
  --surface-3:    #f5f5f7;

  /* Ink */
  --ink:          #0a0e1a;
  --ink-soft:     #4d5468;
  --ink-mute:     #8b91a3;

  /* Brand (from logo) */
  --brand-navy:   #252B56;
  --brand-blue:   #19499A;
  --brand-blue-2: #4a78cc;
  --brand-red:    #E52629;
  --brand-red-2:  #ff5558;

  /* Pastel tints — section backgrounds */
  --tint-blue:     #EEF4FE;
  --tint-blue-2:   #DCE8FB;
  --tint-mint:     #E8F8F0;
  --tint-mint-2:   #D4F0E0;
  --tint-peach:    #FFF1E8;
  --tint-peach-2:  #FFE0CC;
  --tint-lavender: #F1EDFC;
  --tint-lavender-2:#E4DAF7;
  --tint-rose:     #FFEEF0;
  --tint-cream:    #FFF7E8;

  --border:       rgba(10, 14, 26, 0.06);
  --border-2:     rgba(10, 14, 26, 0.1);

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', var(--font-sans);
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-xs:   clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --fs-sm:   clamp(0.875rem, 0.84rem + 0.18vw, 0.94rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lg:   clamp(1.125rem, 1.06rem + 0.32vw, 1.25rem);
  --fs-xl:   clamp(1.25rem, 1.16rem + 0.45vw, 1.5rem);
  --fs-2xl:  clamp(1.5rem, 1.34rem + 0.8vw, 2rem);
  --fs-3xl:  clamp(1.875rem, 1.55rem + 1.6vw, 2.75rem);
  --fs-4xl:  clamp(2.25rem, 1.7rem + 2.6vw, 4rem);
  --fs-5xl:  clamp(2.75rem, 1.85rem + 4.4vw, 5.5rem);
  --fs-6xl:  clamp(3rem, 1.85rem + 5.6vw, 6.5rem);

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
  --sp-12: 3rem; --sp-16: 4rem; --sp-20: 5rem; --sp-24: 6rem; --sp-32: 8rem;

  /* Layout */
  --container: 1320px;
  --container-sm: 1080px;

  /* Radii — soft & rounded */
  --r-sm:    8px;
  --r-md:    14px;
  --r-lg:    20px;
  --r-xl:    24px;
  --r-2xl:   28px;
  --r-3xl:   36px;
  --r-pill:  999px;

  /* Shadows — soft, layered */
  --shadow-xs:  0 1px 2px rgba(10, 14, 26, 0.04);
  --shadow-sm:  0 1px 3px rgba(10, 14, 26, 0.06), 0 1px 2px rgba(10, 14, 26, 0.04);
  --shadow-md:  0 4px 12px rgba(10, 14, 26, 0.06), 0 2px 4px rgba(10, 14, 26, 0.04);
  --shadow-lg:  0 12px 32px rgba(10, 14, 26, 0.08), 0 4px 8px rgba(10, 14, 26, 0.04);
  --shadow-xl:  0 24px 60px rgba(10, 14, 26, 0.12), 0 8px 16px rgba(10, 14, 26, 0.06);
  --shadow-lift: 0 32px 80px rgba(25, 73, 154, 0.15), 0 8px 20px rgba(10, 14, 26, 0.08);

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 280ms var(--ease-out);
  --t-slow: 500ms var(--ease-out);

  /* Z */
  --z-nav: 100;
  --z-modal: 200;
}

/* ---------- Body & Type ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--ink);
}
h1 { font-size: var(--fs-6xl); font-weight: 800; letter-spacing: -0.055em; }
h2 { font-size: var(--fs-4xl); font-weight: 700; letter-spacing: -0.045em; }
h3 { font-size: var(--fs-2xl); letter-spacing: -0.03em; }
h4 { font-size: var(--fs-xl); letter-spacing: -0.025em; }
p { color: var(--ink-soft); }

.lede {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.5;
}

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.gradient-text {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Pill chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--border);
}
.chip.brand { background: var(--tint-blue); color: var(--brand-blue); border-color: rgba(25, 73, 154, 0.15); }
.chip.red { background: var(--tint-rose); color: var(--brand-red); border-color: rgba(229, 38, 41, 0.15); }
.chip.mint { background: var(--tint-mint); color: #047857; border-color: rgba(16, 185, 129, 0.15); }
.chip.peach { background: var(--tint-peach); color: #c2410c; border-color: rgba(234, 88, 12, 0.15); }
.chip.lavender { background: var(--tint-lavender); color: #6d28d9; border-color: rgba(124, 58, 237, 0.15); }
.chip.cream { background: var(--tint-cream); color: #a16207; border-color: rgba(217, 119, 6, 0.15); }
.chip.dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container-sm { max-width: var(--container-sm); }

.section { padding: var(--sp-16) 0; position: relative; }
@media (min-width: 768px) { .section { padding: var(--sp-20) 0; } }

.section-head {
  max-width: 720px;
  margin: 0 auto var(--sp-12);
  text-align: center;
}
.section-head .chip { margin-bottom: var(--sp-5); }
.section-head .lede { margin: var(--sp-4) auto 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: background var(--t-base), box-shadow var(--t-base);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(10,14,26,0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--sp-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: opacity var(--t-fast);
}
.brand:hover { opacity: 0.8; }
.brand img { height: 38px; width: auto; display: block; }
@media (min-width: 768px) { .brand img { height: 44px; } }

.nav-list {
  display: none;
  align-items: center;
  gap: 2px;
}
@media (min-width: 1024px) { .nav-list { display: flex; } }

.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-pill);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-link:hover { background: var(--surface-2); }
.nav-link[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-link svg { opacity: 0.55; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  color: var(--ink);
  border-radius: var(--r-md);
  font-weight: 500;
  transition: background var(--t-fast);
}
.dropdown a:hover { background: var(--tint-blue); }
.dropdown small {
  display: block;
  color: var(--ink-mute);
  font-size: 0.72rem;
  margin-top: 2px;
  font-weight: 400;
}

.nav-cta {
  display: none;
}
@media (min-width: 1024px) {
  .nav-cta { display: inline-flex; gap: var(--sp-2); align-items: center; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: -0.01em;
  border-radius: var(--r-pill);
  transition: transform var(--t-fast), background var(--t-base), box-shadow var(--t-base), color var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10,14,26,0.08), 0 8px 24px rgba(10,14,26,0.15);
}
.btn-primary:hover {
  background: var(--brand-blue);
  box-shadow: 0 1px 2px rgba(10,14,26,0.08), 0 12px 32px rgba(25, 73, 154, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-outline {
  background: rgba(255,255,255,0.6);
  color: var(--ink);
  border-color: var(--border-2);
  backdrop-filter: blur(12px);
}
.btn-outline:hover { background: #fff; border-color: var(--ink); }

.btn-red {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 1px 2px rgba(229,38,41,0.2), 0 12px 28px rgba(229,38,41,0.28);
}
.btn-red:hover {
  background: #c41f22;
  box-shadow: 0 1px 2px rgba(229,38,41,0.2), 0 16px 36px rgba(229,38,41,0.4);
}

.btn-lg { padding: 16px 28px; font-size: var(--fs-base); }
.btn .arrow { display: inline-block; transition: transform var(--t-base); }
.btn:hover .arrow { transform: translateX(4px); }

/* Mobile menu toggle */
.menu-toggle {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle .bar {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
  transition: transform var(--t-base);
}
.menu-toggle .bar::before, .menu-toggle .bar::after {
  content: '';
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-base), top var(--t-base);
}
.menu-toggle .bar::before { top: -6px; }
.menu-toggle .bar::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--bg);
  z-index: calc(var(--z-nav) - 1);
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-5) var(--sp-12);
  transform: translateX(100%);
  transition: transform var(--t-slow);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav details {
  border-bottom: 1px solid var(--border);
}
.mobile-nav summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  font-weight: 600;
  font-size: var(--fs-lg);
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after {
  content: '+';
  color: var(--ink-mute);
  font-weight: 300;
  font-size: 1.6rem;
  transition: transform var(--t-base);
  line-height: 1;
}
.mobile-nav details[open] summary::after { transform: rotate(45deg); color: var(--brand-blue); }
.mobile-nav .submenu a {
  display: block;
  padding: 10px 4px;
  color: var(--ink-soft);
  font-size: var(--fs-base);
  font-weight: 500;
}
.mobile-nav .submenu a:hover { color: var(--brand-blue); }
.mobile-nav .mobile-cta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}
.mobile-nav .mobile-cta .btn { width: 100%; justify-content: center; }

/* ---------- BENTO core ---------- */
.bento {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(6, 1fr);
}
@media (min-width: 900px) {
  .bento { gap: var(--sp-5); grid-template-columns: repeat(12, 1fr); }
}
.tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-2);
}
.tile.no-hover:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }
.tile.compact { padding: var(--sp-6); min-height: 0; }

/* Span helpers — mobile default to full row, scale up */
.tile { grid-column: span 6; }
@media (min-width: 900px) {
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-9 { grid-column: span 9; }
  .span-12 { grid-column: span 12; }
  .row-2 { grid-row: span 2; }
}
@media (max-width: 899px) {
  .tile.span-mobile-3 { grid-column: span 3; }
  .tile.span-mobile-6 { grid-column: span 6; }
}

/* Tile tints */
.tile.tint-blue     { background: linear-gradient(160deg, var(--tint-blue) 0%, var(--surface) 100%); }
.tile.tint-mint     { background: linear-gradient(160deg, var(--tint-mint) 0%, var(--surface) 100%); }
.tile.tint-peach    { background: linear-gradient(160deg, var(--tint-peach) 0%, var(--surface) 100%); }
.tile.tint-lavender { background: linear-gradient(160deg, var(--tint-lavender) 0%, var(--surface) 100%); }
.tile.tint-rose     { background: linear-gradient(160deg, var(--tint-rose) 0%, var(--surface) 100%); }
.tile.tint-cream    { background: linear-gradient(160deg, var(--tint-cream) 0%, var(--surface) 100%); }

.tile.ink {
  background: var(--ink);
  color: #fff;
}
.tile.ink p { color: rgba(255,255,255,0.7); }
.tile.ink h1, .tile.ink h2, .tile.ink h3, .tile.ink h4 { color: #fff; }

.tile.red {
  background: linear-gradient(140deg, var(--brand-red) 0%, #ad1c1e 100%);
  color: #fff;
}
.tile.red p { color: rgba(255,255,255,0.85); }
.tile.red h1, .tile.red h2, .tile.red h3 { color: #fff; }

.tile.navy {
  background: linear-gradient(140deg, var(--brand-blue) 0%, var(--brand-navy) 100%);
  color: #fff;
}
.tile.navy p { color: rgba(255,255,255,0.85); }
.tile.navy h1, .tile.navy h2, .tile.navy h3 { color: #fff; }

/* Tile icon — pill shape */
.tile-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  display: grid; place-items: center;
  color: var(--brand-blue);
  margin-bottom: var(--sp-5);
  flex-shrink: 0;
}
.tile.tint-blue .tile-icon     { background: #fff; color: var(--brand-blue); }
.tile.tint-mint .tile-icon     { background: #fff; color: #047857; }
.tile.tint-peach .tile-icon    { background: #fff; color: #c2410c; }
.tile.tint-lavender .tile-icon { background: #fff; color: #6d28d9; }
.tile.tint-rose .tile-icon     { background: #fff; color: var(--brand-red); }
.tile.tint-cream .tile-icon    { background: #fff; color: #a16207; }
.tile.ink .tile-icon { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.15); }
.tile.red .tile-icon { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.2); }
.tile.navy .tile-icon { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.2); }

.tile h3 { margin-bottom: var(--sp-3); font-size: var(--fs-xl); }
.tile p { font-size: var(--fs-sm); flex: 1; line-height: 1.55; }

.tile .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-5);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: gap var(--t-base);
}
.tile .link svg { transition: transform var(--t-base); }
.tile .link:hover { gap: 10px; }
.tile .link:hover svg { transform: translateX(2px); }
.tile.ink .link, .tile.red .link, .tile.navy .link { color: #fff; }

/* ---------- HERO BENTO ---------- */
.hero {
  padding: var(--sp-10) 0 var(--sp-16);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 120%; height: 80%;
  background: radial-gradient(ellipse at 50% 0%, rgba(74, 120, 204, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
@media (min-width: 768px) { .hero { padding: var(--sp-16) 0 var(--sp-20); } }

.hero-bento { gap: var(--sp-4); }
@media (min-width: 900px) { .hero-bento { gap: var(--sp-5); } }

.hero-main {
  grid-column: span 6;
  padding: var(--sp-8);
}
@media (min-width: 900px) {
  .hero-main { grid-column: span 8; grid-row: span 2; padding: var(--sp-12); min-height: 480px; justify-content: center; }
}

.hero-main h1 {
  font-size: var(--fs-6xl);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin-bottom: var(--sp-6);
}
.hero-main h1 .accent {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-main .lede {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-8);
  max-width: 52ch;
}
.hero-main .actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Stat tiles */
.tile-stat .num {
  font-size: clamp(2.5rem, 2rem + 2.4vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
  color: var(--ink);
}
.tile-stat .num.gradient {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tile-stat .num .plus { font-size: 0.55em; vertical-align: 0.15em; opacity: 0.6; }
.tile-stat .lbl {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  font-weight: 500;
}
.tile-stat.compact { min-height: 0; padding: var(--sp-6); }

/* Hero dashboard tile */
.tile-dashboard { padding: var(--sp-6); }
.dash-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--sp-4);
}
.dash-head strong { font-size: var(--fs-sm); font-weight: 600; }
.dash-head .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  background: var(--tint-mint);
  color: #047857;
}
.dash-head .pill::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.dash-stat {
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--r-md);
}
.dash-stat .num {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.dash-stat .lbl {
  font-size: 0.66rem;
  color: var(--ink-mute);
  font-weight: 500;
}
.dash-chart {
  height: 90px;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.dash-chart svg { width: 100%; height: 100%; }

/* Hero AI tile */
.tile-ai {
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.tile-ai .ai-msg {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.tile-ai .ai-prompt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}

/* Hero IoT tile */
.iot-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.85);
  border-radius: var(--r-md);
  margin-bottom: 6px;
  font-size: 0.82rem;
}
.iot-row .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.iot-row .dot.g { background: #10b981; }
.iot-row .dot.a { background: #f59e0b; }
.iot-row .dot.r { background: var(--brand-red); }
.iot-row .name { flex: 1; font-weight: 600; color: var(--ink); }
.iot-row .val { font-size: 0.72rem; color: var(--ink-mute); }

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: var(--sp-10) 0;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip p {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--sp-6);
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 640px) { .logo-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logo-row { grid-template-columns: repeat(6, 1fr); gap: var(--sp-10); } }
.logo-row .logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-mute);
  text-align: center;
  letter-spacing: -0.015em;
  transition: color var(--t-fast);
}
.logo-row .logo:hover { color: var(--ink); }

/* ---------- Feature mini grid (for 13 capabilities) ---------- */
.feature-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.feature-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-2);
}
.feature-tile .ico {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--tint-blue);
  color: var(--brand-blue);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.feature-tile h4 { font-size: var(--fs-base); margin-bottom: 3px; font-weight: 600; letter-spacing: -0.015em; }
.feature-tile p { font-size: 0.85rem; line-height: 1.45; }

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
}
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: var(--sp-16); } }
.split.reverse > :first-child { order: 2; }
@media (max-width: 1023px) { .split.reverse > :first-child { order: 0; } }

.feature-list { margin-top: var(--sp-6); }
.feature-list li {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--tint-blue);
  color: var(--brand-blue);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
}
.feature-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.feature-list p { font-size: var(--fs-sm); margin: 0; }

/* ---------- Metric bento ---------- */
.metrics-bento {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .metrics-bento { grid-template-columns: repeat(4, 1fr); } }
.metric-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8) var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.metric-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.metric-tile .num {
  font-size: clamp(2.5rem, 2rem + 2.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric-tile .num .plus { font-size: 0.6em; vertical-align: 0.2em; }
.metric-tile .lbl {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Industry tiles ---------- */
.industries-bento {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .industries-bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .industries-bento { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }

.industry-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}
.industry-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.industry-tile.tint-1 { background: linear-gradient(160deg, var(--tint-blue) 0%, var(--surface) 100%); }
.industry-tile.tint-2 { background: linear-gradient(160deg, var(--tint-rose) 0%, var(--surface) 100%); }
.industry-tile.tint-3 { background: linear-gradient(160deg, var(--tint-mint) 0%, var(--surface) 100%); }
.industry-tile.tint-4 { background: linear-gradient(160deg, var(--tint-peach) 0%, var(--surface) 100%); }
.industry-tile.tint-5 { background: linear-gradient(160deg, var(--tint-lavender) 0%, var(--surface) 100%); }
.industry-tile.tint-6 { background: linear-gradient(160deg, var(--tint-cream) 0%, var(--surface) 100%); }
.industry-tile.tint-7 { background: linear-gradient(160deg, var(--tint-blue) 0%, var(--tint-rose) 100%); }

.industry-tile .ico {
  width: 56px; height: 56px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.5);
  display: grid; place-items: center;
  color: var(--ink);
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-xs);
}
.industry-tile h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.industry-tile p { font-size: var(--fs-sm); }
.industry-tile ul {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.industry-tile ul li {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial .stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sp-4);
  color: #f59e0b;
}
.testimonial blockquote {
  font-size: var(--fs-lg);
  color: var(--ink);
  line-height: 1.5;
  flex: 1;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.testimonial .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.testimonial .author strong { display: block; font-size: var(--fs-sm); color: var(--ink); font-weight: 600; }
.testimonial .author span { font-size: 0.78rem; color: var(--ink-mute); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
  color: #fff;
  border-radius: var(--r-3xl);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: var(--sp-12) 0;
  box-shadow: var(--shadow-xl);
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(229, 38, 41, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -50%; left: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(74, 120, 204, 0.35) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-4); }
.cta-band p {
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--sp-8);
  font-size: var(--fs-lg);
  max-width: 600px;
  margin-inline: auto;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}
.cta-band .btn-outline { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.25); }
.cta-band .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (min-width: 768px) { .cta-band { padding: var(--sp-20) var(--sp-12); } }

/* ---------- Page header ---------- */
.page-header {
  padding: var(--sp-16) 0 var(--sp-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(74, 120, 204, 0.1), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.page-header h1 {
  font-size: var(--fs-5xl);
  margin-bottom: var(--sp-5);
  max-width: 20ch;
  margin-inline: auto;
}
.page-header .lede {
  margin: 0 auto;
  font-size: var(--fs-lg);
  max-width: 56ch;
}
.breadcrumbs {
  font-size: var(--fs-sm);
  color: var(--ink-mute);
  margin-bottom: var(--sp-5);
}
.breadcrumbs a { color: var(--brand-blue); font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.6; }

/* ---------- Demo form ---------- */
.demo-section {
  position: relative;
  padding: var(--sp-16) 0;
}
.demo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--tint-blue) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: start;
}
@media (min-width: 900px) { .demo-grid { grid-template-columns: 1fr 1.1fr; gap: var(--sp-12); } }
.demo-info ul { margin-top: var(--sp-6); }
.demo-info li {
  display: flex; gap: 12px;
  padding: 10px 0;
  color: var(--ink);
  font-size: var(--fs-base);
  align-items: center;
}
.demo-info li::before {
  content: '✓';
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--tint-mint);
  color: #047857;
  display: grid; place-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  font-weight: 700;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-3xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-lg);
}
.form-card h3 { margin-bottom: var(--sp-2); }
.form-card .sub { font-size: var(--fs-sm); margin-bottom: var(--sp-6); color: var(--ink-mute); }
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-2);
  background: var(--surface);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(25, 73, 154, 0.12);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row {
  display: grid; gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-card .legal {
  font-size: 0.72rem;
  color: var(--ink-mute);
  margin-top: var(--sp-3);
}
.form-card .btn-primary { width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-16) 0 var(--sp-6);
  border-radius: var(--r-3xl) var(--r-3xl) 0 0;
  margin-top: var(--sp-12);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(74, 120, 204, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.site-footer > .container { position: relative; }

.region-bar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}
@media (min-width: 640px) { .region-bar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .region-bar { grid-template-columns: repeat(6, 1fr); } }
.region .name {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.region .phone {
  display: block;
  font-size: var(--fs-sm);
  color: #fff;
  font-weight: 600;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); gap: var(--sp-8); } }

.footer-brand p {
  color: rgba(255,255,255,0.6);
  max-width: 320px;
  font-size: var(--fs-sm);
  margin-top: var(--sp-4);
}
.footer-brand .social { display: flex; gap: 8px; margin-top: var(--sp-6); }
.footer-brand .social a {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  display: grid; place-items: center;
  transition: all var(--t-fast);
}
.footer-brand .social a:hover { background: var(--brand-red); border-color: var(--brand-red); color: #fff; transform: translateY(-2px); }

.footer-col h4 {
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.65);
  font-size: var(--fs-sm);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}
.footer-bottom .links { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--r-md) 0;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--sp-4); } .mt-8 { margin-top: var(--sp-8); }
.mb-0 { margin-bottom: 0; }

body.nav-open { overflow: hidden; }
