:root {
  --blurple: #5865f2;
  --blurple-dark: #4752c4;
  --violet: #7b5cff;
  --bg: #0d0e1a;
  --bg-soft: #15172a;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0ff;
  --text-dim: #a7abd1;
  --accent: #ffb86b;
  --ok: #57f287;
  --err: #ff8c8c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(123, 92, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(88, 101, 242, 0.18), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- layout ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(16px, 5vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(13, 14, 26, 0.6);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}
.wordmark span {
  color: var(--blurple);
}

.lang {
  display: flex;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-btn.active {
  background: var(--blurple);
  color: #fff;
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 32px);
}

section {
  padding: clamp(48px, 8vw, 88px) 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type {
  border-bottom: none;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff, #c3c9ff 60%, #8b95ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

p {
  color: var(--text-dim);
}
.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  max-width: 640px;
  margin-bottom: 28px;
}
.muted {
  color: var(--text-dim);
}
.small {
  font-size: 0.86rem;
}
.center {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 560px;
}

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding-top: clamp(40px, 7vw, 72px);
}

/* Framed square logo at the top of the hero. */
.hero-logo {
  width: clamp(112px, 22vw, 148px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 22px;
  padding: 5px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--blurple), var(--violet));
  box-shadow: 0 16px 44px rgba(88, 101, 242, 0.45);
}
.hero-logo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 23px;
  object-fit: cover;
}
.hero .lead {
  margin-left: auto;
  margin-right: auto;
}

.badge {
  display: inline-block;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #cdd2ff;
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid rgba(123, 92, 255, 0.4);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}

/* ---------- buttons ---------- */

.btn {
  font-family: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  border-radius: 14px;
  padding: 15px 30px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
  color: #fff;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blurple), var(--violet));
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.35);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(88, 101, 242, 0.5);
}
.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.btn-block {
  width: 100%;
}

/* ---------- offer ---------- */

.offer {
  text-align: center;
  background: linear-gradient(180deg, rgba(123, 92, 255, 0.08), transparent);
  border-radius: 24px;
  margin: 24px 0;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 4vw, 48px);
  border: 1px solid var(--border);
}
.offer p {
  max-width: 620px;
  margin: 0 auto 22px;
}
.offer-badge {
  display: inline-block;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: #1a1205;
  background: var(--accent);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 18px;
}
.countdown-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.countdown {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 68px;
}
.cd-cell span {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.cd-cell small {
  margin-top: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.cd-sep {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dim);
  padding-top: 14px;
}

.offer-after {
  max-width: 620px;
  margin: 26px auto 0;
  padding: 14px 20px;
  font-size: 0.98rem;
  color: #d7dbff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* ---------- Streamline perk: big 20%-off banner ---------- */

.perk {
  border-bottom: 1px solid var(--border);
}
.perk-box {
  text-align: center;
  border-radius: 24px;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 4vw, 48px);
  background:
    radial-gradient(ellipse at top, rgba(123, 92, 255, 0.35), transparent 70%),
    linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(123, 92, 255, 0.22));
  border: 1px solid rgba(123, 92, 255, 0.5);
  box-shadow: 0 24px 60px rgba(88, 101, 242, 0.25);
}
.perk-badge {
  display: inline-block;
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: #1a1205;
  background: var(--accent);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 18px;
}
.perk-amount {
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff, #c3c9ff 55%, #8b95ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.perk-box h2 {
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  margin-bottom: 12px;
}
.perk-box p {
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: #e7e9ff;
}

/* ---------- steps + events grids ---------- */

.step-grid,
.event-grid {
  display: grid;
  gap: 18px;
}
.step-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.event-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step,
.event {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}
.event {
  text-align: center;
}
.event-emoji {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

/* ---------- final CTA ---------- */

.cta2 {
  text-align: center;
}
.cta2 p {
  max-width: 520px;
  margin: 0 auto 26px;
}

/* ---------- footer ---------- */

footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px clamp(16px, 5vw, 32px) 56px;
  text-align: center;
}
footer p + p {
  margin-top: 8px;
}

/* ---------- modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 7, 14, 0.72);
  backdrop-filter: blur(6px);
}
.modal-overlay[hidden] {
  display: none;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  animation: pop 0.18s ease;
}
@keyframes pop {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
}
.modal h2 {
  font-size: 1.4rem;
}
.modal p {
  margin-bottom: 18px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  color: var(--text);
}
.modal-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blurple);
  color: #fff;
  box-shadow: 0 0 34px rgba(88, 101, 242, 0.55);
}
.modal-logo svg {
  width: 34px;
  height: 27px;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}
.input-wrap:focus-within {
  border-color: var(--blurple);
}
.input-wrap .at {
  color: var(--text-dim);
  font-weight: 800;
  font-size: 1.1rem;
}
.input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1.1rem;
  padding: 15px 8px;
}

#status {
  min-height: 1.4em;
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
#status.ok {
  color: var(--ok);
}
#status.error {
  color: var(--err);
}
