/**
 * Home landing — colorful gradient shell and navigation cards.
 * Depends on tokens.css.
 */
body.home {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #0a0e17;
  position: relative;
  overflow-x: hidden;
}

.home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 0% 0%, rgba(99, 102, 241, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 100% 70% at 100% 10%, rgba(236, 72, 153, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(34, 211, 238, 0.25) 0%, transparent 45%),
    linear-gradient(165deg, #0f1419 0%, #12182a 40%, #0d1117 100%);
  pointer-events: none;
}

.home-main {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(var(--space-xl), 6vw, var(--space-2xl)) var(--space-lg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.home-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.home-kicker {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin: 0 0 var(--space-md);
}

.home-header h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 5vw, 2.75rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-md);
  background: linear-gradient(120deg, #e0e7ff 0%, #f472b6 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 28rem;
  margin: 0 auto;
}

.home-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.home-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  background: rgba(26, 35, 50, 0.65);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  transition:
    transform var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.home-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.home-card:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.home-card:focus:not(:focus-visible) {
  outline: none;
}

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

.home-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.home-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0;
}

.home-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: var(--leading-normal);
}

.home-card--profile {
  border-left: 4px solid #818cf8;
}

.home-card--profile:hover {
  border-left-color: #a5b4fc;
}

.home-card--todo {
  border-left: 4px solid #f472b6;
}

.home-card--todo:hover {
  border-left-color: #f9a8d4;
}
