:root {
  --bg: #0b0b0c;
  --bg-1: #0f0f10;
  --bg-2: #121214;
  --bg-3: #18181a;
  --line: #1f1f22;
  --line-2: #2a2a2e;
  --text: #f2f0ec;
  --text-2: #d8d5ce;
  --text-3: #bdbab3;
  --muted: #9b9891;
  --muted-2: #8d8a84;
  --muted-3: #6b6964;
  --accent: #ff7d00;
  --accent-hi: #ff9a3d;

  --f-display: 'Oswald', sans-serif;
  --f-body: 'Manrope', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  --wrap: 1280px;
  --slant: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
input, textarea, button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@keyframes zfloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-1deg); } }
@keyframes zspin { to { transform: rotate(360deg); } }
@keyframes zmarq { to { transform: translateX(-50%); } }
@keyframes zblink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.page { position: relative; min-height: 100vh; overflow: hidden; overflow: clip; background: var(--bg); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.accent { color: var(--accent); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 18px 34px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
  clip-path: var(--slant);
  border: none;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s;
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent-hi); color: var(--bg); transform: translateY(-2px); }
.btn--dark { background: var(--bg-3); color: var(--text); }
.btn--dark:hover { background: #232326; color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 11, 12, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span {
  font-family: var(--f-display); font-weight: 700; font-size: 18px;
  letter-spacing: .04em; text-transform: uppercase;
}
.nav {
  display: flex; gap: 28px; align-items: center;
  font-family: var(--f-display); font-weight: 500; font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase;
}
.nav a { color: var(--text-3); transition: color .2s; }
.nav a:hover { color: var(--accent); }
.nav a.nav__cta {
  padding: 9px 18px; background: var(--accent); color: var(--bg);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.nav a.nav__cta:hover { background: var(--accent-hi); color: var(--bg); }

.burger {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line-2); cursor: pointer;
  position: relative;
}
.burger span, .burger::before, .burger::after {
  content: ''; position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--text); transition: transform .25s, opacity .25s;
}
.burger::before { top: 14px; }
.burger span { top: 21px; }
.burger::after { top: 28px; }
.header.is-open .burger::before { transform: translateY(7px) rotate(45deg); }
.header.is-open .burger span { opacity: 0; }
.header.is-open .burger::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 11, 12, .97);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .header.is-open .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a.nav__cta { margin-top: 16px; text-align: center; border-bottom: none; padding: 14px 18px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--bg-3) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-3) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero__glow {
  position: absolute; right: -10%; top: -20%; width: 70%; height: 120%;
  background: radial-gradient(circle closest-side, rgba(255, 125, 0, .22), transparent);
}
.hero__inner {
  position: relative;
  padding-top: 80px; padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 48px; align-items: center;
}
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em;
  color: var(--accent); text-transform: uppercase;
}
.kicker__dot { width: 8px; height: 8px; background: var(--accent); animation: zblink 1.2s infinite; }
.hero__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(52px, 7.4vw, 112px); line-height: 1.02;
  margin: 24px 0 0; text-transform: uppercase; letter-spacing: 0;
  display: flex; flex-direction: column; gap: .04em;
}
.hero__title span { display: block; }
.hero__title .hero__pre {
  font-size: .42em; line-height: 1; color: var(--muted-2);
  letter-spacing: .06em; margin-bottom: .12em;
}
.hero__lead {
  font-size: 19px; line-height: 1.6; color: var(--text-3);
  max-width: 520px; margin: 28px 0 0; text-wrap: pretty;
}
.hero__actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.hero__emblem-col { display: flex; justify-content: center; padding: clamp(48px, 10vw, 80px) 0; }

.emblem { --size: min(480px, 80vw); position: relative; width: var(--size); aspect-ratio: 1; }
.emblem__ring {
  position: absolute; inset: -6%; border-radius: 50%;
  border: 2px dashed rgba(255, 125, 0, .45);
  animation: zspin 50s linear infinite;
}
.emblem__ring--outer { inset: -12%; border: 1px solid var(--line); animation: none; }
.emblem__tick {
  position: absolute; left: 50%; top: 50%; width: 2px; height: 18px; background: var(--accent);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--size) * .62));
}
.emblem img {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(255, 125, 0, .5), 0 40px 100px rgba(255, 125, 0, .18);
  animation: zfloat 7s ease-in-out infinite;
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--accent); overflow: hidden; padding: 16px 0;
  transform: rotate(-1.2deg) scale(1.03); margin: -14px 0;
  position: relative; z-index: 2;
}
.marquee__track { display: flex; width: max-content; animation: zmarq 35s linear infinite; }
.marquee__item {
  font-family: var(--f-display); font-weight: 700; font-size: 26px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--bg);
  padding: 0 24px; display: flex; align-items: center; gap: 48px; white-space: nowrap;
}
.marquee__item::after { content: '◆'; font-size: 16px; }

/* ---------- Sections ---------- */
.section { padding-top: 110px; padding-bottom: 30px; }
.section--last { padding-bottom: 100px; }
.h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.08;
  margin: 0; text-transform: uppercase;
}
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section__aside { font-size: 17px; line-height: 1.6; color: var(--muted-2); max-width: 440px; margin: 0; }

/* About */
.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2px; margin-top: 56px; background: var(--line); border: 1px solid var(--line);
}
.pillar { position: relative; padding: 40px 32px; background: var(--bg-1); transition: background .3s; }
.pillar:hover { background: #151517; }
.pillar__n { font-family: var(--f-display); font-weight: 700; font-size: 64px; line-height: 1; color: var(--accent); opacity: .9; }
.pillar h3 {
  font-family: var(--f-display); font-weight: 600; font-size: 26px;
  text-transform: uppercase; letter-spacing: .03em; margin: 24px 0 12px;
}
.pillar p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }

/* Roles */
.roles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px; margin-top: 56px;
}
.role {
  padding: 28px 26px 30px; background: var(--bg-2); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  transition: transform .3s, border-color .3s, background .3s;
}
.role:hover { transform: translateY(-6px); border-color: var(--accent); background: #17150f; }
.role__tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.role h3 { font-family: var(--f-display); font-weight: 600; font-size: 24px; text-transform: uppercase; margin: 16px 0 10px; }
.role p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }

.reqs { margin: 40px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.reqs li {
  padding: 10px 16px; border: 1px solid var(--line-2);
  font-family: var(--f-display); font-weight: 500; font-size: 15px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
}
.reqs li::before { content: '✓ '; }

/* Application */
.apply { position: relative; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.apply__stripe { height: 6px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--bg) 14px 28px); }
.apply__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 48px; padding: clamp(28px, 5vw, 56px);
}
.apply__lead { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 24px 0 0; max-width: 400px; }
.steps { margin: 36px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; align-items: center; font-size: 16px; color: var(--text-2); }
.steps b {
  flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--bg); font-family: var(--f-display); font-weight: 700;
}

.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: none; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label {
  font-family: var(--f-display); font-weight: 500; font-size: 13px;
  letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; padding: 0;
}
.field input, .field textarea {
  padding: 15px 16px; background: var(--bg); border: 1px solid var(--line-2);
  color: var(--text); outline: none; border-radius: 0; width: 100%;
  transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: #55534f; }
.field input:user-invalid { border-color: #d84a3a; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--line-2);
  color: var(--text-3); cursor: pointer;
  font-family: var(--f-display); font-weight: 500; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; transition: all .2s;
}
.chip span:hover { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.form[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  grid-column: 1 / -1; padding: 20px; background: var(--accent); color: var(--bg);
  border: none; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: 20px;
  letter-spacing: .1em; text-transform: uppercase; transition: background .2s, transform .2s, opacity .2s;
}
.submit:hover { background: var(--accent-hi); transform: translateY(-2px); }
.submit:disabled { opacity: .6; cursor: progress; transform: none; }

.form__error {
  grid-column: 1 / -1; margin: 0; padding: 14px 16px;
  border: 1px solid #d84a3a; background: rgba(216, 74, 58, .08); color: #f0b2a9;
  font-size: 15px; line-height: 1.5;
}
.form__error[hidden] { display: none; }
.form__error button {
  background: none; border: none; padding: 0; color: var(--accent);
  text-decoration: underline; cursor: pointer;
}

.done { padding: 32px 0; }
.done[hidden] { display: none; }
.done__kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--accent); }
.done h3 {
  font-family: var(--f-display); font-weight: 700; font-size: 44px;
  text-transform: uppercase; margin: 16px 0 12px; overflow-wrap: anywhere;
}
.done p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 28px; max-width: 420px; }
.done__links { display: flex; gap: 12px; flex-wrap: wrap; }
.done__links a {
  padding: 16px 24px; font-family: var(--f-display); font-weight: 600; font-size: 16px;
  letter-spacing: .08em; text-transform: uppercase;
}
.done__links a:first-child { background: var(--accent); color: var(--bg); }
.done__links a:first-child:hover { background: var(--accent-hi); color: var(--bg); }
.done__links a:last-child { background: var(--line); color: var(--text); }
.done__links a:last-child:hover { color: var(--accent); }
.done__reset {
  margin-top: 24px; background: none; border: none; padding: 0;
  color: var(--muted-2); cursor: pointer; text-decoration: underline; font-size: 14px;
}

/* Contacts */
.contacts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px; margin-top: 56px;
}
.contact {
  position: relative; display: flex; justify-content: space-between; align-items: end; gap: 20px;
  min-height: 220px; padding: 36px; overflow: hidden; transition: transform .3s, border-color .3s;
}
.contact:hover { transform: translateY(-6px); }
.contact__body { display: flex; flex-direction: column; justify-content: space-between; height: 100%; gap: 56px; }
.contact__kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; }
.contact__name { font-family: var(--f-display); font-weight: 700; font-size: 56px; line-height: 1; text-transform: uppercase; }
.contact__desc { margin-top: 8px; }
.contact__arrow { font-family: var(--f-display); font-size: 48px; line-height: 1; }
.contact--discord { background: var(--accent); color: var(--bg); }
.contact--discord:hover { color: var(--bg); }
.contact--discord .contact__desc { font-weight: 500; }
.contact--tg { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); }
.contact--tg:hover { border-color: var(--accent); color: var(--text); }
.contact--tg .contact__kicker, .contact--tg .contact__arrow { color: var(--accent); }
.contact--tg .contact__desc { color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-display); font-weight: 500; font-size: 14px;
  letter-spacing: .1em; color: var(--muted-3); text-transform: uppercase;
}
.footer a { color: var(--muted-2); }
.footer a:hover { color: var(--accent); }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s ease var(--d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .role[data-reveal].is-in:hover { transform: translateY(-6px); }
.js .contact[data-reveal].is-in:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
