@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Sora:wght@400;600;700&display=swap');

:root {
  --bg: #0a0f16;
  --surface: #111827;
  --surface-alt: #151f31;
  --text: #f5f7fb;
  --muted: #a1aec2;
  --accent: #4fffd2;
  --accent-2: #4d8dff;
  --accent-3: #ff8a5b;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --banner-height: 78px;
  --radius: 22px;
  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
  --duration-fast: 0.12s;
  --duration-med: 0.22s;
  --duration-slow: 0.4s;
  --duration-xslow: 0.7s;
}

body.alertrun {
  background: radial-gradient(circle at top left, rgba(79, 255, 210, 0.12), transparent 55%),
    radial-gradient(circle at 70% 10%, rgba(77, 141, 255, 0.14), transparent 50%),
    linear-gradient(180deg, #090e15 0%, #0c1320 45%, #0a1018 100%);
  color: var(--text);
}

body.alertrun .hero {
  display: block;
}

body.alertrun::before {
  content: "";
  position: fixed;
  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: 24px 24px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

.top-banner {
  background: linear-gradient(90deg, rgba(5, 9, 14, 0.98), rgba(18, 28, 45, 0.94));
}

.site-header {
  background: rgba(10, 16, 25, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero.compact {
  display: block;
}

.hero-stack {
  max-width: 640px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin-bottom: 0.8rem;
}

.hero p {
  max-width: 520px;
  color: var(--muted);
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-bullets li::before {
  content: "+ ";
  color: var(--accent);
  font-weight: 700;
}

.pill {
  background: rgba(79, 255, 210, 0.12);
  color: var(--accent);
  border: 1px solid rgba(79, 255, 210, 0.3);
}

.cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.cta.secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.cta.ghost {
  border-color: var(--accent);
  color: var(--accent);
}

.card,
.diff-block,
.form-card,
.footer {
  background: rgba(16, 24, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.card h3,
.card h4,
.section-title h2,
.diff-block h3 {
  font-family: var(--font-display);
}

.card p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.diff-block {
  margin-top: 1.5rem;
}

.pipeline-diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 26px;
  background: rgba(12, 19, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.pipeline-stage {
  position: relative;
  padding: 0.7rem 0.8rem;
  background: rgba(22, 33, 50, 0.75);
  border-radius: 14px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(79, 255, 210, 0.2);
  cursor: default;
}

.pipeline-stage span {
  display: block;
  font-family: var(--font-display);
}

.pipeline-stage::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: -44px;
  transform: translateX(-50%);
  background: rgba(12, 19, 30, 0.95);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-med) ease;
  white-space: nowrap;
}

.pipeline-stage:hover::after {
  opacity: 1;
}

.pipeline-pulse {
  position: absolute;
  top: 12px;
  left: -20%;
  width: 40px;
  height: calc(100% - 24px);
  background: linear-gradient(90deg, transparent, rgba(79, 255, 210, 0.35), transparent);
  animation: pulse-scan 6s linear infinite;
}

@keyframes pulse-scan {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(140%);
  }
}

.section[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) ease, transform var(--duration-slow) ease;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scrolly {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 2rem;
  align-items: start;
}

.scrolly-visual {
  position: sticky;
  top: 140px;
  display: grid;
  gap: 1.5rem;
}

.scrolly-panels {
  display: grid;
  gap: 2rem;
}

.scrolly-panel {
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 24, 36, 0.8);
}

.scrolly-panel.is-active {
  border-color: rgba(79, 255, 210, 0.6);
  box-shadow: 0 18px 40px rgba(79, 255, 210, 0.1);
}

.diagram {
  position: relative;
  min-height: 140px;
  border-radius: 18px;
  border: 1px solid rgba(79, 255, 210, 0.3);
  background: rgba(12, 19, 30, 0.7);
  overflow: hidden;
}

.scrolly-visual .diagram {
  opacity: 0.35;
  transition: opacity var(--duration-med) ease, border-color var(--duration-med) ease, box-shadow var(--duration-med) ease;
}

.scrolly-visual .diagram.is-active {
  opacity: 1;
  border-color: rgba(79, 255, 210, 0.6);
  box-shadow: 0 18px 40px rgba(79, 255, 210, 0.12);
}

.graph-mini .node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(79, 255, 210, 0.6);
}

.graph-mini .n1 { top: 30px; left: 40px; }
.graph-mini .n2 { top: 60px; left: 120px; }
.graph-mini .n3 { top: 90px; left: 200px; }
.graph-mini .n4 { top: 40px; left: 200px; }

.graph-mini .edge {
  position: absolute;
  height: 2px;
  background: rgba(79, 255, 210, 0.35);
  transform-origin: left center;
}

.graph-mini .e1 { top: 36px; left: 48px; width: 80px; }
.graph-mini .e2 { top: 70px; left: 128px; width: 78px; }
.graph-mini .e3 { top: 70px; left: 130px; width: 95px; transform: rotate(-18deg); }

.citations-mini {
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.citation-line {
  font-size: 0.78rem;
  color: var(--muted);
}

.citation-line span {
  color: var(--accent);
}

.qa-badge {
  justify-self: start;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 138, 91, 0.18);
  color: var(--accent-3);
  font-weight: 600;
  font-size: 0.7rem;
  transition: all var(--duration-med) ease;
}

.qa-badge[data-state=\"pass\"] {
  background: rgba(79, 255, 210, 0.16);
  color: var(--accent);
}

.tour-shell {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2rem;
  align-items: start;
}

.tour-rail {
  display: grid;
  gap: 0.6rem;
}

.tour-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.tour-step {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 24, 36, 0.8);
  color: var(--text);
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--duration-fast) ease, border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.tour-step:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 255, 210, 0.35);
}

.tour-step.is-active {
  border-color: rgba(79, 255, 210, 0.65);
  background: rgba(79, 255, 210, 0.12);
}

.tour-stage {
  background: rgba(16, 24, 36, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: grid;
  gap: 1.2rem;
}

.tour-visuals {
  min-height: 240px;
}

.tour-visual {
  display: none;
}

.tour-visual.is-active {
  display: block;
}

.tour-evidence {
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.tour-evidence-card {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(22, 33, 50, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.tour-export {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.tour-export-file {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(22, 33, 50, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 0.15rem;
}

.rfp-grid {
  display: grid;
  gap: 1.2rem;
}

.rfp-item pre {
  margin: 0.8rem 0 0;
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(9, 14, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 247, 251, 0.92);
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.45;
}

.rfp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.demo-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 24, 36, 0.8);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.demo-toggle input {
  accent-color: var(--accent);
}

body.alertrun.demo-mode .demo-toggle {
  border-color: rgba(79, 255, 210, 0.55);
  color: var(--text);
}

.demo-links {
  display: none;
  gap: 0.65rem;
  margin-left: 0.65rem;
}

body.alertrun.demo-mode .demo-links {
  display: flex;
}

.demo-only {
  display: none;
}

body.alertrun.demo-mode .demo-only {
  display: block;
}

.review-mini {
  display: grid;
  place-items: center;
}

.review-mini .gate {
  width: 70%;
  height: 8px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.review-mini .token {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 12px;
  animation: gate-pass 3s ease-in-out infinite;
}

.review-mini .gate-label {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}

@keyframes gate-pass {
  0% { transform: translateX(-40px); opacity: 0.4; }
  50% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(40px); opacity: 0.4; }
}

.audit-mini {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
}

.audit-mini .event {
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: var(--muted);
}

.product-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}

.product-nav {
  position: sticky;
  top: 140px;
  display: grid;
  gap: 0.5rem;
}

.product-nav a {
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
}

.product-nav a:hover {
  border-color: rgba(79, 255, 210, 0.4);
  color: var(--text);
}

.module-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 22, 34, 0.85);
  margin-bottom: 1.5rem;
}

.module-block ul {
  padding-left: 1.1rem;
  color: var(--muted);
}

.module-diagram {
  display: grid;
  align-items: center;
}

.competition-grid {
  display: grid;
  gap: 0.8rem;
}

.competition-grid .grid-header,
.competition-grid .grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
}

.competition-grid .grid-header {
  background: rgba(79, 255, 210, 0.12);
  font-weight: 600;
}

.competition-grid .grid-row {
  background: rgba(16, 24, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline {
  padding-left: 1.2rem;
  color: var(--muted);
}

.timeline li {
  margin-bottom: 0.6rem;
}

.roi-panel {
  display: grid;
  gap: 1.5rem;
}

.roi-inputs {
  display: grid;
  gap: 0.8rem;
}

.roi-inputs label {
  display: grid;
  gap: 0.3rem;
}

.roi-results {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.link-card {
  transition: transform var(--duration-med) ease, box-shadow var(--duration-med) ease;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.pilot-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.pilot-step {
  padding: 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(79, 255, 210, 0.25);
  background: rgba(12, 19, 30, 0.7);
}

.pilot-step span {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.pilot-step strong {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-display);
}

.cta-card {
  border-color: rgba(79, 255, 210, 0.35);
}

.comparison-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.comparison-col h3 {
  margin-top: 0;
  font-family: var(--font-display);
}

.stack {
  display: grid;
  gap: 0.5rem;
}

.chip {
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  background: rgba(79, 255, 210, 0.12);
  border: 1px solid rgba(79, 255, 210, 0.25);
  font-size: 0.85rem;
}

.chip.muted {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.diagram-large {
  margin-bottom: 1.5rem;
}

.sources code {
  display: block;
  padding: 0.8rem;
  border-radius: 12px;
  background: rgba(12, 19, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  line-height: 1.5;
}

svg {
  width: 100%;
  height: auto;
  fill: rgba(79, 255, 210, 0.35);
  stroke: rgba(79, 255, 210, 0.45);
  stroke-width: 2;
}

form input,
form textarea {
  background: rgba(9, 14, 20, 0.9);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
}

form label {
  color: var(--muted);
  font-size: 0.85rem;
}

.notice {
  color: var(--muted);
}

@media (max-width: 900px) {
  .scrolly {
    grid-template-columns: 1fr;
  }
  .scrolly-visual {
    position: static;
    order: 2;
  }
  .tour-shell {
    grid-template-columns: 1fr;
  }
  .product-layout {
    grid-template-columns: 1fr;
  }
  .product-nav {
    position: static;
    grid-auto-flow: column;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
