:root {
  color-scheme: dark;
  --bg: #080c09;
  --surface: #101711;
  --green: #76ff03;
  --green-light: #b0ff79;
  --white: #f5fff1;
  --muted: #94a08f;
  --border: rgba(118, 255, 3, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

[hidden] {
  display: none !important;
}

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

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}

.background-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 10% 10%,
      rgba(118, 255, 3, 0.12),
      transparent 42%
    ),
    radial-gradient(
      ellipse at 95% 85%,
      rgba(118, 255, 3, 0.08),
      transparent 35%
    ),
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.015) 9px,
      transparent 10px
    );
}

/* Login */

.login-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.login-card {
  width: min(100%, 440px);
  padding: 38px 30px 25px;
  background: linear-gradient(150deg, #172014, #0c100d);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: 20px;
  box-shadow:
    0 25px 90px #0008,
    0 0 45px rgba(118, 255, 3, 0.06);
}

.brand-symbol {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  background: var(--green);
  color: #10170b;
  font-size: 45px;
  font-style: italic;
  font-weight: 900;
  border-radius: 14px 3px 14px 3px;
  box-shadow: 0 0 30px #76ff0330;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
}

.login-card h1 {
  margin: 0;
  font-size: clamp(24px, 6vw, 32px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -1px;
}

.login-card h1 span,
.green {
  color: var(--green);
}

.description {
  margin: 15px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

label {
  display: block;
  margin: 20px 0 9px;
  color: #c5d0c0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 14px;
  border: 1px solid #2a3527;
  border-radius: 8px;
  background: #080d09;
  color: white;
}

input:focus {
  border-color: var(--green);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 75px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.error-message {
  min-height: 20px;
  margin: 12px 0;
  color: #ff9292;
  font-size: 13px;
}

.login-button {
  width: 100%;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #102000;
  font-weight: 900;
  letter-spacing: 2px;
  transition: background 0.2s, box-shadow 0.2s;
}

.login-button:hover {
  background: var(--green-light);
  box-shadow: 0 0 25px #76ff0330;
}

.card-footer {
  margin: 26px 0 0;
  color: #72816b;
  text-align: center;
  font-size: 9px;
  letter-spacing: 1.5px;
}

/* Community */

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px max(20px, calc((100vw - 1100px) / 2));
  background: #090e0bea;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: #102000;
  border-radius: 8px 2px;
  font-size: 28px;
}

.logout-button {
  padding: 10px 13px;
  border: 1px solid #34442b;
  border-radius: 7px;
  background: transparent;
  color: #d1dccb;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.logout-button:hover {
  border-color: var(--green);
  color: var(--green);
}

.content {
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
}

.downloads {
  padding: 35px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 23px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 900;
  font-style: italic;
}

.count-badge {
  padding: 8px 10px;
  background: #76ff0310;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--green);
  font-size: 10px;
  white-space: nowrap;
}

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

.download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 105px;
  padding: 20px;
  border: 1px solid #283622;
  border-radius: 12px;
  background: linear-gradient(130deg, #182014, #0e140e);
  transition: transform 0.2s, border-color 0.2s;
}

a.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
}

.file-number {
  color: var(--green);
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
}

.file-details {
  flex: 1;
  min-width: 0;
}

.file-details h3 {
  margin: 0 0 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.file-details p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.5px;
}

.file-arrow {
  color: var(--green);
  font-size: 23px;
}

.download-card.unavailable {
  opacity: 0.6;
}

/* Large title section */

.hero {
  position: relative;
  overflow: hidden;
  padding: 55px 40px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(
      ellipse at 90% 50%,
      #76ff0326,
      transparent 60%
    ),
    linear-gradient(120deg, #17200f, #0a0f0a);
}

.hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -100px;
  width: 330px;
  height: 330px;
  border: 1px solid #76ff0330;
  transform: rotate(35deg);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  background: #76ff0310;
  border: 1px solid #76ff0330;
  border-radius: 5px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 2px;
}

.live-badge span {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
}

.hero h2 {
  margin: 25px 0 20px;
  font-size: clamp(35px, 7vw, 78px);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -2px;
}

.hero h2 > span {
  color: var(--green);
  text-shadow: 0 0 25px #76ff0326;
}

.hero h2 em {
  display: block;
  margin-top: 10px;
  color: white;
  font-size: 1.25em;
}

.hero p {
  color: #b2bea9;
  line-height: 1.8;
}

.hero-button {
  display: inline-block;
  margin-top: 12px;
  padding: 13px 18px;
  background: var(--green);
  border-radius: 5px;
  color: #112000;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}

.hero-watermark {
  position: absolute;
  right: 20px;
  top: 0;
  color: #76ff0309;
  font-size: 350px;
  font-style: italic;
  font-weight: 900;
  pointer-events: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 25px 0;
  color: #778570;
  font-size: 10px;
  letter-spacing: 1px;
}

@media (max-width: 850px) {
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .login-card {
    padding: 30px 22px 23px;
  }

  .brand {
    gap: 8px;
    font-size: 14px;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 23px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    min-height: 88px;
  }

  .hero {
    padding: 35px 22px;
  }

  .hero h2 {
    font-size: clamp(28px, 8vw, 44px);
    letter-spacing: -1px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

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

  * {
    transition: none !important;
  }
}
