:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1a1d29;
  --text-muted: #6b7280;
  --primary: #2f6fed;
  --primary-dark: #1f4fbd;
  --accent: #eaf1ff;
  --shadow: 0 8px 24px rgba(23, 43, 99, 0.08);
  --shadow-hover: 0 16px 36px rgba(23, 43, 99, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1320;
    --surface: #1a2033;
    --text: #eef1f8;
    --text-muted: #9aa3b8;
    --primary: #5b8dfc;
    --primary-dark: #3f6fe0;
    --accent: #24304d;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  padding: 48px 24px;
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: 2.4rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  gap: 28px;
  justify-content: center;
  width: 100%;
  max-width: 900px;
}

.nav-box {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-box:hover,
.nav-box:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.nav-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

.icon-fill-primary {
  fill: var(--primary);
}

.icon-fill-accent {
  fill: var(--primary-dark);
}

.icon-line {
  stroke: var(--primary-dark);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
}

.icon-chart-line {
  stroke: var(--surface);
  stroke-width: 3;
}

.nav-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-word;
}

.page-footer {
  margin-top: 56px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
