:root {
  --bg: #05060a;
  --text: #f2f4f8;
  --text-muted: #8b93a7;
  --blue: #2f6bff;
  --done: #e02030;
  --done-soft: rgba(224, 32, 48, 0.15);
  --done-glow: rgba(224, 32, 48, 0.35);
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --para: polygon(1rem 0, 100% 0, calc(100% - 1rem) 100%, 0 100%);
  --para-rev: polygon(0 0, calc(100% - 1rem) 0, 100% 100%, 1rem 100%);
  --para-btn: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  --para-btn-rev: polygon(0 0, 90% 0, 100% 100%, 10% 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

body {
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: rgba(5, 6, 10, 0.92);
  border-bottom: none;
  backdrop-filter: blur(8px);
}

.top-nav-inner {
  width: min(1100px, 94vw);
  margin: 0 auto;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.top-nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
  z-index: 2;
}

.top-nav-brand img {
  height: 60px;
  width: auto;
  max-width: min(360px, 58vw);
  object-fit: contain;
  mix-blend-mode: screen;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: none;
  background: #2f6bff;
  color: #fff;
  width: 2.75rem;
  height: 2.55rem;
  padding: 0;
  cursor: pointer;
  clip-path: var(--para-btn);
  z-index: 2;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
}

.nav-toggle-bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: #fff;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-right: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.55rem 1.05rem;
  border: none;
  border-radius: 0;
  background: #2f6bff;
  color: #fff;
  transform: none;
  clip-path: var(--para-btn);
  box-shadow: none;
  transition: background 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.top-nav-link span {
  display: inline-block;
  transform: none;
  color: inherit;
}

.top-nav-link:hover {
  background: #4a80ff;
  color: #fff;
  transform: translateY(-1px);
}

.top-nav-link.is-active {
  background: #e02030;
  color: #fff;
  border: none;
  box-shadow: none;
}

.top-nav-link--grey {
  background: #5a6170;
  color: #fff;
}

.top-nav-link--grey:hover {
  background: #6d7585;
  color: #fff;
}

.top-nav-link--grey.is-active {
  background: #5a6170;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.center-stack {
  position: relative;
  z-index: 1;
  width: min(560px, 90vw);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin: 0 auto;
  padding: 1rem;
}

.scene-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.scene-bg-blur {
  display: none;
}

.scene-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 50%;
  filter: brightness(0.48) saturate(0.95);
}

.scene-gradient {
  position: absolute;
  inset: -30%;
  background: linear-gradient(
    120deg,
    rgba(20, 55, 140, 0.4) 0%,
    rgba(5, 6, 10, 0.15) 40%,
    rgba(120, 15, 30, 0.38) 70%,
    rgba(5, 6, 10, 0.7) 100%
  );
  transform: rotate(-20deg);
  transform-origin: center;
}

.scene-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, transparent 0%, rgba(5, 6, 10, 0.35) 60%, rgba(5, 6, 10, 0.92) 100%),
    linear-gradient(to bottom, rgba(5, 6, 10, 0.35) 0%, transparent 30%, rgba(5, 6, 10, 0.96) 88%);
}

.logo-stack {
  position: relative;
  width: min(780px, 92vw);
  aspect-ratio: 1024 / 452;
}

.logo-stack > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  background: transparent;
  user-select: none;
  -webkit-user-drag: none;
}

.logo-light {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.logo-light--1 {
  transform: translate3d(-14%, 0, 0) scale(1.5);
}

.logo-light--2 {
  transform: translate3d(14%, 0, 0) scale(1.5);
}

.logo-light.is-on {
  opacity: 0.8;
}

.logo-text {
  z-index: 2;
}

.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(525px, 94%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.rm-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  min-width: 65px;
}

.rm-dot {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: transparent;
}

.rm-node.is-done .rm-dot {
  border-color: var(--blue);
  background: rgba(47, 107, 255, 0.15);
  color: var(--blue);
  box-shadow: none;
}

.rm-node.is-next .rm-dot {
  border-color: var(--done);
  box-shadow: none;
}

.rm-node.is-next .rm-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--done);
}

.rm-node:not(.is-done):not(.is-next) .rm-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.rm-ver {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.rm-node.is-done .rm-ver {
  color: var(--blue);
}

.rm-node.is-next .rm-ver {
  color: var(--done);
}

.rm-line {
  flex: 1 1 60px;
  height: 2.5px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  position: relative;
  overflow: visible;
}

.rm-line.is-hot .rm-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--done));
  box-shadow: none;
}

.rm-line.is-hot .rm-progress::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

.cta-row {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 0 0.5rem;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0.75rem 1.45rem;
  text-decoration: none;
  color: #fff;
  background: #e02030;
  border: none;
  border-radius: 0;
  transform: none;
  clip-path: var(--para-btn);
  box-shadow: none;
  transition: background 0.15s ease, transform 0.15s ease, filter 0.15s ease;
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  transform: none;
}

.cta:hover {
  background: #f03545;
  transform: translateY(-2px);
}

.cta-title {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.cta-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.25;
  font-weight: 500;
}

.cta:hover .cta-title,
.cta:hover .cta-sub {
  color: #fff;
}

.cta-buy {
  background: #2f6bff;
}

.cta-buy:hover {
  background: #4a80ff;
}

@media (max-width: 520px) {
  .cta-row {
    grid-template-columns: 1fr;
    padding: 0 0.25rem;
    width: min(100%, 100%);
    gap: 0.75rem;
  }

  .cta {
    min-height: 54px;
    padding: 0.7rem 1.1rem;
  }
}

.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.site-footer--flow {
  margin-top: auto;
}

.site-footer p {
  margin: 0;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 0;
  background: #2f6bff;
  color: #fff;
  padding: 0.55rem 1.2rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transform: none;
  clip-path: var(--para-btn);
  box-shadow: none;
  transition: background 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  background: #4a80ff;
  transform: translateY(-1px);
  color: #fff;
}

.btn-primary {
  background: #2f6bff;
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background: #4a80ff;
}

.btn-danger {
  background: #e02030;
  border: none;
  color: #fff;
}

.btn-danger:hover {
  background: #f03545;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn.is-liked {
  background: #e02030 !important;
  color: #fff !important;
}

.btn-tiny {
  padding: 0.35rem 0.75rem;
  font-size: 0.68rem;
}

.btn-rev {
  clip-path: var(--para-btn-rev);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 520px) {
  .logo-stack {
    width: min(78vw, 340px);
  }

  .center-stack {
    width: min(90vw, 380px);
    gap: 1.1rem;
    padding: 1rem 0.5rem;
    justify-content: center;
    min-height: calc(100vh - 4.5rem);
  }

  .roadmap {
    width: min(100%, 94%);
  }

  .rm-ver {
    font-size: 0.92rem;
  }
}

.page--support {
  background: #07080d;
}

.support-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #07080d;
}

.support-wrap {
  position: relative;
  z-index: 2;
  width: min(980px, 94vw);
  margin: 1.5rem auto 3rem;
  flex: 1;
}

.support-hero {
  margin: 0 auto 1.75rem;
  padding: 0.35rem 0 0.25rem;
  max-width: 720px;
  text-align: center;
  background: transparent;
  border: none;
  clip-path: none;
}

.support-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9bbcff;
  text-align: center;
}

.support-title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  padding: 0 0.5rem;
}

.support-lead {
  margin: 0 auto 1.85rem;
  max-width: 42rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.6;
  padding: 0 0.75rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.support-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 260px;
  padding: 1.45rem 1.45rem 1.3rem;
  text-decoration: none;
  color: inherit;
  background: rgba(12, 14, 20, 0.92);
  border: none;
  clip-path: none;
  overflow: hidden;
  transition: background 0.15s ease, transform 0.15s ease;
}

.support-card--forum,
.support-card--mail,
.support-card--discord {
  background: rgba(12, 14, 20, 0.92);
}

.support-card--mail {
  clip-path: none;
}

a.support-card:hover {
  transform: translateY(-3px);
  background: rgba(18, 21, 30, 0.98);
  color: inherit;
}

.support-card--static {
  clip-path: none;
}

.support-card-index {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.35);
}

.support-card-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9bbcff;
}

.support-card--mail .support-card-kicker {
  color: #c5ccd8;
}

.support-card--discord .support-card-kicker {
  color: #ffb0b6;
}

.support-card h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.support-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45;
  flex: 1;
}

.support-card-mail {
  display: block;
  margin: 0.15rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.support-discord {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.2rem 0 0.55rem !important;
}

.support-discord-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.support-discord strong {
  font-size: 1.45rem;
  color: #fff;
}

.support-card-cta {
  align-self: flex-start;
  margin-top: 0.35rem;
  pointer-events: none;
}

.support-card--static .btn {
  align-self: flex-start;
}

.support-footnote {
  margin: 1.4rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.support-footnote a {
  color: #9bbcff;
  text-decoration: none;
  font-weight: 700;
}

.support-footnote a:hover {
  text-decoration: underline;
}

.tutorial-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.support-wrap--tutorial {
  width: min(860px, 94vw);
}

.tutorial-block {
  position: relative;
  padding: 1.25rem 1.4rem 1.25rem 1.55rem;
  background: rgba(12, 14, 20, 0.9);
  border: none;
  clip-path: none;
}

.tutorial-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #e02030;
}

.tutorial-block:nth-child(even) {
  clip-path: none;
}

.tutorial-block h2 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

.tutorial-block p {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.tutorial-block p:last-child {
  margin-bottom: 0;
}

.tutorial-block ul {
  margin: 0 0 0.7rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.tutorial-block li {
  margin-bottom: 0.35rem;
}

.tutorial-block strong {
  color: var(--text);
}

.tutorial-warn {
  color: #ffb0b6 !important;
}

.tutorial-note {
  font-size: 0.95rem !important;
  opacity: 0.85;
}

.tutorial-figure {
  margin: 0 auto 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: transparent;
}

.tutorial-figure img {
  width: auto;
  max-width: min(100%, 1024px);
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  image-rendering: auto;
}

.tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .top-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .top-nav-brand {
    justify-self: auto;
    z-index: 110;
  }

  .top-nav-brand img {
    height: 42px;
    max-width: min(200px, 52vw);
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 110;
  }

  .top-nav.is-nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .top-nav.is-nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .top-nav.is-nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-toggle-bar {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .top-nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    margin: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 5.5rem 1.4rem 2.5rem;
    box-sizing: border-box;
    background: rgba(3, 4, 8, 0.62);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
  }

  .top-nav-links.is-open {
    display: flex;
  }

  .top-nav-link {
    width: min(300px, 86vw);
    max-width: 86vw;
    padding: 0.95rem 1.2rem;
    font-size: 0.95rem;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 auto;
  }

  .top-nav.is-nav-open {
    transform: none !important;
  }

  body.nav-open {
    overflow: hidden;
  }

  .page-home .center-stack {
    justify-content: center;
    min-height: calc(100dvh - 4.75rem);
  }

  .support-wrap,
  .support-wrap--tutorial {
    width: min(100%, 94vw);
    margin-top: 1rem;
  }

  .tutorial-block {
    padding: 1.05rem 1rem;
  }

  .tutorial-actions {
    flex-direction: column;
  }

  .tutorial-actions .btn {
    width: 100%;
  }

  .forum-side-col {
    top: 5.5rem;
  }
}

@media (max-width: 640px) {
  .top-nav-inner {
    padding: 0.65rem 0;
  }

  .support-title {
    font-size: clamp(1.25rem, 6.5vw, 1.7rem);
    margin-bottom: 1rem;
  }

  .support-lead {
    font-size: 0.98rem;
    margin-bottom: 1.4rem;
  }

  .support-card {
    min-height: 0;
    padding: 1.15rem 1.05rem;
  }

  .comment-form {
    flex-direction: column;
  }

  .comment-form .btn {
    width: 100%;
  }

  .composer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .composer-actions .btn {
    width: 100%;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-meta-right {
    justify-content: flex-start;
  }

  .auth-modal {
    width: min(100%, 94vw);
    padding: 1.2rem 1rem 1.1rem;
  }
}
