:root {
  --navy: #082f72;
  --sky: #41b7f4;
  --yellow: #ffc51a;
  --orange: #f58a00;
  --shadow: 0 18px 38px rgba(0, 44, 96, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #eef9ff;
  color: var(--navy);
}

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 88%, rgba(255, 245, 130, .95) 0 7%, transparent 34%),
    linear-gradient(180deg, #37aff2 0%, #84d9f3 48%, #eff8bc 75%, #fff6a5 100%);
}

.rays {
  position: absolute;
  inset: -30%;
  z-index: -3;
  opacity: .19;
  background: repeating-conic-gradient(from -10deg at 50% 20%, #fff 0 10deg, transparent 10deg 22deg);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  bottom: -70px;
  width: 310px;
  height: 300px;
  border-radius: 55% 55% 0 0;
  filter: blur(2px);
  opacity: .18;
  background: #268d6c;
  z-index: -2;
}
.hero::before { left: -80px; transform: rotate(-16deg); }
.hero::after { right: -90px; transform: rotate(18deg); }

.splat {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  z-index: -1;
}
.splat-one { width: 180px; height: 180px; left: 4%; top: 10%; }
.splat-two { width: 110px; height: 110px; right: 8%; bottom: 14%; }

.content {
  width: min(1100px, 94vw);
  text-align: center;
  padding: clamp(34px, 6vw, 80px) 20px;
  position: relative;
  z-index: 2;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: .78;
  transform: rotate(-2deg);
  margin-bottom: clamp(34px, 5vw, 58px);
  filter: drop-shadow(0 14px 10px rgba(0, 40, 100, .2));
}

.fly-word,
.swat-word {
  font-weight: 1000;
  letter-spacing: -.055em;
  paint-order: stroke fill;
  -webkit-text-stroke: clamp(5px, .9vw, 12px) #082650;
}

.fly-word {
  font-size: clamp(76px, 13vw, 180px);
  color: white;
  text-shadow: 0 8px 0 #8ad9ff;
}
.swat-word {
  font-size: clamp(82px, 14vw, 194px);
  color: var(--yellow);
  text-shadow: 0 9px 0 #e07100;
}

h1 {
  margin: 0 0 clamp(30px, 4vw, 48px);
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1;
  color: #062d6b;
  letter-spacing: -.035em;
  text-shadow: 0 4px 0 rgba(255,255,255,.8), 0 10px 22px rgba(0,50,100,.13);
}

.actions {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 250px;
  padding: 18px 28px;
  border: 4px solid rgba(255,255,255,.94);
  border-radius: 26px;
  box-shadow: var(--shadow), inset 0 2px 0 rgba(255,255,255,.25);
  color: #fff;
  text-decoration: none;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 23px 46px rgba(0,44,96,.26), inset 0 2px 0 rgba(255,255,255,.28);
}
.btn:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
.btn .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.96);
  color: currentColor;
  font-size: 18px;
  mix-blend-mode: screen;
}
.green { background: linear-gradient(#72e931, #39af0f); }
.blue { background: linear-gradient(#42adff, #0b77df); }
.orange { background: linear-gradient(#ffb235, #f37a00); }

/* CSS mascot — no emoji, so it stays consistent across devices. */
.fly-track {
  position: absolute;
  left: 50%;
  top: 11%;
  width: min(76vw, 940px);
  height: 44vh;
  pointer-events: none;
  z-index: 1;
  transform: translateX(-50%);
}
.fly {
  position: absolute;
  width: 72px;
  height: 56px;
  right: 0;
  top: 6%;
  animation: buzz 7s ease-in-out infinite;
  filter: drop-shadow(0 9px 6px rgba(0, 35, 80, .22));
}
.body {
  position: absolute;
  left: 18px;
  top: 16px;
  width: 44px;
  height: 34px;
  border-radius: 48% 54% 52% 48%;
  background: repeating-linear-gradient(90deg, #101c2e 0 9px, #31445d 9px 16px);
}
.wing {
  position: absolute;
  width: 42px;
  height: 25px;
  top: 0;
  border-radius: 60% 50% 60% 45%;
  background: rgba(238,252,255,.76);
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: inset 0 0 0 1px rgba(88,183,230,.25);
}
.wing-left { left: 6px; transform: rotate(-22deg); }
.wing-right { left: 33px; transform: rotate(19deg) scaleX(-1); }
.eye {
  position: absolute;
  top: 21px;
  width: 19px;
  height: 21px;
  border-radius: 50%;
  background: white;
  z-index: 3;
  box-shadow: inset -3px -2px 0 #dff5ff;
}
.eye::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 9px;
  border-radius: 50%;
  background: #07101c;
  left: 7px;
  top: 6px;
}
.eye-left { left: 9px; }
.eye-right { left: 24px; }

@keyframes buzz {
  0%,100% { transform: translate(0,0) rotate(-8deg) scale(1); }
  18% { transform: translate(-160px,40px) rotate(8deg) scale(.95); }
  38% { transform: translate(-300px,110px) rotate(-4deg) scale(1.04); }
  58% { transform: translate(-470px,55px) rotate(10deg) scale(.92); }
  78% { transform: translate(-220px,-12px) rotate(-7deg) scale(1.03); }
}

.gameplay {
  padding: 74px 20px;
  text-align: center;
  background: #fff;
}
.gameplay h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -.03em;
}
.gameplay p {
  margin: 0;
  font-size: 19px;
  color: #50637a;
}

@media (max-width: 760px) {
  .hero { min-height: 100svh; }
  .content { padding-top: 90px; padding-bottom: 60px; }
  .logo { margin-bottom: 38px; }
  .actions { flex-direction: column; align-items: center; }
  .btn { width: min(88vw, 390px); }
  .fly-track { top: 4%; width: 92vw; }
  .fly { transform-origin: center; }
  @keyframes buzz {
    0%,100% { transform: translate(0,0) rotate(-8deg) scale(.82); }
    25% { transform: translate(-90px,50px) rotate(8deg) scale(.74); }
    50% { transform: translate(-170px,105px) rotate(-5deg) scale(.86); }
    75% { transform: translate(-70px,150px) rotate(9deg) scale(.76); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fly { animation: none; }
  .btn { transition: none; }
}

/* Beta join flow */
button.btn {
  font-family: inherit;
  cursor: pointer;
}

body.modal-open { overflow: hidden; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 24, 57, .68);
  backdrop-filter: blur(8px);
}
.modal-backdrop[hidden] { display: none; }

.beta-modal {
  position: relative;
  width: min(620px, 94vw);
  max-height: 90svh;
  overflow: auto;
  padding: clamp(28px, 5vw, 48px);
  border: 5px solid rgba(255,255,255,.95);
  border-radius: 34px;
  background: linear-gradient(180deg, #ecfaff 0%, #ffffff 54%, #fff8c8 100%);
  box-shadow: 0 30px 90px rgba(0, 24, 67, .42);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,45,95,.13);
}
.modal-close:hover { transform: scale(1.05); }

.mini-fly {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #102b4c;
  color: white;
  font-size: 24px;
  box-shadow: 0 8px 18px rgba(0,45,95,.18);
}

.beta-modal h2 {
  margin: 4px 44px 10px;
  color: var(--navy);
  font-size: clamp(30px, 5vw, 45px);
  letter-spacing: -.035em;
  line-height: 1.05;
}
.modal-intro {
  max-width: 500px;
  margin: 0 auto 24px;
  color: #49617e;
  font-size: 17px;
  line-height: 1.5;
}

.beta-steps {
  display: grid;
  gap: 13px;
}
.step-card {
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 13px 16px;
  border: 3px solid #fff;
  border-radius: 23px;
  color: #fff;
  text-decoration: none;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 43, 95, .16), inset 0 2px 0 rgba(255,255,255,.22);
  transition: transform .16s ease, filter .16s ease;
}
.step-card:hover,
.step-card:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
}
.step-card:focus-visible { outline: 4px solid var(--navy); outline-offset: 3px; }
.step-green { background: linear-gradient(135deg, #66df2c, #30a80b); }
.step-blue { background: linear-gradient(135deg, #43b3ff, #116fd5); }
.step-orange { background: linear-gradient(135deg, #ffb43b, #ee7800); }
.step-number {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: #123b72;
  font-size: 24px;
  font-weight: 1000;
}
.step-copy { display: grid; gap: 3px; }
.step-copy strong { font-size: 20px; line-height: 1.1; }
.step-copy small { font-size: 14px; line-height: 1.25; opacity: .92; }
.step-arrow { font-size: 34px; font-weight: 900; }
.modal-note {
  margin: 20px 0 0;
  color: #526780;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 520px) {
  .modal-backdrop { padding: 10px; }
  .beta-modal { padding: 28px 15px 22px; border-radius: 26px; }
  .beta-modal h2 { margin-left: 30px; margin-right: 30px; }
  .modal-intro { font-size: 15px; }
  .step-card { grid-template-columns: 44px 1fr 18px; gap: 10px; min-height: 82px; padding: 11px 12px; }
  .step-number { width: 43px; height: 43px; font-size: 21px; }
  .step-copy strong { font-size: 17px; }
  .step-copy small { font-size: 12.5px; }
}

/* Beta join flow */
button.btn {
  font-family: inherit;
  cursor: pointer;
}

.modal-open { overflow: hidden; }
.modal-backdrop[hidden] { display: none; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 25, 57, .68);
  backdrop-filter: blur(8px);
}

.beta-modal {
  position: relative;
  width: min(720px, 96vw);
  max-height: min(88svh, 860px);
  overflow: auto;
  border-radius: 32px;
  padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(180deg, #fafdff 0%, #eef8ff 100%);
  border: 4px solid rgba(255,255,255,.95);
  box-shadow: 0 30px 80px rgba(0, 30, 72, .38);
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #e6f3fb;
  color: #082f72;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.close-modal:hover,
.close-modal:focus-visible { background: #d8ecf9; outline: 3px solid #9ad9ff; }

.mini-fly {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #082f72;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 8px 18px rgba(8,47,114,.18);
}

.eyebrow {
  margin: 0 0 7px;
  color: #2084c7;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}
.beta-modal h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -.035em;
  line-height: 1.05;
}
.beta-intro {
  margin: 14px auto 26px;
  max-width: 550px;
  color: #49627d;
  font-size: 17px;
}

.steps {
  display: grid;
  gap: 14px;
  text-align: left;
}
.step-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #d9eaf5;
  box-shadow: 0 9px 24px rgba(0, 52, 101, .08);
}
.step-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #082f72;
  font-size: 22px;
  font-weight: 1000;
}
.step-copy h3 {
  margin: 2px 0 5px;
  font-size: 21px;
  line-height: 1.1;
}
.step-copy p {
  margin: 0 0 13px;
  color: #597089;
  line-height: 1.4;
}
.step-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.22);
}
.step-link.group { background: linear-gradient(#59c7ff,#1987d8); }
.step-link.optin { background: linear-gradient(#70df35,#35aa10); }
.step-link.play { background: linear-gradient(#ffad31,#ed7800); }
.step-link:hover,
.step-link:focus-visible { filter: brightness(1.05); transform: translateY(-1px); }
.step-link:focus-visible { outline: 3px solid #87cef7; outline-offset: 3px; }

.beta-note {
  margin: 22px 4px 0;
  padding: 13px 16px;
  border-radius: 16px;
  background: #fff4cc;
  color: #6b5110;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .modal-backdrop { padding: 10px; }
  .beta-modal { border-radius: 24px; padding: 30px 16px 20px; }
  .step-card { grid-template-columns: 42px 1fr; gap: 11px; padding: 15px 13px; }
  .step-number { width: 40px; height: 40px; font-size: 18px; }
  .step-link { width: 100%; }
}
