/* ══════════════════════════════════════════════════════
   /how-we-use-ai — standalone dark page
   Colors: deep navy bg, #EB5444 accent, #fff text
   Fonts: Hanken Grotesk + Open Sans + JetBrains Mono
   ══════════════════════════════════════════════════════ */

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

:root {
  --blue:   #00196C;
  --red:    #EB5444;
  --bg:     #050d26;
  --white:  #ffffff;
  --muted:  rgba(255, 255, 255, 0.45);
  --faint:  rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.04);
  --max-w:  1220px;
  --mono:   'JetBrains Mono', monospace;
  --display: 'Hanken Grotesk', sans-serif;
  --body:   'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ───────────────────────────────────────── */

.arch-nav {
  background: rgba(0, 9, 40, 0.95);
  border-bottom: 1px solid rgba(235, 84, 68, 0.15);
  padding: 0 2.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.arch-nav__logo {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
}
.arch-nav__logo span { color: var(--red); }

.arch-nav__links {
  display: flex;
  gap: 2rem;
  flex: 1;
}

.arch-nav__link {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.arch-nav__link:hover,
.arch-nav__link.active { color: var(--red); }

.arch-nav__back {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s;
  white-space: nowrap;
}
.arch-nav__back:hover { color: rgba(255, 255, 255, 0.6); }

/* ── HERO ──────────────────────────────────────── */

.arch-hero-shell {
  background: linear-gradient(135deg, var(--bg) 0%, var(--blue) 100%);
}

.arch-hero {
  padding: 5rem 2.5rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.arch-breadcrumb {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.arch-breadcrumb span { color: var(--red); }

.arch-h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.arch-h1 .dim { color: var(--muted); }
.arch-h1 .red { color: var(--red); }

.arch-hero__sub {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* Terminal */
.arch-terminal {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(235, 84, 68, 0.2);
  border-radius: 8px;
  max-width: 640px;
  overflow: hidden;
}

.arch-terminal__header {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #333;
}
.t-dot--r { background: #ff5f56; }
.t-dot--y { background: #ffbd2e; }
.t-dot--g { background: #27c93f; }

.arch-terminal__title {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.25);
  margin-left: 0.4rem;
  letter-spacing: 0.1em;
}

.arch-terminal__body {
  padding: 1.25rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
}

.t-prompt { color: var(--red); }
.t-query  { color: var(--white); }
.t-resp   { color: rgba(255, 255, 255, 0.35); padding-left: 1.25rem; display: block; }
.t-resp strong { color: rgba(255, 255, 255, 0.65); font-weight: 400; }
.t-progress { color: rgba(235, 84, 68, 0.6); }
.t-cursor-line { margin-top: 0.25rem; }

.t-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--red);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── STATS ─────────────────────────────────────── */

.arch-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 9, 40, 0.5);
}

.arch-stat {
  padding: 1.75rem 2.5rem;
  border-right: 1px solid var(--border);
}
.arch-stat:last-child { border-right: none; }

.arch-stat__num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.arch-stat__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── SECTION SHARED ────────────────────────────── */

.arch-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.arch-section-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.arch-section-label::before {
  content: '//';
  color: rgba(235, 84, 68, 0.35);
}

/* ── PIPELINE ──────────────────────────────────── */

.pipeline-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
}

.pipeline-step {
  flex: 1;
  background: rgba(0, 25, 108, 0.25);
  border: 1px solid rgba(0, 25, 108, 0.6);
  border-radius: 8px;
  padding: 1.1rem;
  min-width: 0;
}

.pipeline-step__num {
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--red);
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.pipeline-step__name {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.pipeline-step__desc {
  font-family: var(--body);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.4;
}

.pipeline-arrow {
  padding: 0 0.5rem;
  color: rgba(235, 84, 68, 0.4);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  align-self: center;
}

/* ── KNOWLEDGE BASE ────────────────────────────── */

.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.kb-item {
  background: rgba(0, 25, 108, 0.15);
  border: 1px solid rgba(0, 25, 108, 0.4);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kb-item__count {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  min-width: 44px;
  flex-shrink: 0;
}

.kb-item__name {
  font-family: var(--body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── MANIFESTO ─────────────────────────────────── */

.arch-manifesto {
  border-left: 3px solid var(--red);
  background: rgba(235, 84, 68, 0.04);
  padding: 3rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.arch-manifesto__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.arch-quote {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  max-width: 640px;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.arch-quote .red { color: var(--red); }

.arch-quote-body {
  font-family: var(--body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 560px;
  line-height: 1.75;
}

/* ── CTA ───────────────────────────────────────── */

.arch-cta {
  background: rgba(0, 9, 40, 0.5);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.arch-cta__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.arch-cta__btn {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s;
}
.arch-cta__btn:hover { background: #d94333; }

.arch-cta__link {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s;
}
.arch-cta__link:hover { color: rgba(255, 255, 255, 0.5); }

/* ── RESPONSIVE ────────────────────────────────── */

@media (max-width: 900px) {
  .arch-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .arch-stat:nth-child(2) { border-right: none; }
  .arch-stat:nth-child(3) { border-right: 1px solid var(--border); }

  .pipeline-steps {
    flex-direction: column;
    gap: 0.5rem;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
    padding: 0;
    justify-content: center;
  }

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

@media (max-width: 640px) {
  .arch-nav__links { display: none; }
  .arch-stats { grid-template-columns: repeat(2, 1fr); }
  .kb-grid { grid-template-columns: 1fr; }
  .arch-h1 { font-size: 2rem; }
}
