/* Marketing landing page. Loaded only on / and /premium. */

/* ── hero ──────────────────────────────────────────────────────────── */
.hero-wrap {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 88px;
  text-align: center;
}

/* Soft brand glow behind the headline. Decorative only. */
.hero-wrap::before {
  content: "";
  position: absolute;
  top: -320px; left: 50%;
  width: 900px; height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(88, 101, 242, 0.22), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero-badge strong { color: var(--text); }

.hero-wrap h1 {
  font-size: clamp(34px, 7vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero-wrap h1 .grad {
  background: linear-gradient(120deg, var(--accent), #eb459e 60%, #fee75c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn.lg { padding: 14px 28px; font-size: 16px; border-radius: 11px; }

.hero-trust {
  display: flex;
  gap: 34px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.hero-trust .item .n {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-trust .item .l {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

/* ── section scaffolding ───────────────────────────────────────────── */
.section { max-width: 1100px; margin: 0 auto; padding: 66px 24px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head .eyebrow {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  font-weight: 800;
}
.section-head p { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.6; }

.alt { background: var(--surface); border-block: 1px solid var(--border); }

/* ── alternating feature rows ──────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.flip .feature-text { order: 2; }

.feature-text .eyebrow {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.feature-text h3 {
  font-size: clamp(22px, 3vw, 29px);
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
}
.feature-text p { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin: 0 0 18px; }

.feature-points { list-style: none; padding: 0; margin: 0; }
.feature-points li {
  position: relative;
  padding-left: 27px;
  margin-bottom: 10px;
  font-size: 14.5px;
}
.feature-points li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 18px; height: 18px;
  background: rgba(87, 242, 135, 0.14);
  color: var(--success);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* ── fake Discord previews ─────────────────────────────────────────── */
.dc {
  background: #313338;
  border: 1px solid #1e1f22;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  color: #dbdee1;
}

.dc-bar {
  background: #2b2d31;
  padding: 9px 14px;
  border-bottom: 1px solid #1e1f22;
  font-size: 13.5px;
  font-weight: 600;
  color: #f2f3f5;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dc-bar .hash { color: #80848e; font-weight: 400; }

.dc-body { padding: 14px; display: flex; flex-direction: column; gap: 13px; }

.dc-msg { display: flex; gap: 11px; }
.dc-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  background: var(--surface-2);
}
.dc-name { font-weight: 600; color: #f2f3f5; font-size: 14.5px; }
.dc-tag {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
}
.dc-time { color: #949ba4; font-size: 11.5px; margin-left: 6px; }
.dc-text { color: #dbdee1; margin-top: 2px; line-height: 1.45; }

.dc-embed {
  background: #2b2d31;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 11px 14px;
  margin-top: 7px;
  max-width: 420px;
}
.dc-embed.green { border-left-color: #57f287; }
.dc-embed.red { border-left-color: #ed4245; }
.dc-embed.gold { border-left-color: #fee75c; }
.dc-embed.pink { border-left-color: #eb459e; }

.dc-embed .et { font-weight: 700; color: #f2f3f5; margin-bottom: 5px; font-size: 14.5px; }
.dc-embed .ed { color: #b5bac1; font-size: 13.5px; line-height: 1.5; }
.dc-embed .ef { display: flex; gap: 22px; margin-top: 9px; flex-wrap: wrap; }
.dc-embed .ef div .k {
  font-size: 11.5px;
  color: #b5bac1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dc-embed .ef div .v { font-size: 13.5px; color: #dbdee1; }
.dc-embed .foot { color: #949ba4; font-size: 11.5px; margin-top: 9px; }

.dc-btns { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.dc-btn {
  background: #4e5058;
  color: #fff;
  border-radius: 4px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
}
.dc-btn.primary { background: var(--accent); }
.dc-btn.danger { background: #da373c; }
.dc-btn.success { background: #248046; }

.dc-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 9px; }
.dc-track { background: #1e1f22; border-radius: 4px; height: 8px; overflow: hidden; }
.dc-fill { height: 100%; border-radius: 4px; background: var(--accent); }

.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }

/* ── plugin grid ───────────────────────────────────────────────────── */
.plugins { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }

.plugin {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 19px;
  transition: border-color 0.16s, transform 0.16s;
}
.plugin:hover { border-color: var(--accent); transform: translateY(-2px); }
.plugin .ic { font-size: 24px; margin-bottom: 9px; }
.plugin h4 { margin: 0 0 5px; font-size: 15px; font-weight: 700; }
.plugin p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* ── pricing strip ─────────────────────────────────────────────────── */
.tier-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tier-mini {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
}
.tier-mini.hot { border-color: var(--accent); }
.tier-mini .e { font-size: 27px; }
.tier-mini h4 { margin: 7px 0 3px; font-size: 17px; }
.tier-mini .p { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; margin: 9px 0 3px; }
.tier-mini .per { color: var(--muted); font-size: 13px; }
.tier-mini .tl { color: var(--muted); font-size: 13.5px; margin: 12px 0 0; line-height: 1.5; }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq { max-width: 740px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  padding: 16px 19px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 19px 17px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ── closing CTA ───────────────────────────────────────────────────── */
.cta-final {
  text-align: center;
  padding: 76px 24px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(235, 69, 158, 0.09));
  border-top: 1px solid var(--border);
}
.cta-final h2 {
  font-size: clamp(26px, 4.5vw, 38px);
  letter-spacing: -0.025em;
  margin: 0 0 13px;
  font-weight: 800;
}
.cta-final p { color: var(--muted); margin: 0 0 26px; font-size: 16.5px; }

/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 30px; margin-bottom: 56px; }
  .feature-row.flip .feature-text { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-trust { gap: 24px; }
  .section { padding: 48px 20px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .hero-wrap { padding: 48px 18px 60px; }
}

/* ── landing motion ────────────────────────────────────────────────── */
/* The hero animates on load rather than on scroll — it is already visible. */
.motion .hero-inner > * { animation: hero-in 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) backwards; }
.motion .hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.motion .hero-inner > *:nth-child(2) { animation-delay: 0.14s; }
.motion .hero-inner > *:nth-child(3) { animation-delay: 0.22s; }
.motion .hero-inner > *:nth-child(4) { animation-delay: 0.30s; }
.motion .hero-inner > *:nth-child(5) { animation-delay: 0.40s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* Slow drift on the background glow so the hero is never quite static. */
.motion .hero-wrap::before { animation: glow-drift 14s ease-in-out infinite alternate; }

@keyframes glow-drift {
  from { transform: translateX(-50%) scale(1); opacity: 0.85; }
  to { transform: translateX(-46%) scale(1.09); opacity: 1; }
}

/* Discord mockups lift slightly as they enter. */
.motion .feature-row .dc { transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 0.3s ease; }
.motion .feature-row.in .dc:hover { transform: translateY(-4px); box-shadow: 0 20px 52px rgba(0, 0, 0, 0.36); }

.plugin { transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease; }
.tier-mini { transition: border-color 0.16s ease, transform 0.16s ease; }
.tier-mini:hover { transform: translateY(-3px); border-color: var(--accent); }

.faq details { transition: border-color 0.16s ease; }
.faq details[open] { border-color: var(--accent); }
.faq .a { animation: rise 0.28s ease backwards; }

.hero-badge { transition: transform 0.16s ease, border-color 0.16s ease; }
.hero-badge:hover { transform: translateY(-1px); border-color: var(--accent); }

/* Progress bars in the mockups fill on reveal. */
.motion .reveal.in .dc-fill { animation: fill-bar 1s cubic-bezier(0.22, 0.8, 0.3, 1) backwards; }
@keyframes fill-bar { from { width: 0 !important; } }

/* ── branded hero ──────────────────────────────────────────────────── */
/* The banner sits behind the copy, faded so text stays readable. The
   artwork already carries the brand, so the copy does not have to shout. */
.hero-banner {
  position: absolute;
  inset: 0;
  background: url('/img/banner.jpg') center / cover no-repeat;
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}

/* Fade it into the page rather than cutting off at a hard edge. */
.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 30, 37, 0.55) 0%,
    rgba(27, 30, 37, 0.80) 55%,
    var(--bg) 100%
  );
  z-index: 0;
  pointer-events: none;
}

@media (prefers-color-scheme: light) {
  .hero-banner { opacity: 0.16; }
  .hero-wrap::after {
    background: linear-gradient(
      to bottom,
      rgba(250, 247, 244, 0.55) 0%,
      rgba(250, 247, 244, 0.86) 55%,
      var(--bg) 100%
    );
  }
}

.hero-logo {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  margin-bottom: 22px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
}

/* Copper through gold, taken straight off the banner. */
.hero-wrap h1 .grad {
  background: linear-gradient(115deg, var(--accent-hover), var(--gold) 70%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-wrap::before {
  background: radial-gradient(ellipse at center, rgba(181, 118, 79, 0.26), transparent 62%);
}

.hero-badge { background: rgba(35, 40, 48, 0.72); backdrop-filter: blur(6px); }
@media (prefers-color-scheme: light) {
  .hero-badge { background: rgba(255, 255, 255, 0.78); }
}

/* Keep Discord's own colour on the button that talks about Discord. */
.nav-cta, .hero-cta .btn:not(.secondary) { background: var(--discord); }
.nav-cta:hover, .hero-cta .btn:not(.secondary):hover { background: #4752c4; }

@media (max-width: 520px) {
  .hero-logo { width: 84px; height: 84px; border-radius: 20px; }
  .hero-banner { opacity: 0.2; }
}
