/* =====================================================
   RUGBIO — Coming Soon Splash
   Single-viewport launch page, brand-locked.
   ===================================================== */

:root {
  --cobalt: #0a4ec9;
  --cobalt-deep: #053494;
  --sky: #2db0ff;
  --gold: #ffd24a;
  --gold-deep: #f4a82a;
  --coral: #ff8a5b;
  --magenta: #d92a78;
  --pitch: #2d8a3e;
  --ink: #0c1530;
  --ink-soft: #16204a;
  --cream: #f6f1e4;

  --f-display: "Luckiest Guy", "Impact", sans-serif;
  --f-body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 600;
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1 { margin: 0; font-family: var(--f-display); font-weight: 400; line-height: 1; }
p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ----- Background atmosphere ----- */
.stage-bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.06);
  animation: stageZoom 20s ease-in-out infinite alternate;
}
@keyframes stageZoom {
  from { transform: scale(1.06) translateY(0); }
  to   { transform: scale(1.12) translateY(-12px); }
}

.stage-tint {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(45,176,255,0.18), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(12,21,48,0.95), rgba(12,21,48,0.4) 50%, transparent 90%),
    linear-gradient(180deg, rgba(12,21,48,0.7) 0%, rgba(12,21,48,0.25) 30%, rgba(12,21,48,0.6) 75%, rgba(12,21,48,0.95) 100%);
}

.stage-sparks {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(circle at 18% 38%, rgba(255, 210, 74, 0.7), transparent 4px),
    radial-gradient(circle at 85% 33%, rgba(255, 210, 74, 0.7), transparent 4px),
    radial-gradient(circle at 28% 45%, rgba(255, 138, 91, 0.5), transparent 3px),
    radial-gradient(circle at 70% 41%, rgba(45, 176, 255, 0.5), transparent 3px),
    radial-gradient(circle at 52% 35%, rgba(255, 255, 255, 0.6), transparent 2px);
  opacity: 0.7;
  animation: sparks 4s ease-in-out infinite;
}
@keyframes sparks { 0%,100% { opacity: 0.45; } 50% { opacity: 0.95; } }

.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.16; mix-blend-mode: multiply;
}

/* ----- Top bar ----- */
.topbar {
  position: relative; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem clamp(1rem, 4vw, 2.2rem);
  flex-wrap: wrap; gap: 0.6rem;
}
.topbar__home {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-body); font-weight: 800;
  font-size: 0.78rem; letter-spacing: 1.6px;
  color: var(--cream); opacity: 0.7;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(12,21,48,0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
}
.topbar__home:hover { opacity: 1; transform: translateX(-2px); }

.topbar__status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-body); font-weight: 900;
  font-size: 0.72rem; letter-spacing: 2.2px;
  color: var(--gold);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(12,21,48,0.6);
  border: 1px solid rgba(255,210,74,0.3);
  backdrop-filter: blur(8px);
}
.topbar__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* ----- Splash main ----- */
.splash {
  position: relative; z-index: 5;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 2rem) clamp(1rem, 4vw, 2.2rem);
}
.splash__inner {
  position: relative; z-index: 5;
  max-width: 760px;
  width: 100%;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 1.2rem;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-body); font-weight: 900;
  font-size: 0.8rem; letter-spacing: 2.6px;
  color: var(--gold);
  padding: 0.5em 1.1em;
  background: rgba(12,21,48,0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,210,74,0.4);
  border-radius: 999px;
  text-transform: uppercase;
  animation: in 0.8s 0s cubic-bezier(.2,.7,.2,1) backwards;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 12px var(--coral);
  animation: pulse 1.2s ease-in-out infinite;
}

.logo {
  position: relative;
  display: inline-block;
  animation: in 1s 0.1s cubic-bezier(.2,.7,.2,1) backwards;
}
.logo img {
  display: block;
  width: clamp(300px, 60vw, 680px);
  filter:
    drop-shadow(0 6px 0 rgba(0,0,0,0.25))
    drop-shadow(0 16px 28px rgba(0,0,0,0.55))
    drop-shadow(0 0 60px rgba(45, 176, 255, 0.5));
}
.logo__tm {
  position: absolute;
  top: 4%;
  right: -3%;
  font-family: var(--f-body);
  font-weight: 900;
  font-size: clamp(0.85rem, 1.3vw, 1.25rem);
  color: var(--gold);
  text-shadow: 0 2px 0 var(--ink), 0 0 14px rgba(45, 176, 255, 0.5);
  letter-spacing: 0;
  pointer-events: none;
}

.headline {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1; letter-spacing: 0.5px;
  color: var(--cream);
  text-shadow: 0 3px 0 rgba(0,0,0,0.45), 0 8px 28px rgba(0,0,0,0.55);
  display: flex; flex-direction: column; gap: 0.18em;
  animation: in 1s 0.2s cubic-bezier(.2,.7,.2,1) backwards;
}
.headline__accent {
  color: var(--gold);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  display: inline-block;
  transform: rotate(-1deg);
}

.lede {
  max-width: 560px;
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  font-weight: 600;
  color: rgba(246,241,228,0.92);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  animation: in 1s 0.3s cubic-bezier(.2,.7,.2,1) backwards;
}
.lede strong { color: var(--gold); font-weight: 800; }

@keyframes in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----- Signup form ----- */
.signup {
  display: flex; gap: 0.6rem;
  background: rgba(12,21,48,0.55);
  padding: 0.5rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  width: 100%; max-width: 520px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.06),
    0 6px 0 var(--ink),
    0 22px 40px -16px rgba(0,0,0,0.5);
  margin-top: 0.4rem;
  backdrop-filter: blur(8px);
  animation: in 1s 0.4s cubic-bezier(.2,.7,.2,1) backwards;
}
.signup input {
  flex: 1 1 200px; min-width: 0;
  background: transparent;
  border: none;
  padding: 0.55em 0.9em;
  font-family: var(--f-body); font-weight: 700;
  font-size: 1rem;
  color: var(--cream);
  outline: none;
}
.signup input::placeholder { color: rgba(246,241,228,0.5); }
.signup input:focus { color: white; }

.signup__btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--f-display); font-weight: 400;
  font-size: 1rem; letter-spacing: 0.8px;
  padding: 0.7em 1.3em;
  border-radius: 999px;
  border: 3px solid var(--ink);
  color: var(--ink);
  background: linear-gradient(180deg, #ffe27a 0%, var(--gold) 60%, var(--gold-deep) 100%);
  box-shadow: 0 5px 0 var(--ink), 0 14px 28px -8px rgba(244,168,42,0.5), inset 0 2px 0 rgba(255,255,255,0.55);
  position: relative; overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.signup__btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink), 0 18px 32px -8px rgba(244,168,42,0.55), inset 0 2px 0 rgba(255,255,255,0.55); }
.signup__btn:active { transform: translateY(1px); }

.btn__shine {
  position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.6) 50%, transparent 70%);
  transform: skewX(-18deg);
  transition: left 0.7s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.signup__btn:hover .btn__shine { left: 130%; }

.signup.is-success {
  background: rgba(45,138,62,0.55);
  border-color: var(--gold);
}
.signup.is-error { animation: shake 0.32s; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.signup__note {
  font-size: 0.8rem; font-weight: 700;
  color: rgba(246,241,228,0.6);
  margin-top: -0.4rem;
  animation: in 1s 0.55s cubic-bezier(.2,.7,.2,1) backwards;
}

/* ----- Honeypot (hidden bot trap) ----- */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden;
}

/* ----- Opt-in checkbox ----- */
.optin {
  display: flex; align-items: flex-start; gap: 0.7rem;
  width: 100%; max-width: 520px;
  text-align: left;
  font-family: var(--f-body); font-weight: 700;
  font-size: 0.84rem; line-height: 1.45;
  color: rgba(246,241,228,0.86);
  cursor: pointer;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(12,21,48,0.45);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, background 0.2s ease;
  animation: in 1s 0.45s cubic-bezier(.2,.7,.2,1) backwards;
}
.optin:hover {
  border-color: rgba(255,210,74,0.35);
  background: rgba(12,21,48,0.62);
}
.optin input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}
.optin__box {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  border: 2px solid var(--cream);
  border-radius: 6px;
  background: rgba(12,21,48,0.5);
  color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  margin-top: 1px;
}
.optin:hover .optin__box { border-color: var(--gold); }
.optin input:focus-visible ~ .optin__box {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.optin input:checked ~ .optin__box {
  background: var(--gold);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  transform: rotate(-3deg);
}
.optin__text { flex: 1; }
.optin__text a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(255,210,74,0.45);
  text-underline-offset: 3px;
  font-weight: 800;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.optin__text a:hover {
  color: #fff1b3;
  text-decoration-color: var(--gold);
}
.optin.is-error {
  border-color: var(--coral);
  background: rgba(217,42,120,0.18);
}
.optin.is-error .optin__box { border-color: var(--coral); }
.optin.is-shaking { animation: shake 0.32s; }

/* ----- Trust bar ----- */
.trustbar {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem;
  justify-content: center;
  font-family: var(--f-body); font-weight: 800;
  font-size: 0.82rem; letter-spacing: 0.5px;
  margin-top: 0.4rem;
  animation: in 1s 0.6s cubic-bezier(.2,.7,.2,1) backwards;
}
.trustbar li {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.4em 0.85em;
  background: rgba(12,21,48,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.trustbar li span { font-size: 1.05em; }

/* ----- Event strap (countdown) ----- */
.event-strap {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 0.6rem;
  background: rgba(12,21,48,0.7);
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 4px solid var(--coral);
  border-radius: 14px;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s;
  animation: in 1s 0.7s cubic-bezier(.2,.7,.2,1) backwards;
}
.event-strap:hover { transform: translateY(-2px); border-left-color: var(--gold); }

.event-strap__date {
  display: flex; flex-direction: column; align-items: center;
  background: var(--ink);
  border-radius: 8px;
  padding: 0.35rem 0.55rem 0.4rem;
  min-width: 46px;
  border: 1px solid rgba(255,210,74,0.25);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.3);
}
.event-strap__date strong {
  font-family: var(--f-display); font-weight: 400;
  font-size: 1.15rem; line-height: 1;
  color: var(--gold);
  letter-spacing: 1px;
}
.event-strap__date span {
  font-family: var(--f-body); font-weight: 900;
  font-size: 0.55rem; letter-spacing: 1.4px;
  color: rgba(255,210,74,0.6);
  margin-top: 0.15rem;
}

.event-strap__text {
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
}
.event-strap__text small {
  font-family: var(--f-body); font-weight: 900;
  font-size: 0.65rem; letter-spacing: 1.6px;
  color: var(--coral);
}
.event-strap__text strong {
  font-family: var(--f-body); font-weight: 800;
  font-size: 0.85rem; letter-spacing: 0.3px;
  color: var(--cream);
  margin-top: 1px;
}

/* ----- Floating accents ----- */
.float-stamp {
  position: absolute;
  top: 14%; right: 4%;
  width: clamp(110px, 12vw, 150px);
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--ink);
  color: var(--ink);
  font-family: var(--f-body); font-weight: 900;
  font-size: 0.55rem; letter-spacing: 1.2px;
  text-align: center;
  box-shadow:
    0 12px 28px -8px rgba(0,0,0,0.6),
    inset 0 0 0 6px rgba(12,21,48,0.15);
  transform: rotate(11deg);
  animation: stampWobble 5s ease-in-out infinite, in 1.2s 0.8s cubic-bezier(.2,.7,.2,1) backwards;
  z-index: 4;
}
.float-stamp span {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 0.9rem;
}
.float-stamp strong {
  position: relative; z-index: 2;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  letter-spacing: 0.6px;
  color: var(--ink);
  background: var(--gold);
  width: 70%; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 3px solid var(--ink);
  line-height: 0.95;
  box-shadow: 0 4px 0 var(--ink);
}
@keyframes stampWobble {
  0%,100% { transform: rotate(11deg) scale(1); }
  50%     { transform: rotate(15deg) scale(1.05); }
}

.float-card {
  position: absolute;
  top: 18%; left: 3%;
  width: clamp(170px, 16vw, 220px);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 0.7rem;
  box-shadow:
    0 18px 40px -16px rgba(0,0,0,0.6),
    0 6px 0 var(--ink);
  transform: rotate(-5deg);
  animation: cardBob 6s ease-in-out infinite, in 1.2s 0.9s cubic-bezier(.2,.7,.2,1) backwards;
  z-index: 4;
  color: var(--ink);
}
@keyframes cardBob {
  0%,100% { transform: rotate(-5deg) translateY(0); }
  50%     { transform: rotate(-5deg) translateY(-10px); }
}

.float-card__head {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--f-body); font-weight: 900;
  font-size: 0.7rem; letter-spacing: 1.4px;
  color: var(--magenta);
  margin-bottom: 0.5rem;
}
.float-card__pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
  animation: pulse 1.2s ease-in-out infinite;
}
.float-card__viewport {
  position: relative;
  height: 84px;
  background: linear-gradient(180deg, #134823, #2d8a3e);
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
}
.vp-line { position: absolute; left: 0; right: 0; height: 1.5px; background: rgba(255,255,255,0.35); }
.vp-line--1 { top: 50%; }
.vp-line--2 { bottom: 18%; height: 2px; background: rgba(255,255,255,0.5); }

.vp-sh {
  position: absolute; top: 28%;
  width: 12px; height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
}
.vp-sh::before {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: #f6c79f; border: 1.5px solid var(--ink);
}
.vp-sh--1 { left: 16%; background: var(--gold); }
.vp-sh--2 { left: 46%; background: var(--magenta); }
.vp-sh--3 { left: 76%; background: var(--sky); }

.vp-ball {
  position: absolute;
  width: 12px; height: 8px;
  background: linear-gradient(180deg, #c97b3a, #6e3a14);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,0.4));
  animation: vpBall 3s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes vpBall {
  0%   { left: 18%; top: 28%; }
  25%  { left: 50%; top: 64%; }
  35%  { left: 50%; top: 64%; }
  50%  { left: 50%; top: 28%; }
  75%  { left: 78%; top: 64%; }
  85%  { left: 78%; top: 64%; }
  100% { left: 18%; top: 28%; }
}
.vp-target {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px;
  border-radius: 50%; background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}

.float-card__foot {
  margin-top: 0.5rem; padding: 0 0.1rem;
}
.float-card__foot small {
  font-family: var(--f-body); font-weight: 900;
  font-size: 0.6rem; letter-spacing: 1.4px;
  color: rgba(12,21,48,0.55);
  display: block;
}
.float-card__foot strong {
  font-family: var(--f-display); font-weight: 400;
  font-size: 0.95rem; letter-spacing: 0.3px;
  color: var(--cobalt);
}

/* ----- Bottom bar ----- */
.bottombar {
  position: relative; z-index: 5;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0.5rem 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.2rem) 1.4rem;
  font-family: var(--f-body); font-weight: 600;
  font-size: 0.78rem;
  color: rgba(246,241,228,0.55);
}
.bottombar a {
  text-decoration: underline;
  text-decoration-color: rgba(246,241,228,0.25);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.bottombar a:hover { color: var(--gold); }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .float-card { left: -2%; top: 11%; transform: rotate(-7deg) scale(0.86); }
  .float-stamp { right: -2%; top: 9%; transform: rotate(11deg) scale(0.82); }
}
@media (max-width: 720px) {
  .float-card, .float-stamp { display: none; }
}
@media (max-width: 540px) {
  .signup { flex-direction: column; border-radius: 22px; }
  .signup input { padding: 0.8em 1em; text-align: center; }
  .signup__btn { width: 100%; justify-content: center; }
  .event-strap { flex-wrap: wrap; }
  .event-strap__text { width: 100%; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.05s !important;
  }
}
