/* ===== TOKENS ===== */
:root {
  --bg:        #0B0B14;
  --bg-card:   #111120;
  --bg-glass:  rgba(255,255,255,0.04);
  --border:    rgba(255,255,255,0.08);
  --accent:    #E94560;
  --accent-dim:#b03248;
  --green:     #3DD68C;
  --yellow:    #F5C542;
  --text:      #E8E8F0;
  --muted:     #7B7B9A;
  --mono:      'IBM Plex Mono', monospace;
  --display:   'Space Grotesk', sans-serif;
  --body:      'DM Sans', sans-serif;
}

/* ===== COMING SOON OVERLAY ===== */
#coming-soon-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#coming-soon-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
}
#coming-soon-overlay::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(233,69,96,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.coming-soon-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}
.coming-soon-eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}
.coming-soon-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.25s;
}
.coming-soon-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}
.coming-soon-divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  margin: 0.5rem 0;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.5s;
}
.coming-soon-content .btn-primary {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.6s;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== NOISE TEXTURE ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1000;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 60px;
  background: rgba(11,11,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  color: var(--text) !important;
  font-size: 0.8rem !important;
  font-family: var(--mono);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover {
  border-color: var(--accent) !important;
  background: rgba(233,69,96,0.08) !important;
  color: var(--text) !important;
}
.star-icon { font-size: 0.9rem; }

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 8vw, 6rem) clamp(4rem, 8vh, 6rem);
  overflow: hidden;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(233,69,96,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(233,69,96,0.35);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}
.hero-headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.2em;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.25s;
}
.hero-headline .line-2 {
  color: var(--muted);
  display: block;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin: 1.5rem 0 2.5rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.55s;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
  width: fit-content;
}
.btn-primary:hover { background: #cf3850; transform: translateY(-1px); }
.btn-primary svg { width: 18px; height: 18px; }
.star-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  width: fit-content;
}
.star-badge .star { color: var(--yellow); }
.integration-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.7s;
}
.integration-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.integration-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text);
}
.pill.soon { color: var(--muted); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.pill-dot.soon-dot { background: var(--muted); }

/* ===== SECTION BASE ===== */
section { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 8vw, 6rem); }
.section-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

/* ===== PAIN SECTION ===== */
#pain {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
}
.pain-inner { max-width: 760px; }
.pain-prose {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.pain-prose p + p { margin-top: 1rem; }
.pull-quote {
  position: relative;
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.75rem;
  background: rgba(233,69,96,0.04);
  border-radius: 0 8px 8px 0;
  margin: 2.5rem 0;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.transition-line {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}
.transition-line strong { color: var(--green); }

/* ===== HOW IT WORKS ===== */
#how-it-works { border-top: 1px solid var(--border); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 3rem;
}
.step {
  background: var(--bg-card);
  padding: 2rem 1.75rem;
  position: relative;
}
.step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.step-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.step-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}
.step-cmd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--green);
  background: rgba(61,214,140,0.08);
  border: 1px solid rgba(61,214,140,0.2);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  margin-top: 0.75rem;
}

/* ===== WHAT YOU GET ===== */
#what-you-get {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.report-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}
@media (max-width: 960px) {
  .report-layout { grid-template-columns: 1fr; }
}

/* Terminal Window */
.terminal {
  background: #0e0e1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.78rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.r { background: #FF5F57; }
.term-dot.y { background: #FFBD2E; }
.term-dot.g { background: #28CA41; }
.term-title {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.term-body { padding: 1.5rem 1.75rem; line-height: 1.8; }
.term-prompt { color: var(--accent); }
.term-cmd { color: var(--green); }
.term-out { color: var(--text); }
.term-muted { color: var(--muted); }
.term-section {
  color: var(--yellow);
  font-weight: 500;
  margin-top: 1rem;
}
.term-value { color: #81C8F0; }
.term-warn {
  color: #F5C542;
  background: rgba(245,197,66,0.08);
  border-left: 2px solid #F5C542;
  padding: 0.4rem 0.75rem;
  margin: 0.5rem 0;
}
.term-success { color: var(--green); }

/* Feature cards */
.feat-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  transition: border-color 0.2s;
}
.feat-card:hover { border-color: rgba(233,69,96,0.4); }
.feat-card-title {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.feat-icon { font-size: 1rem; }
.feat-card-body { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.cost-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--green);
  background: rgba(61,214,140,0.08);
  border: 1px solid rgba(61,214,140,0.2);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  margin-top: 0.4rem;
}

/* ===== MYTH BUSTING ===== */
#why-not-ai {
  border-top: 1px solid var(--border);
  max-width: 100%;
}
.myth-inner {
  max-width: 760px;
}
.myth-body {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--muted);
  line-height: 1.8;
}
.myth-body p + p { margin-top: 1.25rem; }
.myth-quote {
  margin: 3rem 0 0;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: rgba(233,69,96,0.04);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* ===== BUILT TO GROW ===== */
#built-to-grow {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.grow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .grow-grid { grid-template-columns: 1fr; }
}
.integration-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.integration-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--border);
}
.integration-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.integration-table tr:last-child td { border-bottom: none; }
.integration-table td:first-child { font-weight: 500; }
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--green);
  background: rgba(61,214,140,0.1);
  border: 1px solid rgba(61,214,140,0.25);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.agent-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}
.agent-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.agent-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
}

/* ===== FOOTER CTA ===== */
#footer-cta {
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, #0e0e1e 0%, #110a10 100%);
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
#footer-cta::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(233,69,96,0.1) 0%, transparent 70%);
}
.footer-cta-inner { position: relative; }
.footer-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.footer-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem clamp(1.5rem, 8vw, 6rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}
footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO INSTALL SNIPPET ===== */
.install-snippet {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.install-snippet code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--green);
  white-space: nowrap;
}
.copy-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  margin-left: 0.5rem;
}
.copy-btn:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.copy-btn.copied { color: var(--green); }
.hero-buttons-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-install-options {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-install-options:hover {
  border-color: var(--green);
  background: rgba(61,214,140,0.08);
}

/* ===== INSTALL MODAL ===== */
.install-modal-content {
  position: relative;
  background: #111120;
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  padding: 0;
  margin: 6rem auto;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
  animation: modalIn 0.25s ease;
  color: var(--text);
}
.install-modal-header {
  padding: 2rem 2rem 0;
}
.install-modal-header h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.install-modal-sub {
  font-size: 0.9rem;
  color: var(--muted);
}
.install-tabs {
  display: flex;
  gap: 0;
  padding: 1.5rem 2rem 0;
  border-bottom: 1px solid var(--border);
}
.install-tab {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.install-tab:hover { color: var(--text); }
.install-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.install-panel {
  display: none;
  padding: 1.5rem 2rem 2rem;
}
.install-panel.active { display: block; }
.install-option {
  margin-bottom: 1.25rem;
}
.install-option-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.install-code-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  overflow-x: auto;
}
.install-code-row code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--green);
  white-space: nowrap;
  flex: 1;
}
.install-code-multiline code {
  white-space: pre;
  line-height: 1.8;
}
.install-code-row .copy-btn {
  align-self: flex-start;
  margin-top: 0;
}
.install-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.55;
}
.install-then {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.install-prompt {
  color: var(--text) !important;
  font-style: italic;
}

/* ===== EXAMPLE REPORT BUTTON ===== */
.btn-example-report {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  width: fit-content;
}
.btn-example-report:hover {
  border-color: var(--accent);
  background: rgba(233,69,96,0.08);
}

/* ===== REPORT MODAL ===== */
.report-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  overflow-y: auto;
}
.report-modal.open { display: flex; }
.report-modal-content {
  position: relative;
  background: #fff;
  color: #1a1a2e;
  border-radius: 12px;
  max-width: 860px;
  width: 100%;
  padding: 0;
  margin: 2rem auto;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.report-modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: #555;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 10;
}
.report-modal-close:hover { background: rgba(0,0,0,0.12); }
.report-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2rem 0;
  flex-wrap: wrap;
}
.report-modal-filename {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #666;
  background: #f4f4f6;
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
}
.report-modal-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #E94560;
  background: rgba(233,69,96,0.08);
  border: 1px solid rgba(233,69,96,0.2);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
}

/* Rendered Markdown */
.md {
  padding: 2rem 2.5rem 3rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #24292f;
}
.md h1 {
  font-size: 1.65rem;
  font-weight: 700;
  border-bottom: 1px solid #d8dee4;
  padding-bottom: 0.4rem;
  margin: 2rem 0 1rem;
  color: #1a1a2e;
}
.md h2 {
  font-size: 1.3rem;
  font-weight: 700;
  border-bottom: 1px solid #d8dee4;
  padding-bottom: 0.3rem;
  margin: 1.75rem 0 0.75rem;
  color: #1a1a2e;
}
.md h2:first-child { margin-top: 0; }
.md h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: #1a1a2e;
}
.md p { margin: 0.5rem 0; }
.md ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}
.md li { margin: 0.25rem 0; }
.md hr {
  border: none;
  border-top: 1px solid #d8dee4;
  margin: 1.5rem 0;
}
.md table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0;
}
.md th {
  text-align: left;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d8dee4;
  background: #f6f8fa;
  color: #24292f;
}
.md td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d8dee4;
  vertical-align: top;
  color: #24292f;
}
.md blockquote {
  border-left: 3px solid #d8dee4;
  padding: 0.25rem 1rem;
  margin: 1rem 0;
  color: #57606a;
  background: #f6f8fa;
  border-radius: 0 4px 4px 0;
}
.md strong { font-weight: 600; }
.md em { font-style: italic; }
.md .status-green { color: #1a7f37; font-weight: 600; }
.md .status-yellow { color: #9a6700; font-weight: 600; }

@media (max-width: 640px) {
  .report-modal { padding: 0.5rem; }
  .report-modal-content { border-radius: 8px; }
  .md { padding: 1.25rem 1rem 2rem; font-size: 14px; }
  .md table { font-size: 0.75rem; }
  .md th, .md td { padding: 0.35rem 0.5rem; }
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .integration-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
}
