/* Home page — hero (signed-out) + dashboard (signed-in). Tokens only. */

/* --- Signed-out hero ---------------------------------------------------- */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  text-align: center;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(99, 102, 241, 0.18), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-subtle));
}
.hero__inner { max-width: 660px; }
.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--primary-text);
  background: var(--primary-subtle);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.hero__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4);
}
.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin: 0 auto var(--space-8);
  max-width: 48ch;
}
.hero__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}
.hero__feature {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
}
.hero__feature .cc-icon { color: var(--primary-text); width: 1.1em; height: 1.1em; }
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 13px 24px;
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}
.hero__cta:hover { box-shadow: var(--shadow-md); border-color: var(--text-subtle); transform: translateY(-1px); }

/* --- Signed-in dashboard ------------------------------------------------ */
.dash-grid { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.dash-sidebar { flex: 1 1 240px; max-width: 300px; }
.dash-main { flex: 999 1 480px; min-width: 0; }

.sticky-sidebar { position: sticky; top: calc(var(--header-height) + var(--space-4)); }

.dir-list { list-style: none; margin: 0; padding: 0; }
.dir-list__item a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  font-size: var(--text-base);
  transition: background-color var(--transition-fast);
}
.dir-list__item a:hover { background: var(--surface-hover); }
.dir-list__item a .cc-icon { color: var(--text-subtle); }
.dir-list__item a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 768px) {
  .dash-sidebar { max-width: 100%; }
  .sticky-sidebar { position: static; }
  .hero__title { font-size: var(--text-3xl); }
}
