:root {
  --primary: #0D59F2;
  --primary-dark: #0043CE;
  --secondary: #8B5CF6;
  --primary-gradient: linear-gradient(135deg, #0D59F2 0%, #6366F1 50%, #8B5CF6 100%);
  --bg-page: #F4F6FC;
  --card-bg: rgba(255, 255, 255, 0.96);
  --card-border: rgba(225, 232, 245, 0.85);
  --card-shadow: 0 10px 32px rgba(13, 89, 242, 0.06);
  --text-main: #111827;
  --text-muted: #64748B;
  --success: #12B76A;
  --success-bg: rgba(18, 183, 106, 0.12);
  --danger: #EF4444;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --track-bg: #E2E8F4;
  --dropzone-bg: rgba(244, 248, 255, 0.65);
  --dropzone-border: #B8C7E8;
}

body.dark-mode {
  --bg-page: #0B0E14;
  --card-bg: rgba(20, 25, 36, 0.96);
  --card-border: rgba(45, 55, 75, 0.85);
  --card-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --track-bg: #222938;
  --dropzone-bg: rgba(244, 248, 255, 0.04);
  --dropzone-border: #38445C;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-page);
  color: var(--text-main);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Ambient Background Orbs */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb-1 {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  max-width: 650px;
  max-height: 650px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  filter: blur(60px);
}
.orb-2 {
  position: absolute;
  top: 5%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(13, 89, 242, 0.12) 0%, transparent 70%);
  filter: blur(60px);
}

.app-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Homepage Hero SEO Section */
.hero-section {
  text-align: center;
  padding: 8px 12px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-section h1 {
  font-size: clamp(24px, 4.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin: 0;
}

.hero-section p {
  font-size: clamp(14px, 2vw, 15px);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.nav-brand img,
.nav-brand-logo {
  height: 36px;
  max-height: 36px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

@media (max-width: 600px) {
  .nav-brand img,
  .nav-brand-logo {
    height: 28px !important;
    max-height: 28px !important;
    max-width: 155px !important;
  }
}

.brand-icon-3d {
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(13, 89, 242, 0.35);
  overflow: hidden;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
}

.desktop-menu {
  display: none;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.menu-btn:hover {
  color: var(--primary);
  background: rgba(13, 89, 242, 0.06);
}

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

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.2s ease;
}
.theme-toggle-btn:hover {
  transform: rotate(15deg);
}

.btn-get-started {
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 89, 242, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-get-started:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 89, 242, 0.4);
}

.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  cursor: pointer;
  color: var(--text-main);
  font-size: 18px;
}

/* Mobile Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--card-bg);
  border-right: 1px solid var(--card-border);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}
.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 12px;
}

.drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.drawer-item:hover {
  background: rgba(13, 89, 242, 0.08);
}
.drawer-divider {
  height: 1px;
  background: var(--card-border);
  margin: 10px 0;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  color: var(--primary);
}
.breadcrumbs span {
  color: var(--text-main);
  font-weight: 600;
}

/* Workspace Grid (Desktop 2-Column) */
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.compressor-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.seg-tabs {
  display: flex;
  background: var(--track-bg);
  padding: 4px;
  border-radius: 100px;
  gap: 4px;
}

.seg-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.seg-tab.active {
  background: var(--card-bg);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dropzone {
  border: 2px dashed var(--dropzone-border);
  border-radius: var(--radius-md);
  background: var(--dropzone-bg);
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dropzone.dragover {
  border-color: var(--primary);
  background: rgba(13, 89, 242, 0.08);
  transform: scale(1.01);
}

.drop-cloud-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: 0 4px 16px rgba(13, 89, 242, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.btn-choose-file {
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 89, 242, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
}
.btn-choose-file:hover {
  transform: translateY(-1px);
}

/* Continuous 1% - 100% Slider */
.slider-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--track-bg);
  padding: 16px 18px;
  border-radius: var(--radius-md);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-pct-badge {
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(13, 89, 242, 0.25);
}

.slider-track-wrap {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #CBD5E1;
  display: flex;
  align-items: center;
}

.slider-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px;
  width: 60%;
  pointer-events: none;
}

.range-slider {
  position: absolute;
  left: 0;
  top: -14px;
  width: 100%;
  height: 36px;
  -webkit-appearance: none;
  background: transparent;
  outline: none;
  cursor: pointer;
  margin: 0;
  z-index: 2;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Preset Target Pills */
.preset-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-pill {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.preset-pill:hover, .preset-pill.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Processing & Completion States */
.state-box {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--track-bg);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--primary-gradient);
  transition: width 0.2s ease;
}

.delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-bg);
  color: var(--success);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
}

.rename-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
}

/* Compression Strategy Mode Switcher */
.strategy-toggle {
  display: flex;
  background: var(--track-bg);
  padding: 4px;
  border-radius: 100px;
  gap: 4px;
}

.strategy-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.strategy-toggle-btn.active {
  background: var(--card-bg);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Custom Target File Size Panel */
.target-size-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--track-bg);
  padding: 16px 18px;
  border-radius: var(--radius-md);
}

.target-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.target-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.target-input-icon {
  position: absolute;
  left: 12px;
  font-size: 15px;
  pointer-events: none;
  color: var(--primary);
}

.target-size-input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  outline: none;
  transition: all 0.2s ease;
}
.target-size-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 89, 242, 0.15);
}

.target-unit-select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.target-unit-select:focus {
  border-color: var(--primary);
}

.target-hint-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.target-validation-alert {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--danger);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

/* Workspace Sidebar (Balanced 2-Column Right Area) */
.workspace-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Live Inspector Card */
.inspector-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.card-header-bar h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--track-bg);
  color: var(--text-muted);
}
.status-pill.active {
  background: rgba(13, 89, 242, 0.12);
  color: var(--primary);
}
.status-pill.success {
  background: var(--success-bg);
  color: var(--success);
}
.status-pill.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}

/* Inspector Empty State */
.inspector-empty-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inspector-guide-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-page);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}

.guide-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.guide-info-text h5 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.guide-info-text p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Inspector Active File State */
.inspector-active-wrap {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.active-file-summary {
  background: var(--bg-page);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.active-file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

.active-file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.metrics-delta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: var(--bg-page);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.metric-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-col-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.metric-col-val {
  font-size: 14px;
  font-weight: 800;
}

.target-result-badge {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}
.target-result-badge.achieved {
  background: var(--success-bg);
  color: var(--success);
}
.target-result-badge.unachieved {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}

/* Recent Activity Card */
.activity-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--card-border);
  font-size: 12px;
}

.activity-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.activity-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.activity-delta {
  font-weight: 700;
  color: var(--success);
}

.activity-time {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.activity-empty-message {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px 8px;
  line-height: 1.5;
}

.btn-clear-history {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.btn-clear-history:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
}

/* CLEAN TOOL CARDS SECTION (Strict Rule: Icon + Title only, NO subtitles!) */
.tools-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tools-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.tools-section-header h2,
.tools-section-header h3 {
  font-size: clamp(19px, 3.2vw, 24px);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.4px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(13, 89, 242, 0.12);
}

.tool-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--track-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform 0.2s ease;
}
.tool-card:hover .tool-card-icon {
  transform: scale(1.1);
  background: rgba(13, 89, 242, 0.1);
}

.tool-card h4 {
  font-size: clamp(13px, 2.2vw, 15px);
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

/* Dedicated Tool Workbench Card */
.workbench-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.workbench-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workbench-header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.workbench-header p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 800px;
}

/* SEO Educational & Informational Sections */
.seo-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.seo-section h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.seo-section h3 {
  font-size: 18px;
  font-weight: 700;
}
.seo-section p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.seo-feature-card {
  background: var(--bg-page);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.seo-feature-card h4 {
  font-size: 16px;
  font-weight: 700;
}
.seo-feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-page);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.step-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--bg-page);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.faq-question {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}
.faq-answer {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}
.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Footer */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--card-border);
  padding: 40px 20px 20px 20px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
}
.footer-col h5 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-main);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (min-width: 900px) {
  .desktop-menu { display: flex; }
  .hamburger-btn { display: none; }
  .workspace-grid { grid-template-columns: 1.15fr 0.95fr; }
}

@media (max-width: 899px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .benefit-visual-wrapper { height: 140px; }
  .app-wrapper {
    padding: 16px 18px 60px 18px;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .app-wrapper {
    padding: 12px 14px 48px 14px;
    gap: 20px;
  }
  .navbar {
    padding: 10px 14px;
    border-radius: 14px;
  }
  .compressor-card,
  .workbench-card,
  .seo-section {
    padding: 20px 16px;
    border-radius: 16px;
    gap: 18px;
  }
  .dropzone {
    padding: 24px 14px;
  }
  .drop-cloud-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
  .step-item {
    padding: 14px;
    gap: 12px;
  }
  .faq-item {
    padding: 14px 16px;
  }
  .site-footer {
    padding: 30px 14px 20px 14px;
    margin-top: 24px;
    gap: 20px;
  }
  .footer-top {
    gap: 24px;
  }
  .preset-pills {
    gap: 6px;
  }
  .preset-pill {
    padding: 5px 12px;
    font-size: 11px;
  }
}

@media (max-width: 550px) {
  .footer-top { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tool-card { padding: 16px 10px; }
  .workbench-header h1 { font-size: 24px; }
}
