/* ============================================================
   MainChar — Discord app marketing site
   Light product chrome (blurple accent, Bricolage/Figtree),
   dark pixel-faithful Discord mock as the centerpiece.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --bg-tint: #eef0ff;
  --ink: #17181d;
  --ink-2: #3d3f47;
  --muted: #6b6e7b;
  --line: #e5e6f0;
  --blurple: #5865f2;
  --blurple-dark: #4752c4;
  --green: #23a55a;
  --yellow: #f0b132;
  --pink: #eb459e;
  --red: #f23f43;
  --radius: 16px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);

  /* discord mock palette (actual client values) */
  --dc-rail: #1e1f22;
  --dc-side: #2b2d31;
  --dc-chat: #313338;
  --dc-input: #383a40;
  --dc-hover: #404249;
  --dc-line: #26272b;
  --dc-text: #dbdee1;
  --dc-muted: #949ba4;
  --dc-header: #f2f3f5;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Figtree", "gg sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blurple); color: #fff; }

a { color: inherit; }

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
  background: var(--bg-tint);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  color: var(--blurple-dark);
}

.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.display {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 2px solid var(--blurple);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.container-narrow { max-width: 780px; }

/* ---------- announce bar ---------- */

.announce {
  text-align: center;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  background: var(--bg-tint);
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.announce a {
  color: var(--blurple-dark);
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.35rem;
}

.announce a:hover { text-decoration: underline; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem var(--pad-x);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.brand-name-light { color: #fff; }

.nav-links {
  display: flex;
  gap: 1.6rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-blurple {
  background: var(--blurple);
  color: #fff;
}

.btn-blurple:hover {
  background: var(--blurple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.4);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--bg);
}

.btn-ghost:hover {
  border-color: var(--blurple);
  color: var(--blurple-dark);
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.0625rem; }

.ico-discord { width: 20px; height: 20px; flex-shrink: 0; }

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

.hero {
  text-align: center;
  padding: clamp(4rem, 8vw, 6.5rem) var(--pad-x) 0;
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(88, 101, 242, 0.08), transparent),
    var(--bg);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.chip-verified {
  background: rgba(35, 165, 90, 0.12);
  color: #17804a;
}

.chip-sep { color: var(--muted); }

.chip-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 18ch;
  margin: 0 auto 1.5rem;
}

.squiggle {
  position: relative;
  display: inline-block;
  color: var(--blurple);
}

.squiggle svg {
  position: absolute;
  left: 2%;
  bottom: -0.18em;
  width: 96%;
  height: 0.18em;
  color: var(--pink);
  opacity: 0.9;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.1875rem;
  max-width: 38rem;
  margin: 0 auto 2.25rem;
}

.hero-sub strong { color: var(--ink); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hp-avatars { display: inline-flex; }

.hp-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-weight: 700;
  font-size: 0.8125rem;
  border: 2.5px solid var(--bg);
  margin-left: -10px;
}

.hp-av:first-child { margin-left: 0; }

img.hp-av { object-fit: cover; }

.hp-av-1 { background: #d4526e; }
.hp-av-2 { background: #23a55a; }
.hp-av-3 { background: #7a4dc9; }
.hp-av-4 { background: #b5854a; }

.hp-more {
  background: var(--bg-tint);
  color: var(--blurple-dark);
  font-size: 0.75rem;
}

.hp-text { color: var(--muted); font-size: 0.9375rem; }

.hp-text strong { color: var(--ink); }

.hero-fineprint {
  color: var(--muted);
  margin-top: 1rem;
}

/* ---------- collab marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
  padding: 1.6rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 40s linear infinite;
  will-change: transform;
}

/* each group ends with the same 3rem the items use, so the loop seam is invisible */
.mq-group {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  white-space: nowrap;
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mq-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.mq-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px #a9aec9;
}

.mq-sep { color: var(--blurple); font-size: 1.1rem; }

/* ---------- discord mock ---------- */

.mock-wrap {
  position: relative;
  max-width: 1060px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}

.float-emoji {
  position: absolute;
  font-size: 2.5rem;
  z-index: 2;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
  animation: floaty 5s ease-in-out infinite;
}

.fe-1 { top: -2.5rem; left: -3.25rem; transform: rotate(-8deg); }
.fe-2 { bottom: 5rem; right: -3.25rem; transform: rotate(10deg); animation-delay: 2.5s; }

@media (max-width: 1220px) {
  .float-emoji { display: none; }
}

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.dc-window {
  display: grid;
  grid-template-columns: 72px 232px 1fr 208px;
  height: 560px;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  font-size: 0.9375rem;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 40px 100px -20px rgba(23, 24, 29, 0.45), 0 12px 30px rgba(23, 24, 29, 0.18);
  background: var(--dc-chat);
  color: var(--dc-text);
}

/* rail */

.dc-rail {
  background: var(--dc-rail);
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.dc-rail-home,
.dc-rail-srv,
.dc-rail-add {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--dc-side);
  color: var(--dc-text);
}

.dc-rail-home {
  background: var(--blurple);
  color: #fff;
  border-radius: 16px;
}

.dc-rail-home svg { width: 26px; height: 26px; }

.dc-rail-sep {
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--dc-side);
}

.dc-rail-active {
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  position: relative;
}

.dc-rail-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 4px;
  width: 4px;
  height: 40px;
  border-radius: 0 4px 4px 0;
  background: #fff;
}

.dc-rail-img { object-fit: cover; }

.dc-srv-2 { background: #3b6ea5; color: #fff; }
.dc-srv-3 { background: #7a4dc9; color: #fff; }

.dc-rail-add { color: var(--green); font-size: 1.5rem; font-weight: 400; }

/* sidebar */

.dc-sidebar {
  background: var(--dc-side);
  padding: 0;
  overflow: hidden;
}

.dc-server-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--dc-header);
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--dc-line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.dc-verif {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.625rem;
  flex-shrink: 0;
}

.dc-chev { margin-left: auto; color: var(--dc-muted); font-size: 0.75rem; }

.dc-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--dc-muted);
  padding: 1.1rem 1rem 0.35rem;
}

.dc-chan {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--dc-muted);
  font-weight: 500;
  padding: 0.32rem 0.6rem;
  margin: 1px 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

.dc-chan-active {
  background: var(--dc-hover);
  color: var(--dc-header);
  font-weight: 600;
}

.dc-chan-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 0.4rem;
}

/* main chat */

.dc-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--dc-chat);
}

.dc-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--dc-line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  overflow: hidden;
}

.dc-topic-name { font-weight: 700; color: var(--dc-header); }

.dc-topic-desc {
  color: var(--dc-muted);
  font-size: 0.8125rem;
  border-left: 1px solid var(--dc-hover);
  padding-left: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-top-icons {
  margin-left: auto;
  color: var(--dc-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.35em;
}

.dc-chat {
  flex: 1;
  padding: 1rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow-y: auto;
}

.dc-chat::-webkit-scrollbar { width: 8px; }
.dc-chat::-webkit-scrollbar-thumb { background: #1e1f22; border-radius: 4px; }
.dc-chat::-webkit-scrollbar-track { background: transparent; }

.dc-date {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--dc-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.dc-date::before,
.dc-date::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--dc-hover);
}

/* messages */

.dc-msg {
  display: flex;
  gap: 0.85rem;
  padding: 0.35rem 0.25rem;
  border-radius: 6px;
  animation: dc-in 0.25s ease both;
}

@keyframes dc-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.dc-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.dc-av-bot { background: var(--blurple); border-radius: 50%; }
.dc-av-t { background: #d4526e; }
.dc-av-k { background: #43b581; }
.dc-av-m { background: #3b6ea5; }
.dc-av-b { background: #b5854a; }

.dc-body { min-width: 0; }

.dc-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  line-height: 1.3;
}

.dc-user { font-weight: 600; color: var(--dc-header); }

.dc-user-mod { color: #58c48a; }
.dc-user-bot { color: #869aff; }

.dc-badge {
  display: inline-block;
  background: var(--blurple);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  vertical-align: 1px;
}

.dc-time { color: var(--dc-muted); font-size: 0.6875rem; }

.dc-text {
  color: var(--dc-text);
  line-height: 1.45;
  word-wrap: break-word;
}

/* slash-command context line */

.dc-cmdctx {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--dc-muted);
  font-size: 0.8125rem;
  padding: 0.4rem 0.25rem 0;
  animation: dc-in 0.25s ease both;
}

.dc-cmdctx::before {
  content: "";
  width: 22px;
  height: 10px;
  border-left: 2px solid var(--dc-hover);
  border-top: 2px solid var(--dc-hover);
  border-top-left-radius: 6px;
  margin-left: 18px;
  margin-top: 8px;
}

.dc-cmdctx b { color: var(--dc-header); font-weight: 600; }

.dc-cmd { color: #869aff; font-weight: 600; }

/* embed */

.dc-embed {
  margin-top: 0.35rem;
  max-width: 400px;
  background: var(--dc-side);
  border-left: 4px solid var(--red);
  border-radius: 5px;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.9rem;
}

.dc-embed-thumb {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.dc-embed-title {
  font-weight: 700;
  color: var(--dc-header);
  margin-bottom: 0.2rem;
}

.dc-embed-desc {
  color: var(--dc-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.dc-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  grid-column: 1 / -1;
}

.dc-btn {
  background: #4e5058;
  color: var(--dc-header);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 0.35rem 0.9rem;
}

.dc-btn-primary { background: var(--blurple); color: #fff; }

/* reactions */

.dc-reactions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.dc-react {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--dc-side);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.15rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--dc-muted);
  animation: dc-in 0.25s ease both;
}

.dc-react-me {
  background: rgba(88, 101, 242, 0.15);
  border-color: var(--blurple);
  color: var(--dc-header);
}

/* typing */

.dc-typing {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--dc-muted);
  font-size: 0.8125rem;
  padding: 0.4rem 0.25rem;
  animation: dc-in 0.2s ease both;
}

.dc-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dc-muted);
  display: inline-block;
  animation: dc-bounce 1s ease-in-out infinite;
}

.dc-typing i:nth-child(2) { animation-delay: 0.15s; }
.dc-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes dc-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.dc-typing b { color: var(--dc-header); font-weight: 600; }

/* input */

.dc-input {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 1rem 1.25rem;
  background: var(--dc-input);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--dc-muted);
}

.dc-input-plus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dc-muted);
  color: var(--dc-input);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.dc-input-text { flex: 1; font-size: 0.9375rem; }

.dc-input-icons { font-size: 0.8125rem; letter-spacing: 0.2em; }

/* members */

.dc-members {
  background: var(--dc-side);
  padding: 0.75rem 0.6rem;
  overflow: hidden;
}

.dc-mcat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--dc-muted);
  padding: 0.75rem 0.5rem 0.3rem;
}

.dc-member {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  color: var(--dc-muted);
}

.dc-mav {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #fff;
}

.dc-mav-bot { background: var(--blurple); }
.dc-mav-1 { background: #3b6ea5; }
.dc-mav-2 { background: #43b581; }
.dc-mav-3 { background: #d4526e; }
.dc-mav-4 { background: #b5854a; }
.dc-mav-5 { background: #7a4dc9; }

.dc-status {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--dc-side);
}

.dc-on { background: var(--green); }
.dc-idle { background: var(--yellow); }
.dc-dnd { background: var(--red); }

.dc-mname {
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-mname-bot { color: #869aff; }
.dc-role-mod { color: #58c48a; }

/* ---------- logo strip ---------- */

.logostrip {
  text-align: center;
  padding: clamp(3.5rem, 6vw, 5rem) var(--pad-x) 1rem;
}

.logostrip-label {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.logostrip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.pl-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: #9a9db0;
  transition: color 0.2s ease;
}

.pl-logo:hover { color: var(--ink-2); }

.pl-logo svg { width: 24px; height: 24px; }

.pl-cai {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
}

/* ---------- stats band ---------- */

.statsband { padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x); }

.statsband-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.sb-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0.5rem;
}

.sb-stat + .sb-stat { border-left: 1px solid var(--line); }

.sb-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

.sb-label { color: var(--muted); font-size: 0.9375rem; }

/* ---------- sections ---------- */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-soft { background: var(--bg-soft); }

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--blurple-dark);
  margin-bottom: 1rem;
}

.eyebrow-light { color: #a5aeff; }

.h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 2.75rem;
}

.section-sub {
  color: var(--muted);
  max-width: 26rem;
  margin-top: -1.5rem;
}

/* ---------- features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(23, 24, 29, 0.08);
}

.feature-ico {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.375rem;
  margin-bottom: 1.1rem;
}

.fi-blurple { background: var(--bg-tint); }
.fi-green { background: rgba(35, 165, 90, 0.12); }
.fi-yellow { background: rgba(240, 177, 50, 0.15); }
.fi-pink { background: rgba(235, 69, 158, 0.1); }

.feature h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.feature p { color: var(--muted); font-size: 0.9875rem; }

.feature p strong { color: var(--ink); }

/* ---------- roster ---------- */

.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.roster-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.roster-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 16px 40px rgba(88, 101, 242, 0.12);
}

.rc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rc-av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
}

img.rc-av { object-fit: cover; }

.rc-live {
  color: #17804a;
  background: rgba(35, 165, 90, 0.12);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
}

.rc-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

.rc-stats { color: var(--muted); margin: 0.2rem 0 0.6rem; }

.rc-bio {
  color: var(--muted);
  font-size: 0.9375rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.rc-cta {
  font-weight: 700;
  font-size: 0.9875rem;
  color: var(--blurple-dark);
  text-decoration: none;
}

.rc-cta:hover { text-decoration: underline; }

/* ---------- commands ---------- */

.cmd-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.cmd-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cmd-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: var(--bg);
}

.cmd-row + .cmd-row { border-top: 1px solid var(--line); }

.cmd-row:hover { background: var(--bg-soft); }

.cmd-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blurple-dark);
  background: var(--bg-tint);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cmd-name span { color: var(--muted); font-weight: 400; }

.cmd-row p { color: var(--muted); font-size: 0.9375rem; flex: 1; }

.tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

.tag-blurple { background: var(--bg-tint); color: var(--blurple-dark); }
.tag-pink { background: rgba(235, 69, 158, 0.1); color: #c22c7e; }
.tag-green { background: rgba(35, 165, 90, 0.12); color: #17804a; }

/* ---------- reviews ---------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review {
  background: var(--dc-chat);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--dc-text);
  box-shadow: 0 12px 32px rgba(23, 24, 29, 0.12);
}

.review-server {
  color: var(--dc-muted);
  padding: 0.8rem 1.25rem;
  background: var(--dc-side);
  border-bottom: 1px solid var(--dc-line);
}

.review-msg {
  display: flex;
  gap: 0.85rem;
  padding: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.rv-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
}

.rv-av-1 { background: #3b6ea5; }
.rv-av-2 { background: #b5854a; }
.rv-av-3 { background: #7a4dc9; }

.rv-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.rv-mod { color: #58c48a; font-size: 0.9375rem; }

.rv-meta .mono { color: var(--dc-muted); font-size: 0.6875rem; }

/* ---------- creators ---------- */

.creators-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 4rem);
  background-image: radial-gradient(ellipse 60% 80% at 85% 10%, rgba(88, 101, 242, 0.25), transparent);
}

.creators-copy .h2 { color: #fff; }

.creators-copy p { color: #b6b8c8; max-width: 30rem; }

.creators-copy em { color: #fff; font-style: normal; font-weight: 700; }

.creators-copy .cta-row { justify-content: flex-start; margin-top: 2rem; }

.creators-fineprint { color: #8a8da1; margin-top: 1rem; }

.creators-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.creators-steps li {
  border-left: 2px solid rgba(88, 101, 242, 0.6);
  padding-left: 1.4rem;
}

.step-num { color: #a5aeff; }

.creators-steps h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0.15rem 0 0.25rem;
}

.creators-steps p { color: #b6b8c8; font-size: 0.9375rem; }

/* ---------- faq ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-list details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-family: "JetBrains Mono", monospace;
  font-size: 1.125rem;
  color: var(--blurple);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  color: var(--muted);
  padding-top: 0.7rem;
  font-size: 0.9875rem;
}

/* ---------- final cta ---------- */

.cta-panel {
  text-align: center;
  background: linear-gradient(135deg, var(--blurple), var(--blurple-dark));
  color: #fff;
  border-radius: 24px;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  background-image:
    radial-gradient(ellipse 40% 60% at 15% 0%, rgba(255, 255, 255, 0.14), transparent),
    linear-gradient(135deg, var(--blurple), var(--blurple-dark));
}

.cta-h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.9rem;
}

.cta-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2.25rem;
}

.cta-fineprint { color: rgba(255, 255, 255, 0.65); margin-top: 1.25rem; }

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

.footer {
  background: var(--ink);
  color: #b6b8c8;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 16rem;
}

.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col h4 {
  color: #8a8da1;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: #b6b8c8;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: #8a8da1;
}

/* ---------- "in the works" popup ---------- */

[hidden] { display: none !important; }

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(23, 24, 29, 0.55);
  backdrop-filter: blur(6px);
}

.popup-card {
  background: var(--bg);
  border-radius: 20px;
  padding: 2.25rem 2rem 2rem;
  max-width: 330px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(23, 24, 29, 0.35);
  animation: popup-in 0.22s ease both;
}

@keyframes popup-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.popup-logo {
  border-radius: 16px;
  margin-bottom: 1rem;
}

.popup-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.popup-text {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.popup-close { cursor: pointer; border: none; }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .dc-window { grid-template-columns: 72px 232px 1fr; }
  .dc-members { display: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .roster-grid { grid-template-columns: 1fr; }
  .cmd-layout { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .creators-panel { grid-template-columns: 1fr; }
  .statsband-inner { grid-template-columns: 1fr 1fr; }
  .sb-stat + .sb-stat { border-left: none; }
  .sb-stat:nth-child(even) { border-left: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .dc-window { grid-template-columns: 72px 1fr; height: 520px; }
  .dc-sidebar { display: none; }
  .float-emoji { display: none; }
  .btn-lg { width: 100%; justify-content: center; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-emoji { animation: none; }
  .marquee-track { animation: none; }
  .dc-msg, .dc-cmdctx, .dc-react, .dc-typing { animation: none; }
  .dc-typing i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature { transition: none; }
  .popup-card { animation: none; }
}
