@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Syne:wght@700;800&display=swap");

:root {
  --bg: #070707;
  --panel: rgba(18, 18, 18, 0.72);
  --panel-solid: #141414;
  --panel-soft: rgba(255, 255, 255, 0.04);
  --ink: #ffffff;
  --muted: #9a9a9a;
  --muted-2: #6e6e6e;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #b84a3a;
  --accent-hover: #d05542;
  --live: #3ecf6a;
  --radius: 12px;
  --radius-pill: 999px;
  --font: "Manrope", system-ui, sans-serif;
  --font-display: "Syne", "Manrope", sans-serif;
  --nav-h: 4.75rem;
  --shell: 1080px;
  --gutter: clamp(1.75rem, 7vw, 5.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --connect: "connect senora.gg";
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html {
  font-size: 15px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(184, 74, 58, 0.12), transparent 55%),
    linear-gradient(180deg, #121212 0%, var(--bg) 45%, #050505 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.home {
  overflow-x: hidden;
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* —— Background —— */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #070707;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(2px) brightness(0.72) saturate(1.05);
  transform: scale(1.04);
  opacity: 0;
  transition: opacity 1.4s ease;
}

.bg-slide.is-active {
  opacity: 1;
}

.bg-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.45) 100%),
    radial-gradient(ellipse 65% 55% at 50% 45%, transparent 0%, rgba(0, 0, 0, 0.28) 100%);
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0 var(--gutter);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: start;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
  border: none;
  border-radius: 0;
  flex-shrink: 0;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.22rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.nav-pill a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-pill a svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-pill a:hover {
  color: var(--ink);
}

.nav-pill a:hover svg {
  opacity: 1;
}

.nav-pill a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.nav-pill a.active svg {
  opacity: 1;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s var(--ease), border-color 0.2s;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-login svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.btn-login .login-avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* —— Hero —— */
.hero {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.15rem;
  padding: calc(var(--nav-h) + 2.5rem) 0 3rem;
  box-sizing: border-box;
}

.hero-logo {
  width: min(260px, 56vw);
  height: auto;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.45));
  animation: rise 0.85s var(--ease) both;
}

.hero-tag {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  max-width: 28rem;
  line-height: 1.55;
  animation: rise 0.85s var(--ease) 0.08s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.05rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-discord {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: #fff;
}

.btn-discord:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* —— Server panel —— */
.server-panel {
  width: min(360px, 100%);
  text-align: left;
  background: rgba(12, 12, 12, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1rem 1.05rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: rise 0.85s var(--ease) 0.16s both;
}

.server-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.server-top .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--live);
}

.live-badge i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(62, 207, 106, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(62, 207, 106, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(62, 207, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(62, 207, 106, 0);
  }
}

.connect-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.server-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.connect-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 13.5rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
}

.connect-box code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.88rem;
  color: #e8e8e8;
}

.copy-btn {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.copy-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.copy-btn.copied {
  color: var(--live);
}

.copy-btn svg {
  width: 1rem;
  height: 1rem;
}

.server-row .stat {
  flex: 0 0 auto;
  text-align: left;
  padding-right: 0.15rem;
}

.stat strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.25;
  white-space: nowrap;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Inner pages —— */
.page {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3.5rem) 0 4.5rem;
}

.page-header {
  margin-bottom: 1.6rem;
  animation: rise 0.7s var(--ease) both;
}

.page-header h1 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
  font-size: 0.95rem;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rule {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  backdrop-filter: blur(12px);
}

.rule-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.rule h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.rule p,
.rule ul {
  margin: 0;
  color: var(--muted);
}

.rule ul {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
}

.apply-form {
  display: grid;
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem;
  backdrop-filter: blur(12px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(184, 74, 58, 0.55);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-success {
  display: none;
  color: var(--live);
  font-weight: 600;
  margin: 0;
}

.form-success.is-visible {
  display: block;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.member {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: 0.9rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
}

.member-avatar {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem;
}

.member h2 {
  margin: 0;
  font-size: 1.05rem;
}

.member .role {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.member .bio {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.site-footer strong {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 960px) {
  .hero {
    padding-top: calc(var(--nav-h) + 2.5rem);
    min-height: auto;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-h: 4.25rem;
    --gutter: 1.1rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    width: 100%;
    margin: 0;
    padding: 0 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .header-actions .btn-login {
    display: none;
  }

  .nav-pill {
    position: fixed;
    top: calc(var(--nav-h) + 0.45rem);
    left: 0.75rem;
    right: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    border-radius: 14px;
    padding: 0.5rem;
    background: rgba(12, 12, 12, 0.96);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .nav-pill.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-pill a {
    justify-content: center;
  }

  .form-row,
  .team-grid {
    grid-template-columns: 1fr;
  }
}
