:root {
  --bg: #07060d;
  --panel: #120f1f;
  --panel-2: #1a1630;
  --border: #2a2448;
  --text: #ece9ff;
  --muted: #9a93c2;
  --accent: #b46bff;
  --accent-2: #ff8a3d;
  --gem: #5ee7ff;
  --error: #ff6b81;
  --ok: #4ade80;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 60% 40% at 50% -5%, rgba(180, 107, 255, 0.25), transparent 70%),
    radial-gradient(circle at 15% 80%, rgba(255, 138, 61, 0.08), transparent 40%);
}

a { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header stays pinned to the top while scrolling */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 6, 13, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; padding-bottom: 14px;
}
/* Keep jump links (e.g. #terms) from hiding under the pinned header */
[id] { scroll-margin-top: 84px; }

.discord-btn {
  flex: none; display: inline-block;
  padding: 10px 20px; border-radius: 12px;
  background: #5865f2; color: #fff; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 14px -4px rgba(88, 101, 242, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
/* Hover lift only on devices with a mouse, so it doesn't get "stuck" after a tap on phones */
@media (hover: hover) {
  .discord-btn:hover {
    background: #6d78f5; transform: translateY(-2px);
    box-shadow: 0 8px 22px -6px rgba(88, 101, 242, 0.8);
  }
}
.discord-btn:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 8px -4px rgba(88, 101, 242, 0.6);
  transition-duration: 0.05s;
}
.discord-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.brand span { white-space: nowrap; }

/* Phones */
@media (max-width: 420px) {
  .brand { gap: 10px; }
  .brand .eclipse { width: 28px; height: 28px; }
  .brand span { font-size: 1.05rem; }
  .discord-btn { padding: 9px 14px; font-size: 0.875rem; }
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  [id] { scroll-margin-top: 72px; }
  .hero { padding-top: 32px; }
  .bundle { padding: 16px; gap: 12px; }
  .bundle .icon { width: 44px; height: 44px; font-size: 1.4rem; }
  .terms { padding: 4px 16px 16px; }
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand .eclipse {
  width: 36px; height: 36px; border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 2px var(--accent-2), 0 0 18px 4px rgba(255, 138, 61, 0.55), inset -6px -4px 0 0 #1a1630;
}
.brand span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; }

.hero { text-align: center; padding: 48px 0 32px; }
.hero h1 {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 6vw, 3.4rem);
  margin: 0 0 12px; line-height: 1.1;
  background: linear-gradient(90deg, #fff, var(--accent) 60%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); margin: 0 auto; max-width: 520px; }

.user-box {
  max-width: 440px; margin: 28px auto 0; text-align: left;
}
.user-box label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.user-box input {
  width: 100%; padding: 14px 16px; font-size: 1rem; color: var(--text);
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; outline: none;
  font-family: inherit;
}
.user-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180, 107, 255, 0.25); }
.user-box input.invalid { border-color: var(--error); }
.user-box + .user-box { margin-top: 16px; }
.user-box .hint { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--muted); }

.notice {
  max-width: 440px; margin: 16px auto 0; padding: 10px 14px; border-radius: 10px; font-size: 0.9rem;
  display: none;
}
.notice.show { display: block; }
.notice.error { background: rgba(255, 107, 129, 0.12); border: 1px solid rgba(255, 107, 129, 0.4); color: #ffc2cc; }
.notice.info { background: rgba(180, 107, 255, 0.12); border: 1px solid rgba(180, 107, 255, 0.4); color: #e4d0ff; }

h2.section { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; margin: 40px 0 16px; }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.bundle {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: 16px; padding: 20px;
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.bundle:hover:not(:disabled) {
  transform: translateY(-2px); border-color: var(--accent);
  box-shadow: 0 8px 30px -10px rgba(180, 107, 255, 0.6);
}
.bundle:disabled { opacity: 0.6; cursor: wait; }
.bundle .icon {
  flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.7rem; background: rgba(94, 231, 255, 0.08); border: 1px solid rgba(94, 231, 255, 0.25);
}
.bundle .info { flex: 1; min-width: 0; }
.bundle .amount { font-weight: 700; font-size: 1.15rem; }
.bundle .bonus { font-size: 0.8rem; color: var(--gem); }
.bundle .price {
  flex: none; font-weight: 700; padding: 8px 14px; border-radius: 10px;
  background: var(--accent); color: #12051f;
}
.bundle .tag {
  position: absolute; top: -10px; right: 16px; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-2); color: #1a0a00;
}

.trust {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center;
  color: var(--muted); font-size: 0.85rem; margin: 32px 0;
}

code {
  font-family: ui-monospace, Consolas, monospace; font-size: 0.9em;
  background: rgba(94, 231, 255, 0.1); color: var(--gem);
  border: 1px solid rgba(94, 231, 255, 0.25); border-radius: 6px; padding: 1px 6px;
}

.steps {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.steps li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px;
}
.steps .num {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; background: var(--accent); color: #12051f;
}
.steps strong { display: block; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.terms-short { text-align: center; color: var(--muted); font-size: 0.85rem; margin: -16px 0 0; }

.terms {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 4px 24px 20px; margin-top: 40px;
}
.terms h2.section { margin-top: 20px; }
.terms h3 { font-size: 1rem; margin: 24px 0 8px; }
.terms p, .terms li { color: var(--muted); font-size: 0.92rem; }
.terms ul { margin: 0; padding-left: 20px; }
.terms li { margin: 4px 0; }
.terms .warn {
  background: rgba(255, 107, 129, 0.1); border: 1px solid rgba(255, 107, 129, 0.45);
  border-left: 4px solid var(--error); border-radius: 10px; padding: 14px 16px;
  color: #ffd5dc; font-size: 0.95rem;
}
.terms .warn strong { color: #fff; }

footer.site {
  border-top: 1px solid var(--border); margin-top: 48px; padding: 24px 0 40px;
  color: var(--muted); font-size: 0.8rem; text-align: center;
}
footer.site p { margin: 4px 0; }

.card-center {
  max-width: 480px; margin: 60px auto; padding: 32px 24px; text-align: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
}
.card-center h1 { font-family: 'Space Grotesk', sans-serif; margin: 12px 0 8px; }
.card-center p { color: var(--muted); }
.big-icon { font-size: 3rem; }
.btn {
  display: inline-block; margin-top: 16px; padding: 12px 22px; border-radius: 12px;
  background: var(--accent); color: #12051f; font-weight: 700; text-decoration: none;
}
