/* =========================================================
   ashutosh-vijay.dev — Shared Design System
   =========================================================
   Single source of truth for all sub-sites.
   Import via: <link rel="stylesheet" href="/shared.css">
   ========================================================= */

/* ---------------------------------------------------------
   VARIABLES & RESET
   --------------------------------------------------------- */
:root {
  --bg:           #0a0a0a;
  --bg-card:      #111111;
  --border:       #1e2433;
  --border-dim:   #131820;
  --accent:       #3b82f6;
  --accent-dim:   rgba(59, 130, 246, 0.12);
  --accent-glow:  rgba(59, 130, 246, 0.25);
  --text:         #e2e8f0;
  --text-muted:   #64748b;
  --text-dim:     #6b7280; /* fixed: was #2d3748, now passes WCAG AA */
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Noise texture — decorative grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }
code { font-family: var(--font-mono); }

/* ---------------------------------------------------------
   SPOTLIGHT — mouse-follow radial glow
   --------------------------------------------------------- */
#spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    700px circle at var(--mx, 50%) var(--my, 50%),
    rgba(59, 130, 246, 0.045),
    transparent 60%
  );
}

/* ---------------------------------------------------------
   KEYFRAMES
   --------------------------------------------------------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gradient-border {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

@keyframes shimmer-line {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

@keyframes scan {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX( 110%); }
}

/* ---------------------------------------------------------
   SCROLL REVEAL
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.42s; }

/* ---------------------------------------------------------
   LAYOUT
   --------------------------------------------------------- */
.wrap       { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wrap-wide  { max-width: 1300px; margin: 0 auto; padding: 0 32px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

/* ---------------------------------------------------------
   TYPOGRAPHY HELPERS
   --------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow-accent { color: var(--accent); }

.accent { color: var(--accent); }

/* Section label with animated scan line */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.scan-line {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  animation: scan 2.2s linear infinite;
  pointer-events: none;
}

.scan-track {
  display: inline-block;
  width: 80px;
  height: 1px;
  background: var(--border-dim);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ---------------------------------------------------------
   SECTION SEPARATOR
   --------------------------------------------------------- */
.sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 25%, var(--border) 75%, transparent);
}

/* ---------------------------------------------------------
   SITE NAV (sub-site nav bar)
   --------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
  padding: 11px 0;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.nav-brand b { color: #fff; font-weight: 500; }
.nav-back { color: var(--text-dim); transition: color 0.2s; }
.nav-back:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------------------------------------------------------
   BADGES
   --------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.badge-live {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
}
.badge-archived {
  background: rgba(100, 116, 139, 0.1);
  border: 1px solid rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
}
.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge-live .badge-dot { animation: blink-dot 2s ease infinite; }

/* ---------------------------------------------------------
   BUTTONS — standardized (was .cta-btn, .proj-link, etc.)
   --------------------------------------------------------- */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-ghost svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-primary svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-primary:hover { background: rgba(59, 130, 246, 0.22); }

/* Nav inline link (smaller) */
.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------
   HERO SECTION (sub-site hero — left-aligned)
   --------------------------------------------------------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind the heading */
.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: -10%;
  width: 70%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up 0.55s ease 0.15s forwards;
}

.hero-name {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 20px;
  opacity: 0;
  animation: fade-up 0.55s ease 0.35s forwards;
}
.hero-name .dim { color: var(--accent); }
.hero-name .dot { color: var(--accent); }

.hero-desc {
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 36px;
  opacity: 0;
  animation: fade-up 0.55s ease 0.55s forwards;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  opacity: 0;
  animation: fade-up 0.55s ease 0.72s forwards;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  opacity: 0;
  animation: fade-up 0.55s ease 0.88s forwards;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.hero-pill .badge-dot { width: 4px; height: 4px; }

/* Scroll hint — bottom left */
.scroll-hint {
  position: absolute;
  bottom: 44px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 3;
  opacity: 0;
  animation: fade-up 0.55s ease 1.1s forwards;
}
.scroll-hint-line {
  width: 36px;
  height: 1px;
  background: var(--text-dim);
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: shimmer-line 2.2s ease infinite;
}

/* ---------------------------------------------------------
   PROJECT SECTIONS (portfolio page)
   --------------------------------------------------------- */
.proj {
  position: relative;
  padding: 0 0 120px;
}

.proj-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
  padding: 11px 0;
  margin-bottom: 80px;
}

.proj-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proj-sticky-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.proj-sticky-name b { color: #fff; font-weight: 500; margin-left: 2px; }
.proj-sticky-num {
  color: var(--accent);
  margin-right: 8px;
}

.proj-sticky-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Project header */
.proj-header { margin-bottom: 52px; }

.proj-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.proj-name {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.05;
}

.proj-tagline {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Tech stack tags */
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 0;
}

.tag {
  flex-shrink: 0;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.015);
  letter-spacing: 0.02em;
}

/* Project link buttons (legacy compat) */
.proj-links { display: flex; gap: 10px; flex-wrap: wrap; }
/* .proj-link aliased at end of file */

/* ---------------------------------------------------------
   SCREENSHOT FRAMES
   --------------------------------------------------------- */
.frame {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0e12;
}
.frame::before {
  content: '';
  display: block;
  height: 30px;
  background: #101318;
  border-bottom: 1px solid var(--border-dim);
  flex-shrink: 0;
}
.frame::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2d3748;
  box-shadow: 14px 0 0 #2d3748, 28px 0 0 #2d3748;
}
.frame img { width: 100%; display: block; }

/* Hero frame — animated gradient border */
.frame-hero {
  position: relative;
  border-radius: 11px;
  padding: 1.5px;
  background: linear-gradient(135deg,
    rgba(59,130,246,0.7) 0%,
    rgba(59,130,246,0.05) 40%,
    rgba(59,130,246,0.7) 100%
  );
  background-size: 300% 300%;
  animation: gradient-border 5s ease infinite;
}
.frame-hero-inner {
  border-radius: 10px;
  overflow: hidden;
  background: #0c0e12;
}
.frame-hero-inner::before {
  content: '';
  display: block;
  height: 30px;
  background: #101318;
  border-bottom: 1px solid var(--border-dim);
}
.frame-hero-inner::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2d3748;
  box-shadow: 14px 0 0 #2d3748, 28px 0 0 #2d3748;
}
.frame-hero-inner img { width: 100%; display: block; }

.ss-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ss-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* ---------------------------------------------------------
   BENTO GRID
   --------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bento-2 { grid-template-columns: repeat(2, 1fr); }

.bc {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 7px;
  padding: 20px;
  transition: border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.bc:hover { border-color: var(--border); }
.bc-no-scan { overflow: visible; }
.bc-span2 { grid-column: span 2; }
.bc-span3 { grid-column: span 3; }

/* Glass variant */
.bc-glass {
  background: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.14);
  backdrop-filter: blur(10px);
}
.bc-glass:hover { border-color: rgba(59, 130, 246, 0.28); }

.bc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.bc-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.bc-body {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
}
.bc-body code {
  font-size: 11.5px;
  color: var(--accent);
  background: rgba(59,130,246,0.08);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Stat card variant */
.bc-stat {
  text-align: center;
  padding: 18px;
}
.bc-stat .n {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.bc-stat .l {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   PROSE / EXPLANATION BLOCKS
   --------------------------------------------------------- */
.prose p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.prose p:last-child { margin-bottom: 0; }
.prose code { font-size: 13px; color: var(--accent); }
.prose strong { color: var(--text); font-weight: 500; }

/* ---------------------------------------------------------
   FLOW STEPS
   --------------------------------------------------------- */
.flow { display: flex; flex-direction: column; }

.flow-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-dim);
}
.flow-step:last-child { border-bottom: none; }

.flow-num {
  width: 26px; height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.flow-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}
.flow-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
}
.flow-desc code { font-size: 11.5px; color: var(--accent); }

/* ---------------------------------------------------------
   CODE BLOCKS (Prism override)
   --------------------------------------------------------- */
.code-wrap { margin-bottom: 12px; }

.code-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #0f1117;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 7px 14px;
}

.code-wrap pre[class*="language-"] {
  margin: 0 !important;
  border-radius: 0 0 6px 6px !important;
  border: 1px solid var(--border) !important;
  background: #0a0d12 !important;
  font-size: 12.5px !important;
  font-family: var(--font-mono) !important;
  tab-size: 2;
}

.token.comment { color: #374151 !important; }
.token.string   { color: #86efac !important; }
.token.number   { color: #fbbf24 !important; }
.token.keyword  { color: #93c5fd !important; }
.token.function { color: #e2e8f0 !important; }
.token.class-name { color: #67e8f9 !important; }
.token.decorator { color: #a78bfa !important; }

/* ---------------------------------------------------------
   ENCRYPTION DIAGRAM
   --------------------------------------------------------- */
.enc-diagram {
  background: #0a0d12;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2.1;
  color: var(--text-muted);
}
.enc-diagram .clr-key    { color: #22c55e; }
.enc-diagram .clr-server { color: #f87171; }
.enc-diagram .clr-client { color: var(--accent); }
.enc-diagram .clr-dim    { color: var(--text-dim); }
.enc-diagram .enc-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

/* ---------------------------------------------------------
   ARCHITECTURE DIAGRAM
   --------------------------------------------------------- */
.arch-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #060a0f;
  padding: 6px;
  margin-bottom: 60px;
}
.arch-wrap img { width: 100%; display: block; border-radius: 4px; }

/* ---------------------------------------------------------
   TIER TABLE
   --------------------------------------------------------- */
.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 14px;
}
.tier-table th {
  text-align: left;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.tier-table td {
  padding: 10px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-dim);
  vertical-align: top;
}
.tier-table tr:last-child td { border-bottom: none; }
.tier-table td:first-child { font-family: var(--font-mono); font-size: 11.5px; }
.tier-table .y { color: var(--accent); }

/* ---------------------------------------------------------
   RELEASE PIPELINE STRIP
   --------------------------------------------------------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 52px;
}
.pipeline-step {
  background: var(--bg-card);
  padding: 20px;
}
.pipeline-step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  margin-bottom: 8px;
}
.pipeline-step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.pipeline-step-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
}
.pipeline-step-desc code { font-size: 11px; color: var(--accent); }

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border-dim);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.footer-links { display: flex; gap: 20px; }
.footer-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .three-col { grid-template-columns: 1fr 1fr; gap: 14px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bc-span3 { grid-column: span 2; }
  .pipeline { grid-template-columns: 1fr; }
  .ss-grid-3 { grid-template-columns: 1fr 1fr; }
  .scroll-hint { display: none; }
  .hero-inner { max-width: 100%; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bc-span2, .bc-span3 { grid-column: span 1; }
  .bento-2 { grid-template-columns: 1fr; }
  .ss-grid-2 { grid-template-columns: 1fr; }
  .ss-grid-3 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .three-col { grid-template-columns: 1fr; }
  .nav-links { gap: 6px; }
}

/* ---------------------------------------------------------
   ACCESSIBILITY: respect motion preferences
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------
   SUB-SITE NAV (original class names)
   --------------------------------------------------------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-dim);
  padding: 11px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.nav-back { color: var(--text-dim); transition: color 0.2s; }
.nav-back:hover { color: var(--accent); }
.nav-sep { color: var(--text-dim); margin: 0 2px; }
.nav-title { color: #fff; font-weight: 500; }
.nav-title span { color: var(--text-dim); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
  margin-left: 8px;
}
.nav-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: blink-dot 2s ease infinite;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  transition: background 0.2s;
}
.nav-cta:hover { background: rgba(59,130,246,0.22); }
.nav-cta svg { width: 11px; height: 11px; flex-shrink: 0; }

/* ---------------------------------------------------------
   SUB-SITE HERO (original class names — aliases)
   --------------------------------------------------------- */
#hero, .hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
#hero::after, .hero::after {
  content: '';
  position: absolute;
  top: 30%; left: -10%;
  width: 70%; height: 60%;
  background: radial-gradient(ellipse, rgba(59,130,246,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 3;
  padding: 120px 52px 100px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fade-up 0.55s ease 0.15s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.hero-name, .hero-title {
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 22px;
  opacity: 0;
  animation: fade-up 0.55s ease 0.3s forwards;
}
.hero-name .qs,
.hero-name .dim,
.hero-title .qs,
.hero-title .dim { color: var(--text-dim); }
.hero-tagline, .hero-sub {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 36px;
  opacity: 0;
  animation: fade-up 0.55s ease 0.48s forwards;
}
.hero-ctas, .hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.55s ease 0.62s forwards;
}
.hero-right {
  opacity: 0;
  animation: fade-up 0.7s ease 0.5s forwards;
}

/* CTA button aliases (original sub-site names) */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  transition: background 0.2s, border-color 0.2s;
}
.cta-primary:hover { background: rgba(59,130,246,0.22); }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cta-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.cta-primary svg, .cta-secondary svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Aliases used by PincodeDB and DataWeave */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cta-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.cta-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.cta-btn-primary {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.cta-btn-primary:hover { background: rgba(59,130,246,0.22); }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cta-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.cta-ghost svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Hero stat pills */
.hero-stats {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.55s ease 0.76s forwards;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}
.hero-stat-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22c55e;
  animation: blink-dot 2s ease infinite;
}

/* PincodeDB hero stats */
.hero-stat-item {
  font-family: var(--font-mono);
  padding: 0 10px;
}
.hero-stat-item .n {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-item .l {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* DataWeave stats row */
.stats-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-dim);
  padding: 40px 52px;
  gap: 20px;
  flex-wrap: wrap;
}
.stat {
  position: relative;
  flex: 1;
  min-width: 140px;
}
.stat-num {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num em { font-style: normal; color: var(--accent); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* DataWeave hero bottom & preview */
.hero-bottom {
  position: absolute;
  bottom: 40px; left: 52px; right: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 3;
  opacity: 0;
  animation: fade-up 0.55s ease 1s forwards;
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-ver {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.hero-ver span { color: var(--accent); }
.preview-wrap {
  margin-top: 80px;
  padding: 0 52px;
  position: relative;
  z-index: 3;
  opacity: 0;
  animation: fade-up 0.7s ease 0.9s forwards;
}
.preview-chrome {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 50px 140px rgba(0,0,0,0.75);
}
.preview-bar {
  background: var(--bg-card);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-dim);
}
.preview-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-bar .dot.r { background: #ef4444; }
.preview-bar .dot.y { background: #f59e0b; }
.preview-bar .dot.g { background: #22c55e; }
.preview-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-left: auto;
  margin-right: auto;
}
.preview-chrome img { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------
   STICKY BAR (sub-site secondary nav)
   --------------------------------------------------------- */
.sticky-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-dim);
  padding: 11px 0;
}
.sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sticky-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sticky-name strong { color: #fff; font-weight: 500; }
.sticky-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sticky-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.sticky-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------
   BENTO 4-COLUMN VARIANT
   --------------------------------------------------------- */
.bento-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------------------------------
   VAPORIZED SCREEN MOCK (QuickSync)
   --------------------------------------------------------- */
.vaporized-mock {
  background: #0a0d12;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 32px 20px;
  text-align: center;
  font-family: var(--font-mono);
}
.vaporized-title {
  font-size: 22px;
  font-weight: 700;
  color: #f87171;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.vaporized-sub {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ---------------------------------------------------------
   ROOM CODE DEMO (QuickSync)
   --------------------------------------------------------- */
.room-code-demo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0a0d12;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 16px;
  font-family: var(--font-mono);
}
.room-code {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.room-code-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   ALTERNATIVE FOOTER (sub-site variant)
   --------------------------------------------------------- */
.footer-left { display: flex; flex-direction: column; gap: 4px; }
.footer-brand {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}
.footer-brand span { color: var(--text-dim); }
.footer-sub {
  font-size: 11px;
  color: var(--text-dim);
}
.footer-sub a { color: var(--text-muted); transition: color 0.2s; }
.footer-sub a:hover { color: var(--accent); }
.footer-right { display: flex; gap: 20px; }

/* Legacy .proj-link alias */
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.proj-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.proj-link-p,
.proj-link.proj-link-p {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.proj-link-p:hover { background: rgba(59,130,246,0.22); }

/* ---------------------------------------------------------
   RESPONSIVE — sub-site specific
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { padding: 80px 28px 60px; }
  .nav-back { display: none; }
  .nav-sep { display: none; }
  .bento-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero-inner { padding: 60px 20px 40px; }
  .hero-stats { flex-direction: column; align-items: flex-start; }
  .bento-4 { grid-template-columns: 1fr; }
  .room-code-demo { flex-direction: column; text-align: center; }
  .footer-left, .footer-right { width: 100%; }
  .sticky-right { gap: 6px; }
  .nav-right { gap: 6px; }
}


/* --- DATAWEAVE SPECIFIC COMPONENTS --- */

/* ── Screenshots ─────────────────────────────────────────────── */
    .section { padding: 100px 0; }

    .ss-tabs {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
      margin: 24px 0 20px;
    }

    .ss-tab {
      font-family: var(--mono);
      font-size: 11px;
      padding: 6px 14px;
      border-radius: var(--r);
      color: var(--text-muted);
      background: transparent;
      border: 1px solid var(--border-dim);
      cursor: pointer;
      transition: all .15s;
      letter-spacing: .04em;
    }

    .ss-tab:hover { color: var(--text); border-color: var(--border); }

    .ss-tab.active {
      color: var(--accent);
      border-color: rgba(59,130,246,.4);
      background: var(--accent-dim);
    }

    .ss-wrap {
      border-radius: var(--r);
      overflow: hidden;
      border: 1px solid var(--border);
      box-shadow: 0 24px 80px rgba(0,0,0,.55);
      position: relative;
    }

    .ss-wrap img {
      display: block;
      width: 100%;
      transition: opacity .22s, transform .22s;
    }

    .ss-wrap img.switching { opacity: 0; transform: scale(.985); }

    /* ── Feature cards ───────────────────────────────────────────── */
    .feat-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border-dim);
      border: 1px solid var(--border-dim);
      border-radius: var(--r);
      overflow: hidden;
      margin-top: 48px;
    }

    .feat-card {
      background: var(--bg-card);
      padding: 28px 26px;
      position: relative;
      overflow: hidden;
      transition: background .2s;
    }

    .feat-card:hover { background: #131313; }

    .feat-icon {
      font-size: 1.1rem;
      margin-bottom: 14px;
      display: block;
    }

    .feat-card h3 {
      font-size: .88rem;
      font-weight: 600;
      letter-spacing: -.01em;
      margin-bottom: 8px;
      color: var(--text);
    }

    .feat-card p {
      font-size: .8rem;
      color: var(--text-muted);
      line-height: 1.7;
    }

    .feat-tag {
      display: inline-block;
      font-family: var(--mono);
      font-size: .68rem;
      padding: 2px 8px;
      border-radius: 3px;
      background: rgba(255,255,255,.04);
      border: 1px solid var(--border-dim);
      color: var(--text-dim);
      margin-top: 12px;
      letter-spacing: .04em;
    }

    /* ── How it works ────────────────────────────────────────────── */
    .how-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      background: var(--border-dim);
      border: 1px solid var(--border-dim);
      border-radius: var(--r);
      overflow: hidden;
      margin-top: 48px;
    }

    .how-step {
      background: var(--bg-card);
      padding: 28px 24px;
      transition: background .2s;
    }

    .how-step:hover { background: #131313; }

    .how-num {
      font-family: var(--mono);
      font-size: 1.8rem;
      font-weight: 700;
      letter-spacing: -.04em;
      color: var(--border);
      line-height: 1;
      margin-bottom: 14px;
    }

    .how-step h3 {
      font-size: .88rem;
      font-weight: 600;
      margin-bottom: 7px;
    }

    .how-step p {
      font-size: .8rem;
      color: var(--text-muted);
      line-height: 1.7;
    }

    /* ── Download card ───────────────────────────────────────────── */
    .dl-card {
      position: relative;
      border: 1px solid var(--border);
      border-radius: var(--r);
      padding: 48px;
      background: var(--bg-card);
      overflow: hidden;
      isolation: isolate;
    }

    .dl-card::before {
      content: '';
      position: absolute;
      top: -80px; right: -80px;
      width: 320px; height: 320px;
      background: radial-gradient(circle, rgba(59,130,246,.06) 0%, transparent 70%);
      pointer-events: none;
    }

    /* Animated top border */
    .dl-card::after {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
      animation: scan 4s linear infinite;
    }

    .dl-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 36px;
    }

    .dl-head h2 {
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -.025em;
      margin-bottom: 8px;
      color: #fff;
    }

    .dl-head p {
      font-size: .88rem;
      color: var(--text-muted);
      line-height: 1.75;
      max-width: 400px;
    }

    .dl-meta {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;
      flex-shrink: 0;
    }

    .version-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 10px;
      border: 1px solid rgba(59,130,246,.3);
      border-radius: 3px;
      font-family: var(--mono);
      font-size: .75rem;
      color: var(--accent);
      background: var(--accent-dim);
      letter-spacing: .04em;
    }

    .rel-date {
      font-family: var(--mono);
      font-size: .7rem;
      color: var(--text-dim);
      letter-spacing: .04em;
    }

    /* Platform groups */
    .dl-platforms { display: flex; flex-direction: column; gap: 20px; }

    .dl-group-label {
      font-family: var(--mono);
      font-size: .68rem;
      font-weight: 500;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .dl-group-label.current { color: var(--accent); }

    .dl-group-label.current::after {
      content: "detected";
      font-size: .6rem;
      padding: 1px 7px;
      background: var(--accent-dim);
      border: 1px solid rgba(59,130,246,.2);
      border-radius: 3px;
    }

    .dl-btns { display: flex; gap: 8px; flex-wrap: wrap; }

    .dl-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 16px;
      border-radius: var(--r);
      font-family: var(--mono);
      font-size: .78rem;
      font-weight: 500;
      letter-spacing: .03em;
      text-decoration: none;
      border: none;
      cursor: pointer;
      transition: all .2s;
    }

    .dl-btn.primary {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 4px 16px rgba(59,130,246,.25);
    }

    .dl-btn.primary:hover {
      background: #5b9dff;
      box-shadow: 0 6px 24px rgba(59,130,246,.4);
      transform: translateY(-1px);
    }

    .dl-btn.ghost {
      background: rgba(255,255,255,.03);
      color: var(--text-muted);
      border: 1px solid var(--border);
    }

    .dl-btn.ghost:hover {
      border-color: rgba(59,130,246,.35);
      color: var(--accent);
      background: var(--accent-dim);
    }

    .dl-btn-sub {
      display: block;
      font-size: .62rem;
      opacity: .5;
      margin-top: 2px;
      font-weight: 400;
    }

    .dl-sep {
      border: none;
      border-top: 1px solid var(--border-dim);
    }

    /* Skeleton */
    .skel {
      border-radius: var(--r);
      background: linear-gradient(90deg, var(--border-dim) 0%, var(--border) 50%, var(--border-dim) 100%);
      background-size: 200% 100%;
      animation: skel 1.5s ease infinite;
    }

    @keyframes skel {
      0%   { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    .dl-error {
      font-family: var(--mono);
      font-size: .8rem;
      color: #e07878;
      padding: 14px 18px;
      background: rgba(224,120,120,.06);
      border: 1px solid rgba(224,120,120,.15);
      border-radius: var(--r);
    }

    .dl-error a { color: var(--accent); }

    /* ── Footer ──────────────────────────────────────────────────── */
    footer {
      border-top: 1px solid var(--border-dim);
      padding: 44px 0;
    }

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

    .footer-left {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .footer-brand {
      font-family: var(--mono);
      font-size: 13px;
      font-weight: 700;
      color: #fff;
    }
    .footer-brand em { font-style: normal; color: var(--accent); }

    .footer-sub {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-dim);
    }
    .footer-sub a { transition: color .15s; }
    .footer-sub a:hover { color: var(--accent); }

    .footer-right {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .footer-link {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-dim);
      text-transform: uppercase;
      letter-spacing: .1em;
      transition: color .15s;
    }
    .footer-link:hover { color: var(--accent); }

    

/* --- PINCODEDB SPECIFIC COMPONENTS --- */

/* =========================================================
       PROSE
    ========================================================= */
    .prose p {
      font-size: 14.5px;
      color: var(--text-muted);
      line-height: 1.8;
      margin-bottom: 16px;
    }
    .prose p:last-child { margin-bottom: 0; }
    .prose code { font-size: 13px; color: var(--accent); }
    .prose strong { color: var(--text); font-weight: 500; }

    /* =========================================================
       FLOW STEPS
    ========================================================= */
    .flow { display: flex; flex-direction: column; }

    .flow-step {
      display: grid;
      grid-template-columns: 36px 1fr;
      gap: 14px;
      align-items: start;
      padding: 14px 0;
      border-bottom: 1px solid var(--border-dim);
    }
    .flow-step:last-child { border-bottom: none; }

    .flow-num {
      width: 26px; height: 26px;
      border: 1px solid var(--border);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--accent);
      flex-shrink: 0;
      margin-top: 2px;
    }
    .flow-title {
      font-size: 13.5px;
      font-weight: 500;
      color: var(--text);
      margin-bottom: 3px;
    }
    .flow-desc {
      font-size: 12.5px;
      color: var(--text-muted);
      line-height: 1.65;
    }
    .flow-desc code {
      font-size: 11.5px;
      color: var(--accent);
      background: rgba(59,130,246,0.08);
      padding: 1px 4px;
      border-radius: 3px;
    }

    /* =========================================================
       CODE BLOCKS
    ========================================================= */
    .code-wrap { margin-bottom: 12px; }

    .code-label {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--text-dim);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      background: #0f1117;
      border: 1px solid var(--border);
      border-bottom: none;
      border-radius: 6px 6px 0 0;
      padding: 7px 14px;
    }

    .code-wrap pre[class*="language-"] {
      margin: 0 !important;
      border-radius: 0 0 6px 6px !important;
      border: 1px solid var(--border) !important;
      background: #0a0d12 !important;
      font-size: 12.5px !important;
      font-family: var(--font-mono) !important;
      tab-size: 2;
    }

    .token.comment    { color: #374151 !important; }
    .token.string     { color: #86efac !important; }
    .token.number     { color: #fbbf24 !important; }
    .token.keyword    { color: #93c5fd !important; }
    .token.function   { color: #e2e8f0 !important; }
    .token.class-name { color: #67e8f9 !important; }
    .token.decorator  { color: #a78bfa !important; }

    /* =========================================================
       ARCHITECTURE DIAGRAM
    ========================================================= */
    .arch-wrap {
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: #060a0f;
      padding: 6px;
      margin-bottom: 0;
    }
    .arch-wrap img { width: 100%; display: block; border-radius: 4px; }

    /* =========================================================
       TECH TAGS
    ========================================================= */
    .tech-row {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

    .tag {
      flex-shrink: 0;
      padding: 3px 9px;
      border: 1px solid var(--border);
      border-radius: 3px;
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--text-muted);
      background: rgba(255,255,255,0.015);
      letter-spacing: 0.02em;
    }

    /* =========================================================
       ENDPOINT / TIER TABLES
    ========================================================= */
    .data-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12.5px;
      margin-top: 14px;
    }
    .data-table th {
      text-align: left;
      padding: 7px 14px;
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--text-dim);
      font-weight: 400;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      border-bottom: 1px solid var(--border);
    }
    .data-table td {
      padding: 10px 14px;
      color: var(--text-muted);
      border-bottom: 1px solid var(--border-dim);
      vertical-align: top;
    }
    .data-table tr:last-child td { border-bottom: none; }
    .data-table td:first-child { font-family: var(--font-mono); font-size: 11.5px; }
    .data-table .yes { color: var(--accent); }
    .data-table .no  { color: var(--text-dim); }

    /* HTTP method badge */
    .method {
      display: inline-block;
      padding: 1px 6px;
      border-radius: 3px;
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.04em;
    }
    .method-get    { background: rgba(34,197,94,0.12);  color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
    .method-post   { background: rgba(59,130,246,0.12); color: var(--accent); border: 1px solid rgba(59,130,246,0.2); }
    .method-delete { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.2); }

    /* =========================================================
       PIPELINE STRIP
    ========================================================= */
    .pipeline {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 1px;
      background: var(--border-dim);
      border: 1px solid var(--border-dim);
      border-radius: 7px;
      overflow: hidden;
    }
    .pipeline-step {
      background: var(--bg-card);
      padding: 18px;
    }
    .pipeline-step-num {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--accent);
      margin-bottom: 8px;
    }
    .pipeline-step-title {
      font-size: 12px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 6px;
    }
    .pipeline-step-desc {
      font-size: 11.5px;
      color: var(--text-muted);
      line-height: 1.6;
    }
    .pipeline-step-desc code { font-size: 11px; color: var(--accent); }

    /* =========================================================
       FOOTER
    ========================================================= */
    footer {
      border-top: 1px solid var(--border-dim);
      padding: 44px 0;
    }
    .footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .footer-left {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .footer-brand {
      font-family: var(--font-mono);
      font-size: 13px;
      font-weight: 700;
      color: #fff;
    }
    .footer-brand .dim { color: var(--text-dim); font-weight: 400; }
    .footer-sub {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--text-dim);
    }
    .footer-sub a { transition: color 0.2s; }
    .footer-sub a:hover { color: var(--accent); }
    .footer-right { display: flex; align-items: center; gap: 20px; }
    .footer-link {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--text-dim);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      transition: color 0.2s;
    }
    .footer-link:hover { color: var(--accent); }

/* --- ADDITIONAL RESPONSIVE RULES --- */


@media (max-width: 860px) {
      .feat-grid  { grid-template-columns: repeat(2, 1fr); }
      .how-grid   { grid-template-columns: repeat(2, 1fr); }
      .stats-row  { grid-template-columns: repeat(2, 1fr); }
      .dl-head    { flex-direction: column; }
      .dl-meta    { align-items: flex-start; }
      .dl-card    { padding: 32px 24px; }
}
@media (max-width: 560px) {
      .ss-tabs    { justify-content: center; margin-bottom: 30px; }
      .ss-tab     { font-size: 10px; padding: 6px 12px; }
      .feat-grid  { grid-template-columns: 1fr; }
      .how-grid   { grid-template-columns: 1fr; }
      .stats-row  { grid-template-columns: 1fr 1fr; padding: 32px 24px; }
      .dl-card    { padding: 24px 20px; }
}
@media (max-width: 900px) {
      .pipeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
      .pipeline { grid-template-columns: 1fr; }
}
