/* IO Inventory marketing site — design tokens + components */

:root {
  --bg: #080c14;
  --surface: #111723;
  --surface-2: #151d2b;
  --border: #202b3d;
  --primary: #2f9bf5;
  --highlight: #59b8ff;
  --purple: #8b5cf6;
  --purple-light: #b794ff;
  --text: #f5f7fb;
  --muted: #96a3b7;
  --positive: #35c98a;
  --danger: #f56a5b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max-width: 1180px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-glow: 0 0 0 1px rgba(47, 155, 245, 0.14), 0 20px 60px -20px rgba(139, 92, 246, 0.4);
  --gradient-brand: linear-gradient(135deg, var(--highlight), var(--primary) 55%, var(--purple));
  --gradient-text: linear-gradient(100deg, var(--highlight), var(--purple-light));
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  color: #06101c;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

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

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

h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 14px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lede {
  font-size: 1.1rem;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gradient-brand);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: #06101c;
  transition: background-position 0.35s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background-position: 100% 50%;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--primary);
}

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

.btn-ghost:hover {
  border-color: var(--highlight);
  color: var(--highlight);
}

.btn-coffee {
  background: #151d2b;
  color: #ffdd8c;
  border-color: #3a2f1a;
}

.btn-coffee:hover {
  border-color: #ffdd8c;
}

.btn-block {
  width: 100%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-line svg {
  width: 16px;
  height: 16px;
  color: var(--positive);
}

@media (max-width: 860px) {
  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .site-header.nav-open .nav-links a {
    padding: 10px 0;
    width: 100%;
  }
}

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

.hero {
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 680px;
  background: radial-gradient(600px 320px at 18% 0%, rgba(47, 155, 245, 0.24), transparent 70%),
    radial-gradient(520px 420px at 82% 15%, rgba(139, 92, 246, 0.2), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-copy .trust-line {
  margin-top: 22px;
}

.hero-visual {
  position: relative;
}

.window-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}

.window-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.window-titlebar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4658;
}

.window-titlebar .dot:nth-child(1) {
  background: #f56a5b;
}

.window-titlebar .dot:nth-child(2) {
  background: #f5c05b;
}

.window-titlebar .dot:nth-child(3) {
  background: #35c98a;
}

.window-titlebar .label {
  margin-left: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.window-body {
  padding: 28px;
  background: radial-gradient(500px 300px at 70% 20%, rgba(47, 155, 245, 0.14), transparent 70%);
}

.graph-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 12px;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
}

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

section {
  padding: 72px 0;
}

.section-alt {
  background: radial-gradient(900px 420px at 88% 0%, rgba(139, 92, 246, 0.1), transparent 65%),
    radial-gradient(700px 380px at 6% 100%, rgba(47, 155, 245, 0.1), transparent 65%),
    linear-gradient(180deg, transparent, rgba(21, 29, 43, 0.4) 12%, rgba(21, 29, 43, 0.4) 88%, transparent);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse .split-media {
  order: -1;
}

@media (max-width: 900px) {
  .split,
  .split.reverse .split-media {
    grid-template-columns: 1fr;
    order: 0;
  }
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  color: var(--text);
  font-weight: 500;
}

.feature-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--positive);
}

/* Taxonomy chips */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}

/* Cards / grids */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.card h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.card ul li {
  margin-bottom: 4px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(47, 155, 245, 0.2), rgba(139, 92, 246, 0.2));
  color: var(--highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

/* Agent icon grid */

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.agent-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
}

.agent-tile svg {
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  color: var(--highlight);
}

.agent-tile:nth-of-type(3n+2) svg {
  color: var(--purple-light);
}

.agent-tile:nth-of-type(3n+3) svg {
  color: var(--positive);
}

.agent-tile span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.mcp-callout {
  margin-top: 32px;
  background: linear-gradient(135deg, rgba(47, 155, 245, 0.1), rgba(139, 92, 246, 0.1)), var(--surface);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3);
}

.mcp-callout svg {
  width: 26px;
  height: 26px;
  color: var(--purple-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.mcp-callout p {
  margin: 0;
  color: var(--text);
}

.mcp-callout strong {
  color: var(--purple-light);
}

/* List / manage mockup */

.mock-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.mock-toolbar {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.mock-search {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.mock-filter {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.mock-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.mock-row:last-child {
  border-bottom: none;
}

.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.mock-name {
  color: var(--text);
  font-weight: 600;
}

.mock-name small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78rem;
}

.mock-tag {
  background: rgba(47, 155, 245, 0.14);
  color: var(--highlight);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.mock-action {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Diff mockup */

.diff-line {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 18px;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.diff-line:last-child {
  border-bottom: none;
}

.diff-sym {
  width: 16px;
  flex-shrink: 0;
  font-weight: 700;
}

.diff-add .diff-sym {
  color: var(--positive);
}

.diff-add {
  background: rgba(53, 201, 138, 0.06);
}

.diff-remove .diff-sym {
  color: var(--danger);
}

.diff-remove {
  background: rgba(245, 106, 91, 0.06);
}

.diff-change .diff-sym {
  color: var(--highlight);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(47, 155, 245, 0.16);
  color: var(--highlight);
  font-weight: 800;
  margin-bottom: 14px;
}

.tech-line {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.tech-line code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--highlight);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Privacy panel */

.privacy-panel {
  background: var(--surface);
  border: 1px solid rgba(53, 201, 138, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.privacy-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.privacy-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.privacy-list svg {
  width: 22px;
  height: 22px;
  color: var(--positive);
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-list strong {
  color: var(--text);
  display: block;
}

.privacy-list p {
  margin: 2px 0 0;
  font-size: 0.92rem;
}

/* Open source / final CTA */

.cta-banner {
  position: relative;
  background: radial-gradient(600px 300px at 15% -20%, rgba(47, 155, 245, 0.16), transparent 60%),
    radial-gradient(600px 300px at 85% 120%, rgba(139, 92, 246, 0.16), transparent 60%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  overflow: hidden;
}

.cta-banner .cta-row {
  justify-content: center;
  margin-top: 26px;
}

.cta-banner .trust-line {
  justify-content: center;
  margin-top: 20px;
}

.stat-row {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--highlight);
}

.stat span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-brand img {
  width: 26px;
  height: 26px;
}

.footer-tag {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--highlight);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-bottom a {
  text-decoration: none;
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--highlight);
}

/* ---------- Utility pages ---------- */

.simple-page {
  padding: 64px 0 96px;
  max-width: 760px;
  margin: 0 auto;
}

.simple-page h2 {
  margin-top: 40px;
}

.simple-page ul {
  color: var(--muted);
}

.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

/* Buy me a coffee accent */

.coffee-icon {
  width: 18px;
  height: 18px;
}
