:root {
  --bg: #070b14;
  --bg-elevated: #0f1629;
  --bg-card: #121c32;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.15);
  --warning: #fbbf24;
  --radius: 14px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #1e3a5f 0%, transparent 55%),
    radial-gradient(900px 500px at 90% 0%, #1a2744 0%, transparent 50%), var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", monospace;
  font-size: 0.88em;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  padding: 0.12em 0.45em;
  border-radius: 6px;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 0.95rem;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  background: var(--accent-soft);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

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

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
}

.status-row dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.status-row dd {
  margin: 0;
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pill-ok {
  background: var(--success-soft);
  color: var(--success);
}

.pill-muted {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}

.pill-warn {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.pill-err {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 280px;
  min-width: 0;
}

.visual-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.visual-card {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 28, 50, 0.92);
  box-shadow: var(--shadow);
  min-width: 220px;
}

.visual-card-a {
  top: 12%;
  right: 8%;
  transform: rotate(-2deg);
}

.visual-card-b {
  bottom: 8%;
  left: 4%;
  transform: rotate(2deg);
}

.visual-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.visual-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success-soft);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.product-card.is-loading {
  opacity: 0.85;
}

.product-card.is-error {
  border-color: rgba(248, 113, 113, 0.35);
}

.product-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.product-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.product-icon-chat {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.product-icon-blog {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.product-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.product-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.product-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.product-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--border);
}

.product-meta span {
  color: var(--text-muted);
}

.product-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.product-footnote {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Install */
.install {
  border-top: 1px solid var(--border);
  background: rgba(15, 22, 41, 0.5);
}

.install-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.install h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.section-intro {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.steps li {
  margin-bottom: 0.85rem;
}

.steps strong {
  color: var(--text);
}

.help-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.help-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.help-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.help-links {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.help-links li {
  margin-bottom: 0.4rem;
}

.help-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.5rem;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0;
}

.footer-meta code {
  font-size: 0.8em;
}

@media (max-width: 900px) {
  .hero-grid,
  .product-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 200px;
  }

  .visual-card {
    min-width: 180px;
    padding: 0.85rem 1rem;
  }

  .header-nav {
    display: none;
  }
}
