/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (DESIGN.md)
   ========================================================================== */

:root {
  /* Color Palette (OKLCH) */
  --color-bg: oklch(0.12 0.015 240);       /* Deep charcoal-blue background */
  --color-surface: oklch(0.16 0.02 240);   /* Card / Section surfaces */
  --color-surface-hover: oklch(0.19 0.02 240);
  
  /* Accent Colors (Logistics Orange / Amber) */
  --color-accent: oklch(0.68 0.21 48);     /* Safety orange / Amber */
  --color-accent-hover: oklch(0.73 0.19 48);
  --color-accent-glow: oklch(0.68 0.21 48 / 0.15);
  
  /* Ink Colors (Text) */
  --color-ink: oklch(0.97 0.005 240);      /* Main high-contrast body text */
  --color-ink-muted: oklch(0.78 0.015 240);/* Secondary / label text (WCAG AA compliant) */
  --color-ink-dark: oklch(0.08 0.01 240);  /* Dark text for use on light elements */
  
  /* Borders and Dividers */
  --color-border: oklch(0.24 0.02 240);
  --color-border-glow: oklch(0.68 0.21 48 / 0.25);

  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transition Curves */
  --transition-ease: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */

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

body {
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  padding: 0;
}

/* ==========================================================================
   DECORATIVE BACKGROUND GLOWS (No Slop, Pure Ambience)
   ========================================================================== */

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.bg-glow-1 {
  width: 450px;
  height: 450px;
  top: -150px;
  right: -100px;
  background: oklch(0.45 0.15 220 / 0.15); /* Soft deep blue glow */
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  bottom: -200px;
  left: -150px;
  background: oklch(0.68 0.21 48 / 0.08); /* Faint orange/amber ambient glow */
}

/* ==========================================================================
   LAYOUT CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: 640px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  padding: 2.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HEADER & LOGO BRANDING
   ========================================================================== */

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-ink);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--color-ink-muted);
  transition: transform 0.4s var(--transition-ease);
}

.logo:hover .logo-icon {
  transform: translateY(-2px);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-text .highlight {
  color: var(--color-accent);
}

.badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-glow);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  border: 1px solid var(--color-border-glow);
}

/* ==========================================================================
   MAIN CARD (PREMIUM SURFACE)
   ========================================================================== */

.main-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 20px 40px oklch(0 0 0 / 0.3),
              0 1px 0 oklch(1 0 0 / 0.05) inset;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  transition: border-color 0.4s var(--transition-ease);
}

.main-card:hover {
  border-color: var(--color-border-glow);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.status-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.main-subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: -0.25rem;
}

.main-desc {
  color: var(--color-ink-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 520px;
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.progress-bar-wrapper {
  background-color: var(--color-border);
  height: 8px;
  border-radius: 99px;
  width: 100%;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  height: 100%;
  width: 0%; /* Animated via Javascript */
  border-radius: 99px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.progress-text {
  color: var(--color-ink-muted);
}

.progress-percentage {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent);
}

/* ==========================================================================
   QUICK INFO GRID (Horizontal layout)
   ========================================================================== */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.info-icon {
  font-size: 1.5rem;
}

.info-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-ink-muted);
  line-height: 1.3;
}

/* ==========================================================================
   DEVELOPER FOOTER & CREDITS
   ========================================================================== */

.footer {
  width: 100%;
  margin-top: auto;
  background-color: oklch(0.08 0.01 240);
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.dev-credits {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
}

.dev-brand-card {
  background-color: oklch(1 0 0); /* White background for Micro Ativo logo */
  padding: 0.5rem 1rem;
  border-radius: 99px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px oklch(0 0 0 / 0.15);
  text-decoration: none;
  transition: transform 0.3s var(--transition-ease);
}

.dev-brand-card:hover {
  transform: translateY(-2px);
}

.dev-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.dev-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  width: 100%;
}

.dev-text-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dev-info-line {
  font-size: 0.9375rem;
  color: var(--color-ink);
}

.dev-desc-line {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}

.divider-dot {
  color: var(--color-border);
  font-size: 0.875rem;
}

.dev-contacts-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  width: 100%;
}

.dev-contacts {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.contact-link {
  color: var(--color-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: color 0.3s var(--transition-ease);
}

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

.contact-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5px;
}

.divider {
  color: var(--color-border);
  font-weight: 300;
}

.services-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-ink-muted);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  transition: all 0.3s var(--transition-ease);
}

.service-tag:hover {
  border-color: var(--color-border-glow);
  color: var(--color-ink);
}

/* ==========================================================================
   ANIMATIONS & TRANSITIONS
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation-name: fadeIn;
  animation-duration: 0.8s;
  animation-timing-function: var(--transition-ease);
  animation-fill-mode: forwards;
}

.animate-slide-up {
  animation-name: slideUp;
  animation-duration: 0.8s;
  animation-timing-function: var(--transition-ease);
  animation-fill-mode: forwards;
}

.animate-fade-in-delayed {
  opacity: 0;
  animation-name: fadeIn;
  animation-duration: 0.8s;
  animation-timing-function: var(--transition-ease);
  animation-delay: 0.3s;
  animation-fill-mode: forwards;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 1.25rem;
  }

  .dev-credits {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
  }

  .dev-brand-card {
    align-self: center;
  }

  .dev-details {
    align-items: center;
  }

  .dev-text-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .divider-dot {
    display: none;
  }

  .dev-contacts-row {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .dev-contacts {
    flex-direction: column;
    gap: 0.5rem;
  }

  .divider {
    display: none;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .main-card {
    padding: 2rem 1.25rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1.5rem;
  }

  .info-item {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
  }

  .info-icon {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   ACCESSIBILITY & REDUCED MOTION (A11y First)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  /* Fallback opaque states for screen load */
  .animate-fade-in-delayed {
    opacity: 1;
  }
}
