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

:root {
  --bg-dark: #09090b;
  --bg-gradient-start: #0a0a0e;
  --bg-gradient-end: #121218;
  --card-bg: rgba(18, 18, 24, 0.7);
  --accent-gold: #c5a880;
  --accent-gold-hover: #dfc59f;
  --accent-gold-glow: rgba(197, 168, 128, 0.15);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --border-color: rgba(197, 168, 128, 0.15);
  
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 50% 50%, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 2rem 1rem;
}

/* Background grid overlay */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

/* Glassmorphism Container */
.container {
  position: relative;
  z-index: 10;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 3.5rem 2.5rem;
  max-width: 640px;
  width: 100%;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: containerFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes containerFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse badge for deployment status */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 2rem;
  box-shadow: 0 0 20px var(--success-glow);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Watch clock element */
.watch-widget {
  position: relative;
  width: 200px;
  height: 200px;
  border: 4px solid var(--accent-gold);
  border-radius: 50%;
  margin: 1.5rem 0 2.5rem 0;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.6),
    inset 0 0 25px rgba(0, 0, 0, 0.8),
    0 0 30px var(--accent-gold-glow);
  background: radial-gradient(circle at center, #181822 0%, #0d0d12 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.watch-widget::before {
  content: '';
  position: absolute;
  width: 184px;
  height: 184px;
  border: 1px dashed rgba(197, 168, 128, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

/* Hour markers */
.marker {
  position: absolute;
  width: 2px;
  height: 8px;
  background: var(--accent-gold);
  opacity: 0.6;
}
.marker-12 { top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 12px; }
.marker-3  { right: 6px; top: 50%; transform: translateY(-50%) rotate(90deg); }
.marker-6  { bottom: 6px; left: 50%; transform: translateX(-50%); }
.marker-9  { left: 6px; top: 50%; transform: translateY(-50%) rotate(90deg); }

/* Hands */
.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  border-radius: 4px;
  transition: transform 0.1s cubic-bezier(0.4, 2.08, 0.55, 0.44);
}

.hour-hand {
  width: 4px;
  height: 50px;
  background: var(--text-primary);
  z-index: 3;
}

.minute-hand {
  width: 3px;
  height: 70px;
  background: var(--text-primary);
  opacity: 0.85;
  z-index: 4;
}

.second-hand {
  width: 1.5px;
  height: 80px;
  background: var(--accent-gold);
  z-index: 5;
}

.center-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent-gold);
  border: 2px solid var(--text-primary);
  border-radius: 50%;
  z-index: 10;
}

/* Typography */
h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

h1 span {
  color: var(--accent-gold);
  display: block;
  font-size: 1.1rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.description code {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: monospace;
}

/* Metadata grid */
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: left;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 600;
}

.meta-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.meta-value.clock {
  font-family: monospace;
  font-size: 1.05rem;
  color: var(--accent-gold);
}

/* Footer link */
.footer {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.footer a:hover {
  color: var(--accent-gold);
  border-bottom: 1px solid var(--accent-gold);
}

/* Responsive adjustment */
@media (max-width: 480px) {
  .container {
    padding: 2.5rem 1.5rem;
  }
  h1 {
    font-size: 1.75rem;
  }
  .meta-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
