@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap');

:root {
  --background: #09090b;
  --foreground: #fafafa;
  --primary: #10b981;
  --primary-fg: #022c22;
  --font: 'Geist', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

.scene {
  position: relative;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
}

.scene-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 80% at 50% -20%,
    rgba(16, 185, 129, 0.22) 0%,
    transparent 65%
  );
}

.scene-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, black, transparent);
}

.main {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
}

.card {
  overflow: hidden;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.55);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
}

.card-body {
  padding: 1.125rem 1.125rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}

.brand-wordmark {
  height: 22px;
  width: auto;
}

.title {
  margin-top: 0.75rem;
  font-size: clamp(1.125rem, 4.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.title-accent {
  color: var(--primary);
}

.lead {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #a1a1aa;
}

.countdown-wrap {
  margin-top: 0.875rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.countdown-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.countdown-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.countdown-date {
  font-size: 0.6875rem;
  color: #52525b;
}

.countdown {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.375rem;
}

.countdown-unit {
  padding: 0.375rem 0.125rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
}

.countdown-value {
  display: block;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  line-height: 1.1;
}

.countdown-name {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #52525b;
}

.features {
  margin-top: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
}

.features li {
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.06);
  font-size: 0.6875rem;
  font-weight: 500;
  color: #6ee7b7;
}

.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.75rem;
  height: 2.375rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 10px 28px -8px rgba(16, 185, 129, 0.45);
  transition: background 0.2s, transform 0.15s;
}

.btn-discord svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-discord:hover {
  background: #0d9668;
}

.btn-discord:active {
  transform: scale(0.98);
}

.footer-note {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.625rem;
  color: #3f3f46;
  line-height: 1.35;
}

@media (max-height: 640px) {
  .scene {
    padding: 0.5rem 0.75rem;
  }

  .card-body {
    padding: 0.875rem 1rem 0.75rem;
  }

  .brand-icon {
    width: 2.125rem;
    height: 2.125rem;
  }

  .brand-wordmark {
    height: 18px;
  }

  .title {
    margin-top: 0.5rem;
    font-size: 1.0625rem;
  }

  .lead {
    margin-top: 0.375rem;
    font-size: 0.75rem;
  }

  .countdown-wrap {
    margin-top: 0.625rem;
    padding: 0.5rem 0.625rem;
  }

  .countdown {
    margin-top: 0.375rem;
  }

  .features {
    margin-top: 0.5rem;
  }

  .btn-discord {
    margin-top: 0.625rem;
    height: 2.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-discord:active {
    transform: none;
  }
}
