@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');

/* CSS Variables for Design System */
:root {
  /* Colors - Light Theme with Blue Accents */
  --color-bg: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #e9ecef;
  --color-text: #1a3742;
  --color-text-secondary: #497383;
  --color-text-muted: #7f9da8;
  --color-accent: #497383;
  --color-accent-hover: #1a3742;
  --color-accent-light: rgba(73, 115, 131, 0.1);
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  --color-border: #b6c7ce;
  --color-border-light: #7f9da8;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(73, 115, 131, 0.1);
  --shadow-md: 0 4px 6px rgba(73, 115, 131, 0.15);
  --shadow-lg: 0 10px 15px rgba(73, 115, 131, 0.2);
  --shadow-xl: 0 20px 25px rgba(73, 115, 131, 0.25);
  
  /* Typography */
  --font-family: 'Manrope', sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;
  
  /* Layout */
  --container-max-width: 1200px;
  --container-padding: var(--space-lg);
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-md) 0;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

p {
  margin: 0 0 var(--space-md) 0;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover, a:focus {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Layout Components */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header */
header {
  background-color: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.nav-brand h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-text);
}

.nav-brand a {
  color: var(--color-text);
  text-decoration: none;
}

.nav-brand a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Burger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  gap: 4px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
  nav {
    padding: var(--space-sm) 0;
  }

  .nav-brand h1 {
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 0;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
    display: block;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

/* Button Components */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  line-height: 1.2;
}

.cta-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cta-button.primary {
  background-color: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.cta-button.primary:hover:not(:disabled) {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cta-button.secondary {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text);
  border-color: var(--color-border);
}

.cta-button.secondary:hover:not(:disabled) {
  background-color: var(--color-bg-secondary);
  border-color: var(--color-border-light);
  color: var(--color-text);
  text-decoration: none;
}

.cta-button.outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.cta-button.outline:hover:not(:disabled) {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  text-decoration: none;
}

@media (max-width: 768px) {
  .cta-button {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.95rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
  overflow: hidden;
  height: 36vw;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .hero {
    height: 100vh;
    min-height: 100vh;
  }
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-video-container {
    height: 100%;
  }
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero-video {
    height: 100%;
    object-fit: cover;
    object-position: 30% center;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), linear-gradient(rgba(73, 115, 131, 0.05), rgba(26, 55, 66, 0.08));
  z-index: 2;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.feature {
  text-align: center;
}

.feature-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.feature-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.support-section {
  padding: 0 0 var(--space-xl) 0;
  text-align: center;
}

.support-link {
  margin: 0;
  font-size: 0.9rem;
}

.support-link a {
  color: var(--color-accent);
  text-shadow: none;
  text-decoration: none;
}

.support-link a:hover {
  color: var(--color-accent-hover);
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-2xl) 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
}

/* Section Styles */
section {
  padding: var(--space-3xl) 0;
}

section:nth-child(even) {
  background-color: var(--color-bg-secondary);
}

/* Keep the page background for the whole upload section */
section.upload-section {
  background-color: var(--color-bg); /* overrides the zebra bg */
}

/* Give the OUTER rounded card its own grey background */
.upload-section-form {
  background-color: var(--color-bg-secondary);
  box-shadow: var(--shadow-sm);
  overflow: hidden; /* ensures bg clips to the rounded corners */
}

/* Keep the dashed UPLOAD box lighter than the card */
.upload-area {
  background-color: var(--color-bg);
}


/* How It Works */
.how-it-works h2, .examples h2, .trust h2, .faq h2 {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-normal);
}

.step:hover {
  transform: translateY(-4px);
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-lg);
  color: var(--color-accent);
}

.step h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .step {
    padding: var(--space-lg);
  }
}

/* Examples Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-container {
  background-color: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
}

.image-comparison {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-secondary);
}

.image-before,
.image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-before img,
.image-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-after {
  clip-path: inset(0 0 0 50%);
}

.slider-control {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  z-index: 2;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 100vh;
  background: transparent;
  cursor: pointer;
  border-radius: 0;
  pointer-events: all;
}

.slider::-moz-range-thumb {
  width: 80px;
  height: 200px;
  background: transparent;
  cursor: pointer;
  border-radius: 0;
  border: none;
  pointer-events: all;
}

.slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1;
}

.slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Trust Section */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.badge {
  text-align: center;
  padding: var(--space-xl);
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-lg);
  color: var(--color-accent);
}

.badge h3 {
  margin-bottom: var(--space-sm);
}

.badge p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .badge {
    padding: var(--space-lg);
  }
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  background-color: var(--color-bg-tertiary);
  border: none;
  outline: none;
  transition: background-color var(--transition-fast);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item:hover summary {
  background-color: var(--color-bg-secondary);
}

.faq-item:hover p {
  background-color: var(--color-bg-secondary);
}

.faq-item p {
  padding: 0 var(--space-lg) var(--space-lg);
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Final CTA */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
}

.final-cta h2 {
  margin-bottom: var(--space-md);
}

.final-cta p {
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  color: var(--color-text-secondary);
}

/* Footer */
footer {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: start;
}

.footer-brand h3 {
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: var(--space-2xl);
}

.footer-section h4 {
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.footer-section a {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer-simple {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-text-muted);
}

.footer-simple a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-simple a:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

/* Success Page Specific Styles */
.upload-section {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

.status-indicator {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.status-indicator .check-icon {
  color: var(--color-success);
  margin-bottom: var(--space-md);
}

.status-indicator h1 {
  margin-bottom: var(--space-sm);
}

.status-message {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

.claim-section {
  text-align: center;
  padding: var(--space-2xl);
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.upload-section-form {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-2xl);
}

.upload-form {
  /* No background here - inherits from parent */
}

.upload-instructions {
  margin-bottom: var(--space-xl);
}

.upload-instructions h2 {
  margin-bottom: var(--space-md);
  text-align: center;
}

.requirements {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requirements li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.requirements li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: bold;
}

.upload-area {
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-border);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  text-align: center;
  transition: all var(--transition-normal);
}

.upload-area.drag-over {
  border-color: var(--color-accent);
  background-color: var(--color-accent-light);
}

.upload-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

.upload-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  background-color: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  color: var(--color-text);
  font-weight: 500;
  min-height: 120px;
}

.upload-option-btn:hover {
  background-color: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.upload-option-btn svg {
  color: var(--color-accent);
}

.upload-option-btn:hover svg {
  color: var(--color-accent-hover);
}

.upload-info {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: left;
}

.upload-info p {
  margin-bottom: 0.5rem;
}

.generate-button-container {
  text-align: center;
  margin-top: var(--space-lg);
}

/* Generate CTA Button - Matches Hairline style */
.generate-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #3c4d5b 0%, #2d3a45 100%);
  color: #ffffff;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(60, 77, 91, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.generate-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.generate-cta:hover::before {
  left: 100%;
}

.generate-cta:hover:not(:disabled) {
  background: linear-gradient(135deg, #2d3a45 0%, #1a2530 100%);
  color: #ffffff;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 30px rgba(60, 77, 91, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.generate-cta:focus {
  outline: none;
  box-shadow: 0 6px 20px rgba(60, 77, 91, 0.25), 0 0 0 4px rgba(60, 77, 91, 0.3);
}

.generate-cta:active:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 4px 15px rgba(60, 77, 91, 0.3);
}

.generate-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.generate-cta:visited {
  color: #ffffff;
}

@media (max-width: 480px) {
  .upload-options {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .upload-area {
    padding: var(--space-lg);
  }
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  background-color: var(--color-bg-tertiary);
}

.upload-placeholder:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent-light);
}

.upload-placeholder .upload-icon {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.upload-placeholder p {
  margin: 0 0 var(--space-sm) 0;
  color: var(--color-text);
  font-weight: 500;
}

.file-types {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.file-preview {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.file-preview img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.file-info {
  flex: 1;
}

.file-info span {
  display: block;
  margin-bottom: var(--space-xs);
}

.remove-file {
  background: none;
  border: none;
  color: var(--color-error);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
}

.processing-section {
  text-align: center;
  padding: var(--space-3xl);
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.processing-animation h2 {
  margin-bottom: var(--space-md);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: var(--space-lg);
}

.progress-fill {
  height: 100%;
  background-color: var(--color-accent);
  border-radius: var(--radius-sm);
  width: 0%;
  transition: width var(--transition-normal);
}

.result-section {
  text-align: center;
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-2xl);
}

.result-image-container {
  margin: var(--space-xl) 0;
}

.result-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.result-actions {
  display: flex;
  flex-direction: row;
  gap: var(--space-lg);
  justify-content: center;
  align-items: center;
  margin: var(--space-xl) 0;
  flex-wrap: nowrap;
}

/* Icon-only buttons */
.icon-button {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  color: #3c4d5b;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.icon-button:hover {
  background: #3c4d5b;
  color: #ffffff;
  border-color: #3c4d5b;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(60, 77, 91, 0.2);
}

.icon-button:active {
  transform: translateY(-1px) scale(1.02);
}

.icon-button:focus {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(60, 77, 91, 0.2);
}

.icon-button svg {
  display: block;
}

/* Hide share button on desktop */
#shareBtn {
  display: none;
}

.result-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: var(--space-lg) 0 0 0;
}

.error-section {
  text-align: center;
  padding: var(--space-3xl);
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.error-content .error-icon {
  color: var(--color-error);
  margin-bottom: var(--space-lg);
}

.error-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-xl);
}

/* Modal */
.hairline-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(12, 18, 45, 0.55);
  z-index: 2000;
  animation: modal-backdrop-fade 0.25s ease forwards;
}

body.modal-open {
  overflow: hidden;
}

.hairline-modal__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: var(--space-xl) var(--space-lg);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(12, 18, 45, 0.25);
  text-align: center;
  animation: modal-content-in 0.3s ease forwards;
}

.hairline-modal__heading {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-heading);
}

.hairline-modal__copy {
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.hairline-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-weight: 600;
  text-decoration: none;
}

.hairline-modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.hairline-modal__close:hover,
.hairline-modal__close:focus {
  color: var(--color-accent);
}

@keyframes modal-backdrop-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-content-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 3px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-spinner.large {
  width: 60px;
  height: 60px;
  border-width: 4px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
  :root {
    --container-padding: var(--space-md);
  }

  .result-actions {
    flex-direction: row;
    gap: var(--space-md);
  }

  .error-actions {
    flex-direction: column;
  }

  .hairline-modal {
    padding: var(--space-lg) var(--space-md);
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }

  .icon-button {
    width: 48px;
    height: 48px;
  }

  .icon-button svg {
    width: 20px;
    height: 20px;
  }

  /* Show share button on mobile */
  #shareBtn {
    display: inline-flex;
  }
}

/* Focus and Accessibility */
*:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-bg: #ffffff;
    --color-text: #1a3742;
    --color-border: #497383;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .loading-spinner {
    animation: none;
  }
}

/* Journey Animation Styles */
#journey-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(60, 77, 91, 0.12);
}

.journey-images {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Maintain aspect ratio */
  background: #f5f5f5;
}

.journey-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 5s cubic-bezier(0.4, 0, 0.2, 1);
}

.journey-image.active {
  opacity: 1;
}

/* Message Block Below Image */
.journey-message-block {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  background: #f9fafb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(60, 77, 91, 0.08);
  text-align: center;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 2rem;
  transition: max-height 0.8s ease-out, opacity 0.8s ease-out, padding 0.8s ease-out, margin 0.8s ease-out, transform 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.journey-message-block.visible {
  max-height: 500px;
  opacity: 1;
  padding: 2rem;
  margin-bottom: 2rem;
}

.journey-message-block.visible:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 24px rgba(60, 77, 91, 0.15);
}

.journey-text {
  font-family: 'Satoshi', sans-serif;
  color: #3c4d5b;
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
  font-weight: 400;
}

.journey-text strong {
  color: #3c4d5b;
  font-weight: 700;
}

.journey-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #3c4d5b 0%, #2d3a45 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(60, 77, 91, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.journey-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.journey-cta:hover::before {
  left: 100%;
}

.journey-cta:visited {
  color: #ffffff;
}

.journey-cta:hover {
  background: linear-gradient(135deg, #2d3a45 0%, #1a2530 100%);
  color: #ffffff;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 30px rgba(60, 77, 91, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.journey-cta:focus {
  outline: none;
  box-shadow: 0 6px 20px rgba(60, 77, 91, 0.25), 0 0 0 4px rgba(60, 77, 91, 0.3);
}

.journey-cta:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 4px 15px rgba(60, 77, 91, 0.3);
}

/* Mobile responsiveness for journey animation */
@media (max-width: 768px) {
  .journey-message-block {
    padding: 0 1.5rem;
  }

  .journey-message-block.visible {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .journey-text {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .journey-text br {
    display: none;
  }

  .journey-cta {
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .journey-message-block {
    padding: 0 1.25rem;
  }

  .journey-message-block.visible {
    padding: 1.25rem;
  }

  .journey-text {
    font-size: 0.95rem;
  }

  .journey-cta {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}
