:root {
  /* ===== Light theme (the only theme) ===== */
  --bg: #FFFFFF;
  --bg-raised: #FAFAFA;
  --bg-input: #FFFFFF;
  --border: #E4E4E7;
  --border-soft: #ECECEE;
  --text-primary: #0A0A0A;
  --text-secondary: #555555;
  --text-tertiary: #767676;
  --text-quiet: #8A8A8A;
  --teal: #0F8A63;
  --teal-light: #0F8A63;
  --teal-pale: #9FE1CB;
  --teal-dark: #E3F5EE;
  --amber: #C9821B;
  --purple: #6258C9;
  --purple-light: #6258C9;
  --purple-pale: #6258C9;
  --divider-strong: rgba(0, 0, 0, 0.12);
  --divider-soft: rgba(0, 0, 0, 0.08);
  --logo-bg: #0A0A0A;
  --logo-fg: #FFFFFF;
  --btn-secondary-border: #D4D4D8;
  --trace-border: #D4D4D8;
  --dot-color: rgba(0, 0, 0, 0.08);
  --side-wash-teal: rgba(15, 138, 99, 0.30);
  --side-wash-amber: rgba(201, 130, 27, 0.28);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Dotted grid background — fixed, behind all content, softly faded so it
   reads as texture rather than noise. Themed via --dot-color. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(var(--dot-color) 1px, transparent 1.4px);
  background-size: 26px 26px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, #000 55%, transparent 100%);
}

/* Apple-style ambient wash: two huge, ultra-soft color blooms bleeding in
   from the left (teal) and right (amber) edges — barely-there color, not a
   design element you consciously notice. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 60% at -5% 20%, var(--side-wash-teal), transparent 68%),
    radial-gradient(ellipse 65% 60% at 105% 48%, var(--side-wash-amber), transparent 68%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */

.header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--btn-secondary-border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--logo-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--logo-fg);
  letter-spacing: -1.5px;
}

.nav-about {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== Header nav (coming-soon placeholders) ===== */

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-soon {
  position: relative;
  display: inline-block;
  font-size: 13px;
  color: var(--text-quiet);
  cursor: default;
  user-select: none;
}

/* Tiny superscript "stamp" — sits on top of the word, adds no layout width. */
.coming-soon-tag {
  position: absolute;
  top: -7px;
  right: -4px;
  font-size: 7px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--purple-light);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transform: rotate(-6deg);
}

/* ===== Mobile collapsible menu ===== */

.mobile-menu {
  position: absolute;
  top: 100%;
  right: 24px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 60;
  animation: fadeDown 0.2s ease-out forwards;
}

.mobile-menu .nav-soon {
  font-size: 15px;
}

.mobile-menu .coming-soon-tag {
  top: -6px;
  right: -6px;
}

.mobile-menu-about {
  font-size: 15px;
  color: var(--text-secondary);
}

@media (max-width: 760px) {
  .header-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

.header-divider {
  height: 1px;
  background: var(--divider-strong);
  width: 100%;
}

/* ===== Announcement banner ===== */

.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(127, 119, 221, 0.1);
  border-bottom: 0.5px solid rgba(127, 119, 221, 0.25);
  flex-wrap: wrap;
  text-align: center;
  opacity: 0;
  transform: translateY(-6px);
  animation: fadeDown 0.4s ease-out forwards;
}

.banner-icon {
  font-size: 13px;
  color: var(--purple-light);
}

.banner-text {
  font-size: 13px;
  color: var(--purple-light);
  font-weight: 500;
}

.banner-link {
  font-size: 13px;
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Hero ===== */

/* First screen — hero + news share this budget so together they roughly
   fill one viewport on load; the rest of the page stays below the fold. */
.first-screen {
  min-height: calc(100svh - 108px);
  min-height: calc(100vh - 108px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* The hero fills the space between the header and the news boxes below it,
   and centers its content vertically within that space. */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 56px;
  width: 100%;
}

.hero-copy {
  flex: 0 0 44%;
  min-width: 300px;
  text-align: left;
}

.hero-visual {
  flex: 1;
  min-width: 0;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.6s ease-out 0.5s forwards;
}

.hero-headline {
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin: 0 0 20px;
  max-width: none;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.5s ease-out 0.15s forwards;
}

.hero-accent {
  background: linear-gradient(100deg, var(--teal-light), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subhead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 0 32px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.5s ease-out 0.3s forwards;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.5s ease-out 0.45s forwards;
}

.btn {
  border-radius: var(--radius-md);
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(29, 158, 117, 0.55);
}

.btn-secondary {
  background: var(--amber);
  color: #FFFFFF;
  border: 1px solid var(--amber);
  font-weight: 500;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(201, 130, 27, 0.55);
}

.btn:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

.counter-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.counter-hash {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal-pale);
  line-height: 16px;
}

.slot-digit {
  display: inline-block;
  width: 11px;
  height: 16px;
  overflow: hidden;
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal-pale);
  line-height: 16px;
  text-align: center;
}

.slot-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.slot-track span {
  display: block;
  height: 16px;
}

/* ===== Screen mockup (browser-window chrome around product previews) ===== */

.screen-frame {
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.screen-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.5);
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--border-soft);
}

.screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-quiet);
  opacity: 0.5;
}

.screen-url {
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-quiet);
}

.screen-body {
  padding: 18px;
}

.screen-float {
  animation: screenFloat 6s ease-in-out infinite;
}

@keyframes screenFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 460px) {
  .screen-url {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-float {
    animation: none;
  }
}

/* ===== Data card (hero) ===== */

.data-card {
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: left;
}

.data-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.data-card-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.data-card-value {
  font-size: 12px;
  color: var(--teal-light);
  font-family: var(--font-mono);
}

.bar-row {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 120px;
  margin-bottom: 20px;
}

.bar {
  flex: 1;
  background: var(--teal);
  border-radius: 2px;
}

.bar.anomaly {
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(239, 159, 39, 0.55);
  animation: pulseRing 2.2s ease-out 1.3s infinite;
}

.alert-frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(239, 159, 39, 0.08);
  border: 0.5px solid rgba(239, 159, 39, 0.3);
  border-radius: var(--radius-md);
  animation: framePulse 2.2s ease-in-out 1.3s infinite;
  flex-wrap: wrap;
}

.alert-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-text {
  font-size: 12px;
  color: var(--amber);
  font-family: var(--font-mono);
}

.alert-fix {
  font-size: 12px;
  color: var(--teal-light);
  font-family: var(--font-mono);
}

/* ===== News ===== */

.news-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.news-heading {
  font-size: 10.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-quiet);
  margin-bottom: 14px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  display: block;
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.15s ease;
}

.news-card:hover {
  border-color: var(--text-tertiary);
}

.news-kicker {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-quiet);
  margin-bottom: 7px;
}

.news-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Section divider + headline (hero -> steps) ===== */

.section-divider {
  max-width: 1200px;
  margin: 8px auto 0;
  padding: 0 24px;
}

.section-divider-line {
  height: 1px;
  background: var(--divider-strong);
}

.steps-headline {
  text-align: center;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.3;
  max-width: none;
  margin: 64px auto 0;
  padding: 0 24px;
}

/* ===== Three-step section ===== */

.steps-section {
  padding: 72px 24px 140px;
  max-width: 1200px;
  margin: 0 auto;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 100px;
  max-width: 960px;
  margin: 0 auto;
}

/* Each step: text on the left, graphic on the right — revealed on scroll. */
.step-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 64px;
  text-align: left;
}

.step-label {
  flex: 0 0 36%;
}

.step-visual-wrap {
  flex: 1;
  min-width: 0;
}

/* Reveal animation: label eases in first, graphic follows. */
.step-label,
.step-visual-wrap {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.step-block.in .step-label {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.step-block.in .step-visual-wrap {
  opacity: 1;
  transform: none;
  transition-delay: 0.28s;
}

.step-eyebrow {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.step-eyebrow.inform { color: var(--teal); }
.step-eyebrow.diagnose { color: var(--amber); }
.step-eyebrow.optimize { color: var(--purple); }

.step-title {
  font-size: clamp(24px, 3vw, 30px);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 360px;
}

.step-visual {
  width: 100%;
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: left;
}

/* Step 1: inform breakdown */
.agent-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.agent-name {
  font-size: 11px;
  color: var(--text-secondary);
}

.agent-cost {
  font-size: 11px;
  color: var(--teal);
  font-family: var(--font-mono);
}

.agent-bar-track {
  height: 5px;
  background: var(--border-soft);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.agent-bar-track:last-child {
  margin-bottom: 0;
}

.agent-bar-fill {
  height: 100%;
  background: var(--teal);
}

/* Step 2: diagnose trace */
.trace-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.trace-run {
  font-size: 11px;
  color: var(--amber);
  font-family: var(--font-mono);
}

.trace-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 8px;
  border-left: 1.5px solid var(--trace-border);
}

.trace-line {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.trace-line.highlight {
  color: var(--amber);
}

/* Step 3: optimize fix */
.fix-statement {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.fix-mechanism {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.fix-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg-input);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px;
  flex-wrap: wrap;
}

.fix-stat {
  text-align: center;
}

.fix-stat-label {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-bottom: 3px;
}

.fix-stat-value {
  font-size: 15px;
  font-family: var(--font-mono);
  font-weight: 500;
}

.fix-stat-value.before { color: var(--text-secondary); }
.fix-stat-value.after { color: var(--teal-light); }
.fix-stat-value.saved { color: var(--teal); }

.fix-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* ===== Apply modal ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: overlayIn 0.2s ease-out forwards;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: modalIn 0.22s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--border-soft);
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.apply-eyebrow {
  font-size: 12px;
  color: var(--purple);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.apply-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
}

.field-textarea,
.field-input {
  width: 100%;
  background: var(--bg-input);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  box-sizing: border-box;
}

.field-textarea {
  min-height: 90px;
  resize: vertical;
  margin-bottom: 20px;
}

.field-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.field-input {
  flex: 1;
  min-width: 140px;
  padding: 10px 12px;
}

.field-email {
  margin-bottom: 16px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  cursor: pointer;
}

.consent-checkbox {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--teal);
}

.consent-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.submit-btn {
  width: 100%;
  background: var(--teal);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
}

.form-status {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 10px;
  text-align: center;
  min-height: 16px;
}

.form-status.error { color: var(--amber); }
.form-status.success { color: var(--teal-light); }

/* ===== Footer ===== */

.site-footer {
  padding: 32px 24px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand {
  max-width: 240px;
}

.footer-brand .logo-mark {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-columns {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col-heading {
  font-size: 12px;
  color: var(--text-quiet);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-secondary);
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  transition: color 0.15s ease;
}

.footer-link.clickable {
  cursor: pointer;
}

.footer-link.clickable:hover {
  color: var(--text-primary);
}

.footer-divider {
  height: 1px;
  background: var(--divider-soft);
  margin-bottom: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-meta {
  font-size: 12px;
  color: var(--text-quiet);
}

.footer-meta.mono {
  font-family: var(--font-mono);
}

/* ===== Animations ===== */

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(239, 159, 39, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(239, 159, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 159, 39, 0); }
}

@keyframes framePulse {
  0%, 100% { border-color: rgba(239, 159, 39, 0.3); }
  50% { border-color: rgba(239, 159, 39, 0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .banner,
  .hero-headline,
  .hero-subhead,
  .hero-ctas,
  .data-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .bar.anomaly,
  .alert-frame {
    animation: none;
  }
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .hero-grid {
    flex-direction: column;
    gap: 40px;
  }
  .hero-copy {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }
  .hero-subhead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-visual {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 20px 32px;
  }
  .steps-list {
    gap: 64px;
  }
  .step-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .step-label {
    flex: 1 1 auto;
  }
  .step-visual-wrap {
    width: 100%;
  }
  .step-title {
    font-size: 24px;
  }
  .step-desc {
    max-width: none;
  }
  .fix-comparison {
    gap: 10px;
  }
  .footer-top {
    flex-direction: column;
  }
}

/* ===== Legal pages (imprint / privacy) ===== */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.legal-banner {
  font-size: 13px;
  line-height: 1.6;
  color: var(--amber);
  background: rgba(239, 159, 39, 0.08);
  border: 0.5px solid rgba(239, 159, 39, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 32px;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 24px;
}

.legal-page h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 8px;
}

.legal-page h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 18px 0 6px;
}

.legal-page p,
.legal-page li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-page p {
  margin-bottom: 12px;
}

.legal-page ul {
  margin: 0 0 12px 20px;
}

.legal-page li {
  margin-bottom: 4px;
}

.legal-page strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-page a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===== Product demo ===== */

.demo-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}

.demo-exit {
  font-size: 13px;
  color: var(--text-secondary);
}

.demo-exit:hover {
  color: var(--text-primary);
}

.demo-stepbar {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-quiet);
  padding: 8px 0 20px;
  border-bottom: 0.5px solid var(--border-soft);
  margin-bottom: 28px;
}

.demo-section-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}

.demo-section-sub {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

/* --- Step 1: overview --- */

.demo-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.demo-sidebar {
  flex: 0 0 210px;
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.demo-side-heading {
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-quiet);
  margin-bottom: 10px;
}

.demo-side-agent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
}

.demo-side-agent.active {
  background: rgba(29, 158, 117, 0.1);
  color: var(--text-primary);
}

.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.demo-dot.green { background: var(--teal); }
.demo-dot.amber { background: var(--amber); }

.demo-side-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 12px 0;
}

.demo-side-link {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 6px 8px;
}

.demo-main {
  flex: 1;
  min-width: 0;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.demo-agent-card {
  position: relative;
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.demo-agent-card.full {
  grid-column: 1 / -1;
}

.demo-agent-card.clickable {
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.12s ease;
}

.demo-agent-card.clickable:hover {
  transform: translateY(-1px);
}

.demo-agent-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.demo-spend-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.demo-agent-spend {
  font-family: var(--font-mono);
  font-size: 24px;
  margin-bottom: 12px;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.demo-status.green { color: var(--teal-light); }
.demo-status.amber { color: var(--amber); }

.demo-status-arrow {
  margin-left: auto;
}

/* --- Step 1: filter + list view --- */

.demo-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.demo-chip {
  font-size: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.demo-chip:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.demo-chip.active {
  background: rgba(29, 158, 117, 0.12);
  border-color: var(--teal);
  color: var(--text-primary);
}

.demo-list {
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.demo-list-head,
.demo-list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}

.demo-list-head {
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-quiet);
  border-bottom: 0.5px solid var(--border-soft);
}

.demo-list-row {
  border-top: 0.5px solid var(--border-soft);
  font-size: 13px;
}

.demo-list-row:first-of-type {
  border-top: none;
}

.demo-col-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
}

.demo-col-spend {
  width: 120px;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.demo-col-status {
  width: 200px;
  font-size: 12px;
  color: var(--text-secondary);
}

.demo-col-status.green { color: var(--teal-light); }
.demo-col-status.amber { color: var(--amber); }

.demo-list-row.clickable {
  cursor: pointer;
  transition: background 0.18s ease;
}

.demo-list-row.clickable:hover {
  background: rgba(29, 158, 117, 0.06);
}

.demo-list-empty {
  padding: 20px 18px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* --- Guidance bubble --- */

.demo-guide {
  background: rgba(29, 158, 117, 0.1);
  border: 0.5px solid rgba(29, 158, 117, 0.4);
  border-radius: var(--radius-md);
  padding: 9px 13px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--teal-light);
  max-width: 250px;
  animation: guideIn 0.3s ease-out;
}

.demo-guide-block {
  max-width: 520px;
  margin-bottom: 18px;
}

@keyframes guideIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* --- Step 2: agent detail --- */

.demo-detail-row {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.demo-detail-card {
  flex: 1;
  min-width: 180px;
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.demo-detail-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.demo-detail-value {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-primary);
}

.demo-detail-wide {
  flex: 1 1 100%;
}

.demo-detail-wide .demo-detail-value {
  font-size: 13px;
  word-break: break-all;
}

.demo-chart-card {
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
}

.demo-chart-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.demo-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 130px;
}

.demo-bar {
  flex: 1;
  background: var(--teal);
  border-radius: 3px;
  transition: opacity 0.2s ease;
}

.demo-bar.anomaly {
  background: var(--amber);
}

.demo-bar.clickable {
  cursor: pointer;
}

.demo-bar.pulse {
  box-shadow: 0 0 0 0 rgba(239, 159, 39, 0.55);
  animation: pulseRing 2.2s ease-out infinite;
}

/* --- Step 3: diagnosis --- */

.demo-trace-card {
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
}

.demo-trace-head {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.demo-trace-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 20px;
}

.demo-trace-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 14px;
  border-left: 1.5px solid var(--trace-border);
  margin-bottom: 20px;
}

.demo-trace-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.demo-trace-time {
  color: var(--text-quiet);
  margin-right: 10px;
}

.demo-trace-line.hl {
  color: var(--amber);
  font-weight: 600;
}

.demo-trace-sub {
  display: block;
  margin-top: 4px;
  margin-left: 0;
  font-size: 11px;
  color: var(--amber);
  opacity: 0.8;
}

.demo-rootcause {
  background: rgba(239, 159, 39, 0.08);
  border: 0.5px solid rgba(239, 159, 39, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--amber);
}

/* --- Step 4: fix options --- */

.demo-fix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}

.demo-fix-grid.hint {
  animation: fixHint 1.6s ease-out 1;
}

.demo-fix-card {
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.12s ease;
}

.demo-fix-card:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.demo-fix-card.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal) inset;
}

.demo-fix-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.demo-fix-save {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--teal);
  margin-bottom: 8px;
}

.demo-fix-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.demo-fix-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

/* --- Step 5: fix preview --- */

.demo-eyebrow-purple {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--purple);
  margin-bottom: 10px;
}

.demo-preview-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.demo-preview-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 24px;
}

.demo-compare {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.demo-compare-stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.demo-compare-stat-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
}

.demo-compare-stat-value.before { color: var(--text-secondary); }
.demo-compare-stat-value.after { color: var(--teal-light); }
.demo-compare-stat-value.saved { color: var(--teal); }

/* --- Step 6: loading modal --- */

.demo-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.demo-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--bg-raised);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.demo-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: demoSpin 0.8s linear infinite;
}

.demo-loading-text {
  font-size: 13px;
  color: var(--text-secondary);
}

/* --- Step 7: monitoring --- */

.demo-success-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--teal-light);
  margin-bottom: 22px;
}

.demo-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.demo-caption {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 14px;
}

/* --- Buttons + lit-up next-action pointer --- */

.demo-actions {
  margin-top: 24px;
}

.demo-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.demo-btn-primary {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
}

/* The lit primary action IS the pointer: bold, brighter, and gently zooms
   in/out on a loop — no arrow icon needed. */
.demo-btn-primary.lit {
  background: #25b083;
  font-weight: 700;
  animation: zoomHint 1.6s ease-in-out infinite;
}

.demo-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 0.5px solid var(--btn-secondary-border);
  border-radius: var(--radius-md);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 400;
}

.demo-compare-connector {
  color: var(--text-tertiary);
  font-size: 18px;
  line-height: 1;
}

/* Shared "click this next" pulse: a gentle zoom in/out loop. */
.zoom-hint {
  animation: zoomHint 1.6s ease-in-out infinite;
}

@keyframes zoomHint {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes demoSpin {
  to { transform: rotate(360deg); }
}

@keyframes fixHint {
  0% { box-shadow: 0 0 0 0 rgba(29, 158, 117, 0); }
  30% { box-shadow: 0 0 0 6px rgba(29, 158, 117, 0.12); }
  100% { box-shadow: 0 0 0 0 rgba(29, 158, 117, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-btn-primary.lit,
  .zoom-hint,
  .demo-bar.pulse,
  .demo-fix-grid.hint {
    animation: none;
  }
}

@media (max-width: 760px) {
  .demo-layout {
    flex-direction: column;
  }
  .demo-sidebar {
    flex: 1 1 auto;
    width: 100%;
  }
  .demo-grid,
  .demo-fix-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Focus states ===== */

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
