:root {
  --navy: #011640;
  --navy-2: #0a2258;
  --ink: #0c1630;
  --muted: #5b6b86;
  --paper: #ffffff;
  --cyan: #01f2e1;
  --blue: #1f2f98;
  --sky: #02bfff;
  --splash-beam-angle: 0deg;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #ffffff;
}

.splash {
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--navy) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--navy) 7%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  pointer-events: none;
}

.splash-dots {
  position: absolute;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 72px;
  height: 72px;
  pointer-events: none;
}

.splash-dots-tr { top: 36px; right: 36px; }
.splash-dots-bl { bottom: 36px; left: 36px; }

.splash-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  animation: splash-dot 7.2s linear infinite;
}

.splash-dot:nth-child(odd) { animation-delay: 0.4s; }
.splash-dot:nth-child(3n) { animation-delay: 1.1s; }

@keyframes splash-dot {
  0%, 100% { background: var(--blue); }
  20% { background: #5c8ad6; }
  40% { background: var(--sky); }
  60% { background: var(--cyan); }
  80% { background: #1bb0ce; }
}

.splash-code {
  position: fixed;
  right: -0.04em;
  bottom: 0.06em;
  left: auto;
  top: auto;
  transform: none;
  margin: 0;
  padding: 0;
  width: max-content;
  font-size: clamp(18rem, 62vw, 42rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.72;
  text-align: right;
  color: color-mix(in srgb, var(--navy) 10%, transparent);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

@property --splash-beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.splash-card-stage {
  position: relative;
  z-index: 2;
  flex: 0 1 520px;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  overflow: visible;
}

.splash-hub-stage {
  flex-basis: 920px;
  max-width: 920px;
}

.splash-beam {
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  pointer-events: none;
  background: conic-gradient(
    from var(--splash-beam-angle),
    #1f2f98,
    #5c8ad6,
    #02bfff,
    #01f2e1,
    #1bb0ce,
    #5c8ad6,
    #1f2f98
  );
  animation: splash-beam-spin 5s linear infinite;
}

.splash-beam-glow {
  inset: -4px;
  border-radius: 20px;
  z-index: 0;
  opacity: 0.7;
  filter: blur(6px);
}

.splash-beam-line {
  z-index: 0;
  padding: 1.5px;
  opacity: 0.9;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

@keyframes splash-beam-spin {
  to {
    --splash-beam-angle: 360deg;
  }
}

.splash-card,
.splash-hub {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--paper);
  border-radius: 16px;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 18px 48px rgba(1, 22, 64, 0.1);
}

.splash-hub {
  padding: 36px 32px 32px;
}

.splash-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-decoration: none;
}

.splash-brand img {
  display: block;
  width: min(340px, 92%);
  height: auto;
}

.splash-status {
  margin: 28px 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.splash-card h1,
.splash-hub h1 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.splash-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
  max-width: 26rem;
}

.splash-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.splash-cta:hover {
  background: #02245e;
  color: #fff;
}

.splash-cta:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.splash-nav {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e8eef5;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.splash-nav a {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.splash-nav a:hover { color: var(--navy); text-decoration: underline; }

.splash-hub-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  margin-bottom: 8px;
  width: 100%;
}

.splash-hub-head h1 {
  margin: 36px 0 12px;
}

.splash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  margin: 24px 0 28px;
  width: 100%;
}

.splash-tile {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  padding: 16px 14px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  background: #f4f7fb;
  border: 1px solid #e4ebf4;
}

.splash-tile strong {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.splash-tile span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.splash-tile:hover {
  border-color: color-mix(in srgb, var(--cyan) 55%, #cfd8e6);
  background: #fff;
  box-shadow: 0 8px 24px rgba(1, 22, 64, 0.08);
}

.splash-hub-cta {
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (max-width: 640px) {
  .splash { padding: 16px; }
  .splash-card, .splash-hub { padding: 28px 20px 22px; }
  .splash-dots-tr, .splash-dots-bl { display: none; }
  .splash-code { font-size: clamp(14rem, 72vw, 28rem); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-dot,
  .splash-beam {
    animation: none;
  }
}
