:root {
  --bg: #06080d;
  --bg2: #0d141b;
  --text: #edf3fb;
  --muted: #8ea1b6;
  --accent: #4ea1ff;
  --accent2: #2de0c2;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #132232 0%, transparent 52%),
    radial-gradient(900px 500px at 90% -20%, #112a2a 0%, transparent 54%),
    linear-gradient(160deg, #04070c, #0a1118);
  min-height: 100vh;
  transition: opacity .38s ease, filter .38s ease;
}

body.leaving {
  opacity: .22;
  filter: blur(1.2px);
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(520px 240px at 72% 22%, rgba(78,161,255,.12), transparent 74%),
    radial-gradient(480px 220px at 28% 80%, rgba(45,224,194,.08), transparent 76%);
  pointer-events: none;
  animation: ambientDrift 14s ease-in-out infinite alternate;
}


@keyframes ambientDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: .58;
  }
  50% {
    transform: translate3d(-1.2%, 1.2%, 0) scale(1.03);
    opacity: .68;
  }
  100% {
    transform: translate3d(1.4%, -1%, 0) scale(1.05);
    opacity: .6;
  }
}

.shell {
  width: min(1080px, 92vw);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.clock-wrap {
  position: fixed;
  top: 10px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  user-select: none;
  pointer-events: none;
}

.clock {
  font-size: clamp(.56rem, 1.4vw, .66rem);
  letter-spacing: .08em;
  color: rgba(225, 235, 255, 0.38);
}

.clock-meta {
  font-size: clamp(.46rem, 1.2vw, .56rem);
  letter-spacing: .08em;
  color: rgba(205, 220, 245, 0.28);
}

.hero {
  min-height: auto;
  display: grid;
  place-items: center;
}

.hero h1 {
  margin: 6px 0 12px;
}

.wordmark {
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  letter-spacing: .035em;
  font-weight: 800;
  font-family: "Inter", "SF Pro Display", "Avenir Next", system-ui, sans-serif;
  background: linear-gradient(135deg, #f3f8ff 0%, #93bdff 42%, #57c8ff 70%, #61f0d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(96, 176, 255, 0.2);
}

.hero-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 152px;
  height: 152px;
  border-radius: 30px;
  box-shadow: 0 16px 36px rgba(16, 22, 44, 0.58);
}

.logo-animated {
  animation: floatGlow 3.4s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translateY(0px) scale(1);
    filter: drop-shadow(0 0 0 rgba(141,107,255,0.0));
  }
  50% {
    transform: translateY(-8px) scale(1.02);
    filter: drop-shadow(0 0 14px rgba(141,107,255,0.45));
  }
}

.signal {
  margin: 8px 0 0;
  font-size: .52rem;
  letter-spacing: .11em;
  color: rgba(183, 222, 255, 0.26);
  opacity: .14;
  transition: opacity .2s ease;
}

.signal.blink {
  opacity: .32;
}

.eyebrow {
  margin: 10px 0 0;
  color: var(--muted);
  letter-spacing: .16em;
  font-size: .78rem;
}


.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  color: #081128;
  background: linear-gradient(135deg, var(--accent), #9fc2ff);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
}

.signin-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #eef6ff;
  background: linear-gradient(135deg, #3f8dff 0%, #2fbccf 58%, #3ce0bf 100%);
  border: 1px solid rgba(201, 234, 255, 0.45);
  border-radius: 14px;
  padding: 13px 30px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(58, 140, 218, 0.34), inset 0 1px 0 rgba(255,255,255,0.24);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.signin-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.08);
  box-shadow: 0 16px 36px rgba(59, 149, 224, 0.4), 0 0 24px rgba(61, 213, 194, 0.28);
}

.signin-btn .ripple {
  position: absolute;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.14) 45%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  animation: ripple .62s ease-out forwards;
  z-index: 0;
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.btn.ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(141, 107, 255, .9);
  box-shadow: 0 16px 36px rgba(20, 26, 52, 0.45);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chip {
  font-size: .72rem;
  letter-spacing: .14em;
  color: #c8d7ff;
  border: 1px solid rgba(255,255,255,.24);
  padding: 6px 8px;
  border-radius: 999px;
}

.arrow {
  font-size: 1.15rem;
  color: #c3b4ff;
}

.status {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(8, 13, 31, 0.42);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(201, 213, 255, 0.72);
  font-size: clamp(.64rem, 1.8vw, .78rem);
  max-width: min(92vw, 720px);
  white-space: nowrap;
}

.status p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #67f2a7;
  box-shadow: 0 0 5px rgba(103, 242, 167, 0.7);
  flex: 0 0 auto;
}

.hop-runner {
  position: fixed;
  left: -90px;
  bottom: 52px;
  z-index: 4;
  animation: hopRunAcross 24s linear infinite;
  pointer-events: none;
}

.hop-avatar {
  width: 60px;
  height: 44px;
  object-fit: contain;
  opacity: .72;
  filter: brightness(.72) contrast(.92) drop-shadow(0 6px 10px rgba(0,0,0,.28));
  animation: hopBounce .55s ease-in-out infinite alternate;
}

@keyframes hopRunAcross {
  0% { transform: translateX(0) scaleX(1); }
  48% { transform: translateX(calc(100vw + 180px)) scaleX(1); }
  50% { transform: translateX(calc(100vw + 180px)) scaleX(-1); }
  98% { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(0) scaleX(1); }
}

@keyframes hopBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .hop-runner { bottom: 50px; }
  .hop-avatar {
    width: 54px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hop-runner,
  .hop-avatar {
    animation: none;
  }
}
