:root {
  --bg-main: #f3f4f6;
  --bg-card: #ffffff;
  --color-brand: #78368b;
  --color-brand-light: #f3ebf5;
  --color-brand-dark: #632c73;
  --text-main: #111827;
  --text-muted: #4b5563;
  --text-tertiary: #6b7280;
  --border-color: #e5e7eb;
  --status-success: #16a34a;
  --status-error: #dc2626;
  --status-warning: #f59e0b;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.header {
  text-align: center;
  padding: 40px 0 24px;
}

.header__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}

.header__logo {
  margin: 0 auto 16px;
  width: 285px;
  height: 125px;
  object-fit: contain;
}

.header__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Grid de Apps */

.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 48px;
  justify-items: center;
}

/* Card */

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  width: 100%;
  min-width: 350px;
}

.card:hover {
  border-color: var(--color-brand);
  box-shadow: 0 4px 16px rgba(120, 54, 139, 0.08);
}

.card:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.card__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-light);
  border-radius: 8px;
  margin-bottom: 12px;
  color: var(--color-brand);
}

.card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.card__description {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-brand);
  transition: gap 0.2s ease;
}

.card:hover .card__action {
  gap: 10px;
}

.card__arrow {
  transition: transform 0.2s ease;
}

.card:hover .card__arrow {
  transform: translateX(2px);
}

/* Footer */

.footer {
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 24px;
  display: flex;
  justify-content: center;
}

.footer-inner {
  width: 100%;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer-left,
.footer-right {
  text-align: center;
}

.footer-text {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer-text-flex {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-brand {
  font-weight: 600;
  color: var(--color-brand);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-left,
  .footer-right {
    text-align: left;
  }
}

/* Animações */

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

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
  opacity: 0;
}

.animate-delay-2 {
  animation-delay: 0.2s;
  opacity: 0;
}

/* Responsivo */

@media (min-width: 480px) {
  .header {
    padding: 56px 0 40px;
  }

  .header__title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .header {
    padding: 64px 0 48px;
  }

  .header__title {
    font-size: 2.5rem;
  }

  .apps-grid {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
  }

  .card {
    padding: 24px;
  }
}

@media (min-width: 1024px) {
  .header {
    padding: 80px 0 56px;
  }

  .header__title {
    font-size: 3rem;
  }
}

/* Redução de movimento */

@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;
  }
}
