:root {
  --bg: #07050b;
  --bg-soft: #120d19;
  --panel: #211a2d;
  --panel-strong: #2d253b;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f3ff;
  --muted: #b7aec6;
  --accent: #6d8cff;
  --accent-strong: #84f0b0;
  --danger: #d2415c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 5%, rgba(109, 140, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #07050b 0%, #100b18 44%, #08060c 100%);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--text);
  border-radius: var(--radius);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  background: rgba(7, 5, 11, 0.72);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 5, 11, 0.92);
}

.nav {
  width: min(1140px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 36% 38%, #f5f4f0 0 9%, #9e9ba5 10% 19%, transparent 20%),
    radial-gradient(circle at 56% 42%, #f6f7f5 0 10%, #777782 11% 22%, transparent 23%),
    #17131f;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.16), 0 0 0 4px rgba(109, 140, 255, 0.08);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-menu a,
.nav-invite {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: color 160ms ease, background 160ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-invite {
  color: white;
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(109, 140, 255, 0.24);
}

.nav-invite:hover,
.nav-invite:focus-visible {
  background: #7d99ff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  width: min(1140px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 64px 0 50px;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: center;
  gap: 52px;
}

.hero-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.profile-card {
  width: min(100%, 382px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.banner {
  position: relative;
  height: 138px;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 35%, rgba(255, 255, 255, 0.1), transparent 14%),
    radial-gradient(circle at 43% 28%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #010102 0%, #060507 100%);
}

.blade {
  position: absolute;
  left: 84px;
  top: 50px;
  width: 245px;
  height: 9px;
  background: linear-gradient(90deg, transparent 0%, #c6c5bd 18%, #fbfbf4 45%, #56515c 70%, transparent 100%);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.32);
  transform: rotate(-5deg);
}

.blade::after {
  position: absolute;
  right: -48px;
  top: 1px;
  width: 56px;
  height: 3px;
  content: "";
  background: #817981;
}

.profile-row {
  position: relative;
  height: 44px;
}

.avatar {
  position: absolute;
  left: 26px;
  top: -46px;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 8px solid var(--panel);
  border-radius: 50%;
  background: #0e0b13;
}

.avatar span {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 47% 42%, #ffffff 0 13%, #d4d4d1 14% 24%, transparent 25%),
    radial-gradient(circle at 60% 50%, #f3f1eb 0 15%, #74717a 16% 34%, transparent 35%),
    #19151f;
  filter: blur(0.1px);
}

.status {
  position: absolute;
  left: 100px;
  top: 12px;
  width: 22px;
  height: 22px;
  border: 5px solid var(--panel);
  border-radius: 50%;
  background: #52be78;
}

.profile-body {
  padding: 0 26px 26px;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
}

.app-row span {
  padding: 1px 6px;
  font-size: 0.76rem;
  line-height: 1.4;
  border-radius: 4px;
  background: #6177f1;
}

.profile-body p {
  margin: 4px 0 24px;
  color: var(--muted);
}

.activity {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.activity small,
.activity b {
  display: block;
}

.activity small {
  color: var(--muted);
  font-weight: 800;
}

.activity b {
  margin-top: 4px;
}

.hero-copy {
  padding-bottom: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-lede,
.section-heading p,
.support-section p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.support-section {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 16px 40px rgba(109, 140, 255, 0.28);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.hero-stats dt {
  font-size: 1.1rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.section {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.page-hero {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 34px;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(3.3rem, 7vw, 6.7rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

.page-hero .hero-actions {
  margin-top: 28px;
}

.section-tight {
  padding-top: 12px;
  padding-bottom: 36px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.info-strip div {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: rgba(23, 18, 31, 0.94);
}

.info-strip p {
  margin: 0;
  color: var(--muted);
}

.info-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--bg);
  font-weight: 900;
  background: var(--accent-strong);
}

.feature-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.policy-grid article,
.privacy-panel,
.command-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(33, 26, 45, 0.86);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.feature-card,
.policy-grid article {
  padding: 22px;
}

.feature-card p,
.policy-grid p,
.privacy-panel p,
.command-panel p,
.command-list dd,
.rules-grid li {
  margin: 0;
  color: var(--muted);
}

.card-icon {
  display: block;
  margin-bottom: 42px;
  color: var(--accent-strong);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.command-panel {
  padding: 12px;
}

.command-panel div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
}

.command-panel div + div {
  border-top: 1px solid var(--line);
}

.command-panel span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-weight: 900;
  background: var(--panel-strong);
}

.policy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-catalog {
  padding-top: 24px;
}

.command-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.command-list article,
.rules-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(33, 26, 45, 0.86);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.command-list article {
  padding: 22px;
}

.command-list dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.command-list div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.command-list dt {
  margin-bottom: 3px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.command-list dd {
  font-size: 0.95rem;
}

.legal-teaser {
  padding-top: 44px;
}

.legal-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.legal-link-grid a,
.legal-document,
.legal-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(33, 26, 45, 0.86);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.legal-link-grid a {
  display: block;
  padding: 24px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.legal-link-grid a:hover,
.legal-link-grid a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(132, 240, 176, 0.45);
  background: rgba(45, 37, 59, 0.94);
}

.legal-link-grid span {
  display: block;
  margin-bottom: 8px;
  font-size: 1.18rem;
  font-weight: 900;
}

.legal-link-grid p {
  margin: 0;
  color: var(--muted);
}

.legal-hero {
  padding-bottom: 22px;
}

.legal-layout {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 104px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  padding: 14px;
  display: grid;
  gap: 4px;
}

.legal-toc a {
  padding: 9px 10px;
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 800;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.legal-document {
  padding: clamp(32px, 6vw, 72px);
}

.legal-document .legal-note {
  margin: 0 0 72px;
  padding: 24px;
  color: var(--muted);
  line-height: 1.9;
  border: 1px solid rgba(132, 240, 176, 0.28);
  border-radius: var(--radius);
  background: rgba(132, 240, 176, 0.06);
}

.legal-document section:first-of-type {
  margin-top: 0;
}

.legal-document section + section {
  margin-top: 58px;
  padding-top: 50px;
  border-top: 1px solid var(--line);
}

.legal-document section,
.section,
.page-hero {
  scroll-margin-top: 110px;
}

.legal-document h2 {
  margin: 0 0 30px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.25;
}

.legal-document p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

.legal-document p + p {
  margin-top: 26px;
}

.rules-section {
  padding-top: 24px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rules-grid article {
  padding: 24px;
}

.rules-grid ul {
  margin: 0;
  padding-left: 20px;
}

.rules-grid li + li {
  margin-top: 10px;
}

.privacy-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.privacy-panel div {
  padding: 24px;
  background: rgba(33, 26, 45, 0.96);
}

.support-section {
  justify-content: space-between;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(109, 140, 255, 0.15), transparent 34%),
    rgba(33, 26, 45, 0.86);
}

.support-section h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.footer {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 900;
}

:focus-visible {
  outline: 3px solid rgba(132, 240, 176, 0.8);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav {
    height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    inset: 68px 16px auto;
    display: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(18, 13, 25, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-invite {
    display: none;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
    gap: 26px;
  }

  .hero-copy {
    order: -1;
  }

  .hero-visual {
    min-height: 360px;
  }

  .profile-card {
    transform: none;
  }

  .info-strip,
  .feature-grid,
  .policy-grid,
  .privacy-panel,
  .legal-link-grid,
  .command-list,
  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-stats,
  .info-strip,
  .feature-grid,
  .policy-grid,
  .privacy-panel,
  .legal-link-grid,
  .command-list,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    padding-top: 18px;
    padding-bottom: 68px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button,
  .support-section {
    width: 100%;
  }

  .button {
    padding-inline: 14px;
  }

  .section {
    padding: 58px 0;
  }

  .section-tight {
    padding-top: 0;
    padding-bottom: 20px;
  }

  .support-section {
    padding: 24px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
