/* =====================================================================
   Chesapeake Roleplay — Liquid Glass landing page
   Fully self-contained stylesheet, independent of /css/style.css.
   ===================================================================== */

:root {
  --lg-bg: #06070b;
  --lg-text: #f4f6fb;
  --lg-text-dim: #9298ac;
  --lg-text-faint: #5c6178;
  --lg-border: rgba(255, 255, 255, 0.09);
  --lg-border-strong: rgba(255, 255, 255, 0.22);
  --lg-amber: #ffb84d;
  --lg-amber-ink: #1c1206;
  --lg-cyan: #6fd6ff;
  --lg-good: #2fe3ac;
  --lg-radius: 22px;
  --lg-radius-sm: 14px;
  --lg-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --lg-font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --lg-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --lg-font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.lg-body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--lg-bg);
  color: var(--lg-text);
  font-family: var(--lg-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  position: relative;
}

.lg-body h1, .lg-body h2, .lg-body h3 {
  font-family: var(--lg-font-display);
  letter-spacing: -0.02em;
  margin: 0;
}
.lg-body p { margin: 0; }
.lg-body a { color: inherit; text-decoration: none; }
.lg-body ::selection { background: var(--lg-amber); color: var(--lg-amber-ink); }

.lg-body :focus-visible {
  outline: 2px solid var(--lg-amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- background glow (fallback, no hero photos uploaded) ---------- */
.lg-glow {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
}
.lg-glow-1 {
  top: -12%; left: -8%;
  width: 620px; height: 620px;
  background: rgba(255, 184, 77, 0.14);
}
.lg-glow-2 {
  top: 4%; right: -10%;
  width: 560px; height: 560px;
  background: rgba(111, 214, 255, 0.10);
}

/* ---------- glass primitive ---------- */
.lg-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* ---------- buttons ---------- */
.lg-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--lg-font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--lg-ease), background 0.2s var(--lg-ease), border-color 0.2s var(--lg-ease), box-shadow 0.2s var(--lg-ease);
  white-space: nowrap;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}
.lg-btn-lg { padding: 14px 28px; font-size: 0.98rem; }
.lg-btn.lg-btn-solid {
  background: var(--lg-text);
  color: #12131a;
  border-color: var(--lg-text);
  box-shadow: 0 10px 26px rgba(244, 246, 251, 0.16);
}
.lg-btn.lg-btn-solid:hover { background: #fff; border-color: #fff; transform: translateY(-1px) translateZ(0); }
.lg-btn.lg-btn-glass {
  background: rgba(255, 255, 255, 0.07);
  color: var(--lg-text);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}
.lg-btn.lg-btn-glass:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); }

/* ---------- nav ---------- */
.lg-nav {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 0 20px;
}
.lg-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 18px;
  background: rgba(18, 20, 28, 0.55);
  border: 1px solid var(--lg-border);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.lg-nav.is-scrolled .lg-nav-inner {
  background: rgba(14, 15, 21, 0.8);
  border-color: var(--lg-border-strong);
}
.lg-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--lg-font-display);
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
}
.lg-brand-mark { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.lg-nav-links { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: center; }
.lg-nav-links a { font-size: 0.86rem; font-weight: 600; color: var(--lg-text-dim); transition: color 0.15s var(--lg-ease); }
.lg-nav-links a:hover { color: var(--lg-text); }
.lg-nav .lg-btn svg { display: none; }
@media (max-width: 760px) {
  .lg-nav-links { display: none; }
}

/* ---------- live server status pill (nav) ---------- */
.lg-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--lg-font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--lg-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--lg-text-dim);
  white-space: nowrap;
}
.lg-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lg-text-faint);
  flex-shrink: 0;
}
.lg-status-pill.is-online { color: var(--lg-good); border-color: rgba(47, 227, 172, 0.35); background: rgba(47, 227, 172, 0.08); }
.lg-status-pill.is-online .lg-status-dot { background: var(--lg-good); box-shadow: 0 0 8px rgba(47, 227, 172, 0.7); }
.lg-status-pill.is-offline { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.35); background: rgba(255, 107, 107, 0.08); }
.lg-status-pill.is-offline .lg-status-dot { background: #ff6b6b; }

/* ---------- hero (full-bleed, cycling uploaded photos) ---------- */
.lg-hero {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 20px 60px;
  overflow: hidden;
}

.lg-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lg-hero-photos { position: absolute; inset: 0; }
.lg-hero-photo-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s var(--lg-ease);
}
/* "a little transparent" — photos sit well below full strength so the
   near-black brand backdrop always reads through them. */
.lg-hero-photo-slide.is-active { opacity: 0.5; }

.lg-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 520px at 12% 18%, rgba(255, 184, 77, 0.22), transparent 60%),
    radial-gradient(760px 560px at 88% 82%, rgba(111, 214, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(6, 7, 11, 0.72) 0%, rgba(6, 7, 11, 0.55) 32%, rgba(6, 7, 11, 0.72) 76%, var(--lg-bg) 100%);
}
.lg-hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(6, 7, 11, 0.65) 100%);
}

.lg-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
}
.lg-hero-content { max-width: 600px; }

.lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--lg-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lg-text-dim);
  margin-bottom: 18px;
}
.lg-eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lg-amber);
  box-shadow: 0 0 10px 2px rgba(255, 184, 77, 0.7);
}
.lg-hero-logo {
  display: block;
  width: 46px; height: 46px;
  border-radius: 12px;
  padding: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  margin-bottom: 22px;
}
.lg-hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.03;
  margin: 0 0 18px;
  background: linear-gradient(180deg, #ffffff 20%, rgba(255, 255, 255, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lg-hero-tagline {
  font-size: 1.1rem;
  color: var(--lg-text-dim);
  max-width: 480px;
  line-height: 1.7;
  margin: 0 0 34px;
}
.lg-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.lg-scroll-cue {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 56px;
  color: var(--lg-text-faint);
  opacity: 0.6;
}

@media (max-width: 640px) {
  .lg-hero { min-height: 82vh; padding-top: 100px; }
}

/* ---------- main / sections ---------- */
.lg-main {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 20px 0;
}

.lg-section { padding: 46px 0; }
.lg-section.lg-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--lg-ease), transform 0.6s var(--lg-ease); }
.lg-section.lg-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lg-section.lg-reveal { opacity: 1; transform: none; }
  .lg-hero-photo-slide { transition: none; }
}

.lg-section-head { margin-bottom: 26px; }
.lg-kicker {
  font-family: var(--lg-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lg-amber);
}
.lg-section-head h2 { font-size: 1.9rem; margin: 6px 0 6px; }
.lg-section-head p { margin: 0; color: var(--lg-text-dim); font-size: 0.94rem; }

/* ---------- about: copy + quick-fact rail ---------- */
.lg-about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 8px;
}
.lg-about-heading-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.lg-about-heading-row h2 { font-size: 1.9rem; white-space: nowrap; }
.lg-rule-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--lg-border-strong), transparent); }
.lg-about-copy p { font-size: 1.04rem; line-height: 1.85; color: var(--lg-text-dim); }

.lg-about-rail {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--lg-border);
}
.lg-rail-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 2px;
  border-bottom: 1px solid var(--lg-border);
}
.lg-rail-num { font-family: var(--lg-font-display); font-weight: 700; font-size: 1.8rem; }
.lg-rail-label { font-family: var(--lg-font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lg-text-faint); }

@media (max-width: 780px) {
  .lg-about-grid { grid-template-columns: 1fr; }
}

/* ---------- grids / cards ---------- */
.lg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.lg-grid-tight { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.lg-panel.lg-dept-card,
.lg-panel.lg-team-card {
  display: block;
  transition: transform 0.25s var(--lg-ease), border-color 0.25s var(--lg-ease), box-shadow 0.25s var(--lg-ease);
}
.lg-panel.lg-dept-card:hover,
.lg-panel.lg-team-card:hover {
  transform: translateY(-4px);
  border-color: var(--lg-border-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 22px 44px rgba(0, 0, 0, 0.4);
}

.lg-dept-card { padding: 22px; }
.lg-dept-card:hover { border-color: var(--dept-color, var(--lg-amber)); }
.lg-dept-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lg-dept-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--lg-font-display);
  font-weight: 700;
  border: 1px solid var(--lg-border);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.lg-dept-icon img { width: 100%; height: 100%; object-fit: cover; }
.lg-dept-name { font-family: var(--lg-font-display); font-weight: 700; font-size: 1.08rem; margin-bottom: 8px; }
.lg-dept-desc { margin: 0 0 14px; line-height: 1.5; font-size: 0.88rem; color: var(--lg-text-dim); }
.lg-dept-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--lg-text-dim);
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.2s var(--lg-ease), transform 0.2s var(--lg-ease), color 0.2s var(--lg-ease);
}
.lg-dept-card:hover .lg-dept-link { opacity: 1; transform: translateX(0); color: var(--lg-text); }

.lg-team-card { text-align: center; padding: 24px 18px; }
.lg-team-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--lg-font-display); font-weight: 700; font-size: 1.3rem;
  margin: 0 auto 14px;
  border: 1px solid var(--lg-border-strong);
}
.lg-team-name { font-family: var(--lg-font-mono); font-size: 0.9rem; margin-bottom: 10px; }

.lg-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--lg-border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}
.lg-badge-on { color: var(--lg-good); border-color: rgba(47, 227, 172, 0.4); background: rgba(47, 227, 172, 0.1); }
.lg-badge-off { color: var(--lg-text-faint); }
.lg-badge-pinned { color: var(--lg-amber); border-color: rgba(255, 184, 77, 0.4); background: rgba(255, 184, 77, 0.12); flex-shrink: 0; }

/* ---------- announcements ---------- */
.lg-announce-list { display: flex; flex-direction: column; gap: 14px; }
.lg-announce-card { padding: 22px 26px; }
.lg-announce-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.lg-announce-title { font-family: var(--lg-font-display); font-weight: 700; font-size: 1.08rem; }
.lg-announce-body { color: var(--lg-text-dim); font-size: 0.92rem; line-height: 1.6; margin-bottom: 12px; white-space: pre-line; }
.lg-announce-meta { font-family: var(--lg-font-mono); font-size: 0.76rem; color: var(--lg-text-faint); }

/* ---------- rules ---------- */
.lg-rules-panel { padding: 30px 32px; }
.lg-rules-list {
  margin: 0;
  padding-left: 22px;
  color: var(--lg-text-dim);
  line-height: 1.9;
  font-size: 0.98rem;
}
.lg-rules-list li { padding-left: 4px; margin-bottom: 6px; }
.lg-rules-list li::marker { color: var(--lg-amber); font-family: var(--lg-font-mono); font-weight: 700; }

/* ---------- CTA ---------- */
.lg-cta {
  position: relative;
  text-align: center;
  padding: 64px 32px;
  margin: 10px 0 40px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--lg-border);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 70px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.lg-cta-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 184, 77, 0.28), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(111, 214, 255, 0.24), transparent 55%);
  filter: blur(10px);
  pointer-events: none;
}
.lg-cta h2, .lg-cta p, .lg-cta a { position: relative; z-index: 1; }
.lg-cta h2 { font-size: 2rem; margin-bottom: 8px; }
.lg-cta p { color: var(--lg-text-dim); margin-bottom: 26px; }

/* ---------- footer ---------- */
.lg-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--lg-border);
  padding: 26px 20px;
}
.lg-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.lg-footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--lg-text-dim); font-size: 0.86rem; font-weight: 600; }
.lg-footer-brand img { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; }
.lg-footer-copy { color: var(--lg-text-faint); font-size: 0.82rem; }
