*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Syne', system-ui, sans-serif;
  color: #f5f7ff;
  background-color: #0a1969;
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.glass-card {
  max-width: 42rem;
  width: 100%;
  padding: clamp(1.75rem, 5vw, 3rem);
  text-align: center;
  background: rgba(10, 25, 105, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

h1 {
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #ffffff;
}

#counter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2rem);
}

.counter-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5rem;
}

.counter-value {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #ffffff;
}

.counter-label {
  margin-top: 0.5rem;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(245, 247, 255, 0.65);
}

@media (max-width: 480px) {
  #counter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .counter-value {
    transition: none !important;
  }
}

.site-credit {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 1rem 1.5rem;
  text-align: center;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  color: rgba(245, 247, 255, 0.5);
}

.site-credit a {
  color: rgba(245, 247, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-credit a:hover {
  color: #ffffff;
  text-decoration: underline;
}
