:root {
  --gold: #efd56a;
  --green-top: #58b52c;
  --green-bottom: #247d14;
  --green-border: #a27f17;
  --blue-top: #7da0f3;
  --blue-bottom: #5d7dde;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #06090d;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; text-decoration: none; }

.page { min-height: 100vh; }

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #06090d;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.08) 28%, rgba(0,0,0,0.20) 55%, rgba(0,0,0,0.62) 100%),
    url('/images/hero.png') center top / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.06), transparent 18%),
    linear-gradient(180deg, rgba(8,11,14,0.14) 0%, rgba(8,11,14,0.10) 34%, rgba(8,11,14,0.34) 72%, rgba(8,11,14,0.80) 100%);
}

.shell {
  position: relative;
  z-index: 2;
  width: min(1460px, calc(100% - 24px));
  margin: 0 auto;
  padding-top: 10px;
}

.topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: linear-gradient(180deg, rgba(16,21,26,0.96), rgba(9,12,16,0.90));
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px 42px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav a { color: rgba(255,255,255,0.94); }
.nav a.active { color: var(--gold); }

.top-download {
  min-width: 150px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(140,176,246,0.52);
  background: linear-gradient(180deg, var(--blue-top), var(--blue-bottom));
  color: white;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
}

.hero-content {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 0 60px;
  text-align: center;
}

.logo-wrap {
  position: relative;
  display: inline-block;
}

.logo-shadow,
.logo-text {
  font-size: clamp(90px, 12vw, 184px);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logo-shadow {
  position: absolute;
  inset: 0;
  transform: translateY(7px) scale(1.02);
  color: rgba(12,18,31,0.94);
  filter: blur(1px);
}

.logo-text {
  position: relative;
  background: linear-gradient(180deg, #fbfdff 0%, #cad7f8 42%, #87a9ec 72%, #e7efff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 #22324f) drop-shadow(0 10px 26px rgba(0,0,0,0.62));
}

.logo-glow {
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  width: 74%;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(88,180,51,0.95) 0%, rgba(47,102,36,0.56) 38%, rgba(24,48,18,0) 72%);
  filter: blur(6px);
}

.hero-title {
  margin: 70px 0 0;
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  color: #f0d354;
  text-shadow: 0 3px 18px rgba(0,0,0,0.72);
}

.download-wrap {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta {
  min-width: min(410px, calc(100% - 24px));
  min-height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 2px solid var(--green-border);
  background: linear-gradient(180deg, var(--green-top), var(--green-bottom));
  color: #f5ffd8;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0,0,0,0.36);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.18), 0 12px 28px rgba(0,0,0,0.32), 0 0 0 3px rgba(140,111,22,0.34);
}

.download-note {
  margin: 14px 0 0;
  max-width: 720px;
  text-align: center;
  font-size: 18px;
  line-height: 1.45;
  color: #f4e7a7;
  text-shadow: 0 2px 10px rgba(0,0,0,0.65);
}

.download-note strong { color: #fff3b8; }

.referral-panel {
  width: min(720px, calc(100% - 24px));
  margin: 56px auto 0;
  background: linear-gradient(180deg, rgba(26,24,20,0.88), rgba(13,12,10,0.92));
  border: 1px solid rgba(224,196,118,0.18);
  box-shadow: 0 22px 54px rgba(0,0,0,0.42);
  overflow: hidden;
  text-align: left;
  backdrop-filter: blur(2px);
}

.referral-header {
  padding: 18px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(95,67,35,0.72), rgba(48,33,20,0.72));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--gold);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  text-shadow: 0 3px 14px rgba(0,0,0,0.52);
}

.referral-body { padding: 22px 24px 26px; }

.row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.label {
  color: rgba(255,255,255,0.94);
  font-size: 17px;
  font-weight: 700;
}

.generated-code {
  min-width: 92px;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: #eed04b;
  text-shadow: 0 2px 10px rgba(0,0,0,0.52);
}

.green-btn,
.submit-btn {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #4f8f2c;
  background: linear-gradient(180deg, #4fa827 0%, #2e7e17 100%);
  color: #f3ffd6;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.submit-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 160px;
  justify-content: stretch;
}

.ref-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.92);
  padding: 0 18px;
  color: #191919;
  font-size: 18px;
  font-weight: 700;
  outline: none;
}

.message {
  margin: 16px auto 0;
  width: min(320px, 100%);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #4e9129;
  background: linear-gradient(180deg, #4ca425 0%, #327f1b 100%);
  color: #f2ffd7;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.foot-copy {
  margin-top: 18px;
  padding: 16px 18px;
  background: rgba(0,0,0,0.34);
  color: rgba(255,255,255,0.96);
  text-align: center;
  font-size: 16px;
  line-height: 1.45;
}

.hidden { display: none; }

@media (max-width: 900px) {
  .shell { width: min(100%, calc(100% - 12px)); }
  .topbar {
    flex-direction: column;
    gap: 14px;
    padding: 14px 16px;
  }
  .nav {
    justify-content: center;
    gap: 14px 22px;
    font-size: 13px;
  }
  .hero-content {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .hero-title {
    margin-top: 50px;
  }
  .submit-row {
    grid-template-columns: 1fr;
  }
  .download-note {
    font-size: 16px;
    padding: 0 10px;
  }
}
