.hidden {
    display: none !important;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* Red separator lines - CONSISTENT ACROSS ALL VERSIONS */
.separator {
  border: 2px solid #ff0000;
  margin: 0;
}

/* ========================================
           NAVIGATION BAR - UNIFIED COMPONENT
        ======================================== */
.navbar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #4A7CFF;
}

/* Unified button styles for navigation */
.btn-nav-secondary {
  background: transparent;
  border: 1px solid #333;
  color: #333;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-nav-secondary:hover {
  background: #333;
  color: #fff;
}

.btn-nav-primary {
  background: #4A7CFF;
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-nav-primary:hover {
  background: #3A6CDF;
}

/* ========================================
           BUTTONS - UNIFIED STYLES
        ======================================== */
.btn-primary {
  background: #4A7CFF;
  color: white;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #3A6CDF;
}

.btn-secondary {
  background: transparent;
  color: #333;
  border: 2px solid #333;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #333;
  color: #fff;
}

.btn-group {
  display: flex;
  gap: 16px;
}

/* ========================================
           TYPOGRAPHY - UNIFIED STYLES
        ======================================== */
.heading-xl {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 16px;
}

.heading-lg {
  font-size: 36px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 16px;
}

.heading-md {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 16px;
}

.heading-sm {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 12px;
}

.subheading {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}

.body-text {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.body-text-sm {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ========================================
           SECTION CONTAINERS - UNIFIED
        ======================================== */
.section {
  padding: 64px 48px;
}

.section-light {
  background: #fff;
}

.section-gray {
  background: #f9f9f9;
}

.section-beige {
  background: #fef9f3;
}

.section-dark-gray {
  background: #6b6b6b;
  color: white;
}

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

/* ========================================
           CARD COMPONENT - UNIFIED
        ======================================== */
.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: #d8d8d8;
}

.card-content {
  padding: 24px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.card-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

/* ========================================
           GRID SYSTEM - UNIFIED
        ======================================== */
.grid {
  display: grid;
  gap: 32px;
}

.grid-1 {
  grid-template-columns: 1fr;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ========================================
           FEATURE CARD - UNIFIED
        ======================================== */
.feature-card {
  text-align: center;
  padding: 32px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: #333;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ========================================
           MILESTONE/STEP COMPONENT - UNIFIED
        ======================================== */
.milestone-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.milestone-icon {
  width: 48px;
  height: 48px;
  background: #333;
  border-radius: 50%;
  flex-shrink: 0;
}

.milestone-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.milestone-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ========================================
           FAQ ACCORDION - UNIFIED
        ======================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #f9f9f9;
}

.faq-toggle {
  font-size: 20px;
  color: #666;
  font-weight: normal;
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ========================================
           FORM COMPONENTS - UNIFIED
        ======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #4A7CFF;
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: #4A7CFF;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: #4A7CFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.form-submit:hover {
  background: #3A6CDF;
}

/* ========================================
           PRICING CARD - UNIFIED
        ======================================== */
.pricing-card {
  background: white;
  padding: 40px 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.pricing-card h3 {
  font-size: 14px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 16px;
}

.pricing-card .price {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 8px;
}

.pricing-card .price-period {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.pricing-card li {
  padding: 12px 0;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

.pricing-card li:before {
  content: "✓ ";
  color: #4A7CFF;
  font-weight: bold;
  margin-right: 8px;
}

.pricing-card .btn-primary {
  width: 100%;
}

/* ========================================
           TESTIMONIAL CARD - UNIFIED
        ======================================== */
.testimonial-card {
  background: #f9f9f9;
  padding: 32px;
  border-radius: 8px;
}

.testimonial-text {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.testimonial-role {
  font-size: 13px;
  color: #666;
}

/* ========================================
           FOOTER - UNIFIED
        ======================================== */
.footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 48px;
}

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

.footer-left {
  display: flex;
  gap: 32px;
  align-items: center;
}

.footer-copyright {
  font-size: 12px;
  color: #666;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4A7CFF;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 24px;
  height: 24px;
  background: #333;
  border-radius: 50%;
  transition: background 0.3s ease;
  cursor: pointer;
}

.social-icon:hover {
  background: #4A7CFF;
}

/* ========================================
           UTILITY CLASSES
        ======================================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-sm {
  margin-bottom: 16px;
}

.mb-md {
  margin-bottom: 24px;
}

.mb-lg {
  margin-bottom: 32px;
}

.mb-xl {
  margin-bottom: 48px;
}

.mt-sm {
  margin-top: 16px;
}

.mt-md {
  margin-top: 24px;
}

.mt-lg {
  margin-top: 32px;
}

.mt-xl {
  margin-top: 48px;
}

/* ========================================
           RESPONSIVE BREAKPOINTS - MOBILE
        ======================================== */
@media (max-width: 480px) {
  .nav-content {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }

  .nav-links {
    flex-direction: column;
    gap: 12px;
  }

  .heading-xl {
    font-size: 32px;
  }

  .heading-lg {
    font-size: 28px;
  }

  .heading-md {
    font-size: 24px;
  }

  .section {
    padding: 32px 24px;
  }

  .grid {
    gap: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .footer {
    padding: 24px 16px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 16px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* ========================================
           RESPONSIVE BREAKPOINTS - TABLET
        ======================================== */
@media (min-width: 481px) and (max-width: 768px) {
  .nav-content {
    padding: 24px;
  }

  .heading-xl {
    font-size: 40px;
  }

  .heading-lg {
    font-size: 32px;
  }

  .section {
    padding: 48px 32px;
  }

  .grid {
    gap: 24px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    padding: 32px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-left {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* ========================================
           RESPONSIVE BREAKPOINTS - DESKTOP
        ======================================== */
@media (min-width: 769px) {
  .nav-content {
    padding: 20px 48px;
  }

  .section {
    padding: 64px 48px;
  }

  .grid {
    gap: 32px;
  }
}

/* ========================================
           PAGE-SPECIFIC STYLES
        ======================================== */
.hero-section {
  text-align: center;
  padding: 80px 48px 64px;
}

.hero-image {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 48px;
  background: #d8d8d8;
  border-radius: 8px;
  aspect-ratio: 16/9;
}

.cta-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.cta-text {
  flex: 1;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
}

.logo-item {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 48px 24px 32px;
  }

  .cta-section {
    flex-direction: column;
    text-align: center;
  }

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Version selector for demonstration */
.version-selector {
  position: fixed;
  top: 80px;
  right: 20px;
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

.version-selector h4 {
  font-size: 14px;
  margin-bottom: 12px;
  color: #333;
}

.version-selector button {
  display: block;
  width: 100%;
  padding: 8px 16px;
  margin-bottom: 8px;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
}

.version-selector button:hover {
  background: #4A7CFF;
  color: white;
  border-color: #4A7CFF;
}

.version-selector button.active {
  background: #333;
  color: white;
  border-color: #333;
}

.page-content {
  display: none;
}

.page-content.active {
  display: block;
}

/* ---- Upload Section Layout ---- */
.hero-upload-section {
    max-width: 90%;
    width: 400px;
    margin: 2rem auto;
    text-align: center;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: #222;
}

/* ---- Title and Description ---- */
.hero-upload-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-upload-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* ---- Upload Area ---- */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 16px;
    padding: 2rem 1rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease;
}

    .upload-area:hover {
        border-color: #4a90e2;
    }

.upload-text {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ---- File Input ---- */
.file-input {
    display: none;
}

.upload-btn {
    display: inline-block;
    background: #4a90e2;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

    .upload-btn:hover {
        background: #357abd;
    }

/* ---- File Name ---- */
.file-name {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #777;
}

/* ---- Start Button ---- */
.start-btn {
    display: inline-block;
    margin-top: 1.5rem;
    background: #2e8b57;
    color: #fff;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

    .start-btn:hover {
        background: #267049;
    }

/* ---- Responsive (Mobile Friendly) ---- */
@media (max-width: 480px) {
    .hero-upload-section {
        width: 100%;
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .upload-area {
        padding: 1.5rem 1rem;
    }

    .hero-upload-title {
        font-size: 1.25rem;
    }

    .hero-upload-description {
        font-size: 0.95rem;
    }
}

/* try again */

/* Optional: slightly different hover for error/retry */
.start-btn.retry {
    background: #d9534f; /* red-ish */
}

.start-btn.retry:hover {
    background: #c9302c;
}

/* brick progress */

/* Brick Progress Bar Styles */
.brick-container {
  display: flex;
  gap: 2px;
  height: 20px;
  background: #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
  padding: 2px;
}

.brick {
  flex: 1;
  background: #e5e7eb;
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
  min-height: 16px;
}

.brick.active {
  background: #3b82f6;
}

.brick.pulse {
  background: #93c5fd;
  animation: pulse 1.5s infinite;
}

.brick-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #3b82f6;
  border-radius: 6px;
  transform: scaleX(0);
  transform-origin: left;
  animation: brickFill 0.5s ease-out forwards;
}

@keyframes brickFill {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}

/* Status Dot Styles */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
}

.status-processing {
  background: #3b82f6;
  animation: pulse 1.5s infinite;
}

.status-complete {
  background: #10b981;
}

.status-error {
  background: #ef4444;
}

.hidden {
  display: none !important;
}

.file-info {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 12px;
}


/* results section */
/* Download Links Styling for Multiple Files */
.download-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
}

.download-item:hover {
  background: #f1f5f9;
  border-color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.download-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.download-icon {
  background: #3b82f6;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-icon svg {
  width: 16px;
  height: 16px;
}

.download-text {
  text-align: left;
  flex: 1;
  min-width: 0; /* Allow text truncation */
}

.download-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-meta {
  font-size: 12px;
  color: #6b7280;
}

.download-button {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}

.download-button:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* Scrollable container for many files */
.downloads-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px;
}