:root {
  --ink: #14161c;
  --ink-soft: #4a4f5c;
  --paper: #0f1117;
  --paper-warm: #171a22;
  --rule: #2a2e3a;
  --accent: #7c9cff;
  --accent-soft: #3a4270;
  --accent2: #ff8a6a;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6vh 6vw;
  background:
    radial-gradient(circle at 20% 15%, rgba(124, 156, 255, 0.12), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 138, 106, 0.10), transparent 45%),
    var(--paper);
}

.brand {
  text-align: center;
  margin-bottom: 3.5rem;
}

.brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0c0e14;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  box-shadow: 0 12px 30px -10px rgba(124, 156, 255, 0.5);
}

.brand h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f4f5f9;
}

.brand p {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  color: #a7acbd;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  width: 100%;
  max-width: 960px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.8rem 1.6rem 1.6rem;
  border-radius: 18px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.18s ease;
  background: radial-gradient(circle at 30% 0%, rgba(124, 156, 255, 0.18), transparent 60%);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
}

.card:hover::before,
.card:focus-visible::before {
  opacity: 1;
}

.card .icon {
  font-size: 1.9rem;
  line-height: 1;
}

.card h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f4f5f9;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: #a7acbd;
  line-height: 1.45;
  flex-grow: 1;
}

.card .go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

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

.card:hover .go .arrow,
.card:focus-visible .go .arrow {
  transform: translateX(4px);
}

footer {
  margin-top: 3.5rem;
  color: #6b7080;
  font-size: 0.82rem;
  text-align: center;
}
