:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-gradient: linear-gradient(135deg, #c4b5fd 0%, #7c3aed 100%);
  --border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.015);
  --glass-border: rgba(167, 139, 250, 0.12);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.2);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

.light {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.04);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --accent: #7c3aed;
  --accent-light: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #c4b5fd 0%, #7c3aed 100%);
  --border: rgba(0, 0, 0, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(124, 58, 237, 0.18);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

body.light {
  background: var(--bg-primary);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

#toggle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

#toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 40px 0 24px;
}

.hero-content {
  max-width: 700px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent-light);
  font-weight: 700;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle,
.hero-desc {
  max-width: 760px;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: var(--text-secondary);
}

.hero-desc {
  line-height: 1.8;
  color: var(--text-secondary);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.time-card {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.time-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.city-name {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.city-date {
  color: rgba(154, 139, 191, 0.8);
  margin-bottom: 16px;
}

.time-display {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
}

.time-seconds {
  opacity: 0.5;
  font-size: 0.8em;
}

.timezone-offset {
  margin-top: 16px;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--accent);
  font-size: 0.82rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

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

.daynight-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.daynight-badge.day { background: rgba(255, 200, 50, 0.14); }
.daynight-badge.night { background: rgba(100, 100, 200, 0.14); }

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 40px;
  backdrop-filter: blur(18px);
}

.content-card h2 {
  margin-bottom: 18px;
}

.content-text {
  color: var(--text-secondary);
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.feature-item {
  padding: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.feature-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-gradient);
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-title {
  margin-bottom: 6px;
  font-weight: 700;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
}

.actions {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

footer {
  padding: 24px 0 40px;
  color: var(--text-secondary);
  text-align: center;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  transition: width 0.35s ease, height 0.35s ease, opacity 0.35s ease, border-color 0.35s ease;
}

.cursor-ring.hovering {
  width: 56px;
  height: 56px;
  opacity: 0.2;
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(124, 58, 237, 0.12);
  top: -140px;
  left: -140px;
}

.orb-2 {
  width: 240px;
  height: 240px;
  background: rgba(167, 139, 250, 0.08);
  bottom: -100px;
  right: -100px;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, 18px) scale(1.05); }
}

.orb-1,
.orb-2 {
  animation: orbFloat 12s ease-in-out infinite alternate;
}

@media (max-width: 700px) {
  .nav { padding: 18px 20px; }
  .container { padding: 28px 18px 60px; }
  .hero { padding-top: 24px; }
  .content-card { padding: 28px; }
}
