/* ── Base ─────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 56px;
  border-bottom: 1px solid rgba(228, 228, 231, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ── Hero gradient ────────────────────────────────────────────────────────── */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 40% at 20% 25%,
      rgba(99, 102, 241, 0.07) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 35% at 80% 10%,
      rgba(139, 92, 246, 0.08) 0%,
      transparent 55%
    );
}

/* ── Chip / badge ─────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  border: 1px solid rgba(199, 210, 254, 0.8);
  background: #eef2ff;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  color: #4338ca;
  user-select: none;
  white-space: nowrap;
}

.chip-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.15);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  color: #a5b4fc;
}

/* ── Section labels ───────────────────────────────────────────────────────── */
.section-tag {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6366f1;
}

.section-tag-dark {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #818cf8;
}

/* ── Bullet list items ────────────────────────────────────────────────────── */
.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}

/* ── Lucide icon sizes ────────────────────────────────────────────────────── */
.icon-xs {
  width: 11px;
  height: 11px;
  display: inline-block;
  vertical-align: middle;
}
.icon-sm {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
}
.icon-md {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* Lucide replaces <i data-lucide> with <svg>; size the SVG directly */
i[data-lucide] {
  display: inline-block;
}
i[data-lucide].icon-xs svg,
svg.icon-xs {
  width: 11px;
  height: 11px;
}
i[data-lucide].icon-sm svg,
svg.icon-sm {
  width: 14px;
  height: 14px;
}
i[data-lucide].icon-md svg,
svg.icon-md {
  width: 18px;
  height: 18px;
}

/* ── Mock window chrome ───────────────────────────────────────────────────── */
.mock-window {
  border-radius: 16px;
  border: 1px solid #e4e4e7;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.mock-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f4f4f5;
  padding: 10px 16px;
  background: rgba(250, 250, 250, 0.8);
}

.mock-window-dark {
  border-radius: 16px;
  border: 1px solid #27272a;
  background: #09090b;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.mock-chrome-dark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #27272a;
  padding: 10px 16px;
}

.mock-title {
  font-size: 11px;
  font-weight: 500;
  color: #71717a;
}

.mock-title-dark {
  font-size: 11px;
  font-weight: 500;
  color: #a1a1aa;
}

/* macOS dots */
.mac-dots {
  display: flex;
  gap: 5px;
}
.dot-red {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.8);
}
.dot-amber {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.8);
}
.dot-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.8);
}
.dot-red-d {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.5);
}
.dot-amber-d {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.5);
}
.dot-green-d {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.5);
}

/* ── Intel board rows ─────────────────────────────────────────────────────── */
.intel-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid #f4f4f5;
  background: rgba(250, 250, 250, 0.6);
  padding: 8px 12px;
}

.intel-text {
  font-size: 12px;
  color: #3f3f46;
  flex: 1;
  line-height: 1.4;
}

.type-badge {
  margin-top: 1px;
  flex-shrink: 0;
  border-radius: 4px;
  background: #e0e7ff;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4338ca;
}

.class-badge {
  margin-top: 1px;
  flex-shrink: 0;
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 600;
}

.badge-pill {
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 600;
}

.divider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

/* ── Confidence bar ───────────────────────────────────────────────────────── */
.conf-bar {
  height: 6px;
  border-radius: 9999px;
  background: #27272a;
  overflow: hidden;
  position: relative;
}

.conf-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 9999px;
}

/* ── Reasoning trace steps ────────────────────────────────────────────────── */
.trace-step {
  display: flex;
  gap: 10px;
}

.trace-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #a5b4fc;
  margin-top: 2px;
}

.trace-num-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.trace-body {
  flex: 1;
  border-radius: 8px;
  border: 1px solid #27272a;
  background: rgba(24, 24, 27, 0.8);
  padding: 8px 12px;
}

/* ── Novelty badges ───────────────────────────────────────────────────────── */
.novelty-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  padding: 2px 8px;
  border: 1px solid;
  flex-shrink: 0;
}

.novelty-badge.high {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}
.novelty-badge.med {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}
.novelty-badge.low {
  color: #3f3f46;
  background: #f4f4f5;
  border-color: #e4e4e7;
}

/* ── AI Phase header ──────────────────────────────────────────────────────── */
.ai-phase-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.ai-phase-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-phase-icon.indigo {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.ai-phase-icon.red {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.ai-phase-icon.violet {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.ai-phase-icon.amber {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ── Journey steps ────────────────────────────────────────────────────────── */
.journey-step {
  border-radius: 16px;
  border: 1px solid #e4e4e7;
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.journey-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.journey-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-num {
  font-size: 11px;
  font-weight: 700;
  color: #d4d4d8;
}

.journey-title {
  font-size: 13px;
  font-weight: 600;
  color: #18181b;
}

.journey-desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #71717a;
}

/* ── Pricing cards ────────────────────────────────────────────────────────── */
.plan-card {
  border-radius: 16px;
  border: 1px solid;
  background: #fff;
  padding: 20px;
  width: 100%;
  cursor: pointer;
  position: relative;
}

.plan-card:hover {
  border-color: #a1a1aa;
}

/* ── Live Pulse strip ─────────────────────────────────────────────────────── */
.pulse-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.pulse-track {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  width: max-content;
  animation: scrollPulse 32s linear infinite;
}

@keyframes scrollPulse {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.pulse-card {
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(228, 228, 231, 0.8);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  user-select: none;
  flex-shrink: 0;
}

.pulse-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e0e7ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Range slider accent ──────────────────────────────────────────────────── */
input[type="range"] {
  accent-color: #4f46e5;
}

/* ── Anchor scroll offset ─────────────────────────────────────────────────── */
#features,
#ai,
#journey,
#pricing {
  scroll-margin-top: 72px;
}
