/* ==========================================================================
   PulseDeck marketing site — design tokens
   Palette lifted directly from the real product's dark theme, not a
   generic AI-default palette: near-black blue-tinted base, mint-teal
   signature accent (matches the product's own "ok" status color and its
   header pulse-trace animation), amber/coral for warn/critical semantics.
   ========================================================================== */
/* ==========================================================================
   Self-hosted fonts — no Google Fonts CDN dependency, on purpose: this
   page is selling a tool that's explicitly designed to work fully
   offline/air-gapped, so it shouldn't itself require reaching an
   external CDN just to render its own headline correctly.
   ========================================================================== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-800.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jbmono-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jbmono-500.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/jbmono-600.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/jbmono-700.woff2') format('woff2'); }

:root {
  --bg: #0A0E13;
  --bg-panel: #10151C;
  --bg-panel-alt: #151B24;
  --bg-raised: #1A212B;
  --border: #212934;
  --border-soft: #1A2129;

  --text: #E7EDF3;
  --text-muted: #7C8998;
  --text-faint: #4E5A68;

  --ok: #22D3A8;
  --ok-dim: rgba(34, 211, 168, 0.14);
  --warn: #F5A623;
  --warn-dim: rgba(245, 166, 35, 0.14);
  --crit: #EF5B5B;
  --crit-dim: rgba(239, 91, 91, 0.14);
  --blue: #4C9FFE;
  --violet: #9C7CF4;

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-ui); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); font-size: 0.92em; background: var(--bg-raised); padding: 2px 6px; border-radius: 4px; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

.accent-ok { color: var(--ok); }
.accent-warn { color: var(--warn); }
.accent-crit { color: var(--crit); }

/* subtle grain so large dark panels don't look like flat digital fills */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Shared status dot (reused throughout — this is literally the product's
   own status-pill visual language, not a marketing invention)
   ========================================================================== */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot-warn { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.dot-crit { background: var(--crit); box-shadow: 0 0 8px var(--crit); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ok); color: #06251D; box-shadow: 0 0 0 0 rgba(34,211,168,0.5); }
.btn-primary:hover { box-shadow: 0 4px 24px rgba(34,211,168,0.35); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ok); color: var(--ok); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-full { width: 100%; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: transparent; backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.nav.nav-scrolled {
  background: rgba(10,14,19,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ok-dim); color: var(--ok); font-size: 17px;
}
.nav-links { display: flex; gap: 30px; font-size: 14.5px; color: var(--text-muted); flex: 1; justify-content: center; align-items: center; }
.nav-links a:hover { color: var(--text); }
.nav-cta-mobile { display: none; }
.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* ==========================================================================
   Hero — the signature element. A wide oscilloscope-style trace runs
   behind the headline, the exact same stroke-dasharray travel technique
   the real dashboard uses in its own header, just scaled up and made the
   thesis of the page instead of a small chrome detail.
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  max-width: var(--max-width); margin: 0 auto; padding: 88px 28px 40px;
}
.hero-trace {
  position: absolute; top: 60px; left: 0; width: 100%; height: 340px;
  z-index: 0; opacity: 0.55; pointer-events: none;
}
#heroPulsePath {
  fill: none; stroke: var(--ok); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 10px var(--ok));
  stroke-dasharray: 60 3000; stroke-dashoffset: 0;
  animation: hero-pulse-travel 5.5s linear infinite;
  vector-effect: non-scaling-stroke;
}
@keyframes hero-pulse-travel { to { stroke-dashoffset: -3060; } }

.hero-inner { position: relative; z-index: 1; max-width: 700px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted);
  background: var(--bg-panel); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 24px;
}
.hero-title {
  font-size: 56px; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-microcopy { font-size: 13.5px; color: var(--text-faint); }

.hero-visual { position: relative; z-index: 1; margin-top: 56px; }
.mock-window {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02);
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--bg-panel-alt); border-bottom: 1px solid var(--border);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.mock-url {
  margin-left: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
}
.mock-body { padding: 22px; }
.mock-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.mock-stat {
  background: var(--bg-raised); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.mock-stat-label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.mock-stat-value { font-family: var(--font-mono); font-size: 22px; font-weight: 700; }
.mock-hosts { display: flex; flex-direction: column; gap: 8px; }
.mock-host {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-raised); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 13.5px;
}
.mock-host-name { font-weight: 600; flex: 1; }
.mock-host-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.mock-host.warn-row { border-color: rgba(245,166,35,0.25); background: var(--warn-dim); }
.mock-host.crit-row { border-color: rgba(239,91,91,0.25); background: var(--crit-dim); }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-strip {
  max-width: var(--max-width); margin: 0 auto; padding: 36px 28px;
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.trust-strip p { color: var(--text-faint); font-size: 13.5px; white-space: nowrap; }
.trust-items { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-muted); font-family: var(--font-mono); font-size: 13px; }
.trust-items span:nth-child(even) { color: var(--text-faint); }

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { max-width: var(--max-width); margin: 0 auto; padding: 96px 28px; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-panel) 15%, var(--bg-panel) 85%, transparent); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.eyebrow {
  display: block; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ok); margin-bottom: 14px;
}
.section-head h2 { font-size: 34px; line-height: 1.25; margin-bottom: 14px; }
.section-sub { color: var(--text-muted); font-size: 16.5px; }

/* ==========================================================================
   Feature grid
   ========================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--ok); transform: translateY(-2px); }
.feature-card--wide { grid-column: span 3; background: linear-gradient(135deg, var(--bg-panel), var(--bg-panel-alt)); }
.feature-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: var(--ok-dim); color: var(--ok);
  font-size: 19px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; }
.feature-card p em { color: var(--text); font-style: normal; font-weight: 600; }

/* ==========================================================================
   Comparison table
   ========================================================================== */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.compare-table thead th { color: var(--text-muted); font-weight: 600; font-size: 13.5px; background: var(--bg-panel); }
.compare-table tbody td:first-child { color: var(--text-muted); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.col-highlight { background: var(--ok-dim); font-weight: 600; }
.compare-table thead .col-highlight { color: var(--ok); }
.check { color: var(--ok); font-weight: 700; }
.cross { color: var(--text-faint); font-size: 13px; }
.compare-footnote { margin-top: 18px; color: var(--text-faint); font-size: 13px; }

/* ==========================================================================
   Architecture
   ========================================================================== */
.arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.arch-diagram { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.arch-row { display: flex; gap: 10px; width: 100%; }
.arch-box {
  width: 100%; text-align: center; padding: 18px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--bg-panel);
  display: flex; flex-direction: column; gap: 4px;
}
.arch-box--agents, .arch-box--pollers { flex: 1; }
.arch-box--core { border-color: var(--ok); background: var(--ok-dim); }
.arch-label { font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.arch-sub { font-size: 12.5px; color: var(--text-muted); }
.arch-arrow { color: var(--text-faint); font-size: 15px; }
.arch-notes { display: flex; flex-direction: column; gap: 26px; }
.arch-note h4 { font-size: 16px; margin-bottom: 8px; }
.arch-note p { color: var(--text-muted); font-size: 14.5px; }

/* ==========================================================================
   Download
   ========================================================================== */
.download-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px;
  background: linear-gradient(135deg, var(--bg-panel), var(--bg-panel-alt));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 56px;
}
.download-left h2 { font-size: 30px; margin: 12px 0 14px; }
.download-left p { color: var(--text-muted); margin-bottom: 26px; }
.download-code {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-bottom: 26px; display: flex; flex-direction: column; gap: 6px;
}
.download-code-line { font-family: var(--font-mono); font-size: 13.5px; color: var(--text-muted); }
.prompt { color: var(--ok); margin-right: 8px; }
.download-right { display: flex; align-items: center; }
.download-checklist { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.download-checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-muted); }
.download-checklist .dot { margin-top: 6px; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 800px; }
.pricing-card {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px; display: flex; flex-direction: column;
}
.pricing-card--current { border-color: var(--ok); }
.pricing-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px;
  background: var(--ok-dim); color: var(--ok); margin-bottom: 18px; width: fit-content;
}
.pricing-badge--soon { background: var(--bg-raised); color: var(--text-muted); }
.pricing-card h3 { font-size: 20px; margin-bottom: 6px; }
.pricing-amount { font-family: var(--font-mono); font-size: 38px; font-weight: 700; margin-bottom: 8px; }
.pricing-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex: 1; }
.pricing-features li { font-size: 14px; color: var(--text-muted); padding-left: 20px; position: relative; }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.waitlist-form { display: flex; flex-direction: column; gap: 10px; }
.waitlist-form input {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-family: var(--font-ui); font-size: 14px;
}
.waitlist-form input:focus { outline: none; border-color: var(--ok); }
.waitlist-note { font-size: 13px; color: var(--ok); margin-top: 10px; min-height: 1em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--border-soft); padding: 64px 28px 28px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; }
.footer-brand { max-width: 260px; }
.footer-brand .brand-word { margin-left: 8px; font-weight: 700; }
.footer-brand p { color: var(--text-faint); font-size: 13.5px; margin-top: 14px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--ok); }
.footer-bottom {
  max-width: var(--max-width); margin: 48px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border-soft); color: var(--text-faint); font-size: 13px;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  #heroPulsePath { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-title { font-size: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--wide { grid-column: span 2; }
  .arch-grid { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; padding: 36px; }
  .download-right { justify-content: flex-start; }
  .pricing-grid { grid-template-columns: 1fr; }
  .mock-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-trace { opacity: 0.28; height: 220px; top: 90px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-links.nav-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--bg-panel); border-bottom: 1px solid var(--border);
    padding: 20px 28px; gap: 16px;
  }
  .nav-links.nav-open .nav-cta-mobile { display: flex; margin-top: 6px; }
  .nav-burger { display: flex; }
  .hero { padding: 56px 20px 32px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 64px 20px; }
  .section-head h2 { font-size: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px; }
  .arch-row { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 32px; }
}
