:root {
  --bg: #f4f5f9;
  --surface: #ffffff;
  --text: #1c1d24;
  --text-muted: #62636f;
  --border: #e4e5ec;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 8px 24px rgba(20, 20, 30, 0.06);
  --shadow-hover: 0 4px 10px rgba(20, 20, 30, 0.06), 0 16px 36px rgba(20, 20, 30, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101116;
    --surface: #191a21;
    --text: #f1f1f4;
    --text-muted: #9b9ca7;
    --border: #2a2b34;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 4px 10px rgba(0, 0, 0, 0.35), 0 16px 36px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}

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

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

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

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent, var(--border));
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.card h2 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 20px;
  flex-grow: 1;
}

.card-cta {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent, var(--text));
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card .arrow {
  transition: transform 0.18s ease;
}

.card:hover .arrow {
  transform: translateX(4px);
}

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