/* DataSig — site.css
   Design system: navy-slate data terminal
   Fonts: Inter (body) + JetBrains Mono (data/signals)
   Accent: signal-blue #3B9EFF + amber #F5A623 (action alerts)
   ---------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --bg:          #0D1117;
  --bg-panel:    #161D27;
  --bg-raised:   #1C2636;
  --text:        #E8EDF2;
  --text-muted:  #7A8899;
  --text-dim:    #4A5568;
  --accent:      #3B9EFF;
  --accent-dim:  rgba(59,158,255,0.15);
  --amber:       #F5A623;
  --amber-dim:   rgba(245,166,35,0.12);
  --green:       #3DD68C;
  --red:         #FF5F57;
  --hairline:    rgba(232,237,242,0.07);
  --radius:      6px;
  --radius-lg:   12px;
  --mono:        'JetBrains Mono', 'Courier New', monospace;
  --sans:        'Inter', system-ui, sans-serif;
  --max-w:       1120px;
  --transition:  0.18s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

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

.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(59,158,255,0.35);
  border-radius: var(--radius);
  color: var(--accent) !important;
  transition: background var(--transition), border-color var(--transition);
}

.nav-cta:hover {
  background: rgba(59,158,255,0.22);
  border-color: var(--accent);
  color: #fff !important;
}

/* ── Ticker ──────────────────────────────────────────────── */
.ticker {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 48px;
  animation: ticker-scroll 38s linear infinite;
  white-space: nowrap;
  padding-left: 100%;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; padding-left: 24px; }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ticker-item .signal-badge {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-action {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid rgba(245,166,35,0.25);
}

.badge-monitor {
  background: rgba(59,158,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(59,158,255,0.2);
}

.badge-stable {
  background: rgba(61,214,140,0.1);
  color: var(--green);
  border: 1px solid rgba(61,214,140,0.2);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59,158,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 800px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #0D1117;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: #5BAFFF;
  color: #0D1117;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: color var(--transition), border-color var(--transition);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(232,237,242,0.2);
}

/* ── Stats strip ─────────────────────────────────────────── */
.stats {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 32px 0;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 0 32px;
  border-right: 1px solid var(--hairline);
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-value span {
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* ── Signals grid ────────────────────────────────────────── */
.signals-section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
}

.signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.signal-card {
  background: var(--bg-panel);
  padding: 28px;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signal-card:hover { background: var(--bg-raised); }

.signal-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.signal-emoji {
  font-size: 22px;
  line-height: 1;
}

.signal-price {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.signal-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.signal-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.signal-vocab {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.vocab-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(232,237,242,0.05);
  color: var(--text-muted);
  border: 1px solid var(--hairline);
  letter-spacing: 0.02em;
}

/* ── How it works ────────────────────────────────────────── */
.how-section {
  padding: 80px 0;
  border-top: 1px solid var(--hairline);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.how-step-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.how-step h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.how-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Code block ──────────────────────────────────────────── */
.code-block {
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-raised);
}

.code-block-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hairline);
}

.code-dots span:first-child { background: #FF5F57; }
.code-dots span:nth-child(2) { background: #FFBD2E; }
.code-dots span:last-child { background: #28CA41; }

.code-block pre {
  padding: 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

.code-block .c-comment { color: var(--text-dim); }
.code-block .c-key     { color: var(--accent); }
.code-block .c-str     { color: #A8D8A8; }
.code-block .c-signal  { color: var(--amber); font-weight: 600; }
.code-block .c-num     { color: #F08080; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-section {
  padding: 80px 0;
  border-top: 1px solid var(--hairline);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}

.pricing-card {
  background: var(--bg-panel);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.pricing-card.featured {
  background: var(--bg-raised);
}

.pricing-tier {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.pricing-range {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-range sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  vertical-align: baseline;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.pricing-features li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-features li::before {
  content: '–';
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 1px;
}

.early-adopter-banner {
  background: var(--amber-dim);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.early-adopter-banner .ea-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.early-adopter-banner p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.early-adopter-banner strong {
  color: var(--amber);
  font-weight: 600;
}

/* ── CTA section ─────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
}

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

/* ── Guides page ─────────────────────────────────────────── */
.guides-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.guides-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.guides-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 48px 0;
}

.guide-card {
  background: var(--bg-panel);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--transition);
}

.guide-card:hover { background: var(--bg-raised); }

.guide-card-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.guide-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.guide-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.guide-card-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

/* ── Inline code ─────────────────────────────────────────── */
code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  padding: 16px 0 0;
  font-family: var(--mono);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--text-dim); }

/* ── Guide content ───────────────────────────────────────── */
.guide-content {
  max-width: 720px;
  padding: 48px 0 80px;
}

.guide-content h1 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.guide-content h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 48px 0 16px;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
}

.guide-content h2:first-of-type { margin-top: 32px; }

.guide-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}

.guide-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.guide-content ul, .guide-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.guide-content li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 6px;
}

.guide-content a { font-weight: 500; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .stat-item {
    padding: 20px;
    border-right: none;
    background: var(--bg-panel);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .nav-links { display: none; }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
}
