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

html,
body {
  background: #1b1f22;
  color: #ffffff;
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 6rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header h1 {
  font-size: 3.25rem;
  font-weight: 900;
  letter-spacing: 0.15rem;
}

.header .accent {
  color: #ef6dac;
}

.header p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  letter-spacing: 0.05rem;
}

.tiles {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 2.5rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.tile:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
  transition: opacity 0.35s ease;
  z-index: 1;
}

.tile:hover::before {
  opacity: 0.4;
}

.tile--projects {
  background: linear-gradient(135deg, #ef6dac 0%, #b272ef 100%);
}

.tile--budget {
  background: linear-gradient(135deg, #7fcfe5 0%, #5b8fe7 100%);
}

.tile--reminders {
  background: linear-gradient(135deg, #e7b788 0%, #d97757 100%);
}

.tile-logo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tile-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  opacity: 0.3;
  filter: brightness(0) invert(1);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.tile:hover .tile-logo img {
  opacity: 0.5;
  transform: scale(1.08);
}

.tile-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.tile-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.tile-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03rem;
}

.tile-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.tile:hover .tile-arrow {
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(4px);
}

.footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  letter-spacing: 0.1rem;
}

@media (max-width: 980px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .tiles {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .header {
    padding: 4rem 1.5rem 3rem;
  }

  .header h1 {
    font-size: 2rem;
  }
}
