/* ============================================================
   XXE RIOT CLUB
   Dark-locked by brand decision: the identity is acid green on
   black. A light mode would erase it, so `color-scheme: dark`
   is set page-wide and never inverted per section.
   Accent lock: one green ramp, nothing else.
   Shape lock: radius 0 + one 10px corner notch on every panel
   and button, echoing the clipped geometry of the wordmark.
   ============================================================ */

:root {
  /* surfaces */
  --bg: #070A08;
  --bg-2: #0B100C;
  --bg-3: #0F160F;
  --line: rgba(122, 240, 60, .16);
  --line-2: rgba(122, 240, 60, .30);

  /* single accent, green ramp */
  --acid: #6BF031;
  --acid-hot: #23FD02;
  --acid-dim: #3E7A22;
  --on-acid: #050A03;

  /* text */
  --txt: #D3E2D2;
  --txt-2: #A6B7A4;
  --txt-dim: #8A9A8C;

  /* shape */
  --notch: 10px;
  --cut: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch),
      100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));

  /* rhythm */
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 44px);
  --sec-y: clamp(72px, 9vw, 128px);
  --nav-h: 68px;

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fast: .18s;
  --mid: .34s;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 400 15px/1.65 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .005em;
  overflow-x: hidden;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

svg {
  display: block;
  flex: none
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit
}

::selection {
  background: var(--acid);
  color: var(--on-acid)
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

/* clip-path also clips outline and outer shadows, so anything wearing the
   corner notch gets an inset ring instead or its focus state disappears. */
.btn:focus-visible,
.social a:focus-visible,
.burger:focus-visible,
.skip:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--acid);
}

.btn--primary:focus-visible,
.skip:focus-visible {
  box-shadow: inset 0 0 0 2px var(--on-acid);
}

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

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 120;
  transform: translateY(-200%);
  background: var(--acid);
  color: var(--on-acid);
  padding: 10px 16px;
  font-weight: 700;
  clip-path: var(--cut);
}

.skip:focus {
  transform: none
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut)
}

/* ── type ─────────────────────────────────────────────── */
.h2 {
  font-family: 'Chakra Petch', 'JetBrains Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0 0 clamp(28px, 4vw, 48px);
  color: #EAF6E6;
}

.h2--sm {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 26px
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--acid);
}

.lede {
  margin: 0;
  color: var(--txt-2);
  max-width: 56ch;
  font-size: 14.5px
}

/* ── overlays ─────────────────────────────────────────── */
.fx {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none
}

.fx__scan {
  position: absolute;
  inset: 0;
  opacity: .5;
  background: repeating-linear-gradient(180deg,
      rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, .32) 2px 4px);
  mix-blend-mode: multiply;
}

.fx__grain {
  position: absolute;
  inset: -50%;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference) {
  .fx__grain {
    animation: grain 7s steps(6) infinite
  }
}

@keyframes grain {

  0%,
  100% {
    transform: translate(0, 0)
  }

  20% {
    transform: translate(-4%, 3%)
  }

  40% {
    transform: translate(3%, -4%)
  }

  60% {
    transform: translate(-3%, -3%)
  }

  80% {
    transform: translate(4%, 2%)
  }
}

/* scroll progress: CSS scroll-driven, no scroll listener */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 110;
  background: rgba(122, 240, 60, .10);
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--acid-dim), var(--acid));
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress span {
      animation: grow linear both;
      animation-timeline: scroll(root block)
    }
  }
}

@keyframes grow {
  to {
    transform: scaleX(1)
  }
}

/* ── nav ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav__in {
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto
}

.brand__mark {
  width: 34px;
  height: auto;
  filter: drop-shadow(0 0 9px rgba(107, 240, 49, .45));
  transition: transform var(--mid) var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.06)
}

.brand__txt {
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .13em;
  white-space: nowrap;
}

.brand__txt b {
  color: var(--acid);
  font-weight: 700
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px
}

.nav__links a {
  position: relative;
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--txt-2);
  transition: color var(--fast) var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--mid) var(--ease);
}

.nav__links a:hover {
  color: var(--acid)
}

.nav__links a:hover::after {
  transform: scaleX(1)
}

.nav__actions {
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding-top: 14px;
}

.nav__actions .btn {
  width: 100%;
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 10px
}

.nav__auth {
  display: contents;
}

.nav__user {
  display: none;
  align-items: center;
  gap: 10px;
}

.nav__user.is-active {
  display: inline-flex;
}

.nav__user[hidden],
.nav__auth [data-auth-signin][hidden],
.nav__auth [data-auth-signin].is-hidden,
.nav__avatar[hidden] {
  display: none !important;
}

.nav__avatar-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 50%;
  outline-offset: 2px;
}

.nav__avatar-link:focus-visible {
  outline: 2px solid var(--acid);
}

.nav__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(107, 240, 49, .55);
  background: var(--bg-3);
}

.nav__actions .nav__auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.nav__actions .nav__user.is-active {
  width: 100%;
  justify-content: space-between;
}

.nav__actions .nav__avatar {
  width: 36px;
  height: 36px;
}

.nav__actions .nav__user .btn {
  flex: 1;
}

.burger {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--txt);
  clip-path: var(--cut);
  cursor: pointer;
}

.burger__c {
  display: none
}

.nav.is-open .burger__o {
  display: none
}

.nav.is-open .burger__c {
  display: block
}

/* ── buttons ──────────────────────────────────────────── */
.btn {
  --pad: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--pad);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--txt);
  clip-path: var(--cut);
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
    border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.btn:hover {
  border-color: var(--acid);
  color: var(--acid)
}

.btn:active {
  transform: translateY(1px)
}

.btn--sm {
  --pad: 10px 17px;
  font-size: 11.5px
}

.btn--primary {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--on-acid);
  box-shadow: 0 0 0 rgba(107, 240, 49, 0);
}

.btn--primary:hover {
  background: var(--acid-hot);
  border-color: var(--acid-hot);
  color: var(--on-acid);
  box-shadow: 0 0 26px rgba(35, 253, 2, .32);
}

.btn--ghost:hover {
  background: rgba(107, 240, 49, .07)
}

.btn--warn {
  border-color: rgba(255, 138, 107, .45);
  color: #FF8A6B;
}

.btn--warn:hover {
  border-color: #FF8A6B;
  color: #FFB49A;
  background: rgba(255, 107, 74, .08);
  box-shadow: 0 0 18px rgba(255, 107, 74, .18);
}

.btn--warn svg {
  flex: none
}

.btn__spin {
  display: none;
  animation: spin .8s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.btn.is-busy {
  pointer-events: none;
  opacity: .75
}

.btn.is-busy .btn__spin {
  display: block
}

/* ── hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(460px, 82dvh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-h) + clamp(20px, 3vw, 36px));
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: hidden;
  background: var(--bg);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: var(--bg);
}

/* Soft center dim for logo legibility + tall bottom dissolve into page bg */
.hero__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(7, 10, 8, .35) 0%, transparent 68%),
    linear-gradient(180deg,
      rgba(7, 10, 8, .55) 0%,
      rgba(7, 10, 8, .18) 28%,
      rgba(7, 10, 8, .12) 48%,
      rgba(7, 10, 8, .45) 72%,
      var(--bg) 100%);
}

.hero__in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
}

.hero__logo {
  margin: 0 0 clamp(18px, 2.4vw, 28px)
}

.hero__logo img {
  width: min(100%, 520px);
  margin-inline: auto;
  filter: drop-shadow(0 0 40px rgba(107, 240, 49, .38));
}

.hero__sub {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(14px, 1.4vw, 16.5px);
  line-height: 1.7;
  color: var(--txt-2);
  text-shadow: 0 1px 18px rgba(7, 10, 8, .85);
}

.hero__sub strong {
  color: var(--txt);
  font-weight: 700;
}

/* ── status strip (sticky under nav) ──────────────────── */
.status {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  overflow: hidden;
  border-block: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(107, 240, 49, .08), rgba(7, 10, 8, .92) 70%),
    color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(107, 240, 49, .18),
    0 10px 28px rgba(0, 0, 0, .35);
}

.status__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, 70vw);
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(35, 253, 2, .16), transparent 68%);
  pointer-events: none;
}

.status__in {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 48px;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.status__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--acid-hot);
  box-shadow:
    0 0 0 0 rgba(35, 253, 2, .55),
    0 0 12px rgba(35, 253, 2, .65);
}

@media (prefers-reduced-motion: no-preference) {
  .status__dot {
    animation: status-pulse 2.2s var(--ease) infinite
  }
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(35, 253, 2, .55), 0 0 12px rgba(35, 253, 2, .65)
  }

  70% {
    box-shadow: 0 0 0 10px rgba(35, 253, 2, 0), 0 0 14px rgba(35, 253, 2, .35)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(35, 253, 2, 0), 0 0 12px rgba(35, 253, 2, .65)
  }
}

.status__label {
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--txt);
}

.status__sep {
  color: rgba(107, 240, 49, .45);
  font-weight: 700;
}

.status__val {
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--acid-hot);
  text-shadow: 0 0 18px rgba(35, 253, 2, .55);
}

.status__build {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--txt-2);
}

/* ── ticker (only marquee on the page) ────────────────── */
.ticker {
  position: relative;
  z-index: 1;
  margin-top: -1px;
  border-bottom: 1px solid var(--line);
  border-top: 0;
  background: var(--bg);
  overflow: hidden;
  padding: 15px 0;
}

.ticker__track {
  display: flex;
  width: max-content
}

@media (prefers-reduced-motion: no-preference) {
  .ticker__track {
    animation: slide 26s linear infinite
  }
}

@keyframes slide {
  to {
    transform: translateX(-50%)
  }
}

.ticker__set {
  display: flex;
  align-items: center;
  flex: none
}

.ticker__set b {
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: clamp(17px, 2.1vw, 26px);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-inline: 26px;
  color: #E7F5E3;
}

.ticker__set i {
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--acid);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(107, 240, 49, .6);
}

/* ── sections ─────────────────────────────────────────── */
.sec {
  padding-block: var(--sec-y)
}

/* ── divisions: bento, 5 items -> 5 cells ─────────────── */
.bento {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, 1fr);
}

.cell {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  clip-path: var(--cut);
  transition: border-color var(--mid) var(--ease), background var(--mid) var(--ease);
}

.cell--lead {
  grid-column: span 4;
  grid-row: span 2;
  display: flex;
  flex-direction: column
}

.cell--wide {
  grid-column: span 4
}

.cell--glow {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(35, 253, 2, .16), transparent 62%),
    var(--bg-2);
}

.cell--tint {
  background:
    linear-gradient(155deg, rgba(107, 240, 49, .11), transparent 58%),
    var(--bg-3);
}

.cell:hover {
  border-color: var(--line-2);
  background: var(--bg-3)
}

.cell--glow:hover,
.cell--tint:hover {
  border-color: var(--line-2)
}

/* cursor spotlight on the border */
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
      rgba(107, 240, 49, .16), transparent 62%);
  transition: opacity var(--mid) var(--ease);
}

.spot:hover::before {
  opacity: 1
}

.cell__ico {
  color: var(--acid);
  margin-bottom: 16px
}

.cell h3 {
  margin: 0 0 10px;
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: clamp(17px, 1.7vw, 21px);
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #EAF6E6;
}

.cell p {
  margin: 0;
  color: var(--txt-dim);
  font-size: 13.5px;
  line-height: 1.62;
  max-width: 44ch
}

.cell__go {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--acid);
}

.cell__go svg {
  transition: transform var(--fast) var(--ease)
}

.cell__go:hover svg {
  transform: translateX(4px)
}

.cell__wm {
  position: absolute;
  right: -52px;
  bottom: -42px;
  width: 238px;
  opacity: .10;
  pointer-events: none;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}

.cell--lead:hover .cell__wm {
  transform: scale(1.07) rotate(-5deg);
  opacity: .16
}

/* real code sample, not a mocked-up screenshot */
.code {
  margin: 22px 0 0;
  position: relative;
  background: #050805;
  border: 1px solid var(--line);
  clip-path: var(--cut);
  overflow: hidden;
}

.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 8px 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(107, 240, 49, .045);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-dim);
}

.code__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--txt-2);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: var(--cut);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.code__copy:hover {
  color: var(--acid);
  border-color: var(--acid)
}

.code__copy:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--acid)
}

.code__copy.is-done {
  color: var(--acid);
  border-color: var(--acid)
}

.code pre {
  margin: 0;
  padding: 15px 16px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.62;
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: var(--acid-dim) transparent;
}

.code code {
  color: var(--txt-2)
}

.code .c {
  color: var(--txt-dim);
  font-style: italic
}

/* comment  */
.code .k {
  color: var(--acid)
}

/* keyword  */
.code .s {
  color: #B9F5A0
}

/* string   */
.code .f {
  color: #EAF6E6
}

/* callable */
.code .o {
  color: var(--txt-2)
}

/* operator */

/* ── console ──────────────────────────────────────────── */
.console {
  background: var(--bg-2);
  border-block: 1px solid var(--line)
}

.console__grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
}

.term {
  background: #050805;
  border: 1px solid var(--line-2);
  clip-path: var(--cut);
  display: flex;
  flex-direction: column;
  min-height: 396px;
  box-shadow: 0 0 60px rgba(35, 253, 2, .05);
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--acid);
  background: rgba(107, 240, 49, .045);
}

.term__title {
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--txt-2)
}

.term__hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--txt-dim)
}

.term__hint kbd {
  font: inherit;
  color: var(--acid);
  border: 1px solid var(--line-2);
  padding: 1px 6px;
}

.term__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  font-size: 13px;
  line-height: 1.72;
  max-height: 52vh;
  scrollbar-width: thin;
  scrollbar-color: var(--acid-dim) transparent;
}

.term__body::-webkit-scrollbar {
  width: 8px
}

.term__body::-webkit-scrollbar-thumb {
  background: var(--acid-dim)
}

.term__body p {
  margin: 0 0 2px;
  white-space: pre-wrap;
  word-break: break-word
}

.term__body .t-cmd {
  color: #EAF6E6
}

.term__body .t-cmd::before {
  content: "> ";
  color: var(--acid)
}

.term__body .t-key {
  color: var(--acid);
  font-weight: 700
}

.term__body .t-dim {
  color: var(--txt-dim)
}

.term__body .t-err {
  color: #FF6B4A
}

.term__body .t-ok {
  color: var(--acid)
}

.term__form {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(107, 240, 49, .04);
}

.term__ps {
  color: var(--acid);
  font-weight: 700
}

.term__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
  caret-color: var(--acid);
}

.term__input::placeholder {
  color: var(--txt-dim)
}

.stats__list {
  margin: 0;
  display: grid;
  gap: 2px
}

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.stat dt {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-dim)
}

.stat dd {
  margin: 0;
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1;
  color: var(--acid);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(107, 240, 49, .35);
}

.stats__note {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--txt-dim)
}

/* ── join form ────────────────────────────────────────── */
.join__in {
  display: grid;
  gap: clamp(26px, 4vw, 56px);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
}

.join__head .h2 {
  margin-bottom: 16px
}

.join__panel {
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}

.join__steps {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.join__steps li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 14px;
  color: var(--txt);
}

.join__step {
  flex: none;
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--acid-dim);
}

.join__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px
}

.join__warn {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--txt-dim);
}

.join__warn svg {
  color: #FF8A6B;
  flex: none
}

.form {
  display: grid;
  gap: 16px 18px;
  grid-template-columns: 1fr 1fr;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0
}

.field--full {
  grid-column: 1 / -1
}

.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #050805;
  border: 1px solid var(--line-2);
  color: var(--txt);
  font-size: 13.5px;
  border-radius: 0;
  outline: 0;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 88px
}

.field select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--acid) 50%),
    linear-gradient(135deg, var(--acid) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field ::placeholder {
  color: #6E7C70
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(107, 240, 49, .14);
}

.field.is-bad input,
.field.is-bad select,
.field.is-bad textarea {
  border-color: #FF6B4A
}

.err {
  margin: 0;
  font-size: 11.5px;
  color: #FF8A6B;
  display: flex;
  align-items: center;
  gap: 5px
}

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.form__status {
  margin: 0;
  font-size: 12.5px;
  color: var(--txt-dim)
}

.form__status.is-ok {
  color: var(--acid)
}

.form__status.is-bad {
  color: #FF8A6B
}

/* ── footer ───────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 60px)
}

.foot__in {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.3fr) auto auto;
  align-items: center;
}

.foot__brand img {
  width: 190px;
  opacity: .9
}

.foot__brand p {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--txt-dim)
}

.foot__nav {
  display: flex;
  gap: 22px
}

.foot__nav a {
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--txt-2);
  transition: color var(--fast) var(--ease);
}

.foot__nav a:hover {
  color: var(--acid)
}

.social {
  display: flex;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0
}

.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  color: var(--txt-2);
  clip-path: var(--cut);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease),
    background var(--fast) var(--ease);
}

.social a:hover {
  color: var(--acid);
  border-color: var(--acid);
  background: rgba(107, 240, 49, .08)
}

.foot__legal {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--txt-dim);
}

/* ── matrix rain (console `matrix` command) ───────────── */
.rain {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: .5;
}

/* ── reveal + scramble ────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s var(--ease), transform .6s var(--ease)
  }

  .reveal.is-in {
    opacity: 1;
    transform: none
  }

  .bento .reveal:nth-child(2) {
    transition-delay: .06s
  }

  .bento .reveal:nth-child(3) {
    transition-delay: .12s
  }

  .bento .reveal:nth-child(4) {
    transition-delay: .18s
  }

  .bento .reveal:nth-child(5) {
    transition-delay: .24s
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1000px) {
  .hero__logo img {
    width: min(100%, 380px)
  }

  .console__grid {
    grid-template-columns: 1fr
  }

  .join__in {
    grid-template-columns: 1fr
  }

  .foot__in {
    grid-template-columns: 1fr;
    align-items: start
  }
}

@media (max-width:860px) {

  /* 5 items in a 2-up grid would leave a hole, so the last cell goes full width */
  .cell,
  .cell--lead,
  .cell--wide {
    grid-column: span 3
  }

  .cell--tint {
    grid-column: span 6
  }

  .cell--lead {
    grid-row: auto
  }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gut) 22px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease), visibility var(--mid);
  }

  .nav.is-open .nav__links {
    transform: none;
    opacity: 1;
    visibility: visible
  }

  .nav__links a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px
  }

  .nav__links a::after {
    display: none
  }

  .nav__actions {
    display: flex
  }

  .burger {
    display: grid
  }
}

@media (max-width:640px) {
  .bento {
    grid-template-columns: 1fr
  }

  .cell,
  .cell--lead,
  .cell--wide {
    grid-column: 1 / -1
  }

  .form {
    grid-template-columns: 1fr
  }

  .nav__end > .btn--sm {
    display: none
  }

  /* Keep avatar + logout visible in the bar / menu when authed */
  .nav__end .nav__user.is-active .btn--sm {
    display: none;
  }

  .term {
    min-height: 340px
  }

  .term__hint {
    display: none
  }

  .foot__legal {
    padding-top: 18px
  }
}

/* ── auth / login (flat — no box, no corner notch) ───── */
.page-auth {
  min-height: 100dvh;
}

.page-auth .progress {
  display: none
}

.auth {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-h) + clamp(32px, 5vw, 64px));
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
}

.auth__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(122, 240, 60, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 240, 60, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 42%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 42%, #000 10%, transparent 72%);
}

.auth__in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 420px;
}

.auth__title {
  margin: 0 0 16px;
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--txt);
  text-wrap: balance;
}

.auth__lede {
  margin: 0 0 clamp(28px, 4vw, 40px);
  max-width: 36ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--txt-2);
  text-wrap: pretty;
}

.auth__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-acid);
  background: var(--acid);
  border: 1px solid var(--acid);
  border-radius: 0;
  clip-path: none;
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.auth__cta:hover {
  background: var(--acid-hot);
  border-color: var(--acid-hot);
  box-shadow: 0 0 28px rgba(35, 253, 2, .30);
}

.auth__cta:active {
  transform: translateY(1px)
}

.auth__cta:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--on-acid), 0 0 0 2px var(--acid);
}

.auth__status {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--txt-2);
}

.auth__status.is-ok {
  color: var(--acid)
}

.auth__status.is-bad {
  color: #FF8A6B
}

.auth__session {
  display: none;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 22px;
}

.auth__session.is-active {
  display: flex;
}

.auth__session[hidden],
.auth__status[hidden],
.auth__cta[hidden],
.auth__cta.is-hidden,
.auth__avatar[hidden] {
  display: none !important;
}

.auth__avatar {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(107, 240, 49, .45);
  background: var(--bg-3);
  flex-shrink: 0;
}

.auth__session-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.auth__session-name {
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--txt);
}

.auth__session-id {
  font-size: 11.5px;
  color: var(--txt-dim);
  word-break: break-all;
}

.auth__meta {
  margin: 22px 0 0;
  font-size: 12.5px;
  color: var(--txt-dim);
}

.auth__meta a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--fast) var(--ease);
}

.auth__meta a:hover {
  color: var(--acid-hot)
}

@media (max-width: 560px) {
  .auth__cta {
    width: 100%
  }
}

/* ── scammers watchlist ───────────────────────────────── */
.page-scam .progress {
  display: none
}

.scam {
  padding-top: calc(var(--nav-h) + clamp(36px, 5vw, 64px));
  padding-bottom: clamp(56px, 8vw, 96px);
  min-height: 100dvh;
}

.scam__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 40px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.scam__title {
  margin: 0 0 12px;
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #FF8A6B;
  text-wrap: balance;
}

.scam__lede {
  margin: 0;
  max-width: 48ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--txt-2);
  text-wrap: pretty;
}

.scam__toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 18px;
}

.scam__synced {
  margin: 0;
  margin-right: auto;
  font-size: 11.5px;
  color: var(--txt-dim);
}

.scam__count {
  margin: 0;
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt);
}

.scam__hint {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--txt-dim);
}

.scam__hint svg {
  color: #FF8A6B
}

.scam__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.scam__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(14px, 2.5vw, 22px);
  padding: 14px 16px;
  border: 1px solid rgba(255, 138, 107, .18);
  background: rgba(255, 107, 74, .03);
  border-radius: 0;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.scam__row:hover {
  border-color: rgba(255, 138, 107, .42);
  background: rgba(255, 107, 74, .06);
}

.scam__avatar-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex: none;
  outline: none;
}

.scam__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 138, 107, .45);
  background: var(--bg-3);
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}

.scam__avatar-wrap:hover .scam__avatar,
.scam__avatar-wrap:focus-visible .scam__avatar {
  border-color: #FF8A6B;
  transform: scale(1.04);
  box-shadow: 0 0 0 4px rgba(255, 107, 74, .16);
}

.scam__tip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 20;
  width: min(320px, 74vw);
  max-height: min(70vh, 420px);
  overflow: auto;
  padding: 12px 14px;
  background: #0D120E;
  border: 1px solid rgba(255, 138, 107, .35);
  color: var(--txt);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(-6px);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease),
    visibility var(--fast);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.scam__avatar-wrap:hover .scam__tip,
.scam__avatar-wrap:focus-visible .scam__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.scam__tip-title {
  margin: 0 0 10px;
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #FF8A6B;
}

.scam__proofs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.scam__proof {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 138, 107, .16);
}

.scam__proof:first-child {
  padding-top: 0;
  border-top: 0
}

.scam__proof-img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 138, 107, .22);
  background: #050805;
  margin-bottom: 6px;
}

.scam__proof-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt);
}

.scam__proof-note {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--txt-2);
}

.scam__lede code {
  color: #FFB49A;
  font-size: .95em;
}

.scam__meta {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.scam__who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.scam__tag {
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--txt);
}

.scam__id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--txt-dim);
  font-size: 11.5px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color var(--fast) var(--ease);
}

.scam__id:hover,
.scam__id.is-copied {
  color: var(--acid)
}

.scam__servers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scam__server {
  padding: 4px 9px;
  border: 1px solid rgba(255, 138, 107, .22);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .04em;
  color: #FFB49A;
  background: rgba(255, 107, 74, .06);
}

.scam__reports {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 64px;
}

.scam__reports-n {
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: #FF8A6B;
  font-variant-numeric: tabular-nums;
}

.scam__reports-l {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-dim);
}

.scam__empty {
  margin: 32px 0 0;
  font-size: 13px;
  color: var(--txt-dim);
}

@media (max-width: 860px) {
  .scam__head {
    flex-direction: column;
    align-items: stretch;
  }

  .scam__head .btn {
    width: 100%
  }

  .scam__row {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "avatar meta"
      "reports report";
  }

  .scam__avatar-wrap {
    grid-area: avatar
  }

  .scam__meta {
    grid-area: meta
  }

  .scam__reports {
    grid-area: reports;
    justify-items: start;
    padding-left: 70px;
  }

  .scam__report {
    grid-area: report;
    justify-self: end;
  }

  .scam__tip {
    left: 0;
    right: auto;
    top: calc(100% + 10px);
    transform: translateY(-4px);
    width: min(280px, calc(100vw - 48px));
  }

  .scam__avatar-wrap:hover .scam__tip,
  .scam__avatar-wrap:focus-visible .scam__tip {
    transform: translateY(0);
  }
}

/* ── reduced motion: collapse everything to static ────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  /* Keep the first frame visible; JS pauses playback when reduce is on */

  .reveal {
    opacity: 1 !important;
    transform: none !important
  }

  .rain {
    display: none !important
  }
}