/* ---------- Tokens ---------- */
:root {
  --bg: #0C130F;
  --bg-plum: #170F1D;
  --bg-teal: #0A1518;
  --bg-soft: #101911;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);

  --text: #F2F5EF;
  --text-muted: #9BA79E;
  --text-dim: #5C6B62;

  --accent: #8FBF9F;
  --accent-strong: #AFD8BC;
  --gold: #D8BD8E;
  --danger: #C97B72;

  --purple: #B98CE8;
  --pink: #E88CC7;
  --blue: #8CB4E8;

  --font-display: "Boldonse", "Arial Black", sans-serif;
  --font-body: "Roboto Condensed", "Segoe UI", sans-serif;

  --nav-h: 92px;
  --radius: 14px;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--nav-h);
  cursor: url("../assets/cursor-sword.svg") 34 4, auto;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a,
button {
  cursor: url("../assets/cursor-sword.svg") 34 4, pointer;
}

input,
textarea {
  cursor: text;
}

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

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

ul,
ol {
  list-style: none;
}

/* ---------- Layout helpers ---------- */
.section {
  min-height: 100svh;
  width: 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 8vw 3rem;
  position: relative;
  text-align: left;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.section--plum {
  background: var(--bg-plum);
}

.section--teal {
  background: var(--bg-teal);
}

.section--green {
  background: var(--accent);
  color: var(--bg);
}

.section--green .eyebrow { color: var(--bg); opacity: 0.55; }
.section--green .section__title { color: var(--bg); }

.section--green .card {
  background: rgba(12, 19, 15, 0.07);
  border-color: rgba(12, 19, 15, 0.2);
}

.section--green .card:hover { border-color: var(--bg); }
.section--green .card__icon { color: var(--bg); }
.section--green .card h3 { color: var(--bg); }
.section--green .card p { color: rgba(12, 19, 15, 0.65); }
.section--green .card__id { color: rgba(12, 19, 15, 0.4); }

.section--green .address {
  background: rgba(12, 19, 15, 0.08);
  border-color: rgba(12, 19, 15, 0.22);
  color: var(--bg);
}

.section--green .address__action { color: rgba(12, 19, 15, 0.55); }
.section--green .status { color: rgba(12, 19, 15, 0.65); }
.section--green .status__dot { background: rgba(12, 19, 15, 0.4); }
.section--green .status.is-online .status__dot { background: var(--bg); }

.section--green .btn {
  background: var(--bg);
  color: var(--accent-strong);
}

.section--green .btn:hover { background: #060a07; }

.section--green .btn--disabled {
  background: rgba(12, 19, 15, 0.1);
  color: rgba(12, 19, 15, 0.5);
}

.section--green .form__row label { color: rgba(12, 19, 15, 0.6); }

.section--green .form__row input,
.section--green .form__row textarea {
  background: rgba(12, 19, 15, 0.08);
  border-color: rgba(12, 19, 15, 0.22);
  color: var(--bg);
}

.section--green .form__row input::placeholder,
.section--green .form__row textarea::placeholder {
  color: rgba(12, 19, 15, 0.4);
}

.section--green .form__hint { color: rgba(12, 19, 15, 0.5); }

.section--green .site-footer { border-top-color: rgba(12, 19, 15, 0.2); }
.section--green .site-footer__brand { color: var(--bg); }
.section--green .site-footer__links { color: rgba(12, 19, 15, 0.65); }
.section--green .site-footer__links a:hover { color: var(--bg); }
.section--green .site-footer__server { color: var(--bg); }
.section--green .site-footer__copy { color: rgba(12, 19, 15, 0.5); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
  max-width: 16ch;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  z-index: 220;
  background: rgba(12, 19, 15, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.nav__logo {
  height: 64px;
  width: 64px;
}

.nav__links {
  display: flex;
  gap: 2.2rem;
}

.nav__links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--accent-strong);
}

.nav__progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  z-index: 210;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile menu overlay ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.6rem;
  padding: 0 8vw;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.2rem;
}

/* ---------- Hero ---------- */
.hero {
  overflow-x: hidden;
  gap: 0.2rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 17vw, 13rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  max-width: 100%;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--purple), var(--blue), var(--accent));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientMove 2.5s ease infinite;
}

.hero__title span {
  color: inherit;
}

.hero__claim {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  margin-top: 1.4rem;
  color: var(--text);
  max-width: 22ch;
  line-height: 1.3;
}

.hero__subtitle {
  color: var(--text-muted);
  margin-top: 0.7rem;
  max-width: 40ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 8vw;
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--text-dim), transparent);
  animation: bob 2s ease-in-out infinite;
}

/* ---------- Address / status (shared) ---------- */
.address {
  margin-top: 2.6rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.9rem 1.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--accent-strong);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.address:hover {
  border-color: var(--accent);
  background: var(--surface-strong);
}

.address__action {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.address--card {
  margin-top: 1.3rem;
  width: 100%;
  justify-content: space-between;
  font-size: 1.05rem;
}

.status {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}

.status.is-online .status__dot {
  background: var(--accent);
}

.status.is-offline .status__dot {
  background: var(--danger);
}

/* ---------- Links / cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 340px));
  justify-content: start;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.3rem 1.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card__id {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card__icon {
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.card--soon {
  opacity: 0.7;
}

.card__rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.3rem;
  padding-right: 0.3rem;
  max-height: 190px;
  overflow-y: auto;
}

.card__rules li {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-muted);
  padding-left: 0.8rem;
  position: relative;
}

.card__rules li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.section--green .card__rules li {
  color: rgba(12, 19, 15, 0.65);
}

.section--green .card__rules li::before {
  color: var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0C130F;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  background: var(--accent-strong);
}

.btn--disabled {
  background: var(--surface-strong);
  color: var(--text-muted);
  pointer-events: none;
}

/* ---------- About ---------- */
.about__claim {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  max-width: 14ch;
  margin-bottom: 2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.about__text {
  max-width: 68ch;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  margin-bottom: 1.2rem;
  color: var(--text);
}

.about__text--muted {
  color: var(--text-muted);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 280px));
  justify-content: start;
  gap: 1.6rem;
  width: 100%;
}

.member-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  box-shadow: 0 24px 40px -26px rgba(0, 0, 0, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.member-card__gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(120deg, var(--accent), var(--gold), var(--purple), var(--blue), var(--accent));
  background-size: 300% 300%;
  animation: gradientMove 6s ease infinite;
  transition: opacity 0.35s ease;
}

.member-card:hover .member-card__gradient {
  opacity: 0.32;
}

.member-card::before,
.member-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-color: var(--accent);
  opacity: 0.6;
  transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.member-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.member-card::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.member-card:hover {
  transform: translateY(-6px);
  border-color: rgba(143, 191, 159, 0.4);
  box-shadow: 0 30px 55px -24px rgba(0, 0, 0, 0.9), 0 0 46px -8px rgba(143, 191, 159, 0.55);
}

.member-card:hover::before,
.member-card:hover::after {
  width: 26px;
  height: 26px;
  opacity: 1;
}

.member-card__role {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.member-card__name {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.05;
  color: var(--text);
  overflow-wrap: break-word;
}

/* ---------- Contact ---------- */
.contact {
  justify-content: flex-start;
  gap: 2rem;
}

.contact__inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form__row label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form__row input,
.form__row textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
}

.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form__hint {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- Footer ---------- */
.site-footer {
  width: 100%;
  margin-top: auto;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
}

.site-footer__brand img {
  height: 48px;
  width: 48px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer__links a:hover {
  color: var(--accent);
}

.site-footer__server {
  font-family: var(--font-body);
  font-weight: 600;
}

.site-footer__copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------- Reveal animation ---------- */
.section > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.section > *:nth-child(1) { transition-delay: 0.02s; }
.section > *:nth-child(2) { transition-delay: 0.08s; }
.section > *:nth-child(3) { transition-delay: 0.14s; }
.section > *:nth-child(4) { transition-delay: 0.2s; }
.section > *:nth-child(5) { transition-delay: 0.26s; }
.section > *:nth-child(6) { transition-delay: 0.32s; }

/* ---------- Keyframes ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root {
    --nav-h: 78px;
  }

  .section {
    padding: calc(var(--nav-h) + 1.5rem) 7vw 3rem;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__title {
    white-space: normal;
    font-size: clamp(3rem, 15vw, 6.5rem);
    line-height: 1.02;
  }

  .cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 460px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
