@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --bg: #050a0f;
  --accent: #fb7b4c;
  --accent2: #ff4d6d;
  --accent3: #ffd166;
  --text: #e8f4f8;
  --muted: #6a7a8a;
  --border: rgba(251, 123, 76, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 100;
}

/* Animated grid background */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(251, 123, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 123, 76, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-shift 25s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes grid-shift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Ambient orbs */
.orb1 {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 123, 76, 0.06) 0%, transparent 70%);
  top: 20%;
  right: -100px;
  pointer-events: none;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.orb2 {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.04) 0%, transparent 70%);
  bottom: 10%;
  left: -80px;
  pointer-events: none;
  z-index: 0;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-30px); }
}

/* Main layout */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  padding: 20px;
  z-index: 1;
}

.body-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  text-align: center;
}

.body-container h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.125;
  color: var(--accent);
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

/* Counter grid */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 15px;
  width: 100%;
  margin-bottom: 30px;
}

.counter-item {
  background: rgba(251, 123, 76, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  width: 100%;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.counter-item::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 123, 76, 0.07), transparent);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 100%; }
}

.counter-item:hover {
  border-color: rgba(251, 123, 76, 0.45);
  background: rgba(251, 123, 76, 0.08);
  transform: translateY(-3px);
}

.counter-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  line-height: 1.2;
}

.counter-label {
  font-size: clamp(0.6rem, 1.5vw, 0.72rem);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

/* Love message */
.love-message {
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 20px;
  max-width: 600px;
  padding: 0 10px;
  text-align: center;
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.highlight {
  color: #4ade80;
}

/* Status dot pulse */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.5); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 6px rgba(255, 209, 102, 0); }
}

/* Responsive */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .counter-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .counter-item {
    padding: 18px 12px;
    min-height: 90px;
  }
}

@media screen and (min-width: 376px) and (max-width: 480px) {
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .counter-item {
    padding: 16px 10px;
    min-height: 85px;
  }
  .body-container {
    padding: 15px;
  }
}

@media screen and (max-width: 375px) {
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .counter-item {
    padding: 14px 8px;
    min-height: 80px;
  }
  .body-container {
    padding: 10px;
  }
  .body-container h1 {
    margin-bottom: 20px;
  }
  .love-message {
    margin-top: 15px;
  }
}

@media screen and (min-width: 1200px) {
  .counter-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 1100px;
  }
  .counter-item {
    min-height: 110px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1199px) {
  .counter-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 800px;
  }
}
