/* css/about.css — Modern About Us & Architecture Page Styling */
:root {
  --bg-primary: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #19243c;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  /* Indigo used AS TEXT: #6366f1 is 4.29:1 on --bg-primary. */
  --indigo-text: #818cf8;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.about-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

/* ── Top Header Bar ──────────────────────────────────────────────────────── */
.about-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
}
.about-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.about-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.about-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.about-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.about-nav-link:hover {
  color: var(--text-main);
}
.about-nav-btn {
  background: linear-gradient(135deg, #4f46e5, #2563eb); /* M621 */
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.about-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5);
}

/* ── Hero Section ────────────────────────────────────────────────────────── */
.about-hero {
  text-align: center;
  padding: 2rem 1rem 4rem;
  position: relative;
}
/* M643: about.html does not load shared.css, so the DS pill recipe never
   reaches this badge — keep its own recipe here. */
.about-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--indigo-text);
  margin-bottom: 1.5rem;
}
.about-hero-badge { margin-bottom:1.5rem; }
.about-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.5rem;
}
.about-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.hero-stat-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Architecture Diagram Styles ─────────────────────────────────────────── */
.about-section {
  margin-top: 4.5rem;
}
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--indigo-text);
  margin-bottom: 0.4rem;
  display: block;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

.arch-diagram-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.arch-diagram-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #6366f1, #3b82f6, #10b981, #a855f7);
}

.diagram-svg-wrap {
  width: 100%;
  overflow-x: auto;
  text-align: center;
}
.diagram-svg {
  max-width: 100%;
  height: auto;
  min-width: 720px;
}

/* ── Bento Grid for Technology & Systems ──────────────────────────────────── */
.about-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); /* M639 */
  gap: 1.5rem;
  margin-top: 2rem;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
}
.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--text-main);
}
.bento-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  flex-grow: 1;
}
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.bento-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: #cbd5e1;
}

/* ── Timeline & PR Milestones ────────────────────────────────────────────── */
.timeline-wrap {
  position: relative;
  max-width: 860px;
  margin: 2.5rem auto 0;
  padding-left: 2rem;
  border-left: 2px solid rgba(99, 102, 241, 0.3);
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 0.2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-indigo);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}
.timeline-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--indigo-text);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}
.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.timeline-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}
.timeline-prs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pr-chip { font-family:monospace; }

/* ── Interactive Companion Audition Widget ───────────────────────────────── */
.companion-showcase-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 3rem;
}
.companion-avatar-stage {
  width: 130px;
  height: 130px;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.companion-avatar-stage:hover {
  transform: scale(1.08) rotate(3deg);
}
.companion-speech-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem 1.75rem;
  border-radius: 16px;
  font-size: 1.05rem;
  font-style: italic;
  max-width: 580px;
  margin-bottom: 1.5rem;
  position: relative;
}
.companion-audition-btn {
  background: linear-gradient(135deg, #047857, #065f46); /* M621 */
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.companion-audition-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.about-footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.about-footer a {
  color: var(--text-main);
  text-decoration: none;
}
.about-footer a:hover {
  text-decoration: underline;
}

/* ── KPI Metrics Bar & Technical Matrices ────────────────────────────────── */
.about-metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.metric-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.metric-val {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.15;
}
.metric-lbl {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.about-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-top: 1.75rem;
}
.about-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}
.about-table th,
.about-table td {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
}
.about-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--indigo-text);
  background: rgba(99, 102, 241, 0.06);
  font-weight: 700;
}
.about-table tr:last-child td {
  border-bottom: none;
}
.about-table code {
  background: rgba(255, 255, 255, 0.07);
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  font-size: 0.82rem;
}

.pipeline-steps-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.pipeline-step-box {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
}
.pipeline-step-num {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--indigo-text);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.3rem;
}
.pipeline-step-box h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--text-main);
}
.pipeline-step-box p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

[data-theme="light"] .bento-tag { color: #475569; }
[data-theme="light"] .pr-chip { color: #3730a3; }
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: rgba(15, 23, 42, 0.1);
  --text-main: #0f172a;
  --text-muted: #475569;
  --indigo-text: #4338ca;
}

@media (max-width: 768px) {
  .about-nav-links { display: none; }
  .about-hero-title { font-size: 2.2rem; }
  .arch-diagram-card { padding: 1.5rem 1rem; }
  .timeline-wrap { padding-left: 1.5rem; }
}

/* M643: about.html does not load shared.css — keep the page-local chip recipe. */
.pr-chip {
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
