:root {
  --garden-bg: #fefae0;
  --garden-accent: #6ee7b7;
  --space-bg: #0a0e27;
  --space-accent: #38bdf8;
  --text: #1f1f1f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "OpenDyslexic", "Comic Sans MS", system-ui, sans-serif;
  background: linear-gradient(160deg, var(--garden-bg) 0%, var(--garden-bg) 48%, var(--space-bg) 52%, var(--space-bg) 100%);
  color: var(--text);
  overflow: hidden;
}

main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  isolation: isolate;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  margin: 0;
  letter-spacing: 0.03em;
  color: #1a1a2e;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.5);
}

.tagline {
  margin: 0.25rem 0 2rem;
  opacity: 0.7;
  font-size: 1.1rem;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  max-width: 720px;
}

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  padding: clamp(1.2rem, 4vw, 2.4rem);
  border-radius: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 56px;
  position: relative;
  overflow: hidden;
}

.app:hover, .app:focus-visible {
  transform: translateY(-4px) scale(1.02);
  outline: none;
}

.app-clover {
  background: linear-gradient(160deg, #fff 0%, #fef3c7 100%);
  color: #3a3a3a;
  box-shadow: 0 12px 40px rgba(110, 231, 183, 0.35);
}

.app-clover:hover {
  box-shadow: 0 18px 60px rgba(110, 231, 183, 0.55);
}

.app-chip {
  background: linear-gradient(160deg, #131938 0%, #1e2748 100%);
  color: #e6edff;
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.35);
}

.app-chip:hover {
  box-shadow: 0 18px 60px rgba(56, 189, 248, 0.55);
}

.app-mascot {
  width: clamp(120px, 24vw, 180px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4rem, 14vw, 7rem);
}

.app-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
}

.app p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.8;
}

footer {
  margin-top: 2.5rem;
}

.dashboard-link {
  color: #71717a;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: background 0.2s;
}

.dashboard-link:hover {
  background: rgba(0, 0, 0, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .app, .app:hover { transition: none; transform: none; }
}
