/* =========================================================
   Control WMS — Marketing Site Design System
   Precision/industrial dark theme. Big Shoulders Display for
   headlines (industrial signage heritage — literally named for
   Chicago, "city of big shoulders" — grounded in the warehouse/
   logistics subject matter, not a generic tech typeface pick),
   Inter for body/UI text.
   ========================================================= */

:root {
  /* Color */
  --bg: #0b0e14;
  --surface: #131720;
  --surface-2: #1b2029;
  --surface-3: #232936;
  --border: #262b36;
  --border-bright: #333a49;
  --indigo: #4f46e5;
  --indigo-bright: #6366f1;
  --indigo-dim: #3730a3;
  --signal: #17d9a3;
  --signal-dim: #0f8f6c;
  --amber: #f5a524;
  --text: #e7e9ee;
  --text-dim: #8b93a7;
  --text-faint: #565d6e;

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

a { color: inherit; text-decoration: none; }

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

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.002em;
  margin: 0;
  color: #fff;
}

h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; }

p { margin: 0; max-width: 62ch; }
p.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-dim); max-width: 54ch; }

.eyebrow-none { display: none; } /* explicit: no ALL-CAPS eyebrow labels used on this site */

.mono-tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--signal);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--indigo);
  color: #fff;
}
.btn-primary:hover { background: var(--indigo-bright); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }

.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}
.logo .mark { width: 30px; height: 30px; }

nav.primary {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.primary a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
nav.primary a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  position: relative;
}
.lang-switch select {
  appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 8px 30px 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.lang-switch::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--text-dim);
  border-bottom: 1.5px solid var(--text-dim);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(50px, 9vw, 108px) 0 clamp(40px, 6vw, 70px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--signal); }
.hero .lede { margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-note { font-size: 13.5px; color: var(--text-faint); }

/* live activity feed — signature moment, shows real system events */
.feed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feed-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.feed-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(23,217,163,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(23,217,163,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(23,217,163,0); }
  100% { box-shadow: 0 0 0 0 rgba(23,217,163,0); }
}
.feed-body {
  padding: 6px 0;
  height: 268px;
  overflow: hidden;
  position: relative;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
}
.feed-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--surface-2);
  color: var(--text-dim);
}
.feed-row .k { color: var(--text); }
.feed-row .status { flex-shrink: 0; font-weight: 600; }
.feed-row .status.ok { color: var(--signal); }
.feed-row .status.warn { color: var(--amber); }

/* ---------- Sections ---------- */

section { padding: clamp(56px, 8vw, 110px) 0; }
section.tight { padding: clamp(36px, 5vw, 60px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { margin-bottom: 16px; }

.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* Stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 26px 22px;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat .label { font-size: 13.5px; color: var(--text-dim); }

/* Feature rows (alternating, not identical cards) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 6vw, 64px) 0;
}
.feature-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-copy h3 { margin-bottom: 14px; }
.feature-copy p { margin-bottom: 18px; color: var(--text-dim); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tags span {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
}

.feature-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grid list (channels, capabilities) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.grid-3 .cell {
  background: var(--surface);
  padding: 28px 26px;
}
.grid-3 .cell h3 { font-size: 19px; margin-bottom: 10px; }
.grid-3 .cell p { color: var(--text-dim); font-size: 14.5px; }

/* How it works — genuinely sequential, numbered */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step { position: relative; padding-top: 8px; }
.step .n {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  color: var(--surface-3);
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-dim); }

/* Deployment comparison */
.deploy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.deploy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
}
.deploy-card.highlight { border-color: var(--indigo); }
.deploy-card h3 { margin-bottom: 6px; }
.deploy-card .tag { font-size: 13.5px; color: var(--signal); margin-bottom: 18px; display: block; }
.deploy-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.deploy-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-2);
  font-size: 14.5px;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
}
.deploy-card li::before { content: "—"; color: var(--text-faint); flex-shrink: 0; }

/* Industries */
.industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.industry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: border-color 0.15s ease;
}
.industry:hover { border-color: var(--border-bright); }
.industry h3 { font-size: 16.5px; margin-bottom: 8px; }
.industry p { font-size: 13.5px; color: var(--text-dim); }

/* Final CTA */
.cta-band {
  background: linear-gradient(135deg, var(--indigo-dim), var(--surface) 60%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: clamp(40px, 6vw, 70px);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--text-dim); }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Demo form */
.demo-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 40px);
  max-width: 640px;
}
.demo-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.demo-form label { display: block; font-size: 13.5px; color: var(--text-dim); margin-bottom: 6px; }
.demo-form input, .demo-form select, .demo-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
}
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus {
  border-color: var(--signal);
  outline: none;
}
.demo-form .full { margin-bottom: 16px; }
.demo-form .hint { font-size: 12.5px; color: var(--text-faint); margin-top: 14px; }
#form-status { margin-top: 14px; font-size: 14px; }
#form-status.ok { color: var(--signal); }
#form-status.err { color: #f87171; }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; }
.footer-col h3 { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-langs { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-langs a { color: var(--text-faint); }
.footer-langs a.current { color: var(--signal); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  nav.primary { display: none; }
  .header-actions .lang-switch,
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .deploy-grid { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .demo-form .row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  header.site .bar { padding: 14px var(--gutter); }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  padding: 20px var(--gutter);
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav .bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 26px; margin-bottom: 40px; }
.mobile-nav nav a { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: #fff; }
.mobile-nav .actions { display: flex; flex-direction: column; gap: 14px; }
