@font-face {
  font-family: Inter;
  src: url('/assets/fonts/inter-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f7f4f1;
  --muted: #b4aaa2;
  --accent: #ff914d;
  --line: #332820;
  --spring: cubic-bezier(.22,1.3,.43,1);
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  :root:has(> body.landing-page) { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background: radial-gradient(ellipse 80% 660px at 100% 0%,#30190e 0%,#100a06 43%,transparent 88%), #070606;
  font: 16px/1.6 Inter,system-ui,sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.topbar, main, footer { width: min(1720px,calc(100% - clamp(56px,7vw,132px))); margin-inline: auto; }
.topbar { display: flex; align-items: center; gap: 20px; min-height: 78px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; letter-spacing: -.035em; }
.brand img { object-fit: contain; flex: none; }
nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 14px; }
.topbar > nav, .topbar > .button { margin-left: auto; }
nav a, .guide-sections a { transition: color .16s, transform .22s var(--spring); }
nav a:hover, .guide-sections a:hover { color: var(--ink); transform: translateY(-2px); }
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform .26s var(--spring), background-color .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(.97); }
.button span { transition: transform .26s var(--spring); }
.button:hover span { transform: translateX(3px); }
.quiet { border-color: #46362c; background: #1a1512; color: var(--ink); }
.quiet:hover { background: #29201a; }
.primary { background: var(--accent); color: #211208; }
.primary:hover { background: #ffa971; box-shadow: 0 7px 24px #ff914d26; }
.hero { min-height: 560px; display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); align-items: center; gap: clamp(38px,5vw,92px); padding: 64px 0 84px; }
h1,h2,p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(46px,6vw,76px); font-weight: 780; letter-spacing: -.07em; line-height: 1.02; }
.hero h1 span { color: var(--accent); }
.hero-copy p, .entry-copy p, .guide-intro p { color: var(--muted); max-width: 40ch; margin-bottom: 24px; }
.product { min-width: 0; display: grid; grid-template-columns: repeat(20,minmax(0,1fr)); grid-template-rows: repeat(20,minmax(0,1fr)); aspect-ratio: 1.38; perspective: 1450px; }
.screenshot {
  align-self: center;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #5a4436;
  border-radius: 10px;
  background: #17120f;
  box-shadow: 0 18px 46px #0009;
  transition: transform .36s var(--spring), border-color .2s;
}
.screenshot-back { grid-area: 2 / 6 / 14 / 21; transform: rotateY(-12deg) rotateZ(5deg); }
.screenshot-front { grid-area: 9 / 1 / 21 / 16; transform: rotateY(-12deg) rotateZ(-5deg); }
.screenshot-back:hover, .screenshot-back:focus-visible { transform: translate(0,-5px) rotateY(-8deg) rotateZ(4deg); }
.screenshot-front:hover, .screenshot-front:focus-visible { transform: translate(0,-5px) rotateY(-8deg) rotateZ(-4deg); }
.screenshot:hover, .screenshot:focus-visible { border-color: var(--accent); }
.screenshot img, dialog > img { display: block; width: 100%; height: auto; }
.features { border-top: 1px solid var(--line); padding: 36px 0 60px; scroll-margin-top: 24px; }
.landing-reviews { border-top: 1px solid var(--line); padding: 28px 0 34px; }
.reviews-heading { margin-bottom: 16px; }
.reviews-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.review-viewport { overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.review-track { display: flex; width: max-content; }
.review-list { display: flex; gap: 12px; list-style: none; padding: 0 12px 0 0; margin: 0; }
.review-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: clamp(225px, 25vw, 344px);
  padding: 16px 18px;
  border: 1px solid #46362c;
  border-radius: 12px;
  background: #1b1512c9;
}
.review-stars { color: var(--accent); font-size: 13px; letter-spacing: .12em; }
.review-card blockquote { margin: 0; font-size: 14px; font-weight: 550; line-height: 1.5; }
.review-author { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 4px; color: var(--muted); font-size: 13px; }
.review-author img { flex: none; border-radius: 50%; object-fit: cover; background: #30251f; }
.review-copy { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .reviews-rolling { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 22px, black calc(100% - 22px), transparent); }
  .reviews-rolling .review-track { animation: review-conveyor 30s linear infinite; }
  .reviews-rolling .review-copy { display: flex; }
}
@keyframes review-conveyor { to { transform: translateX(-50%); } }
.features h2, .guide-sections h2 { font-size: 26px; letter-spacing: -.04em; margin-bottom: 17px; }
.feature-list { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 32px; }
.feature-list li { border-top: 1px solid var(--line); }
.feature-list a { display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 16px 4px; align-items: center; gap: 3px 16px; }
.feature-list strong, .feature-list a > span:first-of-type { grid-column: 1; }
.feature-list a > span:first-of-type { color: var(--muted); font-size: 14px; }
.feature-arrow { grid-area: 1 / 2 / 3 / 3; color: var(--muted); transition: color .2s, transform .25s var(--spring); }
.feature-list a:hover .feature-arrow { color: var(--accent); transform: translate(2px,-2px); }
.guide { padding-block: 58px; }
.guide-intro { margin-bottom: 36px; }
.guide-intro h1 { font-size: clamp(40px,5vw,60px); }
.guide-sections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; margin-bottom: 24px; }
.guide-sections section { border-top: 1px solid var(--line); padding: 18px 0 24px; scroll-margin-top: 24px; }
.guide-sections h2 { font-size: 20px; margin-bottom: 6px; }
.guide-sections p { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.guide-sections a { display: inline-block; color: var(--accent); font-size: 14px; font-weight: 650; }
footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 25px 0 35px; border-top: 1px solid var(--line); }
dialog { width: min(1200px,calc(100% - 32px)); max-height: calc(100% - 32px); padding: 14px; background: #17120f; color: var(--ink); border: 1px solid #534035; border-radius: 14px; overflow: auto; }
dialog::backdrop { background: #000c; }
dialog[open] { animation: appear .2s var(--spring); }
@keyframes appear { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
#dashboard-preview form, .start-heading form { display: flex; justify-content: flex-end; margin-bottom: 9px; }
#dashboard-preview button, .start-heading form button { padding: 3px 11px; font-size: 22px; }
dialog > img { border-radius: 8px; }
.entry { display: flex; flex-direction: column; }
.entry-copy { flex: 1; display: grid; justify-items: start; align-content: center; padding-block: 70px; }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 24px; padding: 58px 0 48px; }
  .product { width: min(100%,650px); margin-inline: auto; }
}
@media (max-width: 520px) {
  .topbar, main, footer { width: calc(100% - 36px); }
  .topbar { gap: 12px; min-height: 68px; }
  .topbar nav { gap: 13px; }
  .brand img { width: 24px; height: 24px; }
  .feature-list, .guide-sections { grid-template-columns: 1fr; }
  footer, footer nav { flex-wrap: wrap; }
  footer nav { gap: 10px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, nav a:hover, .guide-sections a:hover { transform: none; }
  .screenshot-back:hover, .screenshot-back:focus-visible { transform: rotateY(-12deg) rotateZ(5deg); }
  .screenshot-front:hover, .screenshot-front:focus-visible { transform: rotateY(-12deg) rotateZ(-5deg); }
  .button:active, .button:hover span, .feature-list a:hover .feature-arrow { transform: none; }
}

.guide-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@font-face {
  font-family: 'Barlow Badge';
  src: url('/assets/fonts/barlow-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
.hero-version {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 32px;
  margin-bottom: 15px;
  border-radius: 999px;
  background: #ff914d0d;
  color: #ffb486;
  font: 700 17px/1 'Barlow Badge',system-ui,sans-serif;
  letter-spacing: .08em;
}
.hero-version svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  pointer-events: none;
}
.version-track { stroke: #a35932; stroke-width: 1; }
.version-highlight {
  stroke: #ff9856;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 16 84;
  filter: drop-shadow(0 0 3px #ff812f9c);
}
@media (prefers-reduced-motion: no-preference) {
  .version-highlight { animation: version-orbit 1.8s linear infinite; }
}
@keyframes version-orbit { to { stroke-dashoffset: -100; } }

.landing-topbar {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  width: 100%;
  min-height: 84px;
  padding-inline: clamp(18px,4vw,88px);
  border-bottom-color: transparent;
}
.landing-topbar > .brand { justify-self: start; }
.landing-topbar > nav {
  --nav-slot: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  margin: 0;
  padding: 4px;
  border: 1px solid #403029;
  border-radius: 999px;
  background: linear-gradient(180deg,#201813,#14100e);
  box-shadow: 0 7px 20px #0005,inset 0 1px #ffffff08;
}
.landing-topbar > nav::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  z-index: -1;
  inset: 4px auto 4px 4px;
  width: calc((100% - 8px) / 3);
  border: 1px solid #ffffff13;
  border-radius: inherit;
  background: #38251a;
  box-shadow: 0 2px 7px #0005;
  opacity: 0;
  transform: translateX(calc(var(--nav-slot) * 100%));
  transition: transform .24s var(--spring),opacity .16s ease;
}
.landing-topbar > nav:has(a:is(:hover,:focus-visible))::before { opacity: 1; }
.landing-topbar > nav:has(a:nth-child(2):is(:hover,:focus-visible)) { --nav-slot: 1; }
.landing-topbar > nav:has(a:nth-child(3):is(:hover,:focus-visible)) { --nav-slot: 2; }
.landing-topbar > nav:has(a:nth-child(1):hover) { --nav-slot: 0; }
.landing-topbar > nav:has(a:nth-child(2):hover) { --nav-slot: 1; }
.landing-topbar > nav:has(a:nth-child(3):hover) { --nav-slot: 2; }
.landing-topbar > nav > a {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  color: #d9cbc1;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.015em;
  transition: color .16s ease;
}
.landing-topbar > nav > a:is(:hover,:focus-visible,[aria-current="page"]) { color: var(--ink); transform: none; }
.landing-topbar > nav > a:focus-visible { outline-offset: -2px; }
.landing-topbar > .dashboard-link {
  justify-self: end;
  margin-left: 0;
  min-height: 44px;
  padding-inline: 19px;
  border-color: #a65f38;
  background: #302017;
  color: #ffd5bd;
  box-shadow: 0 6px 18px #0005,inset 0 1px #ffffff09;
}
.landing-topbar > .dashboard-link:hover { background: #482c1c; }
@media (prefers-reduced-motion: reduce) {
  .landing-topbar > nav::before { transition: none; }
  .landing-topbar > .dashboard-link:hover,
  .landing-topbar > .dashboard-link:active { transform: none; }
}
.hero-start { box-shadow: 0 0 25px #ff914d57, 0 7px 30px #ff7e2833; }
.hero-start:hover { box-shadow: 0 0 34px #ff914d70, 0 8px 34px #ff7e2844; }
.start-dialog { width: min(530px,calc(100% - 32px)); padding: 22px; }
.start-heading { display: flex; gap: 12px; justify-content: space-between; }
.start-heading h2 { margin-bottom: 4px; font-size: 23px; }
.start-heading p, .start-status { color: var(--muted); font-size: 14px; }
.start-status:empty, .start-servers:empty { display: none; }
.start-servers { display: grid; gap: 8px; padding: 0; margin: 0 0 14px; list-style: none; max-height: 45vh; overflow: auto; }
.start-servers li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; }
.start-server-name { min-width: 0; overflow-wrap: anywhere; }
.start-dialog .start-servers .button, .start-dialog [data-refresh-servers] { flex: none; font-size: 13px; padding: 8px 12px; }
.start-dialog [data-refresh-servers][hidden] { display: none; }
@media (max-width: 620px) {
  .landing-topbar { grid-template-columns: minmax(0,1fr) auto; padding-block: 12px; }
  .landing-topbar > nav { grid-area: 2 / 1 / 3 / -1; justify-self: center; }
  .landing-topbar > nav > a { padding-inline: 14px; }
}

.landing-page { --landing-header: 84px; --landing-gutter: clamp(18px,4vw,88px); }
.landing-page main { width: 100%; }
.landing-page .hero {
  min-height: calc(100vh - var(--landing-header));
  min-height: calc(100svh - var(--landing-header));
  padding-inline: var(--landing-gutter);
}
.landing-page .product { width: min(100%,1050px); justify-self: center; }
.landing-page :is(.landing-reviews,.features) {
  width: min(1720px,calc(100% - 2 * var(--landing-gutter)));
  margin-inline: auto;
  border-top: 0;
}
.landing-page .hero-start { min-height: 52px; padding: 14px 22px; font-size: 15px; }
.landing-page .features { max-width: 1320px; padding-top: clamp(48px,7vw,104px); }
.landing-page .features h2 { font-size: clamp(28px,4vw,42px); margin-bottom: 24px; }
.feature-mosaic { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,1.4vw,20px); }
.feature-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #15110f;
  transition: border-color .2s, background-color .2s;
}
.feature-tile:is(:hover,:focus-within) { border-color: #7a5036; background: #1c1511; }
.feature-tile-tall { grid-row: span 2; background: radial-gradient(ellipse at 0 100%,#392418,#17120f 75%); }
.feature-tile-wide { grid-column: span 2; }
.feature-tile-wide:has(.feature-tile-preview) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; }
.feature-tile-copy { display: block; padding: clamp(18px,2.5vw,30px); }
.feature-tile-copy:focus-visible, .feature-tile-preview:focus-visible { outline-offset: -4px; }
.feature-tile-label { color: var(--accent); font-size: 12px; font-weight: 700; }
.feature-tile h3 { margin: 5px 0 8px; font-size: clamp(17px,2vw,24px); letter-spacing: -.035em; line-height: 1.15; }
.feature-tile-tall h3 { font-size: clamp(24px,3vw,37px); }
.feature-tile p { color: var(--muted); margin: 0; font-size: 14px; }
.feature-tile-preview { display: block; min-width: 0; overflow: hidden; margin: auto 16px 16px; border: 1px solid var(--line); border-radius: 9px; cursor: zoom-in; }
.feature-tile-wide .feature-tile-preview { margin: 16px 16px 16px 0; }
.feature-tile-preview img { display: block; width: 100%; height: auto; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .feature-tile-preview {
    transition: transform .28s var(--spring), border-color .2s;
  }
  .feature-tile:hover .feature-tile-preview {
    transform: translateY(-3px) rotate(-.65deg) scale(1.02);
    border-color: #7a5036;
  }
  .feature-tile:nth-child(even):hover .feature-tile-preview {
    transform: translateY(-3px) rotate(.65deg) scale(1.02);
  }
}
.feature-mosaic > .feature-tile:not(.feature-tile-tall):not(.feature-tile-wide) .feature-tile-preview { width: min(230px,calc(100% - 32px)); }
.feature-preview-link { align-self: start; margin: 0 clamp(18px,2.5vw,30px) 22px; color: var(--accent); font-size: 13px; font-weight: 650; }
.feature-preview-link:hover { text-decoration: underline; }
.feature-reveal:not([hidden]) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  gap: inherit;
  transition: grid-template-rows .28s cubic-bezier(.45,0,.65,1);
}
.feature-expand[aria-expanded="true"] + .feature-reveal {
  grid-template-rows: 1fr;
  transition: grid-template-rows .44s cubic-bezier(.22,.8,.28,1);
}
.more-feature-tiles {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  grid-template-areas:
    "moderation moderation commands suggestions"
    "moderation moderation antinuke antinuke"
    "embeds logging roles roles"
    "staff staff roles roles"
    "shifts shifts analytics verification"
    "shifts shifts welcome welcome"
    "sessions permissions partnerships partnerships"
    "giveaways personalization partnerships partnerships";
  gap: inherit;
}
.feature-reveal .feature-tile {
  opacity: 0;
  transform: translateY(-7px);
  transition: opacity .16s ease, transform .2s ease, border-color .2s, background-color .2s;
}
.feature-expand[aria-expanded="true"] + .feature-reveal .feature-tile {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .28s ease var(--reveal-delay,25ms), transform .36s var(--spring) var(--reveal-delay,25ms), border-color .2s, background-color .2s;
}
.feature-reveal .feature-tile:nth-child(n+4) { --reveal-delay: 55ms; }
.feature-reveal .feature-tile:nth-child(n+8) { --reveal-delay: 85ms; }
.feature-reveal .feature-tile:nth-child(n+12) { --reveal-delay: 110ms; }
.more-feature-tiles .feature-tile-copy { padding: clamp(14px,1.8vw,22px); }
.more-feature-tiles .feature-tile h3 { margin-top: 0; }
.more-feature-tiles .feature-tile p { font-size: 13px; }
.more-feature-tiles .feature-tile-preview { width: min(230px,calc(100% - 28px)); margin: auto 14px 14px; }
.more-feature-tiles [data-feature-area="moderation"] { grid-area: moderation; }
.more-feature-tiles [data-feature-area="commands"] { grid-area: commands; }
.more-feature-tiles [data-feature-area="suggestions"] { grid-area: suggestions; }
.more-feature-tiles [data-feature-area="antinuke"] { grid-area: antinuke; }
.more-feature-tiles [data-feature-area="embeds"] { grid-area: embeds; }
.more-feature-tiles [data-feature-area="logging"] { grid-area: logging; }
.more-feature-tiles [data-feature-area="roles"] { grid-area: roles; }
.more-feature-tiles [data-feature-area="staff"] { grid-area: staff; }
.more-feature-tiles [data-feature-area="shifts"] { grid-area: shifts; }
.more-feature-tiles [data-feature-area="analytics"] { grid-area: analytics; }
.more-feature-tiles [data-feature-area="verification"] { grid-area: verification; }
.more-feature-tiles [data-feature-area="welcome"] { grid-area: welcome; }
.more-feature-tiles [data-feature-area="sessions"] { grid-area: sessions; }
.more-feature-tiles [data-feature-area="permissions"] { grid-area: permissions; }
.more-feature-tiles [data-feature-area="partnerships"] { grid-area: partnerships; }
.more-feature-tiles [data-feature-area="giveaways"] { grid-area: giveaways; }
.more-feature-tiles [data-feature-area="personalization"] { grid-area: personalization; }
@media (min-width: 901px) {
  .more-feature-tiles :is([data-feature-area="moderation"],[data-feature-area="roles"],[data-feature-area="shifts"],[data-feature-area="partnerships"]) .feature-tile-preview {
    width: min(340px,calc(100% - 28px));
  }
  .more-feature-tiles :is([data-feature-area="antinuke"],[data-feature-area="staff"],[data-feature-area="welcome"]) {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,.85fr);
    align-items: center;
  }
  .more-feature-tiles :is([data-feature-area="antinuke"],[data-feature-area="staff"],[data-feature-area="welcome"]) .feature-tile-preview {
    width: auto;
    margin: 12px 14px 12px 0;
  }
  .more-feature-tiles [data-feature-area="giveaways"] {
    display: grid;
    grid-template-columns: minmax(0,1fr) 90px;
    align-items: center;
  }
  .more-feature-tiles [data-feature-area="giveaways"] .feature-tile-preview {
    width: auto;
    margin: 0 12px 0 0;
  }
}
.feature-expand {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 10px 0;
  min-width: 180px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #46362c;
  border-radius: 9px;
  background: #1a1512;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.feature-expand:hover { background: #29201a; }
@media (max-width: 900px) {
  .feature-mosaic { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-tile-tall { grid-row: auto; }
  .feature-tile-wide { grid-column: auto; }
  .feature-tile-wide:has(.feature-tile-preview) { display: flex; align-items: stretch; }
  .feature-tile-wide .feature-tile-preview { margin: auto 16px 16px; }
  .more-feature-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: none; }
  .more-feature-tiles [data-feature-area] { grid-area: auto; }
}
@media (max-width: 540px) {
  .feature-mosaic { grid-template-columns: 1fr; }
  .more-feature-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .landing-page .hero { align-content: center; }
  .landing-page .product { width: min(100%,650px); }
}
@media (max-width: 620px) {
  .landing-page { --landing-header: 112px; }
}
