* {
  box-sizing: border-box;
}

:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at top,
      #1e293b 0%,
      #0f172a 45%,
      #020617 100%
    );

  color: #f8fafc;
}

.container {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 40px;
}

header {
  text-align: center;
  margin-bottom: 35px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 7px 13px;
  margin-bottom: 18px;

  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 999px;

  background: rgba(34, 197, 94, 0.08);

  color: #86efac;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.status-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: #4ade80;

  box-shadow: 0 0 12px rgba(74, 222, 128, 0.8);
}

h1 {
  margin: 0;

  font-size: clamp(36px, 7vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 16px 0 0;

  color: #94a3b8;
  font-size: 16px;
}

.clock-card {
  padding: 45px 30px;

  text-align: center;

  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 28px;

  background: rgba(15, 23, 42, 0.65);

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  backdrop-filter: blur(20px);
}

.clock {
  font-variant-numeric: tabular-nums;

  font-size: clamp(58px, 13vw, 120px);
  font-weight: 700;
  line-height: 1;

  letter-spacing: -0.06em;

  background: linear-gradient(
    135deg,
    #ffffff,
    #cbd5e1
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.date {
  margin-top: 20px;

  color: #94a3b8;

  font-size: 20px;
  font-weight: 500;
}

.data-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 14px;

  margin-top: 20px;
}

.data-card {
  display: flex;
  flex-direction: column;

  padding: 24px;

  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 18px;

  background: rgba(15, 23, 42, 0.55);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.data-card:hover {
  transform: translateY(-3px);
  background: rgba(30, 41, 59, 0.7);
}

.label {
  color: #64748b;

  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.value {
  margin-top: 8px;

  font-size: 32px;
  font-weight: 700;

  font-variant-numeric: tabular-nums;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;

  margin-top: 30px;

  color: #64748b;

  font-size: 12px;
}

footer code {
  color: #94a3b8;
}

.error {
  margin-top: 20px;
  padding: 15px;

  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 12px;

  background: rgba(127, 29, 29, 0.2);

  color: #fca5a5;

  text-align: center;
  font-size: 14px;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .container {
    padding-top: 40px;
  }

  .data-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clock-card {
    padding: 35px 20px;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .data-grid {
    grid-template-columns: 1fr;
  }
}