*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0B1F4B;
  --navy-mid:   #122460;
  --navy-card:  rgba(18,36,96,0.6);
  --blue:       #1A6BF4;
  --blue-lt:    #4FA3FF;
  --blue-glow:  rgba(26,107,244,0.4);
  --white:      #FFFFFF;
  --gray:       #8AA3CC;
  --gray-mid:   #3D5A8A;
  --border:     rgba(79,163,255,0.18);
  --green:      #4ADE80;
  --red:        #F87171;
  --discord:    #5865F2;

  --nav-h:      64px;
  --radius-card:20px;
  --radius-btn: 14px;
  --px:         20px;   /* base horizontal padding on mobile */
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─ BG glow ─ */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 120% 50% at 50% -5%, rgba(26,107,244,.26) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 90% 90%,  rgba(79,163,255,.1)  0%, transparent 55%);
  pointer-events: none; z-index: 0;
}

/* ══════════════════════════════════
   NAV
══════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px);
  background: rgba(11,31,75,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}

.logo-img-wrap {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--navy-mid);
  border: 1.5px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.logo-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: none; }
.logo-img-wrap img.loaded { display: block; }

.logo-text { font-size: 19px; font-weight: 800; color: var(--white); letter-spacing: -.3px; }
.logo-text span { color: var(--blue-lt); }

/* hamburger */
.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 8px;
  border-radius: 10px;
}
.hamburger span {
  display: block; height: 2px; background: var(--white);
  border-radius: 2px; transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* desktop nav links */
.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--gray); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--blue) !important; color: var(--white) !important;
  padding: 9px 20px; border-radius: 9px;
  font-weight: 700 !important; font-size: 14px !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: #2478ff !important; }

/* mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 190;
  background: rgba(11,31,75,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px var(--px) 28px;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--white); text-decoration: none;
  font-size: 17px; font-weight: 600;
  padding: 14px 16px; border-radius: 12px;
  transition: background .15s;
}
.mobile-menu a:hover, .mobile-menu a:active { background: rgba(79,163,255,.1); }
.mobile-menu .m-cta {
  margin-top: 12px;
  background: var(--blue);
  text-align: center; border-radius: 14px;
  font-size: 16px !important;
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  position: relative; z-index: 1;
  padding: calc(var(--nav-h) + 48px) var(--px) 56px;
  max-width: 1200px; margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26,107,244,.15);
  border: 1px solid rgba(79,163,255,.3);
  border-radius: 100px; padding: 6px 14px;
  font-size: 11px; font-weight: 700; color: var(--blue-lt);
  letter-spacing: .9px; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: var(--blue-lt); border-radius: 50%;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.3} }

.hero-title {
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 900; line-height: 1.06; letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero-title .grad {
  background: linear-gradient(135deg, var(--white) 0%, var(--blue-lt) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px; line-height: 1.7; color: var(--gray);
  margin-bottom: 32px; max-width: 520px;
}

/* hero buttons — stack on mobile, row on desktop */
.hero-actions {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 40px;
}
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--blue); color: var(--white);
  border: none; border-radius: var(--radius-btn);
  padding: 17px 28px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all .2s;
  box-shadow: 0 0 32px rgba(26,107,244,.4);
  min-height: 56px;          /* comfortable touch target */
}
.btn-primary:hover { background:#2478ff; transform:translateY(-1px); box-shadow:0 0 48px rgba(26,107,244,.6); }

.btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: transparent; color: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius-btn);
  padding: 17px 28px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all .2s;
  min-height: 56px;
}
.btn-secondary:hover { border-color:rgba(79,163,255,.5); background:rgba(79,163,255,.06); }

/* stats card */
.hero-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute;
  top: -1px; left: 20px; right: 20px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-lt), transparent);
}
.card-title {
  font-size: 11px; font-weight: 700; color: var(--gray);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px;
}
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.stat-cell {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.stat-cell:nth-child(odd)  { padding-right: 16px; border-right: 1px solid var(--border); }
.stat-cell:nth-child(even) { padding-left:  16px; }
.stat-cell:nth-last-child(-n+2) { border-bottom: none; }

.stat-label { font-size: 12px; color: var(--gray); font-weight: 500; margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 800; }
.stat-value.blue { color: var(--blue-lt); }
.stat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25);
  color: var(--green); font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 100px; margin-top: 4px;
}

/* ══════════════════════════════════
   SHARED SECTION
══════════════════════════════════ */
.section {
  position: relative; z-index: 1;
  padding: 60px var(--px);
  max-width: 1200px; margin: 0 auto;
}
.divider {
  position: relative; z-index: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 var(--px);
}
.sec-eyebrow {
  font-size: 11px; font-weight: 700; color: var(--blue-lt);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px;
}
.sec-title {
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 900; letter-spacing: -1.2px; line-height: 1.08;
  margin-bottom: 14px;
}
.sec-desc {
  font-size: 15px; color: var(--gray); line-height: 1.7;
  max-width: 540px; margin-bottom: 36px;
}

/* ══════════════════════════════════
   ABOUT CARDS
══════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.about-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: all .3s;
}
.about-card:hover { border-color: rgba(79,163,255,.4); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px;
  background: rgba(26,107,244,.15);
  border: 1px solid rgba(79,163,255,.25);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.card-h { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card-p { font-size: 14px; color: var(--gray); line-height: 1.65; }

/* ══════════════════════════════════
   UPCOMING EVENTS
══════════════════════════════════ */
.upcoming-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.event-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 22px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: all .25s;
}
.event-card:hover { border-color: rgba(79,163,255,.4); }
.event-date {
  background: rgba(26,107,244,.18);
  border: 1px solid rgba(79,163,255,.2);
  border-radius: 10px; padding: 8px 12px;
  text-align: center; flex-shrink: 0; min-width: 50px;
}
.event-month { font-size: 9px; font-weight: 700; color: var(--blue-lt); letter-spacing: 1px; text-transform: uppercase; }
.event-day   { font-size: 24px; font-weight: 900; line-height: 1.1; }
.event-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.event-info p  { font-size: 13px; color: var(--gray); line-height: 1.55; }
.event-tag {
  display: inline-block;
  background: rgba(26,107,244,.15);
  border: 1px solid rgba(79,163,255,.25);
  color: var(--blue-lt); font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px; margin-top: 8px;
  letter-spacing: .5px; text-transform: uppercase;
}

/* ══════════════════════════════════
   ELIGIBILITY CTA
══════════════════════════════════ */
.elig-section {
  position: relative; z-index: 1;
  padding: 60px var(--px) 80px;
  text-align: center;
}
.elig-inner { max-width: 700px; margin: 0 auto; }

.elig-title {
  font-size: clamp(34px, 8vw, 60px);
  font-weight: 900; letter-spacing: -1.8px; line-height: 1.06;
  margin-bottom: 16px;
}
.elig-desc {
  font-size: 16px; color: var(--gray); line-height: 1.7;
  margin-bottom: 44px; max-width: 460px;
  margin-left: auto; margin-right: auto;
}

.elig-btn-wrap {
  position: relative; display: inline-block;
  width: 100%; max-width: 380px;
}
.elig-btn-wrap::before {
  content: '';
  position: absolute; inset: -14px;
  background: radial-gradient(ellipse, rgba(26,107,244,.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0%{transform:scale(.85);opacity:.8} 100%{transform:scale(1.5);opacity:0} }

.elig-btn {
  position: relative; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, #1A6BF4 0%, #4FA3FF 100%);
  color: var(--white); border: none;
  border-radius: 18px; padding: 22px 32px;
  font-size: 20px; font-weight: 800; cursor: pointer;
  letter-spacing: -.2px;
  box-shadow: 0 0 60px rgba(26,107,244,.5), 0 8px 32px rgba(26,107,244,.35),
              inset 0 1px 0 rgba(255,255,255,.2);
  transition: all .25s;
  min-height: 72px;
}
.elig-btn:hover { transform:translateY(-2px) scale(1.01); box-shadow:0 0 80px rgba(26,107,244,.7),0 12px 40px rgba(26,107,244,.45),inset 0 1px 0 rgba(255,255,255,.2); }
.elig-btn:active { transform:scale(.98); }
.elig-btn svg { width: 26px; height: 26px; flex-shrink: 0; }

/* ══════════════════════════════════
   MODAL — bottom sheet on mobile, centered on desktop
══════════════════════════════════ */
.modal-bg {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(7,16,42,.88);
  backdrop-filter: blur(8px);
  align-items: flex-end;   /* bottom sheet on mobile */
  justify-content: center;
}
.modal-bg.open { display: flex; }

.modal {
  background: #0F2558;
  border: 1px solid var(--border);
  border-radius: 28px 28px 0 0;  /* top corners only on mobile */
  padding: 32px var(--px) calc(32px + env(safe-area-inset-bottom));
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 -4px 60px rgba(26,107,244,.2);
  animation: slide-up .28s ease;
}
@keyframes slide-up { from{transform:translateY(40px);opacity:0} to{transform:translateY(0);opacity:1} }

/* drag handle */
.modal-handle {
  width: 40px; height: 4px;
  background: rgba(255,255,255,.15); border-radius: 2px;
  margin: 0 auto 24px;
}

.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(79,163,255,.08);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--gray); width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; transition: all .2s;
}
.modal-close:hover { color:var(--white); border-color:rgba(79,163,255,.5); }

.modal-icon {
  width: 56px; height: 56px;
  background: rgba(26,107,244,.15);
  border: 2px solid rgba(79,163,255,.3);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.modal-title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 8px; }
.modal-sub   { font-size: 14px; color: var(--gray); line-height: 1.6; margin-bottom: 28px; }

.field-label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--gray); letter-spacing: .8px; text-transform: uppercase;
  margin-bottom: 10px;
}
.wallet-input {
  width: 100%;
  background: rgba(11,31,75,.8);
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 16px 16px;
  font-size: 15px; font-family: 'Inter', monospace;
  color: var(--white); outline: none;
  transition: border-color .2s;
  margin-bottom: 16px;
  -webkit-appearance: none;
}
.wallet-input:focus { border-color: var(--blue-lt); }
.wallet-input::placeholder { color: var(--gray-mid); }

.check-btn {
  width: 100%;
  background: linear-gradient(135deg, #1A6BF4 0%, #4FA3FF 100%);
  color: var(--white); border: none; border-radius: 14px;
  padding: 18px; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(26,107,244,.35);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 58px;
}
.check-btn:hover  { transform:translateY(-1px); box-shadow:0 6px 28px rgba(26,107,244,.5); }
.check-btn:active { transform:scale(.98); }
.check-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }

/* ══════════════════════════════════
   RESULT POPUP — always centered, own layer
══════════════════════════════════ */
.result-bg {
  display: none; position: fixed; inset: 0; z-index: 600;
  background: rgba(5,12,32,.92);
  backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.result-bg.open { display: flex; }

.result-card {
  position: relative;
  background: #0F2558;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 36px 26px 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 80px rgba(0,0,0,.5);
  animation: pop-in .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop-in {
  0%   { transform: scale(.75); opacity: 0; }
  60%  { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.result-state { display: none; }
.result-state.show { display: block; }

.result-ring {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success-ring {
  background: radial-gradient(circle, rgba(74,222,128,.25) 0%, rgba(74,222,128,.05) 70%);
  border: 2px solid rgba(74,222,128,.4);
  animation: ring-pop .4s ease .1s backwards;
}
.error-ring {
  background: radial-gradient(circle, rgba(248,113,113,.25) 0%, rgba(248,113,113,.05) 70%);
  border: 2px solid rgba(248,113,113,.4);
  animation: ring-pop .4s ease .1s backwards;
}
@keyframes ring-pop { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }

.result-icon { font-size: 38px; line-height: 1; }

.result-title {
  font-size: 22px; font-weight: 800;
  letter-spacing: -.4px; margin-bottom: 10px;
}
.success-title { color: var(--green); }
.error-title   { color: var(--red); }

.result-msg {
  font-size: 14px; color: var(--gray); line-height: 1.65;
  margin-bottom: 24px;
}
.result-msg strong { color: var(--white); }

.result-done-btn {
  width: 100%;
  background: linear-gradient(135deg, #1A6BF4 0%, #4FA3FF 100%);
  color: var(--white); border: none; border-radius: 14px;
  padding: 16px; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 20px rgba(26,107,244,.35);
  transition: all .2s;
  min-height: 54px;
}
.result-done-btn:hover  { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(26,107,244,.5); }
.result-done-btn:active { transform: scale(.97); }

.result-secondary-btn {
  width: 100%;
  background: transparent; color: var(--gray);
  border: 1.5px solid var(--border); border-radius: 14px;
  padding: 14px; font-size: 14px; font-weight: 600; cursor: pointer;
  margin-top: 10px; transition: all .2s;
  min-height: 50px;
}
.result-secondary-btn:hover  { color: var(--white); border-color: rgba(79,163,255,.4); }
.result-secondary-btn:active { transform: scale(.97); }

.discord-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--discord); color: var(--white);
  border: none; border-radius: 14px; padding: 15px 24px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all .2s;
  width: 100%;
  min-height: 54px;
}
.discord-btn:hover { background:#4752C4; transform:translateY(-1px); }
.discord-btn:active { transform:scale(.97); }

/* spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite; display: none;
}
@keyframes spin { to{transform:rotate(360deg)} }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 36px var(--px) calc(36px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  align-items: center; gap: 20px; text-align: center;
}
.footer-brand { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 32px; height: 32px; border-radius: 8px; display: block; }
.footer-brand span { color: var(--blue-lt); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 24px; }
.footer-links a { color: var(--gray); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: var(--gray); font-size: 12px; }

/* ══════════════════════════════════
   DESKTOP OVERRIDES  ≥ 768px
══════════════════════════════════ */
@media (min-width: 768px) {
  :root { --px: 48px; }

  nav { height: 72px; }
  :root { --nav-h: 72px; }

  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
  .nav-links { display: flex; }

  .hero {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
    padding-top: calc(72px + 80px);
    padding-bottom: 80px;
  }
  .hero-desc { font-size: 17px; }
  .hero-actions { flex-direction: row; }
  .btn-primary, .btn-secondary { flex: none; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .about-grid { grid-template-columns: repeat(3, 1fr); }
  .upcoming-grid { grid-template-columns: repeat(2, 1fr); }

  .elig-btn-wrap { max-width: 420px; }

  /* modal: centered card on desktop */
  .modal-bg { align-items: center; }
  .modal {
    border-radius: 28px;
    padding: 52px 48px;
    max-width: 520px;
    max-height: 90vh;
    animation: modal-in .25s ease;
  }
  @keyframes modal-in { from{transform:scale(.94) translateY(10px);opacity:0} to{transform:scale(1) translateY(0);opacity:1} }
  .modal-handle { display: none; }

  footer {
    flex-direction: row; justify-content: space-between;
    text-align: left; flex-wrap: wrap;
  }
}