:root {
  --bg: #0b1220;
  --bg-alt: #111a2e;
  --surface: #162033;
  --border: rgba(148, 163, 184, 0.15);
  --text: #e8edf5;
  --muted: #94a3b8;
  --primary: #22c55e;
  --primary-dim: #16a34a;
  --accent: #38bdf8;
  --gradient: linear-gradient(135deg, #22c55e 0%, #38bdf8 100%);
  --radius: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.narrow { max-width: 720px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--surface); text-decoration: none; }
.site-nav .nav-cta {
  background: var(--primary);
  color: #052e16 !important;
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--primary-dim); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(56, 189, 248, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(34, 197, 94, 0.1), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead { color: var(--muted); font-size: 1.05rem; max-width: 36em; }
.hero-actions { display: flex; gap: 0.75rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  min-height: 280px;
  display: grid;
  gap: 1rem;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.metric-card.secondary { margin-left: 2rem; }
.metric-card.tertiary { margin-left: 4rem; max-width: 220px; }
.metric-label { display: block; font-size: 0.8rem; color: var(--muted); }
.metric-value { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.metric-value.sm { font-size: 1.75rem; }
.metric-unit { font-size: 0.9rem; color: var(--muted); margin-left: 0.25rem; }
.metric-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.metric-badge.on { background: rgba(34, 197, 94, 0.2); color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #052e16; }
.btn-primary:hover { background: var(--primary-dim); color: #052e16; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn.disabled, .demo-card.disabled .btn { opacity: 0.5; pointer-events: none; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head.left { text-align: left; }
.section-head h2 { margin: 0 0 0.5rem; font-size: 1.75rem; }
.section-head p { color: var(--muted); margin: 0; }
.page-hero { padding: 3rem 0 2rem; }
.page-hero.compact h1 { margin: 0 0 0.5rem; font-size: 2.25rem; }
.page-hero p { color: var(--muted); margin: 0; }

.stats-strip { padding: 2rem 0; border-block: 1px solid var(--border); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stats-grid strong { display: block; font-size: 1.1rem; color: var(--primary); }
.stats-grid span { font-size: 0.85rem; color: var(--muted); }

.card-grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.product-card:hover { border-color: rgba(34, 197, 94, 0.4); }
.product-card h3 { margin: 1rem 0 0.5rem; font-size: 1.15rem; }
.product-card p { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--gradient);
  opacity: 0.85;
}
.card-icon.cloud { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.card-icon.chip { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.card-icon.radar { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--muted);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.highlight-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.arch-diagram {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  white-space: pre;
  overflow-x: auto;
}

.cta-band {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.12), rgba(56, 189, 248, 0.08));
  border-top: 1px solid var(--border);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-inner h2 { margin: 0 0 0.35rem; }
.cta-inner p { margin: 0; color: var(--muted); }

/* Products page */
.product-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.product-badge.hardware { color: var(--primary); }
.product-badge.highlight { color: #f59e0b; }
.product-detail h2 { margin: 0 0 0.75rem; font-size: 1.65rem; }
.product-lead { color: var(--muted); max-width: 52em; }
.feature-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.feature-columns h4 { margin: 0 0 0.75rem; font-size: 0.95rem; }
.feature-columns ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.feature-columns li { margin-bottom: 0.4rem; }
.spec-table-wrap { overflow-x: auto; margin-top: 1.5rem; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.spec-table th, .spec-table td {
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}
.spec-table th { background: var(--surface); color: var(--muted); font-weight: 500; }
.note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #f59e0b;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Solutions */
.solution-list { display: flex; flex-direction: column; gap: 2.5rem; }
.solution-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.solution-item:last-child { border-bottom: none; padding-bottom: 0; }
.solution-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.5;
  line-height: 1;
}
.solution-item h2 { margin: 0 0 0.5rem; font-size: 1.35rem; }
.solution-item p { color: var(--muted); margin: 0 0 0.75rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  background: var(--surface);
  border-radius: 999px;
  color: var(--muted);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.timeline-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.timeline-step span { font-weight: 600; color: var(--primary); display: block; margin-bottom: 0.35rem; }
.timeline-step p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* Demo */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.demo-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.demo-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.demo-card p { flex: 1; color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
.empty-state {
  text-align: center;
  padding: 3rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* About / Contact */
.prose h2 { margin-top: 2rem; font-size: 1.25rem; }
.prose p, .prose li { color: var(--muted); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.contact-card h3 { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.contact-value { margin: 0; font-size: 1.1rem; font-weight: 600; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-form h3 { margin: 0 0 0.25rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 0;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h3, .footer-grid h4 { margin: 0 0 0.75rem; font-size: 1rem; }
.footer-grid p, .footer-grid li { color: var(--muted); font-size: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.35rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-bottom .site-icp {
  color: var(--muted);
  text-decoration: none;
}
.footer-bottom .site-icp:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split, .card-grid.three, .feature-columns,
  .stats-grid, .timeline, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .metric-card.secondary, .metric-card.tertiary { margin-left: 0; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .header-inner { position: relative; flex-wrap: wrap; }
}
