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

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

:root {
  --bg:      #07071a;
  --primary: #2563eb;
  --sky:     #0ea5e9;
  --text:    #f8fafc;
  --muted:   #94a3b8;
  --dim:     #334155;
}

html, body {
  width: 100%; height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

/* ambient orbs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::before {
  top: -20%; left: -15%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
}
body::after {
  bottom: -20%; right: -15%;
  width: 65vw; height: 65vw;
  background: radial-gradient(circle, rgba(14,165,233,0.07) 0%, transparent 70%);
}

main {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* clock digits */
.clock-row {
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.clock-h, .clock-m {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(96px, 22vw, 220px);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #f8fafc 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
  display: inline-block;
}

/* colon */
.clock-sep {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(80px, 18vw, 180px);
  letter-spacing: -0.02em;
  color: var(--primary);
  margin: 0 4px;
  line-height: 1;
  animation: colonPulse 1s ease-in-out infinite;
  display: inline-block;
  position: relative;
  top: -4px;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

@keyframes colonPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}

/* glow ring */
.clock-glow {
  position: absolute;
  inset: -24px;
  border-radius: 24px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* date & info */
.clock-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.clock-date {
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.clock-day {
  font-size: clamp(10px, 1.5vw, 13px);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dim);
}

/* divider */
.clock-divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.5), transparent);
  margin: 4px 0;
}

/* seconds bar */
.sec-bar-wrap {
  width: clamp(200px, 40vw, 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sec-bar-bg {
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}
.sec-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  border-radius: 99px;
  transition: width 0.95s linear;
}
.sec-label {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.08em;
}
