:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius: 16px;
  --font-family: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.logo-accent {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.btn-primary-sm {
  background-color: var(--primary-color);
  color: white !important;
  padding: 8px 18px;
  border-radius: 8px;
}

/* Hero Section */
.hero-section {
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  background: #dbeafe;
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-text h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin: 16px 0;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.feature-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-weight: 500;
}

.highlight-item i {
  color: #10b981;
}

/* Upload Card */
.upload-card {
  background: var(--card-bg);
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s;
}

.upload-card.dragover {
  border-color: var(--primary-color);
  background-color: #eff6ff;
}

.upload-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.btn-upload {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  margin: 16px 0;
  transition: background 0.2s;
}

.btn-upload:hover {
  background: var(--primary-hover);
}

.file-note {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* States & Utilities */
.hidden {
  display: none !important;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.image-box img {
  max-width: 100%;
  max-height: 350px;
  border-radius: 8px;
  background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.btn-download {
  background: #10b981;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--text-main);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}