@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter Display";
  src: url("/assets/fonts/InterDisplay-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color: #ffffff;
  background: #010d22;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --stan-ink: #010d22;
  --stan-black: #0a0a0a;
  --stan-graphite: #2a2a2a;
  --stan-grey: #a3a3a3;
  --stan-white: #ffffff;
  --stan-action: #ff5a1f;
  --stan-action-hover: #e94b0c;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 44%),
    linear-gradient(145deg, var(--stan-ink), var(--stan-black) 52%, var(--stan-graphite));
}

.redirect-shell {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  padding: 32px;
}

.redirect-card {
  position: relative;
  width: min(100%, 620px);
  overflow: hidden;
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: clamp(34px, 7vw, 68px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(10, 10, 10, 0.72);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  text-align: start;
}

.redirect-card::after {
  position: absolute;
  right: -94px;
  bottom: -98px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.redirect-signature {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.redirect-kicker {
  margin: 0;
  color: var(--stan-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  max-width: 29rem;
  margin: 0;
  font-family: "Inter Display", Inter, sans-serif;
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.055em;
}

.redirect-status {
  max-width: 30rem;
  margin: 0;
  color: rgba(255, 255, 255, .68);
  line-height: 1.55;
}

.redirect-progress {
  width: 100%;
  height: 3px;
  overflow: hidden;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.15);
}

.redirect-progress span {
  display: block;
  width: 46%;
  height: 100%;
  background: var(--stan-white);
  animation: redirect-progress 1.3s ease-in-out infinite alternate;
}

[data-redirect-state="ready"] .redirect-progress span {
  width: 100%;
  background: var(--stan-action);
  animation: none;
}

[data-redirect-state="error"] .redirect-progress span {
  width: 100%;
  background: var(--stan-white);
  animation: none;
}

.redirect-security {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  letter-spacing: .03em;
}

.redirect-fallback {
  display: inline-grid;
  min-height: 44px;
  align-items: center;
  padding: 0 20px;
  padding: 0 22px;
  border-radius: 10px;
  color: var(--stan-ink);
  background: var(--stan-action);
  font-weight: 700;
  text-decoration: none;
}

.redirect-fallback[hidden] { display: none !important; }

.redirect-fallback:hover { background: var(--stan-action-hover); }

.redirect-fallback:focus-visible {
  outline: 3px solid var(--stan-white);
  outline-offset: 3px;
}

@keyframes redirect-progress {
  from { transform: translateX(-10%); }
  to { transform: translateX(126%); }
}

@media (max-width: 560px) {
  .redirect-shell { padding: 16px; }
  .redirect-card { padding: 30px 24px; border-radius: 18px; }
  .redirect-signature { width: 150px; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; }
  .redirect-progress span { width: 62%; }
}
