/**
 * Instant Compress - Professional Design System
 * Clean, trustworthy, and designer-crafted
 */

/* ============================================
   CSS Variables - Professional Color Palette
   ============================================ */
:root {
  /* Primary Colors - Warm Orange */
  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-light: #fff7ed;
  --primary-dark: #c2410c;

  /* Accent Colors */
  --accent: #fb923c;
  --accent-hover: #f97316;

  /* Text Colors */
  --text-primary: #292524;
  --text-secondary: #57534e;
  --text-tertiary: #a8a29e;
  --text-inverse: #ffffff;

  /* Background Colors - Warm and Inviting */
  --bg-primary: #ffffff;
  --bg-secondary: #fffbf7;
  --bg-tertiary: #fef3e7;
  --bg-card: #ffffff;
  --bg-hover: #fff7ed;

  /* Border Colors */
  --border-light: #fed7aa;
  --border-medium: #fdba74;

  /* Status Colors */
  --success: #16a34a;
  --warning: #f59e0b;
  --error: #dc2626;
  --info: #0284c7;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows - Subtle and Professional */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  --font-size-5xl: 48px;
}

/* ============================================
   Base Styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm {
  max-width: 800px;
}

/* ============================================
   Navigation - Clean and Professional
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--text-primary);
}

.logo:hover {
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

/* Stabilize Navbar */
.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  /* Constant weight */
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
  padding: var(--space-sm) 0;
  border-bottom: 2px solid transparent;
  display: flex;
  /* Flex to align emojis */
  align-items: center;
  gap: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  /* No font-weight change on hover to prevent layout shift */
}

/* ============================================
   Buttons - Professional and Clean
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 1px 2px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-medium);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--font-size-base);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--font-size-xs);
}

/* ============================================
   Hero Section - Professional
   ============================================ */
.hero {
  padding: 160px 0 80px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero h1 span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

/* ============================================
   Tool Cards - Clean Grid
   ============================================ */
.tools-section {
  padding: var(--space-3xl) 0;
}

.tools-section h2 {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-decoration: none;
  transition: all var(--transition-normal);
  display: block;
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.tool-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-md);
}

.tool-card:hover .tool-icon {
  background: var(--primary-light);
}

.tool-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.tool-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   Features Section
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.feature-content h3 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-xs);
}

.feature-content p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   Trust Badges
   ============================================ */
.trust-section {
  background: var(--bg-secondary);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  color: var(--success);
}

/* ============================================
   Upload Zone - Professional
   ============================================ */
.upload-zone {
  background: var(--bg-secondary);
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-zone input[type="file"] {
  display: none;
}

.upload-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-md);
}

.upload-zone h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.upload-zone p {
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.upload-options {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.upload-option {
  background: var(--bg-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  border: 1px solid var(--border-light);
}

/* ============================================
   Controls Panel
   ============================================ */
.controls-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-top: var(--space-lg);
}

.control-group {
  margin-bottom: var(--space-lg);
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-label {
  display: block;
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.control-help {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

/* ============================================
   Form Elements
   ============================================ */
.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  transition: all var(--transition-fast);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.range-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.range-value {
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  margin-top: var(--space-sm);
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
}

/* ============================================
   Size Estimation Panel
   ============================================ */
.size-estimate {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.size-estimate-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.size-estimate-value {
  font-weight: 600;
  color: var(--primary);
}

.size-arrow {
  color: var(--text-tertiary);
  margin: 0 var(--space-sm);
}

/* ============================================
   Download Section
   ============================================ */
.download-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-top: var(--space-lg);
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto var(--space-md);
}

.download-section h3 {
  margin-bottom: var(--space-sm);
}

.download-section p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.download-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Tool Page Layout
   ============================================ */
.tool-page {
  padding-top: 72px;
  min-height: 100vh;
}

.tool-header {
  background: var(--bg-secondary);
  padding: var(--space-2xl) 0;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.tool-header h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.tool-header p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.tool-content {
  padding: var(--space-2xl) 0;
}

/* ============================================
   Image Preview
   ============================================ */
.image-preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.image-preview {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
}

.image-preview img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.image-preview .remove-btn {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  width: 24px;
  height: 24px;
  background: var(--error);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-info {
  padding: var(--space-sm);
  background: var(--bg-primary);
}

.image-info span {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   Footer - Professional
   ============================================ */
.footer {
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: var(--text-inverse);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--text-tertiary);
  max-width: 280px;
}

.footer-column h4 {
  color: var(--text-inverse);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--space-sm);
}

.footer-column a {
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
}

.footer-column a:hover {
  color: var(--text-inverse);
}

.footer-bottom {
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.pricing-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
}

.pricing-amount {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

.pricing-amount span {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--text-tertiary);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--error);
}

.toast.warning {
  border-left: 4px solid var(--warning);
}

.toast.info {
  border-left: 4px solid var(--info);
}

.toast-icon {
  font-size: var(--font-size-lg);
}

.toast-message {
  flex: 1;
  font-size: var(--font-size-sm);
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-lg);
  color: var(--text-tertiary);
}

/* ============================================
   Processing Overlay
   ============================================ */
.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--space-md);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Animations
   ============================================ */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mt-2xl {
  margin-top: var(--space-2xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .download-actions {
    flex-direction: column;
  }
}

/* ============================================
   Size Estimate Panel
   ============================================ */
.size-estimate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--primary-light) 0%, #e0f2fe 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--primary);
}

.size-estimate-label {
  font-weight: 600;
  color: var(--text-primary);
}

.size-arrow {
  margin: 0 var(--space-sm);
  color: var(--primary);
  font-weight: bold;
}

.size-estimate-value {
  font-weight: 700;
  color: var(--success);
}

/* ============================================
   Problem Statement Section
   ============================================ */
.problem-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.problem-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.problem-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.problem-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.problem-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ============================================
   Developer Credit
   ============================================ */
.developer-credit {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-sm);
}

.developer-credit strong {
  color: var(--primary);
}

/* ============================================
   Logo Icon - SVG Support
   ============================================ */
.logo-icon svg {
  stroke: white;
}

/* ============================================
   Responsive - Problem Grid
   ============================================ */
@media (max-width: 1024px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* Navbar Dropdown */
.dropdown {
  position: relative;
  cursor: pointer;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-md);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-group {
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--bg-secondary);
  padding-bottom: var(--space-sm);
}

.dropdown-group:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.dropdown-header {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  font-weight: 700;
  padding: 0 var(--space-sm) var(--space-xs);
  display: block;
}

.dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--primary);
  transform: translateX(4px);
}

/* Features Section */
.features-section {
  padding: 4rem 1rem;
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  border: 1px solid var(--border);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* How To Section */
.how-to-section {
  background: var(--bg-secondary);
  padding: 4rem 1rem;
  border-top: 1px solid var(--border);
}

.how-to-container {
  max-width: 800px;
  margin: 0 auto;
}

.how-to-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  background: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Logo Updates */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 800;
  /* Extra bold */
  color: var(--primary);
  /* Highlighted */
  font-size: 1.4rem;
  /* Slightly larger */
  letter-spacing: -0.5px;
}

.global-tagline {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Footer Updates */
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  display: block;
  max-width: 300px;
}

.developer-credit-main {
  margin-top: 1rem;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Fix for Explore Tools scroll offset */
#tools {
  scroll-margin-top: 77px;
  /* Header 72px + 5px gap */
}