/* ═══════════════════════════════════════════════════════
   CorvidAgent — GitHub Pages
   Cyberpunk pixel aesthetic matching the Angular client
   ═══════════════════════════════════════════════════════ */

/* ─── Fonts ─── */
@font-face {
  font-family: 'Dogica Pixel';
  src: url('fonts/dogicapixel.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dogica Pixel';
  src: url('fonts/dogicapixelbold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── Design Tokens ─── */
:root {
  /* Backgrounds */
  --bg-deep:    #0a0a12;
  --bg-surface: #0f1018;
  --bg-raised:  #161822;
  --bg-hover:   #1a1c2e;

  /* Borders */
  --border:        #1e2035;
  --border-bright: #2a2d48;

  /* Text */
  --text-primary:   #e0e0ec;
  --text-secondary: #7a7d98;
  --text-tertiary:  #4a4d68;

  /* Accents */
  --cyan:    #00e5ff;
  --magenta: #ff00aa;
  --green:   #00ff88;
  --red:     #ff3355;
  --amber:   #ffaa00;

  --cyan-dim:    rgba(0, 229, 255, 0.12);
  --magenta-dim: rgba(255, 0, 170, 0.12);
  --green-dim:   rgba(0, 255, 136, 0.12);

  /* Glows */
  --glow-cyan:    0 0 12px rgba(0, 229, 255, 0.3);
  --glow-magenta: 0 0 12px rgba(255, 0, 170, 0.3);
  --glow-green:   0 0 12px rgba(0, 255, 136, 0.3);

  /* Spacing */
  --section-pad: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Dogica Pixel', monospace;
  font-size: 10px;
  line-height: 1.8;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection {
  background: var(--cyan-dim);
  color: var(--cyan);
}

/* ─── Utility ─── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent-cyan    { color: var(--cyan); }
.accent-magenta { color: var(--magenta); }
.accent-green   { color: var(--green); }

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  position: relative;
  text-align: center;
  padding: 100px 24px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 229, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 0, 170, 0.04) 0%, transparent 50%),
    var(--bg-deep);
}

.hero__badge {
  display: inline-block;
  font-size: 8px;
  padding: 4px 12px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 3px;
  margin-bottom: 24px;
  letter-spacing: 1px;
  box-shadow: var(--glow-cyan);
}

.hero__title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.glow-cyan {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.5), 0 0 40px rgba(0, 229, 255, 0.2);
}

.glow-magenta {
  color: var(--magenta);
  text-shadow: 0 0 20px rgba(255, 0, 170, 0.5), 0 0 40px rgba(255, 0, 170, 0.2);
}

.hero__tagline {
  font-size: 11px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 2;
}

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

/* Scanline overlay */
.hero__scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: 'Dogica Pixel', monospace;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 1px;
}

.btn--cyan {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.btn--cyan:hover {
  background: rgba(0, 229, 255, 0.25);
  box-shadow: var(--glow-cyan);
}

.btn--magenta {
  color: var(--magenta);
  border-color: var(--magenta);
  background: var(--magenta-dim);
}

.btn--magenta:hover {
  background: rgba(255, 0, 170, 0.25);
  box-shadow: var(--glow-magenta);
}

/* ═══════════════════ SECTIONS ═══════════════════ */
.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background: var(--bg-surface);
}

.section__title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.section__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--cyan);
  margin: 12px auto 0;
  box-shadow: var(--glow-cyan);
}

/* ─── Grid ─── */
.grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--6 {
  grid-template-columns: repeat(6, 1fr);
}

/* ─── Cards ─── */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.card--cyan:hover  { border-color: var(--cyan);  box-shadow: var(--glow-cyan); }
.card--magenta:hover { border-color: var(--magenta); box-shadow: var(--glow-magenta); }
.card--green:hover { border-color: var(--green); box-shadow: var(--glow-green); }

.card--outline {
  background: transparent;
  border: 1px solid var(--border-bright);
}

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

.card__icon {
  font-size: 24px;
  margin-bottom: 16px;
}

.card__title {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.card p {
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 2;
}

/* ─── Tech Chips ─── */
.chip {
  text-align: center;
  padding: 14px 8px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Dogica Pixel', monospace;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-raised);
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.chip--cyan:hover    { color: var(--cyan);    border-color: var(--cyan);    box-shadow: var(--glow-cyan); }
.chip--magenta:hover { color: var(--magenta); border-color: var(--magenta); box-shadow: var(--glow-magenta); }
.chip--green:hover   { color: var(--green);   border-color: var(--green);   box-shadow: var(--glow-green); }

/* ═══════════════════ TERMINAL ═══════════════════ */
.terminal {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.terminal__dot--red   { background: var(--red); }
.terminal__dot--amber { background: var(--amber); }
.terminal__dot--green { background: var(--green); }

.terminal__label {
  margin-left: auto;
  font-size: 8px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

.terminal__body {
  padding: 20px;
  font-size: 9px;
  line-height: 2.2;
  overflow-x: auto;
  color: var(--text-primary);
}

.terminal__body code {
  font-family: 'Dogica Pixel', monospace;
}

/* Terminal syntax */
.t-prompt  { color: var(--cyan); }
.t-comment { color: var(--text-tertiary); }
.t-dir     { color: var(--cyan); font-weight: 700; }
.t-file    { color: var(--text-primary); }
.t-branch  { color: var(--text-tertiary); }

/* ═══════════════════ NAV BAR ═══════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav__links {
  display: flex;
  gap: 20px;
}

.nav__link {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.nav__link:hover {
  color: var(--cyan);
}

.nav__link--active {
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

/* ─── Hamburger Toggle ─── */
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav__toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ═══════════════════ PAGE HERO (sub-pages) ═══════════════════ */
.page-hero {
  position: relative;
  text-align: center;
  padding: 72px 24px 56px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 229, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 0, 170, 0.04) 0%, transparent 50%),
    var(--bg-deep);
}

.page-hero__title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--text-primary);
}

.page-hero__tagline {
  font-size: 10px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 2;
}

/* ═══════════════════ STEPS ═══════════════════ */
.step {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.step__number {
  font-size: 20px;
  font-weight: 700;
  min-width: 48px;
  letter-spacing: 2px;
  padding-top: 4px;
}

.step__content {
  flex: 1;
}

.step__title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.step__note {
  font-size: 9px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 2;
}

/* ═══════════════════ CONFIG TABLE ═══════════════════ */
.config-table {
  margin-top: 12px;
}

.config-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.config-row:last-child {
  border-bottom: none;
}

.config-key {
  font-size: 8px;
  font-weight: 700;
  font-family: 'Dogica Pixel', monospace;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  word-break: break-all;
}

.config-val {
  font-size: 8px;
  color: var(--text-secondary);
  text-align: right;
}

.config-val code {
  font-family: 'Dogica Pixel', monospace;
  color: var(--text-primary);
}

/* ═══════════════════ GRID VARIANTS ═══════════════════ */
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ═══════════════════ API TABLE ═══════════════════ */
.section__subtitle {
  text-align: center;
  font-size: 9px;
  color: var(--text-secondary);
  margin-top: -16px;
  margin-bottom: 40px;
  line-height: 2;
}

.section__subtitle code {
  font-family: 'Dogica Pixel', monospace;
}

.api-group {
  margin-bottom: 32px;
}

.api-group__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.api-table {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.api-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
  transition: background 0.2s ease;
}

.api-row:last-child {
  border-bottom: none;
}

.api-row:hover {
  background: var(--bg-hover);
}

.api-method {
  font-size: 7px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  min-width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.api-method--get    { color: var(--cyan);    background: var(--cyan-dim);    border: 1px solid rgba(0, 229, 255, 0.2); }
.api-method--post   { color: var(--green);   background: var(--green-dim);   border: 1px solid rgba(0, 255, 136, 0.2); }
.api-method--put    { color: var(--amber);   background: rgba(255, 170, 0, 0.12); border: 1px solid rgba(255, 170, 0, 0.2); }
.api-method--delete { color: var(--red);     background: rgba(255, 51, 85, 0.12);  border: 1px solid rgba(255, 51, 85, 0.2); }

.api-path {
  font-family: 'Dogica Pixel', monospace;
  font-size: 8px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.api-desc {
  color: var(--text-secondary);
  margin-left: auto;
  font-size: 8px;
}

/* ═══════════════════ MCP TOOL PARAMS ═══════════════════ */
.card__params {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.param {
  font-size: 7px;
  font-family: 'Dogica Pixel', monospace;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.15);
  letter-spacing: 0.5px;
}

.param--opt {
  background: transparent;
  color: var(--text-tertiary);
  border-color: var(--border);
}

/* ─── Terminals inside steps/cards fill parent ─── */
.step__content .terminal,
.card .terminal {
  max-width: none;
}

/* ═══════════════════ COMPACT TERMINAL ═══════════════════ */
.terminal--compact {
  max-width: none;
}

.terminal--compact .terminal__body {
  padding: 14px;
  line-height: 2;
}

/* ═══════════════════ SCHEMA LIST ═══════════════════ */
.schema-list {
  margin-top: 8px;
}

.schema-item {
  padding: 6px 0;
  font-size: 9px;
  border-bottom: 1px solid var(--border);
}

.schema-item:last-child {
  border-bottom: none;
}

.schema-item code {
  font-family: 'Dogica Pixel', monospace;
  color: var(--text-primary);
  font-weight: 700;
}

.schema-item .t-comment {
  font-size: 8px;
}

/* ═══════════════════ FEATURE LIST ═══════════════════ */
.feature-list {
  margin-top: 8px;
}

.feature-item {
  padding: 6px 0;
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 2;
}

/* ═══════════════════ CARD LINK ═══════════════════ */
.card--link {
  display: block;
  cursor: pointer;
}

.card--link:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer__links a {
  font-size: 9px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--cyan);
}

.footer__copy {
  font-size: 8px;
  color: var(--text-tertiary);
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */

/* ─── Tablet (768px) ─── */
@media (max-width: 768px) {
  :root {
    --section-pad: 48px;
  }

  /* Nav: hamburger menu */
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 18, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

  .nav__links--open {
    display: flex;
  }

  .nav__link {
    font-size: 10px;
    padding: 12px 24px;
    border-radius: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav__link:active {
    background: var(--bg-hover);
  }

  .nav__link--active {
    border: none;
    border-left: 3px solid var(--cyan);
  }

  .nav__brand {
    font-size: 12px;
  }

  .nav {
    position: sticky;
  }

  .nav__inner {
    position: relative;
  }

  /* Hero */
  .hero {
    padding: 56px 20px 48px;
  }

  .hero__title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .hero__tagline {
    font-size: 10px;
  }

  .page-hero {
    padding: 56px 20px 40px;
  }

  .page-hero__title {
    font-size: 24px;
    letter-spacing: 2px;
  }

  /* Grids */
  .grid--2 {
    grid-template-columns: 1fr;
  }

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

  .grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Sections */
  .section__title {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .section__subtitle {
    margin-bottom: 28px;
  }

  /* Cards — disable hover transform on touch */
  .card:hover {
    transform: none;
  }

  .card {
    padding: 24px 20px;
  }

  /* Terminal */
  .terminal__body {
    font-size: 7px;
    padding: 12px;
    line-height: 2;
    -webkit-overflow-scrolling: touch;
  }

  /* Steps */
  .step {
    flex-direction: column;
    gap: 12px;
  }

  .step__number {
    min-width: auto;
    font-size: 16px;
  }

  /* API rows — stacked layout */
  .api-row {
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 8px;
  }

  .api-path {
    flex-shrink: 1;
    word-break: break-all;
    font-size: 7px;
  }

  .api-desc {
    margin-left: 0;
    flex-basis: 100%;
    padding-top: 4px;
    font-size: 8px;
  }

  .api-method {
    font-size: 6px;
    padding: 3px 6px;
    min-width: 32px;
  }

  /* Config rows */
  .config-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
  }

  .config-val {
    text-align: left;
  }

  .config-key {
    word-break: break-all;
  }

  /* Buttons — bigger touch targets */
  .btn {
    padding: 12px 20px;
    font-size: 9px;
    min-height: 44px;
  }

  /* Footer */
  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer__links a {
    padding: 6px 0;
    font-size: 10px;
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  /* Callout */
  .callout {
    padding: 16px 18px;
  }

  .callout__title {
    font-size: 10px;
  }

  /* Schema items — more readable on mobile */
  .schema-item {
    font-size: 8px;
    padding: 8px 0;
    line-height: 1.8;
  }

  .schema-item .t-comment {
    display: block;
    font-size: 7px;
    margin-top: 2px;
  }
}

/* ─── Phone (480px) ─── */
@media (max-width: 480px) {
  :root {
    --section-pad: 36px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 48px 16px 40px;
  }

  .hero__title {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .hero__tagline {
    font-size: 9px;
    margin-bottom: 24px;
  }

  .page-hero {
    padding: 48px 16px 32px;
  }

  .page-hero__title {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .page-hero__tagline {
    font-size: 9px;
  }

  .grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section__title {
    font-size: 14px;
    margin-bottom: 24px;
  }

  /* Terminal — even smaller for tiny screens */
  .terminal__body {
    font-size: 6px;
    padding: 10px;
    line-height: 1.8;
  }

  .terminal__bar {
    padding: 8px 10px;
  }

  .terminal__label {
    font-size: 7px;
  }

  /* API rows — fully stacked */
  .api-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    gap: 6px;
  }

  .api-method {
    font-size: 7px;
  }

  .api-path {
    font-size: 7px;
    word-break: break-all;
  }

  .api-desc {
    font-size: 8px;
  }

  .api-group__title {
    font-size: 11px;
  }

  /* Cards */
  .card {
    padding: 20px 16px;
  }

  .card__title {
    font-size: 10px;
  }

  .card p {
    font-size: 9px;
  }

  .card__icon {
    font-size: 20px;
    margin-bottom: 12px;
  }

  /* Chips */
  .chip {
    padding: 10px 6px;
    font-size: 8px;
  }

  /* Steps */
  .step {
    margin-bottom: 28px;
  }

  .step__title {
    font-size: 11px;
  }

  /* Buttons — full width on phone */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
    padding: 14px 20px;
    font-size: 9px;
  }

  /* Footer */
  .footer {
    padding: 28px 0;
  }

  .footer__copy {
    font-size: 7px;
  }

  /* Callout */
  .callout {
    padding: 14px 14px;
  }

  .callout__title {
    font-size: 9px;
  }

  .callout p {
    font-size: 8px;
  }

  /* Feature list — bigger text for readability */
  .feature-item {
    font-size: 9px;
    padding: 8px 0;
  }

  /* Param chips */
  .param {
    font-size: 7px;
    padding: 4px 8px;
  }
}

/* ─── Very small phones (360px) ─── */
@media (max-width: 360px) {
  .hero__title {
    font-size: 18px;
  }

  .page-hero__title {
    font-size: 16px;
  }

  .section__title {
    font-size: 12px;
  }

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

  .terminal__body {
    font-size: 5.5px;
    padding: 8px;
  }

  .nav__brand {
    font-size: 10px;
  }
}

/* ═══════════════════ CALLOUT BOX ═══════════════════ */
.callout {
  background: var(--bg-raised);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 32px;
  line-height: 2;
}

.callout--cyan {
  border-left: 3px solid var(--cyan);
}

.callout--green {
  border-left: 3px solid var(--green);
}

.callout__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.callout p {
  font-size: 9px;
  color: var(--text-secondary);
}

/* ─── Subtle animation ─── */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

.hero__badge {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ═══════════════════ ARCHITECTURE DIAGRAM ═══════════════════ */
.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 24px 12px;
}

.arch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.arch-box {
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  padding: 12px 16px;
  text-align: center;
  min-width: 120px;
  background: var(--bg-raised);
  transition: all 0.2s ease;
}

.arch-box:hover {
  transform: translateY(-2px);
}

.arch-box--cyan    { border-color: rgba(0, 229, 255, 0.3); }
.arch-box--magenta { border-color: rgba(255, 0, 170, 0.3); }
.arch-box--green   { border-color: rgba(0, 255, 136, 0.3); }

.arch-box--cyan:hover    { border-color: var(--cyan);    box-shadow: var(--glow-cyan); }
.arch-box--magenta:hover { border-color: var(--magenta); box-shadow: var(--glow-magenta); }
.arch-box--green:hover   { border-color: var(--green);   box-shadow: var(--glow-green); }

.arch-box__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.arch-box__sub {
  font-size: 7px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

.arch-arrow {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  height: 1px;
  width: 32px;
  background: var(--border-bright);
  position: relative;
}

.arch-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--text-tertiary);
}

.arch-arrow--down {
  display: block;
  height: 16px;
  width: 1px;
  margin: 0 auto;
  background: var(--border-bright);
  position: relative;
}

.arch-arrow--down-tip::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -3px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--text-tertiary);
}

.arch-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  gap: 0;
  width: 100%;
}

.arch-connector__line {
  height: 1px;
  flex: 1;
  max-width: 120px;
  background: var(--border-bright);
}

.arch-connector__vert {
  width: 1px;
  height: 20px;
  background: var(--border-bright);
}

.arch-connector__junction {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ═══════════════════ FLOW DIAGRAM ═══════════════════ */
.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 12px;
}

.flow-header {
  display: flex;
  justify-content: space-between;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.flow-header__col {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  flex: 1;
}

.flow-step {
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.flow-step__spacer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step__arrow {
  height: 1px;
  flex: 1;
  position: relative;
  margin: 0 8px;
}

.flow-step__arrow--right {
  background: linear-gradient(to right, var(--border-bright), var(--cyan));
}

.flow-step__arrow--right::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--cyan);
}

.flow-step__arrow--left {
  background: linear-gradient(to left, var(--border-bright), var(--magenta));
}

.flow-step__arrow--left::before {
  content: '';
  position: absolute;
  left: -1px;
  top: -3px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 6px solid var(--magenta);
}

.flow-step__label {
  font-size: 8px;
  color: var(--text-tertiary);
  white-space: nowrap;
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.flow-step__dot {
  width: 1px;
  height: 28px;
  background: var(--border-bright);
  flex-shrink: 0;
}

/* ═══════════════════ DIAGRAM RESPONSIVE ═══════════════════ */
@media (max-width: 768px) {
  .arch-row {
    gap: 10px;
  }

  .arch-box {
    min-width: 90px;
    padding: 10px 10px;
  }

  .arch-box__label {
    font-size: 8px;
  }

  .arch-box__sub {
    font-size: 6px;
  }

  .arch-arrow {
    font-size: 10px;
  }

  .flow-header__col {
    font-size: 8px;
  }

  .flow-step__label {
    font-size: 7px;
  }
}

@media (max-width: 480px) {
  .arch-row {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .arch-box {
    min-width: 80px;
    padding: 8px;
  }

  .arch-box__label {
    font-size: 7px;
  }

  .arch-arrow {
    font-size: 8px;
  }

  .flow-header {
    gap: 4px;
  }

  .flow-header__col {
    font-size: 7px;
  }
}
