@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap");

:root {
  --logo-purple: #7b2cfe;
  --logo-magenta: #d122e3;
  --logo-coral: #ff4b2b;
  --logo-orange: #ff8c00;
  --gradient-logo: linear-gradient(90deg, var(--logo-purple), var(--logo-magenta), var(--logo-coral), var(--logo-orange));
  --bg-deep: #000;
  --bg-base: #050508;
  --bg-card: rgba(10, 10, 14, 0.88);
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #f0f2f8;
  --text-muted: #9a9fb0;
  --accent: var(--logo-magenta);
  --radius: 14px;
  --font: "Outfit", system-ui, sans-serif;
  --font-display: "Syne", var(--font);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-base);
  padding-top: var(--header-h);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 100% 80% at 50% -35%, rgba(123, 44, 254, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand .accent {
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo { border-radius: 10px; }

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

.hero { padding: 3rem 0 2rem; }

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.section__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 42rem;
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  padding: 1rem 0 3rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.card p { color: var(--text-muted); margin: 0 0 1.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--gradient-logo);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--stroke);
  color: var(--text);
}

.btn:hover { filter: brightness(1.08); }

.form-shell { padding: 0 0 3rem; }
.form-panel {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; }

.input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}

.form-hint { color: var(--text-muted); font-size: 0.85rem; margin: 0.5rem 0 0; }
.form-actions { margin-top: 1rem; }
.login-notice { color: var(--logo-orange); font-size: 0.9rem; }

.oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(88, 101, 242, 0.15);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.oauth-btn:hover {
  background: rgba(88, 101, 242, 0.28);
  filter: none;
}

.oauth-btn--discord {
  background: rgba(88, 101, 242, 0.2);
}

.login-oauth { margin-top: 0.25rem; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stroke);
}

.login-divider span { white-space: nowrap; }

.share-drop {
  display: block;
  padding: 2rem 1rem;
  border: 2px dashed var(--stroke);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
}

.share-drop.is-over { border-color: var(--accent); background: rgba(209, 34, 227, 0.06); }
.share-drop__input { display: none; }
.share-drop__title { display: block; font-weight: 600; }
.share-drop__meta { display: block; color: var(--text-muted); font-size: 0.85rem; margin-top: 0.35rem; }

.share-progress { margin: 1rem 0; }
.share-progress__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.share-progress__bar {
  height: 100%;
  width: 0;
  background: var(--gradient-logo);
  transition: width 0.2s;
}
.share-result { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--stroke); }
.share-result__row { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

.share-player video, .share-player audio, .share-player img, .share-player iframe {
  max-width: 100%;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--stroke);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
  }
  .site-header.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav ul { flex-direction: column; }
}


.page-login .site-header { position: static; height: auto; padding: 1.25rem; border: none; background: transparent; }
.page-login { padding-top: 0; }

.login-shell { padding: 2rem 0 4rem; max-width: 420px; }
.login-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.login-title { font-size: 1.75rem; margin: 0; }
.login-error { color: #ffb4b4; font-size: 0.9rem; margin: 0; }

.health-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.health-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.health-pill.is-up { background: rgba(52, 211, 153, 0.15); color: #9be9a8; }
.health-pill.is-degraded { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }
.health-pill.is-down { background: rgba(248, 113, 113, 0.15); color: #ffb4b4; }

.health-meta { color: var(--text-muted); font-size: 0.85rem; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }

.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.health-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.health-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.health-card__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.health-status {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.health-status.is-up { background: rgba(52, 211, 153, 0.15); color: #9be9a8; }
.health-status.is-degraded { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }
.health-status.is-down { background: rgba(248, 113, 113, 0.15); color: #ffb4b4; }

.health-card__desc { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 0.75rem; }
.health-card__engine { margin: 0; font-size: 0.82rem; color: var(--text-muted); }
.health-card__engine code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}
