/* Modern, timeless base styles with light/dark support */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

:root {
  color-scheme: light dark;
  --bg: #0f172a;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --card: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --accent: #22c55e;
  /* Default green */
  --ring: rgba(34, 197, 94, 0.3);
  --icon-size: 24px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --card: #ffffff;
    --card-border: rgba(15, 23, 42, 0.08);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bg);
  display: grid;
  place-items: start center;
  padding: 40px 20px;
}

.container {
  width: 100%;
  max-width: 680px;
  display: grid;
  gap: 32px;
}

header {
  text-align: center;
  animation: fadeInDown 0.6s ease-out;
}

header h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.03em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

main {
  display: grid;
  gap: 24px;
}

.card {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
}

.card h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

li a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateX(4px);
}

li a::after {
  content: "→";
  margin-left: auto;
  opacity: 0.3;
  transition: opacity 0.2s;
}

li a:hover::after {
  opacity: 1;
  color: var(--accent);
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  animation: fadeIn 1s ease-out;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Specific for Countdown numbers */
.count {
  font-size: 1.2rem;
  font-weight: 500;
}

.count span {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  margin-right: 4px;
}

@media (max-width: 640px) {
  body {
    padding: 24px 16px;
  }

  .card {
    padding: 20px;
  }
}