/* =====================================================================
   Thoforge — design tokens
   A systems-builder aesthetic: graphite/ink palette, one precise accent,
   monospace used functionally for status/stack metadata (not decoration).
   ===================================================================== */

:root {
  --bg: #0B0D10;
  --bg-elevated: #12151B;
  --bg-card: #14181F;
  --bg-card-hover: #171C24;
  --border: #232833;
  --border-soft: #1B1F27;

  --ink: #E9EBEF;
  --ink-dim: #B4BAC5;
  --muted: #838B99;
  --muted-2: #565D6A;

  --accent: #5B84FF;
  --accent-ink: #DCE4FF;
  --accent-dim: rgba(91, 132, 255, 0.10);
  --accent-border: rgba(91, 132, 255, 0.35);

  --live: #34D399;
  --dev: #F5B75C;
  --beta: #B394F7;
  --archived: #6B7280;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Subtle grain so the flat dark bg doesn't feel like a template default */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =====================================================================
   Header / nav
   ===================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.logo-mark {
  color: var(--accent);
  font-size: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  font-size: 14.5px;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--ink); }

.main-nav a.active { color: var(--ink); }

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.main-nav a.nav-primary {
  color: var(--ink);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}

.mobile-nav a {
  padding: 15px 28px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
  color: var(--ink-dim);
}

.mobile-nav.open { display: flex; }

/* =====================================================================
   Buttons
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #08090B;
}
.btn-primary:hover { background: #6E92FF; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--muted); background: var(--bg-card); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border-soft);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--border); }

.btn-disabled {
  background: transparent;
  color: var(--muted-2);
  border-color: var(--border-soft);
  cursor: not-allowed;
}

.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* =====================================================================
   Hero
   ===================================================================== */

.hero {
  position: relative;
  padding: 128px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px; left: 50%;
  width: 900px; height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-ink);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 7px 13px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }

.hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.03;
  animation: fadeUp 0.6s ease 0.08s both;
}

.hero h1 .role {
  display: block;
  font-size: clamp(20px, 2.6vw, 27px);
  color: var(--muted);
  font-weight: 500;
  margin-top: 14px;
  letter-spacing: -0.01em;
}

.hero-text {
  margin-top: 26px;
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 560px;
  line-height: 1.7;
  animation: fadeUp 0.6s ease 0.16s both;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.24s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Status strip under hero — signature element: treats the portfolio
   itself like a running system with real, current counts. */
.status-strip {
  margin-top: 64px;
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeUp 0.6s ease 0.32s both;
  max-width: 620px;
}

.status-cell {
  flex: 1;
  padding: 18px 22px;
  border-right: 1px solid var(--border);
}
.status-cell:last-child { border-right: none; }

.status-cell .num {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
}

.status-cell .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* =====================================================================
   Section scaffolding
   ===================================================================== */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--border-soft);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 46px;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
}

.section-sub {
  color: var(--muted);
  font-size: 15px;
  margin-top: 10px;
  max-width: 520px;
}

/* =====================================================================
   Project cards
   ===================================================================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.project-card:hover {
  border-color: var(--muted-2);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.project-card-media {
  aspect-ratio: 16/10;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.project-card-media img { width: 100%; height: 100%; object-fit: cover; }

.project-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-card-top h3 {
  font-size: 18.5px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.live { background: var(--live); box-shadow: 0 0 0 3px rgba(52,211,153,0.15); }
.status-dot.dev { background: var(--dev); box-shadow: 0 0 0 3px rgba(245,183,92,0.15); }
.status-dot.beta { background: var(--beta); box-shadow: 0 0 0 3px rgba(179,148,247,0.15); }
.status-dot.archived { background: var(--archived); }

.project-card-desc {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

.category-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-ink);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 4px 9px;
  border-radius: 5px;
  display: inline-block;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 5px;
}

.project-card-footer {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding-top: 6px;
  border-top: 1px solid var(--border-soft);
  width: 100%;
  justify-content: space-between;
}

.project-card:hover .explore-link { color: var(--accent-ink); }

.explore-link .arrow { transition: transform 0.15s ease; }
.project-card:hover .explore-link .arrow { transform: translateX(3px); }

@media (max-width: 980px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Systems directory — filters
   ===================================================================== */

.page-head {
  padding: 62px 0 40px;
  border-bottom: 1px solid var(--border-soft);
}

.page-head .section-eyebrow { margin-bottom: 14px; }

.page-head h1 { font-size: clamp(32px, 4.6vw, 46px); }

.page-head .page-sub {
  margin-top: 14px;
  color: var(--muted);
  max-width: 560px;
  font-size: 15.5px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 28px 0 60px;
}

.filter-pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  transition: all 0.15s ease;
}

.filter-pill:hover { color: var(--ink); border-color: var(--muted-2); }

.filter-pill.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 15px;
}

.empty-state .mono { display: block; color: var(--muted-2); font-size: 13px; margin-top: 8px; }

/* =====================================================================
   Project detail page
   ===================================================================== */

.detail-header {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border-soft);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.detail-header h1 {
  font-size: clamp(32px, 5vw, 50px);
  max-width: 780px;
}

.detail-tagline {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 640px;
  line-height: 1.65;
}

.detail-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-tech-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overview-block {
  max-width: 720px;
}

.overview-block p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-card .index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.feature-card h4 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.screenshot-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.screenshot-item img { width: 100%; display: block; }

.screenshot-caption {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
}

@media (max-width: 720px) {
  .screenshot-gallery { grid-template-columns: 1fr; }
}

.tech-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-panel .tech-chip { font-size: 13px; padding: 8px 14px; }

.demo-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.demo-panel-text h3 { font-size: 20px; margin-bottom: 8px; }
.demo-panel-text p { color: var(--muted); font-size: 14.5px; max-width: 420px; }

.demo-panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.related-projects {
  border-top: 1px solid var(--border-soft);
}

/* Problem / Solution split */
.case-study-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 88px;
}

.case-block h3 {
  font-size: 22px;
  margin: 12px 0 16px;
}

.case-block p {
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.75;
}

@media (max-width: 800px) {
  .case-study-split { grid-template-columns: 1fr; gap: 48px; padding-bottom: 60px; }
}

.empty-state.small {
  padding: 26px 20px;
  font-size: 14px;
  text-align: left;
}

/* Larger status badge used on the Current Status panel */
.status-panel {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.status-badge.lg {
  font-size: 13px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-elevated);
}

.status-badge.lg .status-dot { width: 8px; height: 8px; }

.status-panel p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

/* Screenshot expand affordance */
.screenshot-item {
  position: relative;
  cursor: pointer;
}

.expand-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(11,13,16,0.72);
  border: 1px solid var(--border);
  color: var(--ink-dim);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.screenshot-item:hover .expand-hint,
.screenshot-item:focus-visible .expand-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Fullscreen lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 9, 11, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
}

.lightbox img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.lightbox figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}

.lightbox-close {
  position: absolute;
  top: 26px;
  right: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

.lightbox-close:hover { border-color: var(--muted); }

/* Demo credentials panel — shown only for demo_account access with real creds set */
.credentials-panel {
  margin-top: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.credentials-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cred-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.cred-value {
  display: block;
  font-size: 14.5px;
  color: var(--accent-ink);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
}

.cred-instructions {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.cred-note {
  color: var(--muted);
  font-size: 12px;
}

/* =====================================================================
   About / Contact
   ===================================================================== */

.simple-page {
  padding: 70px 0 100px;
  max-width: 720px;
}

.simple-page h1 { font-size: clamp(32px, 4.6vw, 44px); margin-bottom: 24px; }
.simple-page p { color: var(--ink-dim); font-size: 16.5px; line-height: 1.8; margin-bottom: 20px; }

/* About page */
.about-grid {
  padding: 56px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 760px;
}

.about-block h2 {
  font-size: 24px;
  margin: 12px 0 16px;
}

.about-block p {
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-list li {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.about-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}

.about-list strong {
  color: var(--ink);
  font-weight: 500;
}

.about-stack {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.contact-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  font-size: 13.5px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.form-alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 24px;
}
.form-alert.success { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.3); color: var(--live); }
.form-alert.error { background: rgba(245,92,92,0.08); border: 1px solid rgba(245,92,92,0.3); color: #F58C8C; }

.contact-direct {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-direct a { color: var(--accent-ink); font-family: var(--font-mono); font-size: 14.5px; }

.social-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.social-links a { color: var(--muted); font-family: var(--font-mono); font-size: 13.5px; }
.social-links a:hover { color: var(--accent-ink); }

/* =====================================================================
   Footer
   ===================================================================== */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 50px 0;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 13.5px;
  margin-left: 4px;
}

.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 14px; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }

.footer-meta {
  font-size: 12.5px;
  color: var(--muted-2);
  width: 100%;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
}

/* =====================================================================
   Responsive — nav + hero + general
   ===================================================================== */

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 88px 0 64px; }
  .status-strip { flex-wrap: wrap; }
  .status-cell { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .demo-panel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section { padding: 60px 0; }
  .hero-actions .btn { flex: 1 1 auto; }
}
