/* ══════════════════════════════════════════════
   CSS VARIABLES & THEMES
   ══════════════════════════════════════════════ */
:root {
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.15);
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2234;
  --bg-card: #151d2e;
  --bg-input: #0d1321;
  --bg-hover: #1e293b;
  --border-primary: #1e293b;
  --border-accent: #2a3a52;
  --text-primary: #e8edf5;
  --text-secondary: #8b9bb4;
  --text-muted: #5a6a82;
  --accent-1: #3b82f6;
  --accent-1-soft: rgba(59,130,246,.12);
  --accent-1-glow: rgba(59,130,246,.25);
  --accent-2: #10b981;
  --accent-2-soft: rgba(16,185,129,.12);
  --accent-3: #f59e0b;
  --accent-3-soft: rgba(245,158,11,.12);
  --accent-4: #ef4444;
  --accent-4-soft: rgba(239,68,68,.12);
  --accent-5: #a855f7;
  --accent-5-soft: rgba(168,85,247,.12);
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --grid-line: rgba(59,130,246,.04);
  --glow-primary: 0 0 20px rgba(59,130,246,.15);
}

[data-theme="light"] {
  --bg-primary: #f0f4f8;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8eef4;
  --bg-card: #ffffff;
  --bg-input: #f5f8fb;
  --bg-hover: #e8eef4;
  --border-primary: #d4dce8;
  --border-accent: #c0ccdb;
  --text-primary: #1a2234;
  --text-secondary: #5a6a82;
  --text-muted: #8b9bb4;
  --accent-1: #2563eb;
  --accent-1-soft: rgba(37,99,235,.08);
  --accent-1-glow: rgba(37,99,235,.15);
  --accent-2: #059669;
  --accent-2-soft: rgba(5,150,105,.08);
  --accent-3: #d97706;
  --accent-3-soft: rgba(217,119,6,.08);
  --accent-4: #dc2626;
  --accent-4-soft: rgba(220,38,38,.08);
  --accent-5: #9333ea;
  --accent-5-soft: rgba(147,51,234,.08);
  --success: #059669;
  --error: #dc2626;
  --warning: #d97706;
  --grid-line: rgba(37,99,235,.03);
  --glow-primary: 0 0 20px rgba(37,99,235,.08);
}

/* ══════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent-1);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════ */
.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-5));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  box-shadow: var(--glow-primary);
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  display: inline;
}

.logo-sub {
  display: inline;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.privacy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-privacy 2s ease infinite;
}

@keyframes pulse-privacy {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-primary);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: var(--accent-1-soft);
}

/* ══════════════════════════════════════════════
   NAVIGATION TABS
   ══════════════════════════════════════════════ */
.nav-tabs {
  display: flex;
  gap: 4px;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-tab {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab .tab-icon { font-size: 16px; }
.nav-tab .tab-label { font-size: 14px; }

.nav-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-tab.active {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
}

/* ══════════════════════════════════════════════
   PANELS
   ══════════════════════════════════════════════ */
.panel { display: none; }
.panel.active { display: block; animation: fadeIn .25s ease; }

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

/* ══════════════════════════════════════════════
   CARD
   ══════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color var(--transition);
}

.card:hover {
  border-color: var(--border-accent);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.card-title .icon {
  font-size: 16px;
}

/* ══════════════════════════════════════════════
   CONVERTER GRID
   ══════════════════════════════════════════════ */
.converter-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.input-section { }

.base-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.base-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.base-btn:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
}

.base-btn.active {
  background: var(--accent-1-soft);
  border-color: var(--accent-1);
  color: var(--accent-1);
  box-shadow: 0 0 0 1px var(--accent-1);
}

.input-field {
  width: 100%;
  min-height: 80px;
  padding: 14px 16px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--accent-1-glow);
}

.input-field::placeholder {
  color: var(--text-muted);
}

.input-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════
   RESULTS GRID
   ══════════════════════════════════════════════ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.result-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all var(--transition);
  position: relative;
}

.result-card:hover {
  border-color: var(--border-accent);
}

.result-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-label .base-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.base-tag.bin { background: var(--accent-1-soft); color: var(--accent-1); }
.base-tag.oct { background: var(--accent-2-soft); color: var(--accent-2); }
.base-tag.dec { background: var(--accent-3-soft); color: var(--accent-3); }
.base-tag.hex { background: var(--accent-5-soft); color: var(--accent-5); }

.result-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  word-break: break-all;
  color: var(--text-primary);
  min-height: 24px;
  line-height: 1.5;
}

.result-value.grouped {
  letter-spacing: .02em;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
}

.result-card:hover .copy-btn { opacity: 1; }

.copy-btn:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: var(--accent-2-soft);
}

.copy-btn.copied {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: var(--accent-2-soft);
}

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: var(--accent-1-soft);
}

.btn-primary {
  background: var(--accent-1);
  border-color: var(--accent-1);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-1);
  filter: brightness(1.1);
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* ══════════════════════════════════════════════
   STATUS FEEDBACK
   ══════════════════════════════════════════════ */
.status-bar {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-top: 12px;
  display: none;
  align-items: center;
  gap: 8px;
}

.status-bar.visible { display: flex; }
.status-bar.success { background: var(--accent-2-soft); color: var(--accent-2); }
.status-bar.error { background: var(--accent-4-soft); color: var(--accent-4); }
.status-bar.info { background: var(--accent-1-soft); color: var(--accent-1); }

/* ══════════════════════════════════════════════
   ASCII TABLE
   ══════════════════════════════════════════════ */
.ascii-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.ascii-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: border-color var(--transition);
}

.ascii-search:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--accent-1-glow);
}

.ascii-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
}

.ascii-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
}

.ascii-table th {
  padding: 10px 12px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: left;
  border-bottom: 1px solid var(--border-primary);
  position: sticky;
  top: 0;
  z-index: 2;
}

.ascii-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-primary);
  color: var(--text-primary);
  transition: background var(--transition);
}

.ascii-table tr:hover td {
  background: var(--bg-hover);
}

.ascii-table .char-display {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-1);
  min-width: 32px;
  display: inline-block;
  text-align: center;
}

.ascii-table .ctrl-char {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--accent-3-soft);
  color: var(--accent-3);
  border-radius: 3px;
}

.ascii-range-btns {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.ascii-range-btns .btn { font-size: 12px; padding: 6px 12px; }

/* ══════════════════════════════════════════════
   BATCH / FILE UPLOAD
   ══════════════════════════════════════════════ */
.drop-zone {
  border: 2px dashed var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-input);
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent-1);
  background: var(--accent-1-soft);
}

.drop-zone .drop-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.drop-zone .drop-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.drop-zone .drop-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.file-preview {
  display: none;
  margin-top: 16px;
}

.file-preview.visible { display: block; }

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.file-info .file-icon { font-size: 24px; }

.file-info .file-name {
  font-weight: 600;
  font-size: 14px;
}

.file-info .file-size {
  font-size: 12px;
  color: var(--text-muted);
}

.file-content-preview {
  max-height: 200px;
  overflow-y: auto;
  padding: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.batch-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.batch-options label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.batch-options select {
  padding: 8px 12px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
}

.batch-options select:focus {
  outline: none;
  border-color: var(--accent-1);
}

/* ══════════════════════════════════════════════
   BITWISE PANEL
   ══════════════════════════════════════════════ */
.bitwise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.bitwise-grid .input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.bitwise-grid input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
}

.bitwise-grid input:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--accent-1-glow);
}

.bitwise-op-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.bitwise-op-btns .btn.active {
  background: var(--accent-5-soft);
  border-color: var(--accent-5);
  color: var(--accent-5);
}

.bit-visualization {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 12px;
}

.bit-cell {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-primary);
  transition: all var(--transition);
}

.bit-cell.on {
  background: var(--accent-1-soft);
  color: var(--accent-1);
  border-color: var(--accent-1);
}

.bit-cell.off {
  background: var(--bg-input);
  color: var(--text-muted);
}

.bit-separator {
  width: 8px;
}

/* ══════════════════════════════════════════════
   TEXT CONVERTER
   ══════════════════════════════════════════════ */
.text-converter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.text-converter-grid textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  resize: vertical;
  transition: border-color var(--transition);
}

.text-converter-grid textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--accent-1-glow);
}

.text-encoding-btns {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  padding: 32px 0 16px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border-primary);
  margin-top: 40px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .app-wrapper { padding: 16px 14px 40px; }
  .header-inner { height: 56px; }
  .logo-text h1 { font-size: 18px; }
  .nav-tabs { gap: 4px; padding: 12px 16px; }
  .nav-tab { padding: 8px 14px; font-size: 13px; }
  .privacy-badge span:not(.privacy-dot) { display: none; }
  .privacy-badge { padding: 8px; }
  .card { padding: 18px; }
  .results-grid { grid-template-columns: 1fr; }
  .bitwise-grid { grid-template-columns: 1fr; }
  .text-converter-grid { grid-template-columns: 1fr; }
  .copy-btn { opacity: 1; }
  .base-selector { gap: 4px; }
  .base-btn { padding: 7px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
  .nav-tab { padding: 8px 10px; font-size: 12px; }
}

/* ══════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Selection */
::selection {
  background: var(--accent-1-glow);
  color: var(--text-primary);
}

/* ===== SITE FOOTER ===== */
.site-footer{
  margin-top:60px;padding:48px 28px 36px;
  border-top:1px solid var(--border-primary);
  background:var(--bg-primary);color:var(--text-secondary);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:14px;line-height:1.6;
}
.site-footer .footer-inner{max-width:1100px;margin:0 auto}
.site-footer .footer-grid{
  display:grid;grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;margin-bottom:40px;
}
.site-footer .footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.site-footer .footer-brand svg{width:32px;height:32px;color:#a855f7;flex-shrink:0}
.site-footer .footer-brand-name{
  font-size:20px;font-weight:700;
  background:linear-gradient(90deg,#8B5CF6,#EC4899,#3B82F6);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.site-footer .footer-desc{color:var(--text-muted);margin-bottom:16px;max-width:360px}
.site-footer .footer-copy{font-size:12px;color:var(--text-muted)}
.site-footer h2{font-weight:700;margin-bottom:16px;color:var(--text-primary);font-size:15px}
.site-footer ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.site-footer a{color:var(--text-secondary);text-decoration:underline;text-decoration-color:var(--border-primary);text-underline-offset:2px;transition:color .2s,text-decoration-color .2s}
.site-footer a:hover{color:#a855f7;text-decoration-color:#a855f7}
.site-footer .footer-bottom{
  border-top:1px solid var(--border-primary);
  padding-top:20px;text-align:center;
}
.site-footer .footer-bottom p{color:var(--text-muted);font-size:13px}
.site-footer .footer-bottom span{color:#a855f7}

@media(max-width:768px){
  .site-footer .footer-grid{grid-template-columns:1fr;gap:32px}
  .site-footer{padding:36px 16px 28px}
}
