/* ═══════════════════════════════════════════════════════════════
   RepoPatch — shared stylesheet
   static/css/styles.css
   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --ink:      #0d0f14;
  --ink2:     #161a22;
  --ink3:     #1e2430;
  --border:   #2a3040;
  --muted:    #4a5568;
  --body:     #8892a4;
  --light:    #c8d0de;
  --white:    #f0f4ff;
  --acid:     #b8ff3c;
  --acid2:    #7fff00;
  --amber:    #ffb340;
  --teal:     #2dd4bf;
  --red:      #ff4d6d;
  --glow:     rgba(184,255,60,0.12);
  --glow-lg:  rgba(184,255,60,0.07);

  --font-mono:  'Space Mono', monospace;
  --font-serif: 'DM Serif Display', serif;
  --font-sans:  'DM Sans', sans-serif;

  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  8px;
  --radius-xl:  12px;
  --radius-pill: 2rem;

  --shadow-glow: 0 8px 30px rgba(184,255,60,0.25);
  --shadow-deep: 0 24px 80px rgba(0,0,0,0.5);

  --nav-h: 64px;
  --page-pad: 5vw;
  --content-max: 1200px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── BASE ─── */
body {
  background: var(--ink);
  color: var(--light);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── ATMOSPHERIC OVERLAYS ─── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
}

/* All page content above overlays */
nav, header, main, section, footer, aside { position: relative; z-index: 1; }


/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(13,15,20,0.88);
  position: sticky; top: 0; z-index: 200;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--acid); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--body);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active { color: var(--acid); }

/* dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.65rem;
  opacity: 0.6;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  background: var(--ink2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: var(--shadow-deep);
  list-style: none;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--body);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu li a:hover {
  background: var(--ink3);
  color: var(--white);
}
.nav-dropdown-menu .menu-icon { font-size: 1rem; }

.nav-cta {
  background: var(--acid);
  color: var(--ink);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--acid2); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--light);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--ink2);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem var(--page-pad);
  position: relative; z-index: 199;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--body);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--white); }


/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
}

h1 { font-size: clamp(2.8rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1rem; }

h1 em, h2 em, h3 em { font-style: italic; color: var(--acid); }

p { color: var(--body); line-height: 1.75; }

strong { color: var(--light); font-weight: 500; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--ink3);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: var(--teal);
}

a { color: var(--acid); text-decoration: none; }
a:hover { text-decoration: underline; }


/* ═══════════════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.section {
  padding: 5.5rem var(--page-pad);
}
.section--alt {
  background: var(--ink2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--tight { padding: 3rem var(--page-pad); }

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--acid);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 20ch;
  margin-bottom: 1.1rem;
}

.section-body {
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--body);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.wrap { flex-wrap: wrap; }

.text-center { text-align: center; }
.text-mono { font-family: var(--font-mono); }
.text-muted { color: var(--muted); }
.text-acid  { color: var(--acid); }
.text-amber { color: var(--amber); }
.text-teal  { color: var(--teal); }
.text-red   { color: var(--red); }
.text-white { color: var(--white); }
.text-sm    { font-size: 0.85rem; }
.text-xs    { font-size: 0.75rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }


/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-sm  { padding: 0.45rem 1rem;  font-size: 0.75rem; }
.btn-md  { padding: 0.75rem 1.5rem; font-size: 0.85rem; }
.btn-lg  { padding: 0.9rem 2.2rem;  font-size: 0.9rem; }
.btn-xl  { padding: 1.1rem 2.8rem;  font-size: 0.95rem; }

.btn-primary {
  background: var(--acid);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--acid2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
}
.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  background: transparent;
  color: var(--light);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--acid);
  color: var(--acid);
  background: var(--glow);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--acid);
  border: 1px solid rgba(184,255,60,0.3);
}
.btn-ghost:hover {
  background: var(--glow);
  border-color: var(--acid);
  text-decoration: none;
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}


/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */
.card {
  background: var(--ink2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: rgba(184,255,60,0.28);
  transform: translateY(-3px);
}
.card--flat { transition: none; }
.card--flat:hover { transform: none; }

.card-icon {
  width: 42px; height: 42px;
  background: var(--glow);
  border: 1px solid rgba(184,255,60,0.22);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.card-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}
.card-body {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════
   BADGES & TAGS
   ═══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}
.badge-acid   { background: var(--glow);         border: 1px solid rgba(184,255,60,0.3); color: var(--acid); }
.badge-amber  { background: rgba(255,179,64,0.1); border: 1px solid rgba(255,179,64,0.3); color: var(--amber); }
.badge-teal   { background: rgba(45,212,191,0.1); border: 1px solid rgba(45,212,191,0.3); color: var(--teal); }
.badge-red    { background: rgba(255,77,109,0.1); border: 1px solid rgba(255,77,109,0.3); color: var(--red); }
.badge-muted  { background: var(--ink3);           border: 1px solid var(--border);         color: var(--muted); }

.badge .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.badge .dot-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: pulse 2s infinite;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: var(--glow);
  border: 1px solid rgba(184,255,60,0.2);
  color: var(--acid);
  letter-spacing: 0.06em;
}


/* ═══════════════════════════════════════════════════════════════
   TERMINAL / CODE BLOCKS
   ═══════════════════════════════════════════════════════════════ */
.terminal {
  background: var(--ink2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(184,255,60,0.04);
}
.terminal-bar {
  background: var(--ink3);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.terminal-title {
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.terminal-dot-r { background: #ff5f57; }
.terminal-dot-y { background: #febc2e; }
.terminal-dot-g { background: #28c840; }
.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  line-height: 1.9;
}
.t-line   { display: block; }
.t-prompt { color: var(--muted); }
.t-cmd    { color: var(--white); }
.t-comment{ color: var(--muted); }
.t-ok     { color: var(--acid); }
.t-warn   { color: var(--amber); }
.t-label  { color: var(--teal); }
.t-error  { color: var(--red); }
.t-dim    { color: var(--body); }
.t-path   { color: var(--teal); }
.t-kw     { color: var(--amber); }
.t-new    { color: var(--acid); }
.t-old    { color: var(--red); }

.cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--acid);
  margin-left: 2px;
  animation: blink 1.1s step-end infinite;
  vertical-align: middle;
}

.code-block {
  background: var(--ink2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--acid);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.75rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 2;
  color: var(--body);
  overflow-x: auto;
}
.code-block pre { margin: 0; white-space: pre; }
.code-block .kw   { color: var(--amber); }
.code-block .path { color: var(--teal); }
.code-block .new  { color: var(--acid); }
.code-block .old  { color: var(--red); }
.code-block .cmt  { color: var(--muted); }
.code-block .sep  { color: var(--muted); }

/* line-numbered code */
.code-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.85; }
.code-table td:first-child {
  width: 3rem;
  text-align: right;
  padding-right: 1.5rem;
  color: var(--muted);
  user-select: none;
  border-right: 1px solid var(--border);
}
.code-table td:last-child { padding-left: 1.5rem; white-space: pre; }
.code-table tr:hover td { background: rgba(255,255,255,0.02); }


/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--page-pad) 4rem;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-lg) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}

/* page hero (inner pages) */
.page-hero {
  padding: 4rem var(--page-pad) 3.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-lg) 0%, transparent 70%);
  top: -150px; right: -100px;
  pointer-events: none;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--acid); text-decoration: none; }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--acid); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--acid);
  margin-bottom: 2rem;
  width: fit-content;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
  animation: pulse 2s infinite;
}


/* ═══════════════════════════════════════════════════════════════
   PIPELINE
   ═══════════════════════════════════════════════════════════════ */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pipeline-step {
  background: var(--ink2);
  padding: 2rem 1.75rem;
  position: relative;
  transition: background 0.2s;
}
.pipeline-step:hover { background: var(--ink3); }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}
.step-icon { font-size: 1.6rem; margin-bottom: 0.75rem; display: block; }
.step-name {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}
.step-desc { font-size: 0.84rem; color: var(--body); line-height: 1.55; }
.step-arrow {
  position: absolute; right: -12px; top: 50%;
  transform: translateY(-50%); z-index: 2;
  background: var(--ink2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--acid);
}
.pipeline-step:last-child .step-arrow { display: none; }


/* ═══════════════════════════════════════════════════════════════
   DOC CARDS (sidebar / listing)
   ═══════════════════════════════════════════════════════════════ */
.doc-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--ink2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  color: inherit;
}
.doc-card:hover {
  border-color: rgba(184,255,60,0.3);
  background: var(--ink3);
  text-decoration: none;
}
.doc-card-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.doc-card-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.doc-card-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.doc-card .tag { margin-left: auto; flex-shrink: 0; align-self: flex-start; }


/* ═══════════════════════════════════════════════════════════════
   STATS STRIP
   ═══════════════════════════════════════════════════════════════ */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem var(--page-pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--acid);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  display: block;
}


/* ═══════════════════════════════════════════════════════════════
   DIAGNOSTIC TILES
   ═══════════════════════════════════════════════════════════════ */
.tile {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.84rem;
  border: 1px solid;
}
.tile-warn  { background: rgba(255,179,64,0.07); border-color: rgba(255,179,64,0.3); }
.tile-error { background: rgba(255,77,109,0.07);  border-color: rgba(255,77,109,0.3); }
.tile-ok    { background: rgba(184,255,60,0.07);  border-color: rgba(184,255,60,0.25); }
.tile-info  { background: rgba(45,212,191,0.07);  border-color: rgba(45,212,191,0.25); }
.tile-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.tile-warn  .tile-code { color: var(--amber); }
.tile-error .tile-code { color: var(--red); }
.tile-ok    .tile-code { color: var(--acid); }
.tile-info  .tile-code { color: var(--teal); }
.tile-msg { color: var(--body); }
.tile-msg strong { color: var(--light); }


/* ═══════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════ */
.rp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.rp-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.rp-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  vertical-align: top;
}
.rp-table td:first-child { color: var(--white); font-family: var(--font-mono); font-size: 0.82rem; }
.rp-table tr:last-child td { border-bottom: none; }
.rp-table tr:hover td { background: rgba(255,255,255,0.02); }


/* ═══════════════════════════════════════════════════════════════
   RULE / INFO BOXES
   ═══════════════════════════════════════════════════════════════ */
.info-box {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  line-height: 1.65;
}
.info-box--acid  { background: var(--glow);              border: 1px solid rgba(184,255,60,0.22); }
.info-box--amber { background: rgba(255,179,64,0.08);    border: 1px solid rgba(255,179,64,0.25); }
.info-box--teal  { background: rgba(45,212,191,0.08);    border: 1px solid rgba(45,212,191,0.25); }
.info-box--ink   { background: var(--ink3);               border: 1px solid var(--border); }
.info-box-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.info-box--acid  .info-box-label { color: var(--acid); }
.info-box--amber .info-box-label { color: var(--amber); }
.info-box--teal  .info-box-label { color: var(--teal); }
.info-box--ink   .info-box-label { color: var(--muted); }
.info-box ul { list-style: none; color: var(--body); }
.info-box ul li::before { content: '→ '; color: var(--acid); }
.info-box ul li { margin-bottom: 0.3rem; }


/* ═══════════════════════════════════════════════════════════════
   SESSION PILL
   ═══════════════════════════════════════════════════════════════ */
.session-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--body);
}
.session-pill .timer { color: var(--amber); font-weight: 700; }
.session-pill .dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s infinite;
}


/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════ */
.cta-section {
  margin: 2rem var(--page-pad) 5rem;
  background: var(--ink2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 5rem var(--page-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,255,60,0.07) 0%, transparent 70%);
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-section h2 { margin-bottom: 1rem; position: relative; }
.cta-section > p { max-width: 50ch; margin: 0 auto 2.5rem; position: relative; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  position: relative;
}


/* ═══════════════════════════════════════════════════════════════
   DOCS SIDEBAR LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
  padding: 3.5rem var(--page-pad) 6rem;
  max-width: calc(var(--content-max) + 2 * var(--page-pad));
  margin: 0 auto;
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.docs-sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: block;
}
.docs-nav { list-style: none; }
.docs-nav li { margin-bottom: 0.2rem; }
.docs-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--body);
  text-decoration: none;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.docs-nav a:hover { color: var(--white); background: var(--ink3); }
.docs-nav a.active { color: var(--acid); border-left-color: var(--acid); background: var(--glow); }
.docs-nav .nav-section {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1rem 0.75rem 0.35rem;
  display: block;
}

.docs-content h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.docs-content h2:first-child { padding-top: 0; margin-top: 0; border-top: none; }
.docs-content h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--light);
}
.docs-content p { margin-bottom: 1rem; }
.docs-content ul, .docs-content ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: var(--body);
  font-size: 0.9rem;
  line-height: 1.75;
}
.docs-content li { margin-bottom: 0.25rem; }


/* ═══════════════════════════════════════════════════════════════
   UAT / CHECKLIST
   ═══════════════════════════════════════════════════════════════ */
.uat-scenario {
  background: var(--ink2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.uat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.uat-header:hover { background: var(--ink3); }
.uat-id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--acid);
  font-weight: 700;
  flex-shrink: 0;
  min-width: 4.5rem;
}
.uat-title { font-size: 0.9rem; color: var(--white); flex: 1; }
.uat-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  flex-shrink: 0;
}
.uat-status--pending { background: var(--ink3); border: 1px solid var(--border); color: var(--muted); }
.uat-status--pass    { background: rgba(184,255,60,0.1); border: 1px solid rgba(184,255,60,0.3); color: var(--acid); }
.uat-status--fail    { background: rgba(255,77,109,0.1); border: 1px solid rgba(255,77,109,0.3); color: var(--red); }
.uat-chevron { color: var(--muted); transition: transform 0.2s; margin-left: auto; flex-shrink: 0; }
.uat-scenario.open .uat-chevron { transform: rotate(180deg); }
.uat-body { display: none; padding: 0 1.5rem 1.5rem; border-top: 1px solid var(--border); }
.uat-scenario.open .uat-body { display: block; }
.uat-steps { list-style: none; margin-top: 1rem; }
.uat-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--body);
}
.uat-steps li:last-child { border-bottom: none; }
.uat-step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 2px;
  min-width: 1.5rem;
}
.uat-check {
  width: 16px; height: 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--ink3);
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: transparent;
  margin-top: 2px;
}
.uat-check.checked {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  text-decoration: none;
}
.footer-logo span { color: var(--acid); }
.footer-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--light); }
.footer-copy { font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); }


/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }


/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.anim-fade-up       { animation: fadeUp 0.6s ease both; }
.anim-fade-up-d1    { animation: fadeUp 0.6s ease 0.1s both; }
.anim-fade-up-d2    { animation: fadeUp 0.6s ease 0.2s both; }
.anim-fade-up-d3    { animation: fadeUp 0.6s ease 0.3s both; }
.anim-fade-up-d4    { animation: fadeUp 0.6s ease 0.4s both; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --page-pad: 1.25rem; }
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: block; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .pipeline-step .step-arrow { display: none; }
  .cta-section { margin: 1rem var(--page-pad) 3rem; padding: 3rem 1.5rem; }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
}
