:root {
  --bg: #f5f3ff;
  --surface: #ffffff;
  --surface-alt: #faf5ff;
  --border: #e9d5ff;
  --border-hover: #c4b5fd;
  --text: #2e1065;
  --text-secondary: #6b21a8;
  --text-muted: #9333ea;
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #ede9fe;
  --primary-glow: rgba(124, 58, 237, 0.15);
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", "Consolas", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(
      ellipse at 20% 30%,
      rgba(124, 58, 237, 0.04) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(16, 185, 129, 0.03) 0%,
      transparent 60%
    );
}

/* ── Loading Screen ───────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 16, 101, 0.7);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}
.loading-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.loading-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px var(--primary-glow);
}
.loading-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}
.loading-bar-track {
  width: 100%;
  height: 8px;
  background: #e9d5ff;
  border-radius: 4px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.2s ease;
}
.loading-text {
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}
.loading-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ── Header ─────────────────────────── */
.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo {
  width: 38px;
  height: 38px;
  /* background: var(--primary); */
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  /* box-shadow: 0 4px 12px var(--primary-glow); */
}
.header-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--text);
}
.header-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.header-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav {
  display: flex;
  gap: 6px;
  background: var(--surface-alt);
  padding: 4px;
  border-radius: 28px;
  border: 1px solid var(--border);
}
.nav-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 24px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-link.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 6px var(--primary-glow);
}
.header-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ── Slogan Bar ─────────────────────── */
.slogan-bar {
  background: linear-gradient(
    105deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  color: #fff;
  text-align: center;
  padding: 10px 24px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.1px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.slogan-bar .shield {
  font-size: 16px;
}

/* ── Main Layout ────────────────────── */
.app-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

/* ── Settings Panel ─────────────────── */
.settings-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  transition: var(--transition);
}
.settings-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  user-select: none;
}
.preset-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.preset-pill {
  padding: 7px 15px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
  letter-spacing: -0.1px;
  font-family: var(--font);
}
.preset-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.preset-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
  font-weight: 600;
}
.slider-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.slider-container input[type="range"] {
  -webkit-appearance: none;
  width: 110px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.slider-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}
.slider-value {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  min-width: 36px;
  text-align: center;
  font-family: var(--font-mono);
}
.dimension-input,
.format-select {
  padding: 8px 32px 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface-alt);
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
  font-family: var(--font);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b21a8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.format-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #fff;
}
.settings-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  border-radius: 1px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input {
  cursor: pointer;
  accent-color: var(--primary);
}

/* ── Upload Zone ────────────────────── */
.upload-zone {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow:
    var(--shadow-lg),
    0 0 0 8px var(--primary-glow);
  transform: translateY(-1px);
}
.upload-zone.drag-over {
  border-style: solid;
  background: #ede9fe;
  box-shadow:
    var(--shadow-xl),
    0 0 0 16px rgba(124, 58, 237, 0.06);
}
.upload-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: var(--transition-slow);
}
.upload-zone:hover .upload-icon-wrapper {
  background: #ddd6fe;
  transform: scale(1.05);
}
.upload-icon {
  font-size: 28px;
  color: var(--primary);
}
.upload-title {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 4px;
  color: var(--text);
  letter-spacing: -0.2px;
}
.upload-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.upload-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ── Compact Upload ─────────────────── */
.compact-upload {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--surface-alt);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition);
}
.compact-upload:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.compact-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ── Results Area ───────────────────── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.results-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.results-count {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.results-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Buttons ────────────────────────── */
.btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: -0.1px;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  user-select: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px var(--primary-glow);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px var(--primary-glow);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-alt);
}
.btn-success {
  background: var(--success);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}
.btn-success:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}
.btn-danger {
  background: #fff;
  color: var(--danger);
  border: 1.5px solid #fecaca;
}
.btn-danger:hover {
  background: var(--danger-light);
  border-color: var(--danger);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}
.btn-xs {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 5px;
  font-weight: 600;
}
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* ── Video Grid & Card ──────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  animation: cardIn 0.4s ease-out;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.video-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.card-preview {
  width: 100%;
  height: 180px;
  background: #1e1b4b;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.card-preview .play-icon {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}
.card-preview:hover .play-icon {
  transform: scale(1.1);
  color: #fff;
}
.card-preview .status-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  gap: 8px;
}
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--primary);
  transition: width 0.4s ease;
  width: 0%;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-filename {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.1px;
}
.card-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.stat-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  letter-spacing: 0.1px;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.stat-original {
  background: #f1f5f9;
  color: #64748b;
}
.stat-compressed {
  background: var(--success-light);
  color: #059669;
}
.stat-saving {
  background: #ede9fe;
  color: var(--primary);
  font-weight: 700;
}
.stat-saving.poor {
  background: var(--warning-light);
  color: #b45309;
}
.stat-saving.great {
  background: #d1fae5;
  color: #059669;
}
.card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Summary Bar ────────────────────── */
.summary-bar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.summary-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.summary-stat-value {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  font-family: var(--font-mono);
}
.summary-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.summary-highlight {
  color: var(--success);
  font-weight: 700;
  font-size: 20px;
}

/* ── Toast ──────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: #1e293b;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 13px;
  box-shadow: var(--shadow-xl);
  animation:
    slideIn 0.3s ease-out,
    fadeOut 0.3s ease-in 2.5s forwards;
  max-width: 380px;
  letter-spacing: -0.1px;
}
@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ── Footer ─────────────────────────── */
.app-footer {
  margin-top: auto;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}
.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: var(--transition);
}
.footer-github:hover {
  color: var(--primary);
  transform: translateY(-1px);
}
.footer-github svg {
  transition: var(--transition);
}
.footer-github:hover svg {
  transform: scale(1.08);
}

/* ── FAB ────────────────────────────── */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  z-index: 800;
  text-decoration: none;
}
.fab:hover {
  transform: scale(1.1);
  box-shadow:
    var(--shadow-xl),
    0 0 0 4px var(--primary-glow);
}
.fab:active {
  transform: scale(0.95);
}

/* ── Responsive ─────────────────────── */
@media (max-width: 768px) {
  .app-header {
    padding: 0 16px;
    height: 56px;
  }
  .header-title {
    font-size: 15px;
  }
  .header-badge {
    display: none;
  }
  .app-container {
    padding: 16px 12px 32px;
    gap: 16px;
  }
  .settings-panel {
    padding: 14px 16px;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .settings-divider {
    width: 100%;
    height: 1px;
  }
  .video-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .summary-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .upload-zone {
    padding: 24px 16px;
  }
  .upload-title {
    font-size: 15px;
  }
  .btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  .preset-pills {
    gap: 4px;
  }
  .preset-pill {
    padding: 6px 11px;
    font-size: 11px;
  }
  .header-actions {
    gap: 8px;
  }
  .main-nav {
    gap: 2px;
  }
  .nav-link {
    font-size: 11px;
    padding: 5px 10px;
  }
  .header-subtitle {
    display: none;
  }
}
@media (max-width: 480px) {
  .settings-group {
    flex-wrap: wrap;
  }
  .card-preview {
    height: 140px;
  }
  .header-logo {
    width: 30px;
    height: 30px;
  }
}

/* ── Scrollbar ──────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
/* Make the upload zone a clickable button, not a file input overlay */
.upload-zone {
  cursor: pointer;
}
.upload-zone input[type="file"] {
  display: none;
}

/* ── Footer ─────────────────────────── */
.app-footer {
  margin-top: auto;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}
.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: var(--transition);
}
.footer-github:hover {
  color: var(--primary);
  transform: translateY(-1px);
}
.footer-github svg {
  transition: var(--transition);
}
.footer-github:hover svg {
  transform: scale(1.08);
}

/* ── About Page ─────────────────────── */
.about-wrapper {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  width: 100%;
}
.about-hero {
  text-align: center;
  margin-bottom: 48px;
}
.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 12px;
}
.about-hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.about-section {
  margin-bottom: 40px;
}
.about-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-section h2 .section-icon {
  font-size: 1.6rem;
}
.about-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.feature-item .feature-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.feature-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.tech-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-list li {
  background: var(--primary-light);
  color: var(--primary-hover);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  margin-top: 20px;
  transition: var(--transition);
}
.back-link:hover {
  color: var(--primary-hover);
  transform: translateX(-3px);
}

@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
