:root {
  color-scheme: dark;
  --page: #0b0d10;
  --surface: #111419;
  --surface-raised: #181c22;
  --text: #f5f5f4;
  --muted: #a1a1aa;
  --line: #292d34;
  --brand: #fda602;
  --brand-ink: #15120a;
  --content: 1200px;
  --radius: 12px;

  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.container {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgb(255 255 255 / 7%);
  background: rgb(11 13 16 / 88%);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-name span {
  color: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  color: #d4d4d8;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.nav-cta {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.82rem;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.button-secondary {
  border-color: #41444a;
  background: rgb(17 20 25 / 55%);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  filter: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg {
  width: 21px;
  height: 21px;
}

.hero {
  position: relative;
  min-height: min(700px, calc(100svh - 76px));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 48%, rgb(253 166 2 / 10%), transparent 34%),
    linear-gradient(
      90deg,
      var(--page) 14%,
      rgb(11 13 16 / 92%) 50%,
      rgb(11 13 16 / 58%)
    );
  content: "";
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  gap: 36px;
  padding-block: 64px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 27px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1 {
  max-width: 650px;
  margin: 20px 0;
  font-size: clamp(3.25rem, 7.8vw, 6.5rem);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

h1 span {
  color: var(--brand);
}

.hero-copy > p {
  max-width: 500px;
  margin: 0;
  color: #b6b7bc;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-logo {
  display: grid;
  min-height: 420px;
  place-items: center;
}

.hero-logo img {
  display: block;
  width: min(100%, 510px);
  max-height: 510px;
  object-fit: contain;
  filter: drop-shadow(0 22px 48px rgb(0 0 0 / 48%));
  animation: logo-in 0.8s ease-out both;
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-bottom {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #8c8f96;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scroll-cue span {
  color: var(--brand);
  font-size: 1.1rem;
}

.intro {
  padding-block: 96px 88px;
}

.section-heading {
  max-width: 690px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

h2 {
  margin: 14px 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    rgb(24 28 34 / 78%),
    rgb(17 20 25 / 78%)
  );
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgb(253 166 2 / 52%);
  background: var(--surface-raised);
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgb(253 166 2 / 25%);
  border-radius: 10px;
  background: rgb(253 166 2 / 10%);
  color: var(--brand);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.join-section {
  padding-block: 30px 100px;
}

.join-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid #33312a;
  border-radius: 16px;
  background: linear-gradient(115deg, #171713, #111419 72%);
}

.join-panel::after {
  position: absolute;
  top: -130px;
  right: 15%;
  width: 320px;
  height: 320px;
  border: 1px solid rgb(253 166 2 / 13%);
  border-radius: 50%;
  box-shadow:
    0 0 0 36px rgb(253 166 2 / 3%),
    0 0 0 72px rgb(253 166 2 / 2%);
  content: "";
  pointer-events: none;
}

.join-copy {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.join-copy h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.join-copy p {
  margin: 0;
  color: var(--muted);
}

.join-panel .button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #898c93;
  font-size: 0.82rem;
}

.footer-inner .brand img {
  width: 36px;
  height: 36px;
}

.footer-inner .brand-name {
  font-size: 0.82rem;
}

.footer-note {
  margin: 0;
}

@media (max-width: 800px) {
  .container {
    width: min(var(--content), calc(100% - 36px));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-cta {
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: #0d0f13;
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
  }

  .nav-links a {
    padding: 13px 4px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr 0.8fr;
    gap: 10px;
    padding-block: 70px 84px;
  }

  .hero-logo {
    min-height: 330px;
  }

  .hero-logo img {
    max-height: 370px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(var(--content), calc(100% - 32px));
  }

  .nav-wrap {
    min-height: 68px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .nav-cta {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-block: 58px 64px;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: 450px;
    margin-block: 17px;
    font-size: clamp(3.2rem, 15vw, 5.3rem);
  }

  .hero-copy > p {
    max-width: 440px;
  }

  .hero-logo {
    min-height: 0;
    margin-top: -8px;
  }

  .hero-logo img {
    width: min(78%, 330px);
    max-height: 330px;
  }

  .hero-bottom {
    bottom: 16px;
  }

  .intro {
    padding-block: 72px 64px;
  }

  .section-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .section-heading .eyebrow {
    justify-content: flex-start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    min-height: 0;
    padding: 23px;
  }

  .feature-icon {
    margin-bottom: 16px;
  }

  .join-section {
    padding-bottom: 68px;
  }

  .join-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .join-panel::after {
    right: -150px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.nav-wrap {
  min-height: 80px;
}

.nav-links {
  gap: clamp(12px, 1.7vw, 24px);
}

.nav-links a[aria-current="page"] {
  color: var(--brand);
}

.nav-more {
  position: relative;
  color: #d4d4d8;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.045em;
}

.nav-more summary {
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary::after {
  margin-left: 6px;
  color: var(--brand);
  content: "⌄";
}

.nav-dropdown {
  position: absolute;
  z-index: 12;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111419;
  box-shadow: 0 16px 40px rgb(0 0 0 / 40%);
}

.nav-dropdown a {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.84rem;
}

.nav-dropdown a:hover {
  background: #1a1e24;
}

.page-shell {
  min-height: calc(100svh - 168px);
  padding-block: clamp(54px, 8vw, 96px) 88px;
}

.page-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.page-heading h1 {
  margin: 16px 0 14px;
  font-size: clamp(3rem, 7vw, 5rem);
}

.page-heading > p,
.content-card > p,
.notice-panel > p,
.notice-panel > div > p {
  color: var(--muted);
}

.page-heading > p {
  max-width: 700px;
  margin: 0;
  font-size: 1.08rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-block: 20px;
}

.content-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card,
.notice-panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(24 28 34 / 88%), rgb(17 20 25 / 88%));
}

.content-card h2,
.notice-panel h2 {
  margin: 10px 0;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.04em;
}

.content-card p,
.notice-panel p {
  margin: 8px 0 16px;
}

.notice-panel {
  margin-bottom: 20px;
  border-color: rgb(253 166 2 / 28%);
  background: linear-gradient(120deg, rgb(253 166 2 / 7%), var(--surface) 68%);
}

.notice-panel > p {
  max-width: 780px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 10px;
  border: 1px solid #3b4149;
  border-radius: 999px;
  background: #191d23;
  color: #c7c9ce;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-warning {
  border-color: rgb(253 166 2 / 30%);
  background: rgb(253 166 2 / 9%);
  color: #ffc247;
}

.status-success {
  border-color: rgb(74 222 128 / 26%);
  background: rgb(74 222 128 / 8%);
  color: #86efac;
}

.step-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  color: #c6c8cd;
}

.rule-card {
  position: relative;
  overflow: hidden;
}

.rule-number {
  color: rgb(253 166 2 / 75%);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.product-mark,
.avatar-placeholder {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgb(253 166 2 / 25%);
  border-radius: 12px;
  background: rgb(253 166 2 / 9%);
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 800;
}

.team-card {
  text-align: center;
}

.team-card .avatar-placeholder {
  width: 68px;
  height: 68px;
  margin-inline: auto;
  border-radius: 50%;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-row .status-pill {
  margin-left: auto;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 14px rgb(74 222 128 / 55%);
}

.status-list {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.form-card,
.demo-login-form {
  display: grid;
  align-content: start;
  gap: 10px;
}

.form-card label,
.demo-login-form label {
  margin-top: 5px;
  color: #e1e2e5;
  font-size: 0.88rem;
  font-weight: 650;
}

.form-card input,
.form-card textarea,
.form-card select,
.demo-login-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #363b43;
  border-radius: 7px;
  background: #0d0f13;
  color: var(--text);
  font: inherit;
}

.form-card textarea {
  resize: vertical;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus,
.demo-login-form input:focus {
  border-color: var(--brand);
  outline: 2px solid rgb(253 166 2 / 23%);
}

.form-card button,
.demo-login-form button {
  justify-self: start;
  margin-top: 8px;
}

.form-card button:disabled,
.content-card button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.demo-login-form {
  max-width: 420px;
  margin-top: 20px;
}

.demo-caption,
.demo-status {
  color: #a1a1aa;
  font-size: 0.82rem;
}

.demo-status {
  min-height: 1.5em;
  margin: 0;
  color: #ffc247;
}

.dev-login-panel {
  margin-bottom: 56px;
}

.left-heading {
  margin: 52px 0 24px;
  text-align: left;
}

.left-heading .eyebrow {
  justify-content: flex-start;
}

.permissions-card {
  margin-top: 20px;
}

.content-editor-section {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(13 15 19 / 58%);
}

.content-editor-section > summary {
  padding: 14px 16px;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.content-editor-form {
  padding: 16px;
  border-top: 1px solid var(--line);
}

.discord-settings-form {
  max-width: 620px;
  margin-top: 22px;
}

.settings-message,
.settings-error {
  padding: 11px 14px;
  border: 1px solid rgb(74 222 128 / 26%);
  border-radius: 7px;
  background: rgb(74 222 128 / 8%);
  color: #86efac !important;
}

.settings-error {
  border-color: rgb(248 113 113 / 30%);
  background: rgb(248 113 113 / 8%);
  color: #fca5a5 !important;
}

.account-profile {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.account-profile .button {
  margin-top: 18px;
}

.account-avatar {
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border: 2px solid rgb(253 166 2 / 55%);
  border-radius: 50%;
  object-fit: cover;
}

.account-links {
  display: flex;
  align-items: stretch;
  flex-direction: column;
}

.account-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: #e3e4e7;
  text-decoration: none;
}

.account-link:hover,
.account-admin-link {
  color: var(--brand);
}

.account-admin-link {
  margin-top: 10px;
  font-weight: 750;
}

.table-wrap {
  width: 100%;
  margin-block: 20px 10px;
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-wrap th,
.table-wrap td {
  min-width: 130px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  color: #c9cbd0;
  font-size: 0.86rem;
}

.table-wrap th:first-child {
  min-width: 120px;
  color: var(--text);
}

.table-wrap thead th {
  color: #9da0a7;
  font-size: 0.76rem;
}

.table-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

@media (max-width: 1000px) {
  .nav-wrap {
    gap: 14px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links > a,
  .nav-more summary {
    font-size: 0.78rem;
  }

  .brand {
    gap: 7px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 800px) {
  .nav-links {
    gap: 0;
  }

  .nav-links > a,
  .nav-more summary {
    padding: 13px 4px;
    font-size: 0.9rem;
  }

  .nav-more {
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    margin: 4px 0 8px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-dropdown a {
    padding: 10px 14px;
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .content-grid,
  .content-grid-two {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding-top: 48px;
  }

  .page-heading {
    margin-bottom: 30px;
  }

  .page-heading h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .content-card,
  .notice-panel {
    padding: 22px;
  }

  .status-row {
    flex-wrap: wrap;
  }

  .status-row .status-pill {
    margin-left: 0;
  }
}
