:root {
  --bg: #f3f4fb;
  --bg-elevated: #ffffff;
  --bg-soft: #e4e7f5;
  --bg-card: #ffffff;
  --ink: #0b0d16;
  --ink-2: #1a1f33;
  --muted: #3d4560;
  --faint: #525a73;
  --line: #0b0d16;
  --line-soft: #c7cce0;
  --blurple: #5865f2;
  --blurple-2: #4450d6;
  --blurple-soft: #dfe2ff;
  --blurple-glow: rgba(88, 101, 242, 0.35);
  --green: #1f9b4e;
  --green-soft: #d5f5e0;
  --amber: #e8a317;
  --amber-soft: #ffe8b0;
  --danger: #da373c;
  --discord-bg: #313338;
  --discord-panel: #2b2d31;
  --discord-input: #383a40;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow: 5px 5px 0 #0b0d16;
  --shadow-lg: 10px 10px 0 #0b0d16;
  --shadow-soft: 0 14px 0 rgba(11, 13, 22, 0.08);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1140px;
  --nav-h: 80px;
  --border: 3px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #eef0ff 0%, var(--bg) 220px),
    var(--bg);
  font: 500 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blurple-2); text-decoration: none; font-weight: 700; }
a:hover { color: var(--ink); }
button { font: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--ink);
  font-weight: 800;
}
p { margin: 0; font-weight: 500; color: var(--muted); }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  border: var(--border) solid var(--ink);
  z-index: 1000;
  font-weight: 800;
}
.skip-link:focus { left: 8px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: #fff;
  border-bottom: var(--border) solid var(--ink);
  box-shadow: 0 6px 0 var(--blurple);
}
.nav.scrolled { background: #fff; }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
}
.brand:hover { color: var(--ink); }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: var(--border) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--ink-2);
  font-weight: 800;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 2px solid transparent;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--blurple-soft);
  border-color: var(--ink);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: var(--border) solid var(--ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 3px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  border: var(--border) solid var(--ink);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary {
  background: var(--blurple);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--blurple-2);
  color: #fff !important;
}
.btn-secondary {
  background: #fff;
  color: var(--ink) !important;
}
.btn-secondary:hover { background: var(--bg-soft); color: var(--ink) !important; }
.btn-ghost {
  background: var(--green-soft);
  color: var(--ink) !important;
}
.btn-ghost:hover { background: #c6efd5; color: var(--ink) !important; }
.btn-sm { min-height: 48px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; stroke-width: 2.5; }

/* Hero */
.hero { padding: 52px 0 36px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--blurple-soft);
  color: var(--ink);
  border: var(--border) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--ink);
  box-shadow: none;
}
.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4rem);
  margin-bottom: 18px;
  max-width: 16ch;
  font-weight: 900;
}
.hero h1 .mark {
  position: relative;
  display: inline;
  color: var(--ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(120deg, #c5cbff 0%, #9aa6ff 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.38em;
  background-position: 0 88%;
  padding: 0 .08em;
  border-radius: 4px;
  font-weight: 900;
}
.hero-lead {
  font-size: 1.25rem;
  color: var(--ink);
  max-width: 38ch;
  margin-bottom: 28px;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 0;
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: var(--border) solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}

/* Discord mock */
.mock {
  position: relative;
  border-radius: 24px;
  background: var(--blurple);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  overflow: hidden;
}
.mock::before { display: none; }
.mock-window {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--discord-bg);
  color: #dbdee1;
  font-size: 14.5px;
  border: var(--border) solid var(--ink);
  box-shadow: none;
  font-weight: 500;
}
.mock-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--discord-panel);
  border-bottom: 2px solid rgba(0,0,0,0.35);
}
.mock-top .hash {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #5865f2;
  color: #fff;
  font-weight: 900;
  border: 2px solid #000;
}
.mock-top strong { color: #fff; font-size: 16px; font-weight: 800; }
.mock-body { padding: 18px 16px 14px; min-height: 300px; }
.msg {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  margin-bottom: 18px;
  opacity: 1;
  transform: none;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #2b2d31;
  border: 3px solid #0b0d16;
  box-shadow: 2px 2px 0 #0b0d16;
  flex: 0 0 auto;
}
.msg-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.msg-head .name { color: #fff; font-weight: 800; }
.msg-head .time { color: #b5bac1; font-size: 12px; font-weight: 700; }
.msg-text { color: #f2f3f5; line-height: 1.45; font-weight: 600; }
.msg-original {
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 4px solid #5865f2;
  background: rgba(88,101,242,0.22);
  border-radius: 0 10px 10px 0;
  color: #d7daf0;
  font-size: 13px;
  font-weight: 600;
}
.badge-tr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #5865f2;
  color: #fff;
  border: 2px solid #000;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.mock-input {
  margin: 0 14px 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--discord-input);
  color: #c4c8ce;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #111;
}
.mock-float {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  z-index: 2;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: var(--border) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.chip .pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--ink);
  animation: pulse 1.6s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Sections */
.section { padding: 78px 0; }
.section-alt {
  background: #fff;
  border-block: var(--border) solid var(--ink);
}
.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin-bottom: 14px;
  font-weight: 900;
}
.section-head p {
  color: var(--ink-2);
  font-size: 1.15rem;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--bg-card);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.feature:nth-child(3n+1) { background: #fff; }
.feature:nth-child(3n+2) { background: var(--blurple-soft); }
.feature:nth-child(3n) { background: var(--green-soft); }
.feature:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--blurple);
  color: #fff;
  border: var(--border) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; stroke-width: 2.5; }
.feature h3 { font-size: 1.25rem; margin-bottom: 10px; font-weight: 800; }
.feature p { color: var(--ink-2); font-size: 1rem; font-weight: 600; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  padding: 34px 24px 26px;
  box-shadow: var(--shadow);
}
.step:nth-child(2) { background: var(--amber-soft); }
.step:nth-child(3) { background: var(--blurple-soft); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 22px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blurple);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  border: var(--border) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.step h3 { margin: 10px 0 10px; font-size: 1.3rem; font-weight: 900; }
.step p { color: var(--ink-2); font-weight: 600; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: #fff;
  border: var(--border) solid var(--ink);
  border-radius: 24px;
  padding: 30px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.price-card:nth-child(1) { background: var(--green-soft); }
.price-card:nth-child(3) { background: var(--amber-soft); }
.price-card.featured {
  background: var(--blurple-soft);
  transform: translateY(-8px);
  box-shadow: 7px 7px 0 var(--ink);
}
.price-card.featured::after {
  content: "Most popular";
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--blurple);
  color: #fff;
  border: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink);
}
.price-card h3 { font-size: 1.4rem; margin-bottom: 8px; font-weight: 900; }
.price-card .tagline {
  color: var(--ink-2);
  font-size: 1rem;
  margin-bottom: 18px;
  min-height: 2.8em;
  font-weight: 600;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}
.price .amount {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.price .period { color: var(--ink-2); font-weight: 800; }
.price-note { color: var(--ink-2); font-size: 14px; margin-bottom: 20px; font-weight: 700; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
  flex: 1;
}
.price-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}
.price-list svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  margin-top: 2px;
  stroke-width: 2.75;
}
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  border: var(--border) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  margin: 0 auto 28px;
}
.billing-toggle button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.billing-toggle button.active {
  background: var(--blurple);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.billing-toggle .save {
  margin-left: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}
.billing-toggle button.active .save { color: #b8ffd0; }

/* FAQ */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: #fff;
  border: var(--border) solid var(--ink);
  border-radius: 16px;
  padding: 4px 18px;
  box-shadow: 3px 3px 0 var(--ink);
}
.faq details:nth-child(even) { background: var(--bg-soft); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--amber-soft);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 22px;
  font-weight: 900;
  flex: 0 0 auto;
  box-shadow: 2px 2px 0 var(--ink);
}
.faq details[open] summary::after {
  content: "–";
  background: var(--blurple);
  color: #fff;
}
.faq details p {
  color: var(--ink-2);
  padding: 0 0 18px;
  margin-top: -4px;
  font-weight: 600;
  font-size: 1rem;
}

/* CTA band */
.cta-band {
  margin: 20px 0 40px;
  border-radius: 28px;
  padding: 52px 36px;
  background: var(--blurple);
  color: #fff;
  text-align: center;
  border: var(--border) solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 12px; font-weight: 900; }
.cta-band p { color: #eef0ff; max-width: 42ch; margin: 0 auto 26px; font-weight: 700; font-size: 1.1rem; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--ink) !important;
}
.cta-band .btn-secondary {
  background: transparent;
  color: #fff !important;
  border-color: #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
}

/* Footer */
.footer {
  padding: 52px 0 28px;
  border-top: var(--border) solid var(--ink);
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
.footer-brand p {
  color: var(--ink-2);
  margin-top: 14px;
  max-width: 28ch;
  font-size: 1rem;
  font-weight: 600;
}
.footer h4 {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 900;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--ink-2); font-weight: 800; font-size: 1rem; }
.footer a:hover { color: var(--blurple-2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: var(--border) solid var(--ink);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

/* Legal / support */
.page-hero { padding: 48px 0 24px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin-bottom: 12px;
  font-weight: 900;
}
.page-hero p { color: var(--ink-2); max-width: 60ch; font-weight: 600; font-size: 1.1rem; }
.prose {
  background: #fff;
  border: var(--border) solid var(--ink);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow);
  margin: 10px 0 60px;
}
.prose h2 {
  font-size: 1.35rem;
  margin: 28px 0 10px;
  font-weight: 900;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 10px; font-weight: 600; }
.prose ul { padding-left: 18px; }
.prose a { font-weight: 800; }
.support-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 10px 0 60px;
}
.support-card {
  background: #fff;
  border: var(--border) solid var(--ink);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.support-card:nth-child(odd) { background: var(--blurple-soft); }
.support-card:nth-child(even) { background: var(--green-soft); }
.support-card h2 { font-size: 1.3rem; margin-bottom: 10px; font-weight: 900; }
.support-card p { color: var(--ink-2); margin-bottom: 16px; font-weight: 600; }

.notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--ink);
  border: var(--border) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}
@media (min-width: 720px) {
  .brand span { max-width: none; }
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-grid,
  .steps,
  .pricing-grid,
  .footer-grid,
  .support-card-grid {
    grid-template-columns: 1fr;
  }
  .price-card.featured { transform: none; }
  .hero h1 { max-width: none; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 18px;
    background: #fff;
    border-bottom: var(--border) solid var(--ink);
    box-shadow: 0 12px 0 rgba(11,13,22,0.06);
  }
  .hero { padding-top: 32px; }
  .mock-float { position: static; margin: 12px 0 0; justify-content: flex-start; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--max)); }
  .hero-actions .btn { width: 100%; }
  .nav-cta .btn-secondary { display: none; }
  .prose { padding: 24px 18px; }
  .cta-band { padding: 36px 20px; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
