:root {
  --botv-red: #d7002b;
  --botv-dark-red: #2e1313;
  --botv-white: #ffffff;
  --botv-black: #050505;
  --panel-bg: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.11);
  --text-muted: rgba(255, 255, 255, 0.82);
  --text-soft: rgba(255, 255, 255, 0.65);
  --hero-stack-gap: clamp(1rem, 2.1vw, 1.35rem);
  --hero-cta-gap: clamp(1.45rem, 3vw, 1.9rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background-color: var(--botv-black);
}

body {
  font-family: "Schibsted Grotesk", "Inter", system-ui, sans-serif;
  color: var(--botv-white);
  background-color: var(--botv-black);
  background:
    radial-gradient(70rem 45rem at 12% 8%, rgba(215, 0, 43, 0.2) 0%, transparent 58%),
    radial-gradient(50rem 40rem at 88% 86%, rgba(46, 19, 19, 0.52) 0%, transparent 60%),
    linear-gradient(130deg, #050505 0%, #0a0a0a 50%, #060606 100%);
  overflow-x: hidden;
}

body:not(.is-loaded) {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 100% 40px;
  pointer-events: none;
  opacity: 0.16;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(44rem 26rem at 30% 20%, rgba(215, 0, 43, 0.24) 0%, transparent 65%),
    radial-gradient(36rem 26rem at 72% 72%, rgba(215, 0, 43, 0.14) 0%, transparent 68%),
    rgba(5, 5, 5, 0.98);
  opacity: 1;
  visibility: visible;
  transition: opacity 480ms ease, visibility 480ms ease;
}

body.is-loaded .page-loader {
  opacity: 0;
  visibility: hidden;
}

.page-loader.is-docked {
  background: transparent;
  transition: background 400ms ease;
}

.page-loader.is-docked .page-loader-glow {
  opacity: 0;
  transition: opacity 300ms ease;
}

.page-loader.is-docked .page-loader-mark {
  transition: opacity 400ms ease;
}

.page-loader.is-docked.is-mark-hidden .page-loader-mark {
  opacity: 0;
}

.page-loader-glow {
  position: absolute;
  width: min(60vw, 28rem);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(215, 0, 43, 0.24) 0%, rgba(215, 0, 43, 0) 70%);
  filter: blur(14px);
  animation: loaderPulse 1200ms ease-in-out infinite;
}

.page-loader-mark {
  position: relative;
  width: clamp(7rem, 18vw, 11rem);
  filter: drop-shadow(0 0 24px rgba(215, 0, 43, 0.3)) drop-shadow(0 18px 42px rgba(0, 0, 0, 0.42));
  animation: loaderEntrance 500ms cubic-bezier(0.2, 0.9, 0.18, 1) both;
}

.page-loader-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.loader-shell {
  fill: var(--botv-red);
}

.loader-orb {
  fill: var(--botv-white);
}

.loader-orb-wrap {
  transform-origin: 32.436px 18.5px;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.8rem, 1.8vw, 1.2rem) clamp(0.8rem, 2vw, 1.4rem);
  pointer-events: none;
}

.site-nav > * {
  pointer-events: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 14, 14, 0.68);
  backdrop-filter: blur(8px);
}

.nav-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: calc(36px + 0.6rem);
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 14, 14, 0.68);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.72);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.nav-discord-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--botv-white);
  background: rgba(14, 14, 14, 0.82);
}

.nav-discord-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-discord-btn:hover .nav-discord-icon {
  opacity: 1;
}

.lang-btn {
  min-width: 44px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 0.8rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--botv-white);
  background: transparent;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--botv-red);
  box-shadow: 0 8px 18px rgba(215, 0, 43, 0.36);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--botv-white);
  outline-offset: 2px;
}

main {
  display: block;
}

.hero {
  min-height: calc(100vh - 132px);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(1.2rem, 4vw, 3.4rem) clamp(1rem, 5vw, 4rem) 0;
  position: relative;
  isolation: isolate;
}

.hero-content {
  width: min(900px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hero-stack-gap);
  text-align: center;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 520ms ease, filter 520ms ease;
  position: relative;
  z-index: 1;
}

body.is-ready .hero-content {
  opacity: 1;
  filter: blur(0);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.6;
  pointer-events: none;
}

.hero::before {
  width: clamp(220px, 28vw, 380px);
  height: clamp(220px, 28vw, 380px);
  top: 14%;
  left: 8%;
  background: radial-gradient(circle at center, rgba(215, 0, 43, 0.45), rgba(215, 0, 43, 0) 68%);
  animation: floatGlow 9s ease-in-out infinite;
}

.hero::after {
  width: clamp(180px, 24vw, 300px);
  height: clamp(180px, 24vw, 300px);
  right: 9%;
  bottom: 8%;
  background: radial-gradient(circle at center, rgba(46, 19, 19, 0.72), rgba(46, 19, 19, 0) 70%);
  animation: floatGlow 11s ease-in-out infinite reverse;
}

.logo-stage {
  position: relative;
  width: clamp(185px, 34vw, 330px);
  aspect-ratio: 243 / 119;
  margin: 0;
}

.logo-wordmark {
  display: block;
  width: 100%;
  height: auto;
}

.logo-wordmark path {
  fill: var(--botv-white);
}

.logo-wordmark .hero-logo-shell,
.logo-wordmark .hero-logo-orb {
  opacity: 0;
  transition: opacity 180ms ease;
}

.logo-wordmark .hero-logo-shell {
  fill: var(--botv-red);
}

.logo-wordmark .hero-logo-orb {
  fill: var(--botv-white);
}

body.is-ready .logo-wordmark .hero-logo-shell,
body.is-ready .logo-wordmark .hero-logo-orb {
  opacity: 1;
}

.compatibility-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.compatibility-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--botv-white);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.compatibility-pill.is-soon {
  background: rgba(215, 0, 43, 0.1);
  border-color: rgba(215, 0, 43, 0.28);
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}

.subtitle {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(0.98rem, 2.1vw, 1.26rem);
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

.discord-btn {
  margin: var(--hero-cta-gap) 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.92rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--botv-white);
  background: linear-gradient(145deg, var(--botv-red), #b30024);
  box-shadow: 0 14px 36px rgba(215, 0, 43, 0.34);
  text-decoration: none;
  font-size: clamp(0.96rem, 1.9vw, 1rem);
  font-weight: 700;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.discord-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(215, 0, 43, 0.42);
  filter: brightness(1.06);
}

/* ── Hero inline download buttons (beta) ── */

.hero-downloads {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: var(--hero-cta-gap);
  width: 100%;
}

body.is-beta .hero-downloads {
  display: flex;
}

body.is-beta .discord-btn {
  display: none;
}

.hero-downloads-row {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hero-dl-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.68rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--botv-white);
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.hero-dl-btn[aria-disabled="true"] {
  opacity: 0.38;
  filter: grayscale(0.8);
  cursor: not-allowed;
  pointer-events: none;
}

.hero-dl-btn:not([aria-disabled="true"]):hover {
  transform: translateY(-2px);
  border-color: rgba(215, 0, 43, 0.4);
  background: rgba(215, 0, 43, 0.1);
  box-shadow: 0 12px 32px rgba(215, 0, 43, 0.18);
}

.hero-dl-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

.hero-dl-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
}

.hero-dl-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
}

.hero-dl-version {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.2;
}

.hero-dl-version:empty {
  display: none;
}


/* ── Download hero buttons (bottom section) ── */

.download-hero-buttons {
  display: none;
}

body.is-beta .download-hero-buttons {
  display: flex;
  justify-content: center;
}

body.is-beta .download-section {
  position: relative;
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

body.is-beta .download-section .section-heading h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

/* ── Command copy block (reused in macOS modal) ── */

.download-note-cmd {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.45);
  overflow-x: auto;
}

.download-note-cmd code {
  flex: 1 1 0%;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  user-select: all;
}

.download-note-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.download-note-copy:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--botv-white);
}

.download-note-copy .check-icon {
  display: none;
}

.download-note-copy.is-copied .copy-icon {
  display: none;
}

.download-note-copy.is-copied .check-icon {
  display: block;
}

.download-note-copy.is-copied {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
}

.discord-btn:focus-visible,
.hero-dl-btn:focus-visible,
.site-footer a:focus-visible,
.back-link:focus-visible {
  outline: 2px solid var(--botv-white);
  outline-offset: 3px;
}

.features-section {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2rem) clamp(0.2rem, 1vw, 0.5rem) clamp(3.6rem, 7vw, 5.2rem);
}

.features-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}

.features-intro-main .section-kicker {
  text-align: left;
}

.features-intro-main h2 {
  text-align: left;
  max-width: 12ch;
}

.features-lead {
  margin: 1.75rem 0 0;
  color: var(--text-muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.72;
  max-width: 58ch;
}

.features-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.6rem, 3vw, 2.8rem);
  padding-top: clamp(1.2rem, 2vw, 1.4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.feature-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature-panel h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.feature-panel p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.98rem;
  line-height: 1.68;
  max-width: 46ch;
}

.feature-panel-compat .compatibility-list {
  justify-content: flex-start;
  margin-top: 0.15rem;
}

.screens-showcase {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(0.8rem, 2vw, 1.3rem) clamp(0.2rem, 1vw, 0.5rem) clamp(3.6rem, 7vw, 5.2rem);
}

.download-section {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2rem) clamp(0.2rem, 1vw, 0.5rem) clamp(4rem, 8vw, 6rem);
}

/* ── macOS install modal ── */

.macos-modal {
  max-width: min(480px, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(20px);
  color: var(--botv-white);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.macos-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.macos-modal-inner {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.macos-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease;
}

.macos-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--botv-white);
}

.macos-modal-icon {
  color: rgba(255, 255, 255, 0.4);
}

.macos-modal-title {
  margin: 0;
  font-family: "Schibsted Grotesk", "Inter", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--botv-white);
}

.macos-modal-text {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

.macos-modal-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.3rem;
}

.macos-modal-step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.macos-modal-step-label {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.macos-modal-option {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.macos-modal-option-label {
  margin: 0 0 0.25rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--botv-white);
}

.macos-modal-option-text {
  margin: 0 0 0.1rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
}

.macos-modal-option .download-note-cmd {
  margin-top: 0.5rem;
  overflow-x: visible;
}

.macos-modal-option .download-note-cmd code {
  white-space: normal;
  word-break: break-all;
}

.macos-modal-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, var(--botv-red), #b30024);
  color: var(--botv-white);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  box-shadow: 0 10px 28px rgba(215, 0, 43, 0.3);
}

.macos-modal-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(215, 0, 43, 0.4);
  filter: brightness(1.06);
}

.section-heading {
  width: min(680px, 100%);
  margin: 0 auto clamp(1.2rem, 2.4vw, 1.8rem);
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.4rem;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3.1vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-copy {
  margin: 0.75rem auto 0;
  max-width: 58ch;
  color: var(--text-muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.55vw, 1.02rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.screens-grid::-webkit-scrollbar {
  height: 8px;
}

.screens-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
}

.screen-card {
  margin: 0;
  padding: 0;
}

.screen-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.32);
}

.screen-card figcaption {
  padding: 0.8rem 0 0.1rem;
  color: var(--text-muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.1rem, 2.2vw, 1.7rem) 0 clamp(1.2rem, 2.6vw, 2rem);
  text-align: center;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.15rem;
  margin-top: 0.78rem;
}

.site-footer p {
  margin: 0.2rem 0;
  font-size: clamp(0.77rem, 1.55vw, 0.92rem);
  line-height: 1.45;
  color: var(--text-soft);
}

.site-footer a,
.back-link {
  display: inline-block;
  margin-top: 0.66rem;
  color: var(--botv-white);
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 0.18em;
}

.legal-page {
  padding: clamp(1.1rem, 3vw, 2.4rem);
}

.legal-wrap {
  width: min(860px, 100%);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 440ms ease, transform 440ms ease;
}

body.is-ready .legal-wrap {
  opacity: 1;
  transform: translateY(0);
}

.legal-wrap .logo {
  margin: 0;
}

.logo-home-link {
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
}

.logo-home-link:focus-visible {
  outline: 2px solid var(--botv-white);
  outline-offset: 4px;
  border-radius: 10px;
}

.logo-home-link[aria-disabled="true"] {
  pointer-events: none;
}

.legal-header {
  display: grid;
  gap: 1rem;
}

.legal-kicker {
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-wrap h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
}

.legal-wrap h2 {
  margin: 1.7rem 0 0.5rem;
  font-size: clamp(1.04rem, 2.3vw, 1.35rem);
}

.legal-wrap p {
  margin: 0.45rem 0;
  font-size: clamp(0.96rem, 2.2vw, 1.05rem);
  line-height: 1.62;
  color: var(--text-muted);
}

.legal-lead {
  max-width: 60ch;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.62rem 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--botv-white);
  text-decoration: none;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}

.legal-nav a[aria-current="page"],
.site-footer-nav a[aria-current="page"] {
  color: var(--botv-white);
  text-decoration: none;
  border-color: rgba(215, 0, 43, 0.38);
  box-shadow: inset 0 0 0 1px rgba(215, 0, 43, 0.28);
}

.legal-note {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.delete-card {
  margin-top: 1.25rem;
  padding: clamp(1rem, 2.6vw, 1.4rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(8, 8, 8, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.delete-card h2:first-child {
  margin-top: 0;
}

.delete-form {
  display: grid;
  gap: 0.9rem;
}

.delete-field {
  display: grid;
  gap: 0.45rem;
}

.delete-field label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--botv-white);
}

.delete-field input {
  width: 100%;
  min-height: 52px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--botv-white);
  font: inherit;
  font-family: "Inter", system-ui, sans-serif;
}

.delete-field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.delete-field input:focus-visible {
  outline: 2px solid rgba(215, 0, 43, 0.7);
  outline-offset: 2px;
}

.delete-help {
  margin: 0;
  color: var(--text-soft);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
}

.delete-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: fit-content;
  padding: 0.95rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d7002b 0%, #a10020 100%);
  color: var(--botv-white);
  font: inherit;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(215, 0, 43, 0.24);
}

.delete-submit:focus-visible {
  outline: 2px solid var(--botv-white);
  outline-offset: 3px;
}

.legal-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-family: "Inter", system-ui, sans-serif;
}

.legal-list li {
  margin: 0.55rem 0;
  line-height: 1.62;
}

.legal-footer {
  padding-top: 0.8rem;
}

.link-card .link-code-display {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.55rem;
  border-radius: 10px;
  background: rgba(215, 0, 43, 0.22);
  color: var(--botv-white);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.link-auth-tabs {
  display: inline-flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.link-auth-tab {
  min-height: 36px;
  padding: 0.35rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.link-auth-tab.is-active {
  background: linear-gradient(135deg, #d7002b 0%, #a10020 100%);
  color: var(--botv-white);
  box-shadow: 0 8px 16px rgba(215, 0, 43, 0.28);
}

.link-auth-tab:focus-visible {
  outline: 2px solid rgba(215, 0, 43, 0.7);
  outline-offset: 2px;
}

.link-auth-error {
  color: #ff9aa4;
}

.link-confirm-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.link-btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
}

.link-btn-secondary:focus-visible {
  outline: 2px solid var(--botv-white);
  outline-offset: 3px;
}

[data-link-code-input] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-view="app"] {
  padding-top: max(0.95rem, env(safe-area-inset-top));
  padding-right: max(0.95rem, env(safe-area-inset-right));
  padding-bottom: max(0.95rem, env(safe-area-inset-bottom));
  padding-left: max(0.95rem, env(safe-area-inset-left));
}

body[data-view="app"]::before {
  opacity: 0.08;
}

body[data-view="app"] .hero {
  min-height: auto;
  padding-top: 5.4rem;
  padding-bottom: 1rem;
}

body[data-view="app"] .hero-content,
body[data-view="app"] .legal-wrap {
  opacity: 1;
  filter: none;
  transform: none;
}

body[data-view="app"] .features-section,
body[data-view="app"] .screens-showcase,
body[data-view="app"] .download-section {
  padding-top: 0.8rem;
  padding-bottom: 2rem;
}

body[data-view="app"] .discord-btn,
body[data-view="app"] .hero-downloads,
body[data-view="app"] .back-link {
  display: none;
}

body[data-view="app"] .logo-home-link {
  display: none;
}

body[data-view="app"] .legal-header {
  gap: 0.7rem;
}

body[data-view="app"] .legal-kicker {
  margin-top: 0;
}

body[data-view="app"][data-page="home"] .site-footer {
  display: none;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding: clamp(4.8rem, 9vw, 6rem) clamp(1rem, 5vw, 1.5rem) 1.4rem;
  }

  .hero-content {
    width: min(100%, 34rem);
    gap: 1.15rem;
  }

  .hero-content h1 {
    max-width: 10ch;
    font-size: clamp(2.2rem, 11vw, 4rem);
    line-height: 0.98;
  }

  .discord-btn {
    width: min(100%, 21rem);
  }

  .hero-downloads-row {
    width: 100%;
    gap: 0.5rem;
  }

  .hero-dl-btn {
    flex: 1 1 0%;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    gap: 0.5rem;
    min-height: 48px;
  }

  .hero-dl-icon {
    width: 20px;
    height: 20px;
  }

  .hero-dl-label {
    font-size: 0.84rem;
  }

  .download-note-cmd code {
    font-size: 0.66rem;
  }

  .screens-showcase,
  .features-section,
  .download-section {
    width: min(100%, calc(100% - 1.2rem));
    padding-left: 0;
    padding-right: 0;
  }

  .section-heading {
    width: calc(100% - 1.2rem);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .section-heading h2,
  .section-copy {
    max-width: none;
  }

  .features-intro-main .section-kicker,
  .features-intro-main h2 {
    text-align: left;
    max-width: none;
  }

  .features-intro {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    width: calc(100% - 1.2rem);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
  }

  .features-lead {
    margin-top: 0;
    max-width: none;
  }

  .features-band {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: calc(100% - 1.2rem);
    margin: 0 auto;
  }

  .feature-panel h3,
  .feature-panel p:last-child {
    max-width: none;
  }

  .feature-panel-compat .compatibility-list {
    justify-content: flex-start;
  }

  .compatibility-pill {
    width: auto;
    max-width: none;
    min-height: 36px;
    padding: 0.58rem 0.8rem;
    font-size: 0.84rem;
  }

  .screens-grid {
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    grid-template-columns: none;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 0.6rem 0.35rem;
  }

  .screen-card {
    scroll-snap-align: center;
  }

  .screen-card img {
    border-radius: 20px;
  }

  .legal-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .legal-nav {
    gap: 0.55rem;
  }

  .legal-nav a {
    width: 100%;
    justify-content: center;
  }

  .delete-submit {
    width: 100%;
  }

  .site-footer-nav {
    gap: 0.55rem 0.85rem;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-top: 4.8rem;
    padding-bottom: 1rem;
  }

  .hero-content {
    width: min(100%, 26rem);
  }

  .logo-stage {
    width: clamp(168px, 52vw, 220px);
  }

  .compatibility-list {
    gap: 0.55rem;
  }

  .hero-content h1 {
    max-width: 9ch;
    font-size: clamp(2.1rem, 12vw, 3rem);
    line-height: 0.99;
  }

  .subtitle {
    font-size: 0.96rem;
    line-height: 1.56;
    max-width: 28ch;
  }

  .discord-btn {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(215, 0, 43, 0.45);
  }

  .nav-discord-btn span {
    display: none;
  }

  .nav-discord-btn {
    width: calc(34px + 0.6rem);
    height: calc(34px + 0.6rem);
    padding: 0;
    justify-content: center;
  }

  .lang-btn {
    min-width: 40px;
    min-height: 34px;
    padding: 0 0.7rem;
  }

  .section-heading {
    width: calc(100% - 1rem);
  }

  .section-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .section-heading h2 {
    font-size: clamp(1.28rem, 7.4vw, 1.75rem);
    line-height: 1.14;
  }

  .section-copy,
  .features-lead,
  .feature-panel p:last-child {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .screens-showcase,
  .features-section,
  .download-section {
    padding-bottom: 3.2rem;
  }

  .screens-grid {
    grid-auto-columns: 88%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .screen-card figcaption {
    padding-top: 0.65rem;
    font-size: 0.78rem;
  }

  .features-intro,
  .features-band {
    width: calc(100% - 1rem);
  }

  .screen-card img {
    border-radius: 16px;
  }

  .legal-wrap h1 {
    font-size: clamp(1.55rem, 9vw, 2.25rem);
  }

  .legal-wrap p,
  .legal-list li {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .page-loader-glow,
  .page-loader-mark,
  .loader-orb-wrap,
  .hero-content,
  .legal-wrap,
  .discord-btn {
    transition: none;
    animation: none;
  }

  .hero::before,
  .hero::after {
    animation: none;
  }

  .discord-btn:hover {
    transform: none;
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(0, -12px) scale(1.04);
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes loaderEntrance {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.88);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loaderOrb {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  22% {
    transform: translate(0px, 12px) scale(0.9);
  }
  48% {
    transform: translate(-11px, 12px) scale(1);
  }
  74% {
    transform: translate(-11px, 0px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}
