@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f6efe6;
  --bg-accent: #cfe8e0;
  --ink: #141d19;
  --muted: #5a6f66;
  --accent: #f08a5b;
  --accent-dark: #cc6c41;
  --accent-soft: #f7d5c4;
  --accent-2: #2a9d8f;
  --accent-3: #2d3a9f;
  --panel: #ffffff;
  --border: #d7e2dc;
  --shadow: rgba(18, 30, 24, 0.16);
  --heading-font: "Bricolage Grotesque", sans-serif;
  --body-font: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(42, 157, 143, 0.18), transparent 38%),
    radial-gradient(circle at 80% 16%, rgba(240, 138, 91, 0.2), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(45, 58, 159, 0.15), transparent 35%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-accent) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 40%;
  background: linear-gradient(140deg, rgba(240, 138, 91, 0.24), rgba(42, 157, 143, 0.12));
  filter: blur(0);
  transform: rotate(18deg);
  z-index: -1;
}

body::before {
  top: -40px;
  right: -40px;
}

body::after {
  bottom: -60px;
  left: -40px;
  background: linear-gradient(140deg, rgba(45, 58, 159, 0.18), rgba(240, 138, 91, 0.14));
}

.site-body {
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(247, 243, 236, 0.9));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 226, 220, 0.85);
  box-shadow: 0 12px 30px rgba(23, 39, 30, 0.12);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(240, 138, 91, 0.18), transparent 45%),
    radial-gradient(circle at 90% 12%, rgba(45, 58, 159, 0.14), transparent 40%);
  opacity: 0.7;
  pointer-events: none;
}

.nav-shell {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(130deg, var(--accent) 0%, #f3b463 80%);
  font-family: var(--heading-font);
  font-weight: 700;
  color: #1f1612;
  box-shadow: 0 10px 18px rgba(240, 138, 91, 0.35);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(96px, 9vw, 150px);
  height: clamp(96px, 9vw, 150px);
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  margin: -6px 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(23, 39, 30, 0.22));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--heading-font);
}

.brand-title {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-3);
  font-weight: 600;
}

.brand-logo-only {
  padding: 2px 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(42, 157, 143, 0.3);
  background: rgba(42, 157, 143, 0.12);
  color: #1b5d53;
}

.status-pill.status-offline {
  border-color: rgba(240, 138, 91, 0.4);
  background: rgba(240, 138, 91, 0.14);
  color: #9d4a2a;
}

.status-pill.status-maintenance {
  border-color: rgba(45, 58, 159, 0.35);
  background: rgba(45, 58, 159, 0.12);
  color: #2b3474;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  animation: pulse 2.2s ease-in-out infinite;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(215, 226, 220, 0.9);
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-family: var(--body-font);
  font-weight: 600;
  box-shadow: 0 12px 22px rgba(23, 39, 30, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (min-width: 921px) {
  .site-nav {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(215, 226, 220, 0.8);
    border-radius: 999px;
    padding: 6px 10px;
    box-shadow: 0 16px 30px rgba(23, 39, 30, 0.14);
  }
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 5px 9px;
  border-radius: 999px;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--accent-dark);
  background: rgba(240, 138, 91, 0.12);
}

.site-nav a.nav-cta {
  color: #1f1612;
  background: linear-gradient(120deg, var(--accent) 0%, #f3b463 100%);
  box-shadow: 0 10px 20px rgba(240, 138, 91, 0.35);
}

.site-nav a.nav-cta.active,
.site-nav a.nav-cta:hover {
  color: #1f1612;
  background: linear-gradient(120deg, var(--accent) 0%, #f3b463 100%);
}

.site-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  width: 100%;
}

.hero-splash {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
  margin-bottom: 36px;
  perspective: 1400px;
}

.hero-splash h1 {
  font-family: var(--heading-font);
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  margin: 0 0 16px;
  text-shadow: 0 12px 24px rgba(23, 39, 30, 0.18);
}

.hero-splash p {
  margin: 0 0 20px;
  color: var(--muted);
}

.hero-card {
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(140deg, #ffffff 0%, #fdf6ed 70%);
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px rgba(23, 39, 30, 0.14);
  transform: translateY(-4px) rotateX(2deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary {
  background: linear-gradient(120deg, var(--accent) 0%, #f3b463 100%);
  color: #1f1612;
  box-shadow: 0 10px 20px rgba(240, 138, 91, 0.3);
}

.button.ghost {
  border-color: var(--border);
  color: var(--muted);
  background: #fff;
}

.section {
  margin: 36px 0;
}

.section h2 {
  font-family: var(--heading-font);
  font-size: 2rem;
  margin: 0 0 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head .button {
  white-space: nowrap;
}

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

.panel {
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: 0 18px 36px rgba(23, 39, 30, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(240, 138, 91, 0.25), transparent 70%);
  opacity: 0.6;
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(23, 39, 30, 0.16);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.news-card {
  position: relative;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(140deg, #ffffff 0%, #fdf6ed 70%);
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(23, 39, 30, 0.12);
  overflow: hidden;
}

.news-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: rgba(240, 138, 91, 0.18);
  transform: rotate(18deg);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(42, 157, 143, 0.15);
  color: #1b5d53;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-card details {
  margin-top: 10px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.news-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-dark);
  list-style: none;
}

.news-card summary::-webkit-details-marker {
  display: none;
}

.news-card details[open] summary {
  margin-bottom: 8px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.inline-form {
  display: inline-flex;
  align-items: center;
}

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

.stat {
  padding: 12px;
  border-radius: 16px;
  background: rgba(42, 157, 143, 0.08);
  border: 1px solid rgba(42, 157, 143, 0.2);
}

.stat .value {
  font-size: 1.2rem;
  font-weight: 700;
}

.site-footer {
  padding: 48px 24px 36px;
  background: linear-gradient(160deg, #f4efe5 0%, #f8f3ea 60%, #fdf6ed 100%);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -60px;
  right: 10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.18), transparent 70%);
  opacity: 0.6;
}

.discord-bubble {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent-2) 0%, var(--accent-3) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(20, 30, 60, 0.3);
  font-weight: 600;
  z-index: 20;
}

.bubble-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  width: clamp(80px, 7vw, 110px);
  height: clamp(80px, 7vw, 110px);
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(23, 39, 30, 0.2));
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--heading-font);
  font-size: 1.05rem;
}

.footer-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-grid h3 {
  font-family: var(--heading-font);
  margin: 0 0 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-copy {
  text-align: center;
  color: var(--muted);
  margin: 0;
  position: relative;
  z-index: 1;
}

.footer-meta {
  max-width: 1200px;
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 12px;
}

h1 {
  font-family: var(--heading-font);
  font-size: clamp(2.2rem, 3vw, 3.1rem);
  margin: 0 0 12px;
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  max-width: 520px;
  color: var(--muted);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(215, 226, 220, 0.8);
  box-shadow: 0 18px 40px var(--shadow);
  border-radius: 18px;
  padding: 18px 22px;
  min-width: 200px;
  backdrop-filter: blur(10px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
}

.hero-stat + .hero-stat {
  border-top: 1px solid var(--border);
}

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.value {
  font-weight: 600;
  font-size: 1rem;
}

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

.card {
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 22px 46px rgba(23, 39, 30, 0.12);
  padding: 28px;
  animation: rise 0.6s ease both;
}

.grid .card:nth-child(2) {
  animation-delay: 0.08s;
}

h2 {
  font-family: var(--heading-font);
  margin: 0 0 8px;
  font-size: 1.4rem;
}

h3 {
  font-family: var(--heading-font);
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.muted {
  color: var(--muted);
  margin: 0 0 20px;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.alert.success {
  background: rgba(42, 157, 143, 0.12);
  color: #1b5d53;
  border: 1px solid rgba(42, 157, 143, 0.3);
}

.alert.error {
  background: rgba(240, 138, 91, 0.16);
  color: #9d4a2a;
  border: 1px solid rgba(240, 138, 91, 0.4);
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

ul,
ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

li + li {
  margin-top: 6px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

input {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  min-height: 120px;
  resize: vertical;
}

select {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 138, 91, 0.2);
}

select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 138, 91, 0.2);
}

textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 138, 91, 0.2);
}

.input-with-action {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.input-with-action input {
  flex: 1;
}

.ghost {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

.check input {
  width: 18px;
  height: 18px;
}

.primary {
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: #1f1612;
  background: linear-gradient(120deg, var(--accent) 0%, #f3b463 100%);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(240, 138, 91, 0.3);
}

.primary:hover {
  transform: translateY(-1px);
}

.primary:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background: #fdfbf7;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin-bottom: 20px;
}

.meta-grid .value {
  font-size: 0.95rem;
}

.status-panel {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fdfbf7;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: #f1e8dc;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #f3b463 100%);
  transition: width 0.3s ease;
}

.table-wrap {
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

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

thead {
  background: #f3f7f2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--muted);
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: #fdf6ed;
}

.columns {
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.6;
  }
}

@media (max-width: 980px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-splash {
    grid-template-columns: 1fr;
  }

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

  .stat-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 24px;
    right: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    display: none;
    box-shadow: 0 12px 24px rgba(23, 39, 30, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 32px 18px 60px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    width: 100%;
  }

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

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

  .discord-bubble {
    right: 12px;
    left: 12px;
    justify-content: center;
  }

  .news-item {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-logo {
    width: 84px;
    height: 84px;
  }

  .footer-logo {
    width: 74px;
    height: 74px;
  }

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

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
}
