:root {
  --bg-deep: #08090c;
  --cream: #f4eee3;
  --cream-dim: #c5beaf;
  --muted-slate: #7c838d;
  --border-line: rgba(244, 238, 227, 0.12);
  --border-glow: rgba(244, 238, 227, 0.25);
  --accent-amber: #e8a85a;
  --accent-amber-glow: rgba(232, 168, 90, 0.25);
  --accent-cyan: #52c7b8;
}

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

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--cream);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  position: relative;
}

/* Background Artwork */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-bg.webp');
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  filter: brightness(0.72) contrast(1.08);
  transform: scale(1.02);
  z-index: 1;
}

/* Vignette & Radial Atmospheric Shadows */
.vignette {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at center, rgba(8, 9, 12, 0.3) 0%, rgba(8, 9, 12, 0.82) 80%, rgba(8, 9, 12, 0.96) 100%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.7) 0%, rgba(8, 9, 12, 0.15) 30%, rgba(8, 9, 12, 0.25) 70%, rgba(8, 9, 12, 0.85) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Tactile Analog Grain Overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  z-index: 3;
}

/* Main Viewport UI Layer */
.viewport-frame {
  position: relative;
  z-index: 4;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 48px);
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-slate);
}

/* Header Elements */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-tag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
}

.coord {
  opacity: 0.75;
}

/* Center Stage Content */
.center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto 0;
}

.title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 860px;
}

.domain-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  background: rgba(14, 16, 22, 0.65);
  border: 1px solid var(--border-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--cream);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.headline {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(38px, 6.2vw, 78px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 0, 0, 0.6);
}

.highlight {
  color: var(--cream-dim);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #d8d0c2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Footer Elements */
.bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 238, 227, 0.08);
  gap: 20px;
}

.theme-triad {
  color: var(--cream-dim);
  text-align: right;
}

.weather-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-slate);
  transition: color 0.3s ease;
}

.weather-pill.live {
  color: var(--accent-cyan);
}

.weather-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--muted-slate);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.weather-pill.live .weather-pulse {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(82, 199, 184, 0.6);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .coord {
    font-size: 10px;
  }
  .bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .theme-triad {
    text-align: left;
  }
  .headline {
    font-size: clamp(32px, 8vw, 46px);
  }
}
