:root {
  --bg0: #0c0e12;
  --bg1: #151922;
  --bg2: #1c2230;
  --line: rgba(210, 218, 230, 0.12);
  --text: #eef2f7;
  --muted: #9aa6b8;
  --metal: #c8d0dc;
  --accent: #d4dde8;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(180, 195, 215, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(90, 110, 140, 0.12), transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 45%, #10141c);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 48px) 20px 64px;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  padding: 12px 0 28px;
  animation: rise 0.7s ease both;
}

.logo {
  width: min(148px, 42vw);
  height: auto;
  display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  animation: softIn 0.9s ease both;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 10%, var(--metal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 10px 0 0;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 118px;
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--card-hover), var(--card));
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  animation: rise 0.6s ease both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(220, 228, 240, 0.28);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  outline: none;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(200, 210, 225, 0.1);
  border: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card span {
  font-size: 0.78rem;
  color: var(--muted);
}

.empty-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.empty-box {
  width: min(420px, 100%);
  text-align: center;
  padding: 36px 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  animation: rise 0.55s ease both;
}

.empty-box img {
  width: 88px;
  height: auto;
  margin-bottom: 16px;
}

.empty-box h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.empty-box p {
  margin: 10px 0 22px;
  color: var(--muted);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 0.9rem;
}

.back:hover {
  background: rgba(255, 255, 255, 0.1);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes softIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
