/* ═══════════════════════════════════════════════════════════════════
   LUMSAS — GLOBAL DESIGN SYSTEM
   Single source of truth for all pages.
   Applies to: index.html · government.html · marketplace/ · web-mcp/
   ════════════════════════════════════════════════════════════════════ */

/* ── FONT IMPORTS ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Fira+Code:wght@300;400;500&display=swap');

/* ══════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS — THE ONLY PLACE COLOURS LIVE
   Change your theme here and it instantly applies everywhere.
   ══════════════════════════════════════════════════════════════════ */
:root {
  /* ── Base Palette ── */
  --primary-100: var(--primary-100);
  --primary-200: var(--primary-200);
  --primary-300: var(--primary-300);
  --accent-100:  var(--accent-100);
  --accent-200:  var(--accent-200);
  --text-100:    var(--text-100);
  --text-200:    var(--text-200);
  --bg-100:      var(--bg-100);
  --bg-200:      var(--bg-200);
  --bg-300:      var(--bg-300);

  /* ── Semantic Mappings ── */
  --bg:               var(--bg-100);
  --bg-alt:           transparent;
  --bg-card:          var(--bg-200);
  --bg-hover:         var(--bg-300);
  --bg-dark:          var(--bg-300);
  --text-primary:     var(--text-100);
  --text-secondary:   var(--text-200);
  --text-tertiary:    var(--primary-300);
  --brand:            var(--primary-100);
  --brand-dark:       var(--bg-100);
  --brand-light:      var(--primary-200);
  --accent:           var(--accent-100);
  --accent-hover:     var(--primary-100);
  --accent-pressed:   var(--accent-200);
  --grad:             var(--primary-100);

  /* ── Status Colours ── */
  --success: #10b981;
  --warning: var(--accent-100);
  --danger:  #ef4444;

  /* ── Borders ── */
  --border:        rgba(0, 0, 0, 0.1);
  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-hover:  rgba(0, 0, 0, 0.2);

  /* ── Glass / Elevation ── */
  --glass-bg:           var(--bg-100);
  --glass-border:       rgba(0, 0, 0, 0.1);
  --glass-shadow:       none;
  --glass-hover-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

  /* ── Spacing ── */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-24: 96px;
  --section-spacing: 140px;
  --grid-gap: 40px;

  /* ── Border Radius ── */
  --r-btn:   12px;
  --r-card:  16px;
  --r-input: 12px;
  --r-badge: 8px;
  --r-modal: 24px;

  /* ── Typography Scale ── */
  --font-display: 'Ubuntu', sans-serif;
  --font-sans:    'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'Fira Code', 'SF Mono', ui-monospace, monospace;
  --text-hero:    clamp(3rem, 6vw, 5.5rem);
  --text-display: clamp(2.4rem, 5.5vw, 5rem);
  --text-h1:      clamp(2.2rem, 5.5vw, 4.5rem);
  --text-h2:      clamp(1.8rem, 4vw, 3rem);
  --text-h3:      clamp(1.5rem, 3.5vw, 2.2rem);
  --text-h4:      clamp(1.1rem, 1.8vw, 1.5rem);
  --text-body-lg: clamp(1.05rem, 1.8vw, 1.3rem);
  --text-body:    1rem;
  --text-sm:      15px;
  --text-xs:      11px;

  /* ── Card Styles & Button Metrics ── */
  --card-padding-lg: 32px;
  --card-padding:    24px;
  --card-padding-sm: 16px;
  --btn-padding:     12px 32px;

  /* ── Transitions ── */
  --t-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --t-med:    0.3s  cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:   0.6s  cubic-bezier(0.16, 1, 0.3, 1);
  --t-spring: 0.5s  cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-bounce: 0.5s  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Nav ── */
  --nav-h: 64px;
}

/* ══════════════════════════════════════════════════════════════════
   2. RESET & BASE
   ══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: opacity var(--t-fast); }
a:hover { opacity: 0.7; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; outline: none; }
input, textarea, select { font-family: inherit; }
::selection { background: rgba(0, 0, 0, 0.08); color: var(--text-primary); }

/* ══════════════════════════════════════════════════════════════════
   3. LAYOUT UTILITIES
   ══════════════════════════════════════════════════════════════════ */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
.container--narrow { max-width: 640px; }
.container--wide  { max-width: 1400px; }
.section-pad      { padding: 96px 0; }

.section {
  padding: clamp(80px, 12vh, 120px) clamp(20px, 6vw, 100px);
  position: relative;
  background: transparent;
}
@media (max-width: 768px) { .section { padding: var(--sp-12) 0; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; gap: var(--sp-8); } }

/* ── Standard Universal Buttons ── */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: var(--btn-padding);
  border-radius: var(--r-btn);
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-100);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--primary-100);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--primary-200);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-100);
  border: 1px solid var(--primary-100);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 127, 80, 0.05);
}

.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); } .gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); } .gap-8 { gap: var(--sp-8); }
.text-center { text-align: center; } .text-left { text-align: left; }
.mt-4 { margin-top: var(--sp-4); } .mt-8 { margin-top: var(--sp-8); } .mt-12 { margin-top: var(--sp-12); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); } .mb-8 { margin-bottom: var(--sp-8); }

.section-divider {
  height: 1px;
  background: var(--border-subtle);
}

/* ══════════════════════════════════════════════════════════════════
   4. TYPOGRAPHY
   ══════════════════════════════════════════════════════════════════ */
h1, h2, h3, .t-hero, .t-h1, .t-h2, .t-h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Marketplace-style scale */
.t-hero  { font-size: clamp(2.5rem, 7vw, 6rem);   font-weight: 900; line-height: 0.92; letter-spacing: -0.048em; }
.t-h1    { font-size: clamp(2.2rem, 5.5vw, 5rem);  font-weight: 900; line-height: 0.95; letter-spacing: -0.045em; }
.t-h2    { font-size: clamp(2.2rem, 5.5vw, 5rem);  font-weight: 900; line-height: 0.95; letter-spacing: -0.045em; }
.t-h3    { font-size: clamp(1.5rem, 3.5vw, 2rem);  font-weight: 700; line-height: 1.2;  letter-spacing: -0.02em; }
.t-body  { font-size: 16px;  line-height: 1.7; color: var(--text-secondary); }
.t-sub   { font-size: 20px;  color: var(--text-secondary); font-weight: 400; }
.t-small { font-size: 15px;  color: var(--text-secondary); }
.t-caption { font-size: 13px; color: var(--text-tertiary); letter-spacing: 0.02em; }
.t-label   { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }

/* Homepage-style scale */
h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h3.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.eyebrow {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 14px;
  display: inline-block;
}

.gradient-text, .accent-text {
  color: var(--primary-100);
  display: inline-block;
}

.body-text {
  font-size: clamp(1.4rem, 1.6vw, 1.7rem);
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 400;
}
.caption { font-size: 1.2rem; color: var(--text-tertiary); letter-spacing: 0.04em; }

.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-hover);
  padding: 4px 8px;
  border-radius: 6px;
}
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; }

/* ══════════════════════════════════════════════════════════════════
   5. NAVIGATION — Floating pill (homepage style)
   ══════════════════════════════════════════════════════════════════ */
nav#navbar {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1100px;
  z-index: 1000;
  border-radius: 20px;
  padding: 0;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
nav#navbar.scrolled {
  background: var(--bg-card);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse-dot 2s infinite;
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 15px;
  border-radius: 10px;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(0, 0, 0, 0.04); opacity: 1; }
.nav-links a.active { color: var(--brand); background: rgba(0, 0, 0, 0.04); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 16px; }

/* Navigation — Top bar (marketplace style) */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--bg-100);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: transform var(--t-med);
}
.nav__inner {
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-6);
}
.nav__logo {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  letter-spacing: -0.04em; color: var(--text-primary); text-decoration: none;
}
.nav__logo:hover { opacity: 1; }
.nav__links { display: flex; gap: var(--sp-8); align-items: center; }
.nav__link { font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color var(--t-fast); }
.nav__link:hover { color: var(--text-primary); opacity: 1; }
.nav__actions { display: flex; gap: var(--sp-4); align-items: center; }
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: var(--sp-2);
}
.nav__hamburger span { display: block; width: 20px; height: 2px; background: var(--text-primary); transition: var(--t-fast); }
.nav__drawer {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--border-subtle);
  padding: var(--sp-6); flex-direction: column; gap: var(--sp-4);
  z-index: 999;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__drawer.open { display: flex; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__hamburger { display: flex; }
}

/* Hamburger (homepage) */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: all var(--t-med); display: block;
}
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--bg); flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 30px; font-weight: 500;
  color: var(--text-primary); transition: color var(--t-fast);
}
.mobile-menu a:hover { color: var(--brand); opacity: 1; }
.mobile-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 28px; cursor: pointer; color: var(--text-secondary);
  background: none; border: none;
}

/* ══════════════════════════════════════════════════════════════════
   6. BUTTONS
   ══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 16px 40px;
  border-radius: var(--r-btn);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--t-spring);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  text-align: center;
}
.btn-primary { background: var(--primary-100); color: var(--bg-100); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15); }
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px);
  background: var(--primary-200);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 1;
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--border-hover);
  opacity: 1;
}
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: rgba(0, 0, 0, 0.05); opacity: 1; }
.btn-sm, .btn--sm { font-size: 14px; padding: 8px 16px; }
.btn--lg { font-size: 16px; padding: 18px 36px; }
.btn--full { width: 100%; }
.btn--loading { opacity: 0.7; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════════
   7. INPUTS & FORMS
   ══════════════════════════════════════════════════════════════════ */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field__label { font-size: 14px; font-weight: 500; color: var(--text-primary); }

.input {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  padding: 14px var(--sp-4);
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  transition: all var(--t-fast);
}
.input::placeholder { color: var(--text-tertiary); }
.input:focus { border-color: var(--text-primary); box-shadow: 0 0 0 1px var(--text-primary); background: var(--bg); }
.input.error { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field__error { font-size: 13px; color: var(--danger); }
.field__hint  { font-size: 13px; color: var(--text-tertiary); }
textarea.input { resize: vertical; min-height: 100px; }

/* Shared form styles (Reach Us section) */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block; font-family: var(--font-sans); font-size: 14px;
  font-weight: 500; color: var(--text-secondary); margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 16px; font-family: var(--font-mono);
  font-size: 15px; color: var(--text-primary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; margin-top: 16px; }
.form-status {
  margin-top: 16px; padding: 16px; border-radius: 8px;
  font-family: var(--font-sans); font-weight: 500; display: none;
}
.form-status.success {
  display: block; background: rgba(16, 185, 129, 0.1);
  color: #065f46; border: 1px solid rgba(16, 185, 129, 0.2);
}
.form-status.error {
  display: block; background: rgba(239, 68, 68, 0.1); color: #7f1d1d;
}

/* ══════════════════════════════════════════════════════════════════
   8. GLASS & CARDS
   ══════════════════════════════════════════════════════════════════ */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glass:hover { box-shadow: var(--glass-hover-shadow); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--sp-8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all var(--t-med);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.8s var(--t-slow) backwards;
}
.grid-2 > :nth-child(1), .grid-3 > :nth-child(1) { animation-delay: 0.1s; }
.grid-2 > :nth-child(2), .grid-3 > :nth-child(2) { animation-delay: 0.2s; }
.grid-3 > :nth-child(3) { animation-delay: 0.3s; }
.grid-3 > :nth-child(4) { animation-delay: 0.4s; }
.grid-3 > :nth-child(5) { animation-delay: 0.5s; }
.grid-3 > :nth-child(6) { animation-delay: 0.6s; }

.card--interactive { cursor: pointer; }
.card--interactive:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.08);
  background: var(--bg-hover);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

/* ══════════════════════════════════════════════════════════════════
   9. BADGES
   ══════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: var(--r-badge);
}
.badge--active    { background: rgba(0, 0, 0, 0.05); color: var(--success); }
.badge--suspended { background: rgba(0, 0, 0, 0.05); color: var(--warning); }
.badge--revoked   { background: rgba(0, 0, 0, 0.05); color: var(--danger);  }

/* ══════════════════════════════════════════════════════════════════
   10. SCROLL PROGRESS & EFFECTS
   ══════════════════════════════════════════════════════════════════ */
#scroll-progress-bar {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--primary-100);
  transform-origin: left; transform: scaleX(0);
  z-index: 9999; pointer-events: none;
}
#scroll-velocity-line {
  position: fixed; right: 20px; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 0;
  background: var(--border);
  z-index: 9999; border-radius: 2px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
#particle-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ── Custom cursor ── */
#lumsas-cursor {
  position: fixed; width: 10px; height: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%; pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s, border 0.2s;
  mix-blend-mode: multiply;
}
#lumsas-cursor-trail {
  position: fixed; width: 32px; height: 32px;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%; pointer-events: none; z-index: 99998;
  transform: translate(-50%, -50%);
}

/* ══════════════════════════════════════════════════════════════════
   11. MARQUEE
   ══════════════════════════════════════════════════════════════════ */
.marquee-outer {
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0; background: transparent;
}
.marquee-track {
  display: flex; gap: 52px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-item {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--text-tertiary); white-space: nowrap; letter-spacing: 0.04em;
}
.marquee-item .accent { color: var(--brand); margin-right: 6px; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════════════
   12. HERO SECTIONS
   ══════════════════════════════════════════════════════════════════ */
/* Homepage hero */
#hero {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden; padding: 180px 24px 120px;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 880px; padding: 0 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-200); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 99px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 24px; transition: all var(--t-med);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); animation: pulse-dot 2s infinite; display: inline-block;
}
.hero-title { margin-bottom: 28px; }
.hero-sub {
  font-size: 1.65rem; color: var(--text-secondary);
  max-width: 580px; margin: 0 auto 44px; line-height: 1.75; font-weight: 400;
}
.hero-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px;
}
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; font-size: 11px; letter-spacing: 0.1em;
  color: var(--text-tertiary); animation: scroll-bounce 2s ease-in-out infinite; z-index: 2;
}
.scroll-chevron { font-size: 18px; color: var(--brand); }
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* Marketplace hero */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + var(--sp-12)) var(--sp-6) var(--sp-16);
  position: relative; overflow: hidden;
}
.hero__eyebrow {
  display: inline-flex; align-items: center;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px; font-weight: 500;
  padding: 6px 16px; border-radius: var(--r-btn);
  margin-bottom: var(--sp-6);
}
.hero__title { max-width: 900px; margin-bottom: var(--sp-6); letter-spacing: -0.05em; }
.hero__sub { max-width: 680px; margin: 0 auto var(--sp-10); font-size: 21px; line-height: 1.6; }
.hero__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; }
.hero__scroll-hint {
  position: absolute; bottom: var(--sp-8);
  display: flex; flex-direction: column; align-items: center;
  color: var(--text-tertiary); font-size: 14px;
  animation: bounce 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.anim-fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp var(--t-slow) forwards; }
.anim-fade-up:nth-child(2) { animation-delay: 0.1s; }
.anim-fade-up:nth-child(3) { animation-delay: 0.2s; }
.anim-fade-up:nth-child(4) { animation-delay: 0.3s; }
.anim-fade-up:nth-child(5) { animation-delay: 0.4s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════════════════════════════════════════
   13. SECTION ELEMENTS
   ══════════════════════════════════════════════════════════════════ */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-header .eyebrow, .section-header .t-label { margin-bottom: 16px; }
.section-header .t-h2 { margin-bottom: var(--sp-4); }
.section-header p { font-size: 1.55rem; color: var(--text-secondary); line-height: 1.75; margin-top: 16px; }
.section-num {
  position: absolute; font-family: var(--font-display);
  font-size: 200px; font-weight: 900; letter-spacing: -0.06em;
  color: rgba(0, 0, 0, 0.03);
  top: 0; right: -20px; line-height: 1;
  pointer-events: none; user-select: none; z-index: 0;
}

/* ── Bento Grid ── */
.bento-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto); gap: 16px; margin-top: 64px;
}
.bento-cell {
  background: var(--bg-card); border-radius: var(--r-card);
  border: 1px solid var(--border-subtle); padding: 32px;
  position: relative; overflow: hidden;
  transition: transform var(--t-med), border-color var(--t-med);
}
.bento-cell:hover { transform: translateY(-3px); border-color: rgba(0, 0, 0, 0.14); }
.bento-a { grid-column: 1/8;  grid-row: 1; }
.bento-b { grid-column: 8/13; grid-row: 1; }
.bento-c { grid-column: 1/5;  grid-row: 2; }
.bento-d { grid-column: 5/9;  grid-row: 2; }
.bento-e { grid-column: 9/13; grid-row: 2; }
.bento-icon { font-size: 28px; margin-bottom: 16px; display: block; }
.bento-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.bento-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }
.bento-big-num { font-family: var(--font-display); font-size: clamp(44px, 5vw, 68px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-bottom: 12px; }

/* ── Stat Bar ── */
.stat-bar { display: flex; border-top: 1px solid var(--border-subtle); margin-top: 0; }
.stat-item {
  flex: 1; padding: 28px 24px; border-right: 1px solid var(--border-subtle);
  transition: background var(--t-fast);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-hover); }
.stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.stat-label { font-size: 12px; color: var(--text-secondary); }

/* ── Steps ── */
.steps { display: flex; gap: var(--sp-8); justify-content: center; }
@media (max-width: 768px) { .steps { flex-direction: column; align-items: center; } .step { text-align: center; } }
.step { flex: 1; max-width: 300px; position: relative; }
.step__num {
  font-family: var(--font-display); font-size: 64px; font-weight: 700;
  color: var(--border-subtle); line-height: 1;
  position: absolute; top: -30px; left: -10px; z-index: -1;
}
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--r-card); padding: 36px 32px; position: relative;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.07); }
.step-num { font-family: var(--font-mono); font-size: 60px; font-weight: 700; color: rgba(0, 0, 0, 0.06); line-height: 1; margin-bottom: 20px; letter-spacing: -0.04em; }
.step-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.step-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── Problem list ── */
.problem-list { margin: 52px 0; }
.problem-row {
  display: grid; grid-template-columns: 100px 1fr;
  align-items: baseline; gap: 20px; padding: 22px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--t-med);
}
.problem-row:first-child { border-top: 1px solid var(--border-subtle); }
.problem-row:hover .problem-text { color: var(--text-primary); }
.problem-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }
.problem-text {
  font-family: var(--font-display); font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 600; letter-spacing: -0.02em;
  color: var(--text-secondary); transition: color var(--t-med);
}

/* ── Metrics ── */
.metrics-row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 32px; padding: 60px 0; }
.metric-block { text-align: center; }
.metric-number { font-family: var(--font-display); font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.metric-desc { font-size: 13.5px; color: var(--text-secondary); max-width: 160px; margin: 0 auto; line-height: 1.5; }

/* ── Split block ── */
.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 72px 0; }
.split-block.reverse { direction: rtl; }
.split-block.reverse > * { direction: ltr; }
.split-visual {
  border-radius: var(--r-card); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  min-height: 360px; display: flex; align-items: center;
  justify-content: center; padding: 36px; position: relative;
}
.split-text .eyebrow { margin-bottom: 14px; }
.split-text h2 { margin-bottom: 20px; }
.split-text p { margin-bottom: 28px; }

/* ── Agent cards ── */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 48px; }
.agent-item { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 20px; padding: 28px 24px; transition: transform var(--t-med), border-color var(--t-med); }
.agent-item:hover { transform: translateY(-4px); border-color: rgba(0, 0, 0, 0.15); }
.agent-item-icon { font-size: 24px; margin-bottom: 14px; display: block; }
.agent-item-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.agent-item-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ── Pills ── */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill { padding: 7px 16px; border-radius: 8px; background: rgba(0, 0, 0, 0.04); border: 1px solid rgba(0, 0, 0, 0.1); font-size: 12.5px; color: var(--text-secondary); font-family: var(--font-sans); }
.pill-brand { background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.1); color: var(--brand); }

/* ══════════════════════════════════════════════════════════════════
   14. CTA SECTION
   ══════════════════════════════════════════════════════════════════ */
#cta { padding: 100px 0; text-align: center; position: relative; }
.cta-box {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 32px; padding: 72px 48px;
  position: relative; overflow: hidden; max-width: 800px; margin: 0 auto;
}
.cta-box::before {
  content: ''; position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 20px; }
.cta-sub { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════════════════════════════
   15. FEATURE CARDS (marketplace)
   ══════════════════════════════════════════════════════════════════ */
.feature-card {
  padding: var(--sp-8); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all var(--t-med);
}
.feature-card:hover {
  transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--border-hover); background: var(--bg-hover);
}
.feature-card__title { font-size: 18px; font-weight: 600; margin-bottom: var(--sp-2); color: var(--text-primary); }
.feature-card__desc  { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════════
   16. PRICING
   ══════════════════════════════════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); max-width: 540px; margin: 0 auto; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 24px; padding: var(--sp-10) var(--sp-8); position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); transition: all var(--t-med); text-align: center;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); border-color: var(--border-hover); background: var(--bg-hover); }
.pricing-card--featured { border: 1px solid var(--border-hover); background: var(--bg-hover); }
.pricing-card__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--text-primary); color: var(--bg); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 16px; border-radius: var(--r-btn); white-space: nowrap; }
.pricing-card__name { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: var(--sp-4); color: var(--text-secondary); }
.pricing-card__price { display: flex; align-items: baseline; justify-content: center; gap: var(--sp-1); margin-bottom: var(--sp-6); }
.price-currency { font-size: 24px; font-weight: 500; color: var(--text-secondary); }
.price-amount   { font-family: var(--font-display); font-size: 64px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--text-primary); }
.pricing-card__otp { display: inline-block; background: rgba(0, 0, 0, 0.04); color: var(--text-primary); font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: var(--r-btn); margin-bottom: var(--sp-8); }
.pricing-card__features { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-8); text-align: left; }
.pricing-feature { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: 15px; color: var(--text-secondary); }
.pricing-feature::before { content: ''; display: block; width: 6px; height: 6px; background: var(--text-secondary); border-radius: 50%; margin-top: 8px; min-width: 6px; }

/* ══════════════════════════════════════════════════════════════════
   17. FAQ
   ══════════════════════════════════════════════════════════════════ */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-item:first-child { border-top: 1px solid var(--border-subtle); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: var(--sp-6) 0; background: none; border: none; font-size: 18px; font-weight: 500; color: var(--text-primary); text-align: left; cursor: pointer; gap: var(--sp-4); transition: color var(--t-fast); }
.faq-question:hover { color: var(--text-secondary); }
.faq-chevron { width: 24px; height: 24px; min-width: 24px; transition: transform var(--t-med); color: var(--text-tertiary); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease; opacity: 0; }
.faq-item.open .faq-answer { max-height: 400px; opacity: 1; padding-bottom: var(--sp-6); }
.faq-answer p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════════
   18. FOOTER
   ══════════════════════════════════════════════════════════════════ */
.footer { border-top: 1px solid var(--border-subtle); padding: var(--sp-16) 0 var(--sp-8); background: transparent; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-12); margin-bottom: var(--sp-12); }
.footer__brand { max-width: 320px; }
.footer__logo { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-4); }
.footer__tagline { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.footer__col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary); margin-bottom: var(--sp-6); }
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__link { font-size: 15px; color: var(--text-secondary); transition: color var(--t-fast); }
.footer__link:hover { color: var(--text-primary); opacity: 1; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-8); border-top: 1px solid var(--border-subtle); }
.footer__copy { font-size: 13px; color: var(--text-tertiary); }
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .footer__bottom { flex-direction: column; gap: var(--sp-4); text-align: center; }
}

/* ══════════════════════════════════════════════════════════════════
   19. AUTH PAGES
   ══════════════════════════════════════════════════════════════════ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); background: transparent; }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 32px; padding: var(--sp-10) var(--sp-8);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.auth-card__logo  { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: var(--sp-2); text-align: center; }
.auth-card__title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: var(--sp-2); text-align: center; }
.auth-card__sub   { font-size: 15px; color: var(--text-secondary); margin-bottom: var(--sp-8); text-align: center; }
.auth-form    { display: flex; flex-direction: column; gap: var(--sp-6); }
.auth-actions { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-2); }
.auth-link    { font-size: 14px; color: var(--text-secondary); text-align: center; }

/* ══════════════════════════════════════════════════════════════════
   20. DASHBOARD LAYOUT
   ══════════════════════════════════════════════════════════════════ */
.dashboard { display: flex; height: 100vh; max-height: 100vh; padding-top: var(--nav-h); background: var(--bg); overflow: hidden; }
.sidebar {
  width: 272px; min-width: 272px; background: var(--bg-100);
  border-right: 1px solid var(--border); padding: var(--sp-8) 0;
  position: fixed; top: var(--nav-h); bottom: 0; overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.sidebar__section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); padding: 0 var(--sp-6) var(--sp-2); margin-top: var(--sp-6); }
.sidebar__nav  { display: flex; flex-direction: column; gap: 2px; padding: 0 var(--sp-4); }
.sidebar__link { display: flex; align-items: center; gap: var(--sp-3); padding: 10px var(--sp-6); margin: 0 var(--sp-4); border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: all var(--t-fast); }
.sidebar__link:hover  { color: var(--text-primary); background: rgba(0, 0, 0, 0.04); opacity: 1; }
.sidebar__link.active { color: var(--bg); background: var(--text-primary); }
.dash-main {
  margin-left: 272px; flex: 1; padding: var(--sp-10) var(--sp-12);
  height: 100%; overflow-y: auto; width: calc(100% - 272px);
  scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.08) transparent;
}
.dash-main::-webkit-scrollbar { width: 5px; }
.dash-main::-webkit-scrollbar-track { background: transparent; }
.dash-main::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 10px; }
.dash-main:hover::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); }
.dash-content { max-width: 1200px; margin: 0 auto; width: 100%; }
.dash-heading { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: var(--sp-10); }
.dash-topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.dash-topbar .dash-heading { margin-bottom: 0; }
.dash-topbar__actions { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.overview-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-6); align-items: start; }
.overview-primary { min-width: 0; }
.overview-side { display: flex; flex-direction: column; gap: var(--sp-6); position: sticky; top: calc(var(--nav-h) + var(--sp-4)); }
.license-controls { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.license-selector-wrap { min-width: 280px; max-width: 360px; width: 100%; }
.quick-card { padding: var(--sp-6); }
.quick-actions-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-10); }
.metric-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--sp-6); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); animation: fadeUp 0.7s var(--t-slow) backwards; }
.metrics-grid > :nth-child(1) { animation-delay: 0.15s; }
.metrics-grid > :nth-child(2) { animation-delay: 0.25s; }
.metrics-grid > :nth-child(3) { animation-delay: 0.35s; }
.metrics-grid > :nth-child(4) { animation-delay: 0.45s; }
.metric-card__label { font-size: 12px; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-2); }
.metric-card__value { font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -0.02em; }
.table-wrap { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-card); }
.table { width: 100%; border-collapse: collapse; text-align: left; }
.table th, .table td { padding: 16px 24px; border-bottom: 1px solid var(--border-subtle); }
.table th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(0, 0, 0, 0.03); }
.table td { font-size: 15px; color: var(--text-secondary); }
.table td:first-child { color: var(--text-primary); font-weight: 500; }
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-100); border-top: 1px solid var(--border-subtle); z-index: 900; padding-bottom: env(safe-area-inset-bottom, 12px); }
.bottom-nav__items { display: flex; justify-content: space-around; padding: 12px 0; }
.bottom-nav__item { font-size: 12px; font-weight: 500; color: var(--text-tertiary); transition: color var(--t-fast); }
.bottom-nav__item.active { color: var(--text-primary); }
@media (max-width: 900px) {
  .dash-main { margin-left: 0; max-width: 100%; padding: var(--sp-6) var(--sp-4) 100px; }
  .sidebar { display: none; }
  .bottom-nav { display: block; }
  .overview-shell { grid-template-columns: 1fr; }
  .overview-side { position: static; }
  .license-selector-wrap { min-width: 0; max-width: none; }
}

/* ══════════════════════════════════════════════════════════════════
   21. MODALS & TOASTS
   ══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center; z-index: 2000;
  opacity: 0; pointer-events: none; transition: opacity var(--t-med);
}
.modal-overlay:not(.hidden) { opacity: 1; pointer-events: auto; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-modal); padding: var(--sp-10) var(--sp-8); width: 100%; max-width: 460px; position: relative; transform: translateY(20px) scale(0.95); transition: transform var(--t-med); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1); }
.modal-overlay:not(.hidden) .modal { transform: translateY(0) scale(1); }
.modal__close { position: absolute; top: var(--sp-6); right: var(--sp-6); background: none; border: none; font-size: 24px; color: var(--text-tertiary); cursor: pointer; transition: color var(--t-fast); }
.modal__close:hover { color: var(--text-primary); }
.toast-container { position: fixed; bottom: var(--sp-6); right: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); z-index: 3000; pointer-events: none; }
.toast { background: var(--text-primary); color: var(--bg); padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; pointer-events: auto; }
.toast.error, .toast.danger { background: var(--danger); }
.toast.success { background: var(--success); }
.toast.warning { background: var(--warning); color: var(--text-100); }
@keyframes toastSlideIn { from { opacity: 0; transform: translateX(20px) scale(0.9); } to { opacity: 1; transform: translateX(0) scale(1); } }
.hidden { display: none !important; }
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.alert-info    { background: rgba(0, 0, 0, 0.04); border: 1px solid var(--border-subtle); color: var(--text-primary); }
.alert-success { background: rgba(0, 0, 0, 0.04); border: 1px solid var(--border-subtle); color: var(--success); }
.alert-danger  { background: rgba(0, 0, 0, 0.04); border: 1px solid var(--border-subtle); color: var(--danger); }
.alert-warning { background: rgba(0, 0, 0, 0.04); border: 1px solid var(--border-subtle); color: var(--warning); }

/* Code blocks */
.code-block { position: relative; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: var(--sp-4); overflow: hidden; }
.code-block pre { margin: 0; overflow-x: auto; font-family: var(--font-mono); font-size: 14px; color: var(--text-primary); }
.code-block__copy { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, 0.05); color: var(--text-primary); border: none; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; transition: background var(--t-fast); }
.code-block__copy:hover { background: rgba(0, 0, 0, 0.1); }

/* ══════════════════════════════════════════════════════════════════
   22. ABOUT, SOCIAL PROOF, MISC
   ══════════════════════════════════════════════════════════════════ */
.highlight-box { background: rgba(0, 0, 0, 0.03); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 16px; padding: 20px 24px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.highlight-box strong { color: var(--text-primary); font-weight: 700; }
.success-box { background: rgba(0, 0, 0, 0.04); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 12px; padding: 16px 20px; font-size: 14px; font-weight: 600; color: var(--success); }

.social-proof-row { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13px; color: var(--text-tertiary); }
.avatar-cluster { display: flex; }
.av { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--bg-100); }
.av:first-child { margin-left: 0; }
.av-1 { background: var(--text-100); }
.av-2 { background: var(--text-200); }
.av-3 { background: var(--bg-300); }
.av-4 { background: var(--bg-200); }

.about-hero { padding-top: 180px; padding-bottom: 80px; text-align: center; max-width: 800px; margin: 0 auto; }
.about-intro-text { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.6; color: var(--text-secondary); margin-bottom: 24px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 64px; margin-bottom: 64px; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-card); padding: 48px; position: relative; overflow: hidden; transition: transform var(--t-med), box-shadow var(--t-med); }
.about-card:hover { transform: translateY(-5px); box-shadow: 0 20px 56px rgba(0, 0, 0, 0.07); }
.about-card h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; }
.about-card p  { font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 16px; }
.founder-section { margin-top: 100px; margin-bottom: 100px; }
.founder-block { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-card); padding: 60px; display: flex; gap: 48px; align-items: center; }
.founder-photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-subtle); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); flex-shrink: 0; }
.founder-content { flex: 1; }
.founder-name  { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.founder-title { font-size: 15px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 24px; }
.founder-quote { font-size: 18px; line-height: 1.6; color: var(--text-secondary); font-style: italic; position: relative; }
.founder-quote::before { content: '"'; font-size: 60px; color: var(--border-subtle); position: absolute; top: -20px; left: -30px; font-family: var(--font-display); z-index: -1; }
@media (max-width: 800px) { .founder-block { flex-direction: column; text-align: center; padding: 40px 24px; } .founder-quote::before { left: 50%; transform: translateX(-50%); top: -30px; } }
.mission-text { font-size: 24px; font-family: var(--font-display); font-weight: 500; line-height: 1.5; text-align: center; max-width: 700px; margin: 0 auto 60px; }
.list-emph { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-primary); margin: 8px 0; }

/* Code terminal (visual component) */
.terminal { background: var(--bg-200); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border); }
.terminal-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(0, 0, 0, 0.05); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot:nth-child(1) { background: var(--accent-100); }
.t-dot:nth-child(2) { background: var(--primary-100); }
.t-dot:nth-child(3) { background: var(--primary-100); }
.terminal-body { padding: 24px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--text-200); }
.t-green { color: var(--primary-300); }
.t-brand { color: var(--primary-200); }
.t-muted { color: var(--bg-300); }

/* Project section */
.project-section { padding: 96px 0; position: relative; }
.project-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.project-label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-badge); border: 1px solid var(--border-subtle); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 20px; }
.project-title { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 20px; }
.project-desc { font-size: 1.5rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; }
.project-points { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.project-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.project-points li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex-shrink: 0; }
.project-visual { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-card); padding: 36px; min-height: 340px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }

/* ══════════════════════════════════════════════════════════════════
   23. ANIMATIONS & SCROLL EFFECTS
   ══════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"], .reveal-left[data-delay="1"], .reveal-right[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"], .reveal-left[data-delay="2"], .reveal-right[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"], .reveal-left[data-delay="3"], .reveal-right[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"], .reveal-left[data-delay="4"], .reveal-right[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"], .reveal-left[data-delay="5"], .reveal-right[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"], .reveal-left[data-delay="6"], .reveal-right[data-delay="6"] { transition-delay: 0.6s; }

.shine { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.02); pointer-events: none; border-radius: inherit; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2); }
  50%       { opacity: 0.75; transform: scale(1.2); box-shadow: 0 0 0 6px rgba(0, 0, 0, 0); }
}
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Ensure page content sits above canvas layers */
nav#navbar, #hero, section, footer, .marquee-outer { position: relative; z-index: 2; }

/* ══════════════════════════════════════════════════════════════════
   24. GOVERNMENT PAGE — specific classes
   ══════════════════════════════════════════════════════════════════ */
.gov-highlight-box {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
}
.gov-card {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
}
.gov-card-alt {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.gov-progress-bar {
  background: var(--primary-100);
}
.gov-cta-box {
  border-color: rgba(0, 0, 0, 0.08);
}

/* ══════════════════════════════════════════════════════════════════
   25. RESPONSIVE OVERRIDES
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bento-a, .bento-b, .bento-c, .bento-d, .bento-e { grid-column: 1/-1; grid-row: auto; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .split-block, .split-block.reverse { grid-template-columns: 1fr; direction: ltr; gap: 36px; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .project-inner { grid-template-columns: 1fr; gap: 40px; }
  .section-pad { padding: 60px 0; }
  h1.hero-title { font-size: clamp(2.6rem, 9vw, 4.5rem); }
}
@media (max-width: 600px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 320px; }
  .metrics-row { flex-direction: column; align-items: center; }
  .stat-bar { flex-wrap: wrap; }
  .stat-item { flex: 1 0 40%; }
}


/* ══════════════════════════════════════════════════════════════════
   18B. HOMEPAGE/GOV FOOTER (from footer.css)
   ══════════════════════════════════════════════════════════════════ */
/*  FOOTER  */
footer {
  background:transparent;
  padding:80px 0 36px;
  position:relative;
  z-index:2;
  width:100%;
  flex-shrink:0;
  border-top:1px solid var(--border-subtle);
}
.footer-grid {
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:60px;
  margin-bottom:64px;
}
.footer-tagline {
  font-size:14px;
  color:var(--text-tertiary);
  line-height:1.75;
  max-width:260px;
  margin-top:10px;
}
.footer-col-title {
  font-family:'Ubuntu',sans-serif;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.07em;
  color:var(--text-tertiary);
  margin-bottom:20px;
}
.footer-links {
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:13px;
  padding:0; margin:0;
}
.footer-links a {
  font-size:14px;
  color:var(--text-secondary);
  transition:color var(--t-fast);
  text-decoration:none;
}
.footer-links a:hover { color:var(--text-primary); }

.footer-bottom {
  border-top:1px solid var(--border-subtle);
  padding-top:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.footer-copy { font-size:13px; color:var(--text-tertiary); }
.footer-socials { display:flex; gap:12px; }
.footer-socials a {
  width:36px; height:36px;
  border-radius:8px;
  border:1px solid var(--border-subtle);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  color:var(--text-tertiary);
  transition:all var(--t-fast);
  text-decoration:none;
}
.footer-socials a:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.footer-socials a[title="X / Twitter"]::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.footer-socials a[title="GitHub"]::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.footer-socials a[title="LinkedIn"]::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

@media (max-width:900px) {
  .footer-grid { grid-template-columns:1fr 1fr; gap:40px; }
}
@media (max-width:600px) {
  .footer-grid { grid-template-columns:1fr; gap:32px; }
  .footer-bottom { flex-direction:column; gap:20px; text-align:center; }
}

/* ══════════════════════════════════════════════════════════════════
   19. BLOG COMPONENT STYLES (Worker)
   ══════════════════════════════════════════════════════════════════ */
/* Reading Progress Bar */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--brand);
  z-index: 10001;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Page Header (List Page) */
.page-header {
  padding: 140px 24px 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.page-header p {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
}

/* Blog Grid */
.blog-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}
.blog-empty {
  text-align: center;
  padding: 60px;
  color: var(--text-tertiary);
  background: var(--bg-card);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
}

/* Blog Card */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.15);
}
.blog-card__banner {
  height: 200px;
  width: 100%;
  background: var(--bg-hover);
  overflow: hidden;
  position: relative;
}
.blog-card__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.blog-card:hover .blog-card__banner img {
  transform: scale(1.05);
}
.blog-card__banner--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-300);
}
.blog-card__banner--placeholder span {
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(0,0,0,0.1);
  font-size: 2rem;
  letter-spacing: 0.1em;
}
.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.blog-card__subtitle {
  font-size: var(--text-body);
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}
.blog-card__dot {
  color: var(--border-hover);
}

/* Post Hero */
.post-hero {
  padding: 140px 24px 60px;
  text-align: center;
  position: relative;
}
.post-hero--banner {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
}
.post-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.post-hero--banner .post-title,
.post-hero--banner .post-subtitle {
  color: #fff;
}
.post-title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.post-subtitle {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
}

/* Article Wrapper */
.article-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.back-btn {
  display: inline-flex;
  margin-bottom: 32px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.back-btn:hover {
  color: var(--brand);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-bottom: 32px;
  justify-content: center;
}
.post-meta__author {
  font-weight: 600;
  color: var(--text-secondary);
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 40px;
}

/* Blog Content (Quill output) */
.blog-content {
  font-family: var(--font-sans);
  font-size: var(--text-body-lg);
  line-height: 1.8;
  color: var(--text-primary);
}
.blog-content h2, .blog-content h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-weight: 700;
}
.blog-content h2 { font-size: 2rem; }
.blog-content h3 { font-size: 1.5rem; }
.blog-content p {
  margin-bottom: 1.5em;
}
.blog-content img {
  border-radius: var(--r-card);
  margin: 2em 0;
  border: 1px solid var(--border-subtle);
}
.blog-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  margin: 2em 0;
  border: none;
}
.blog-content pre {
  background: var(--bg-dark);
  color: #fff;
  padding: 1.5em;
  border-radius: 12px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 1.5em;
}
.blog-content code {
  background: var(--bg-hover);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.blog-content pre code {
  background: transparent;
  padding: 0;
}
.blog-content blockquote {
  border-left: 4px solid var(--brand);
  padding-left: 1.5em;
  margin-left: 0;
  font-style: italic;
  color: var(--text-secondary);
}
.blog-content ul, .blog-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}
.blog-content li {
  margin-bottom: 0.5em;
}

@media (max-width: 768px) {
  .article-card { padding: 24px; }
  .post-hero { padding: 100px 24px 40px; }
}
