/* Hutch AI - Design System */
:root {
  --charcoal: #1A1A1A;
  --warm-white: #FAFAF8;
  --sage-green: #7C9082;
  --soft-cream: #F5F3EF;
  --terracotta: #C4846C;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
  
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  padding: 12px 24px;
  font-size: 16px;
  text-decoration: none;
}

.btn-primary {
  background: var(--sage-green);
  color: white;
}

.btn-primary:hover {
  background: #6a7d70;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #c5cdc8;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--soft-cream);
  color: var(--charcoal);
}

.btn-secondary:hover {
  background: #ebe8e3;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  min-height: 36px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-block {
  width: 100%;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 15px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

/* Hero */
.hero {
  padding: 140px 20px 80px;
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--soft-cream) 100%);
}

.hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 20px;
  color: var(--charcoal);
}

.hero-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--sage-green);
}

.stat-label {
  font-size: 14px;
  color: #666;
}

/* Upload Section */
.upload-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.upload-zone {
  background: white;
  border: 2px dashed #d0d5d1;
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 24px;
}

.upload-zone:hover {
  border-color: var(--sage-green);
  background: rgba(124, 144, 130, 0.02);
}

.upload-zone.dragover {
  border-color: var(--sage-green);
  background: rgba(124, 144, 130, 0.05);
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upload-icon {
  opacity: 0.6;
}

.upload-zone h3 {
  font-size: 18px;
  color: var(--charcoal);
}

.upload-zone p {
  color: #666;
  font-size: 14px;
}

.upload-hint {
  font-size: 12px;
  color: #999;
}

.upload-preview {
  position: relative;
}

.upload-preview img {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.usage-info {
  margin-top: 16px;
  font-size: 14px;
  color: #666;
}

/* Processing Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.processing-animation {
  margin-bottom: 24px;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 4px solid var(--soft-cream);
  border-top-color: var(--sage-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-content h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.processing-status {
  color: #666;
  margin-bottom: 24px;
}

.progress-bar {
  height: 6px;
  background: var(--soft-cream);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--sage-green);
  width: 0%;
  transition: width 0.3s ease;
}

/* Results Section */
.results-section {
  padding: 80px 20px;
  background: var(--warm-white);
}

.results-header {
  text-align: center;
  margin-bottom: 48px;
}

.results-header h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.results-header p {
  color: #666;
}

.comparison-container {
  max-width: 900px;
  margin: 0 auto 48px;
}

.comparison-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.toggle-btn {
  padding: 10px 24px;
  border: none;
  background: var(--soft-cream);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn.active {
  background: var(--sage-green);
  color: white;
}

.comparison-view {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-image {
  display: none;
}

.comparison-image.active {
  display: block;
}

.comparison-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}

/* Shop Section */
.shop-section {
  margin-bottom: 48px;
}

.shop-section h3 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
}

.shop-section > p {
  text-align: center;
  color: #666;
  margin-bottom: 32px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.product-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 16px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-price {
  color: var(--sage-green);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}

.product-card .btn {
  width: 100%;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* How It Works */
.how-it-works {
  padding: 100px 20px;
  background: white;
}

.how-it-works h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 64px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--terracotta);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--soft-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step p {
  color: #666;
  font-size: 15px;
}

/* Showcase */
.showcase {
  padding: 100px 20px;
  background: var(--soft-cream);
}

.showcase h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 48px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.showcase-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/10;
}

.showcase-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.showcase-before {
  opacity: 0;
}

.showcase-item:hover .showcase-before {
  opacity: 1;
}

.showcase-item:hover .showcase-after {
  opacity: 0;
}

/* Pricing */
.pricing {
  padding: 100px 20px;
  background: white;
}

.pricing h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 48px auto 0;
}

.pricing-card {
  background: var(--warm-white);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.pricing-card.featured {
  background: white;
  border: 2px solid var(--sage-green);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage-green);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.price {
  font-size: 48px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--charcoal);
}

.price span {
  font-size: 16px;
  font-weight: 400;
  color: #666;
}

.pricing-header p {
  color: #666;
  font-size: 14px;
  margin-top: 8px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
}

.pricing-features .check {
  flex-shrink: 0;
}

/* Trust */
.trust {
  padding: 60px 20px;
  background: var(--soft-cream);
}

.trust-grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #666;
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: white;
  padding: 64px 20px 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 12px;
}

.footer-brand .logo svg rect {
  fill: var(--sage-green);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links a:not(.btn) {
    display: none;
  }
  
  .hero {
    padding: 120px 20px 60px;
  }
  
  .hero-stats {
    gap: 32px;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .showcase-item {
    min-height: 300px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 32px 24px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .results-actions {
    flex-direction: column;
  }
  
  .results-actions .btn {
    width: 100%;
  }
}