:root {
  color-scheme: light;
  --app-ink: #0f172a;
  --app-muted: #475569;
  --app-accent: #0f172a;
  --app-soft: #e2e8f0;
  --app-sand: #f8fafc;
  --app-highlight: #dbeafe;
}

body {
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  color: var(--app-ink);
  background:
    radial-gradient(circle at 10% 10%, #eef2ff 0%, #ffffff 40%),
    radial-gradient(circle at 90% 15%, #f8fafc 0%, #ffffff 35%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  min-height: 100vh;
  margin: 0;
}

.mega-menu {
  min-height: 100vh;
}

.mega-search {
  display: flex;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  align-items: center;
}

.mega-search form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.mega-search input {
  border: 0;
  outline: 0;
  flex: 1;
}

.mega-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.85rem;
}

.mega-top {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.mega-feature {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #ffffff;
  padding: 24px;
  height: 100%;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.mega-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.icon-chip {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--app-highlight);
  color: #1d4ed8;
}

.mega-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
  color: var(--app-ink);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mega-link:last-child {
  border-bottom: 0;
}

.mega-link span {
  color: var(--app-muted);
  font-size: 0.95rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.quick-card {
  border: 1px solid var(--app-soft);
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
}

.topic-pill {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--app-sand);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--app-ink);
  text-decoration: none;
}

.topic-pill svg {
  width: 18px;
  height: 18px;
}

.menu-card {
  background: linear-gradient(150deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.menu-card .mega-link {
  padding: 8px 0;
  transition: color 150ms ease;
}

.menu-card .mega-link:hover {
  color: #1d4ed8;
}
