:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --border: oklch(0.922 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --primary: oklch(0.78 0.25 140);
  --secondary: oklch(0.42 0.24 280);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-shell {
  align-items: center;
  background: var(--background);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.redirect-card {
  background: color-mix(in oklab, var(--card) 50%, transparent);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  max-width: 448px;
  overflow: hidden;
  padding: 32px;
  position: relative;
  width: 100%;
}

.brand-glow {
  border-radius: 999px;
  filter: blur(48px);
  height: 160px;
  mix-blend-mode: multiply;
  position: absolute;
  width: 160px;
}

.brand-glow-primary {
  background: color-mix(in oklab, var(--primary) 20%, transparent);
  right: -40px;
  top: -40px;
}

.brand-glow-secondary {
  background: color-mix(in oklab, var(--secondary) 20%, transparent);
  bottom: -40px;
  left: -40px;
}

.content {
  align-items: center;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  width: 100%;
}

.logo {
  display: block;
  filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
  height: 80px;
  object-fit: contain;
  width: 224px;
}

h1 {
  color: var(--foreground);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 8px;
}

.subtitle {
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 auto 32px;
  max-width: 280px;
}

.redirect-status {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.countdown {
  align-items: center;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  border-radius: 999px;
  display: flex;
  height: 96px;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  width: 96px;
}

.spinner {
  animation: spin 1s linear infinite;
  color: var(--primary);
  position: absolute;
}

.countdown span {
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  color: var(--foreground);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.fallback {
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 0;
  max-width: 250px;
}

.fallback a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.fallback a:hover {
  text-decoration: underline;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
