:root {
  --bg-1: #0f2238;
  --bg-2: #1b3a5f;
  --accent: #2aa37a;
  --tile-bg: rgba(255, 255, 255, 0.97);
  --tile-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --tile-shadow-hover: 0 22px 50px rgba(0, 0, 0, 0.4);
  --text: #0f2238;
  --muted: #5a6775;
}

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(42,163,122,0.25), transparent 60%),
    radial-gradient(1000px 500px at 110% 10%, rgba(27,58,95,0.8), transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 36px 48px 12px;
  color: #fff;
}
.site-header .brand {
  height: 72px;
  width: auto;
  background: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.site-header h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.tiles {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 260px));
  justify-content: center;
  gap: 24px;
  padding: 36px 48px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  background: var(--tile-bg);
  border-radius: 16px;
  padding: 24px 22px 20px;
  min-height: 210px;
  box-shadow: var(--tile-shadow);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(.2,.9,.3,1.2),
              box-shadow 0.45s ease,
              background 0.45s ease;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,163,122,0.0), rgba(42,163,122,0.15));
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.tile::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #1b3a5f, #2aa37a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.tile-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0 16px;
}
.tile-logo img {
  max-width: 75%;
  max-height: 90px;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(.2,.9,.3,1.2),
              filter 0.5s ease;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.tile-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.tile-body p {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Hover animation */
.tile:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--tile-shadow-hover);
  background: #fff;
}
.tile:hover::before { opacity: 1; }
.tile:hover::after  { transform: scaleX(1); }
.tile:hover .tile-logo img {
  transform: scale(1.08) rotate(-1deg);
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.18));
}

.site-footer {
  text-align: center;
  color: rgba(255,255,255,0.55);
  padding: 20px;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .site-header { padding: 20px; flex-direction: column; text-align: center; }
  .tiles { padding: 20px; gap: 20px; }
  .tile { min-height: 260px; padding: 28px 22px; }
}
