/* Integovox marketing site -- shared design system.
   Dark theme tokens match the fleet app: #0d1117 background, #EF9F27 amber accent.
   Text/muted/border/card values are the standard companions to a #0d1117 background
   (the same dark palette GitHub's own dark theme uses), chosen to sit naturally alongside it. */

:root {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #EF9F27;
  --accent-dark: #d6871a;
  --radius: 10px;
  --max-width: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 16px; color: var(--muted); }

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

/* ---------- Icons (sprite via <use>) ---------- */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-lg { width: 32px; height: 32px; }

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Real logo image in the navbar (logo-long.svg) -- height-constrained, width auto so the vector
   scales down cleanly instead of the browser laying out at its native 6000x2000 intrinsic size. */
.logo-img { height: 36px; width: auto; display: block; }
.logo-dot { color: var(--accent); }
.logo-tagline {
  font-weight: 500; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); margin-left: 4px; padding-left: 8px; border-left: 1px solid var(--border);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #1a1200; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.hero h1 { max-width: 780px; margin: 0 auto 20px; }
.hero .lede {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  color: var(--accent); font-weight: 600; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 10px;
}

/* ---------- Grid / Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card .icon-wrap {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239, 159, 39, 0.12);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.list-check .icon { color: var(--accent); margin-top: 2px; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: center;
  padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-strip .stat { text-align: center; }
.stat-strip .stat strong { display: block; font-size: 1.6rem; color: var(--accent); }
.stat-strip .stat span { color: var(--muted); font-size: 0.85rem; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 64px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 520px; margin: 0 auto 28px; }

/* ---------- Architecture diagram (pure CSS/HTML, no image) ---------- */
.arch-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.arch-node {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.arch-node strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 0.9rem; }
.arch-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-elevated);
}

/* ---------- Quote / story block ---------- */
.story-block {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-size: 1.05rem;
  color: var(--text);
}

/* ---------- Form ---------- */
.form-field { margin-bottom: 18px; text-align: left; }
.form-field label {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between;
  margin-bottom: 32px;
}
.footer-tagline { max-width: 320px; color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 12px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--text); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted);
}

/* ---------- Footer isolation promise ---------- */
.footer-promise {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 0.85rem;
  padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--border);
}
.footer-promise .icon { color: var(--accent); width: 18px; height: 18px; }

/* ---------- Module / vertical cards ---------- */
.module-card { position: relative; }
/* Unscoped (not ".module-card .badge") on purpose -- product.html's module table uses these same
   badges outside any .module-card, and a module-card-only rule left them completely unstyled
   there (no color, no pill shape) since that ancestor never matched. */
.badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
  margin-bottom: 14px;
}
.badge.live { color: #3fb950; border-color: rgba(63, 185, 80, 0.4); background: rgba(63, 185, 80, 0.1); }
.badge.next { color: var(--accent); border-color: rgba(239, 159, 39, 0.4); background: rgba(239, 159, 39, 0.1); }
.badge.in-dev { color: #388bfd; border-color: rgba(56, 139, 253, 0.4); background: rgba(56, 139, 253, 0.1); }
.module-card .competes-with {
  font-size: 0.8rem; color: var(--muted); margin-top: 12px; margin-bottom: 0;
}
.module-card .competes-with strong { color: var(--muted); font-weight: 600; }

/* Amber-highlighted centre piece -- 7 tiles at 3 columns lays out 3/3/1; explicitly placing the
   Hub in the middle column of that trailing row is what actually centres it, rather than letting
   it fall wherever grid auto-placement puts a 7th item (column 1). */
#modules .grid { grid-template-columns: repeat(3, 1fr); }
#modules .hub-card { grid-column: 2; }
@media (max-width: 720px) {
  #modules .grid { grid-template-columns: 1fr; }
  #modules .hub-card { grid-column: 1; }
}

.card.hub-card {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(239, 159, 39, 0.08), var(--bg-elevated) 40%);
}
.card.hub-card .icon-wrap { background: var(--accent); color: #1a1200; }

/* ---------- How it works (numbered steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.step { text-align: center; }
.step-number {
  width: 40px; height: 40px; margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.92rem; margin-bottom: 0; }
.step-connector {
  display: none;
}
@media (min-width: 721px) {
  .steps { position: relative; }
}

/* ---------- Device surface mockups (pure CSS, no screenshots) ---------- */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.device-card { text-align: center; }
.device-frame {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 6px;
  height: 150px;
  justify-content: flex-start;
}
.device-frame .bar { background: var(--border); border-radius: 3px; height: 8px; }
.device-frame .bar.accent { background: rgba(239, 159, 39, 0.5); }
/* Desktop -- dense: many thin rows, a manager scanning everything at once */
.device-frame.desktop { flex-direction: row; gap: 8px; }
.device-frame.desktop .col { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.device-frame.desktop .bar { height: 6px; }
/* Tablet -- medium-density touch cards */
.device-frame.tablet .bar { height: 20px; border-radius: 6px; }
/* Mobile -- one focused block, nothing else competing for attention */
.device-frame.mobile { justify-content: center; align-items: center; }
.device-frame.mobile .bar { width: 70%; height: 34px; border-radius: 8px; }
/* Kiosk -- one huge always-on stat, read-only, wide-format */
.device-frame.kiosk { justify-content: center; align-items: center; height: 110px; }
.device-frame.kiosk .bar { width: 85%; height: 46px; border-radius: 6px; }
.device-card h3 { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.05rem; }
.device-card .icon { color: var(--accent); }
.device-card p { font-size: 0.88rem; }

/* ---------- AI callout ---------- */
.ai-callout {
  display: flex; gap: 28px; align-items: flex-start;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 32px;
}
.ai-callout .icon-wrap {
  width: 56px; height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239, 159, 39, 0.12); color: var(--accent); border-radius: 12px;
}
.ai-callout h2 { margin-bottom: 10px; }
.ai-callout .list-check { margin-top: 18px; }
@media (max-width: 600px) {
  .ai-callout { flex-direction: column; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 48px 0; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Signup plan cards ---------- */
.plan-card { text-align: left; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: 18px; }
.plan-price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.plan-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
