@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #060d14;
  --deep: #0c1824;
  --panel: #101f2c;
  --blue: #166885;
  --cyan: #4ed4dc;
  --cyan-dim: rgba(78, 212, 220, .14);
  --gold: #e9bd66;
  --gold-dim: rgba(233, 189, 102, .18);
  --mist: #9eb4b8;
  --text: #e8f0f2;
  --text-muted: rgba(232, 240, 242, .62);
  --border: rgba(78, 212, 220, .18);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: Outfit, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(6, 13, 20, .72);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}

.brand-text span { color: var(--cyan); }

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.brand-mark::first-letter { transform: rotate(-45deg); }

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s;
}

.nav-link:hover { color: var(--cyan); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 13px var(--font-body);
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #2eb8c4);
  color: var(--ink);
  border-color: var(--cyan);
}

.btn-primary:hover { background: #8df3ed; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d4a54a);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 12px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 112px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('banners/pegasworld-cover.png') center 30% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 13, 20, .94) 0%, rgba(6, 13, 20, .78) 42%, rgba(6, 13, 20, .35) 100%),
    linear-gradient(to top, var(--ink) 0%, transparent 28%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: radial-gradient(rgba(255, 255, 255, .8) .6px, transparent .6px);
  background-size: 3px 3px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 192px);
}

.hero-copy { max-width: 620px; }

.eyebrow {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow-dark { color: var(--blue); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0;
}

h1 {
  font-size: clamp(52px, 7vw, 96px);
  color: #fff;
}

h2 {
  font-size: clamp(40px, 5vw, 64px);
  color: var(--ink);
}

h3 {
  font-size: 24px;
  color: var(--ink);
}

em {
  color: var(--gold);
  font-style: italic;
}

.hero-lead {
  margin: 28px 0 32px;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.is-online {
  background: #6af0a4;
  box-shadow: 0 0 12px #6af0a4;
}

.status-dot.is-offline {
  background: #ff8b7a;
  box-shadow: 0 0 12px rgba(255, 139, 122, .5);
}

.status-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, .18);
}

.hero-panel,
.connect-panel {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(12, 24, 36, .82);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel-label {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.panel-address,
#server-address {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font: 600 18px var(--font-body);
  word-break: break-all;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.panel-tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cyan-dim);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
}

.copy-message {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 12px;
  color: #93d3a3;
}

/* Metrics */
.metrics {
  position: relative;
  z-index: 3;
  margin-top: -48px;
  padding-bottom: 24px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 31, 44, .96), rgba(10, 20, 30, .96));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.metric-card strong {
  display: block;
  font: 700 36px var(--font-display);
  color: #fff;
  line-height: 1;
}

.metric-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.metrics-updated {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-lead {
  margin: 16px 0 0;
  color: #526060;
  font-size: 17px;
  line-height: 1.75;
}

.section-lead-light {
  color: var(--text-muted);
}

.about {
  background: linear-gradient(180deg, #edf2f0 0%, #e4ebe8 100%);
  color: var(--ink);
}

.cards-grid {
  display: grid;
  gap: 20px;
}

.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }

.glass-card,
.rule-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(22, 104, 133, .12);
  box-shadow: 0 12px 40px rgba(11, 22, 32, .06);
  transition: transform .2s, box-shadow .2s;
}

.glass-card:hover,
.rule-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(11, 22, 32, .1);
}

.card-index {
  display: block;
  margin-bottom: 18px;
  font: 600 28px var(--font-display);
  color: var(--gold);
}

.glass-card p,
.rule-card p {
  margin: 12px 0 0;
  color: #4d5859;
  font-size: 14px;
  line-height: 1.7;
}

.settings {
  background:
    radial-gradient(circle at 80% 20%, rgba(78, 212, 220, .08), transparent 40%),
    linear-gradient(180deg, var(--deep) 0%, var(--ink) 100%);
}

.settings-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.settings .eyebrow,
.connect .eyebrow { color: var(--cyan); }

.settings h2,
.connect h2 {
  color: #fff;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.setting-chip {
  padding: 20px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  text-align: center;
}

.setting-chip span {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.setting-chip strong {
  font: 700 28px var(--font-display);
  color: #fff;
}

.media {
  background: #e8ecea;
  color: var(--ink);
}

.media-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 20px;
  align-items: start;
}

.media-frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(22, 104, 133, .15);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(11, 22, 32, .12);
}

.media-frame figcaption {
  padding: 12px 16px;
  background: var(--panel);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.media-frame-banner {
  align-self: center;
  border-color: rgba(233, 189, 102, .35);
}

.connect {
  background:
    radial-gradient(circle at 20% 80%, rgba(233, 189, 102, .06), transparent 35%),
    linear-gradient(180deg, #0f2430 0%, #081018 100%);
}

.connect-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.connect-steps {
  margin: 28px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.connect-steps li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.connect-steps strong { color: var(--gold); }

.connect-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.connect-panel .btn { width: fit-content; margin-top: 8px; }

.rules {
  background: #edf2f0;
  color: var(--ink);
}

/* Footer */
.site-footer {
  padding: 28px 0 36px;
  background: #04080d;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-link {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.footer-link:hover { color: #fff; }

.brand-footer .brand-text { color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }

  .hero-grid,
  .settings-layout,
  .connect-layout,
  .media-grid,
  .cards-grid-3,
  .metrics-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 64px;
  }

  .hero-grid {
    min-height: auto;
    gap: 32px;
  }

  .metrics { margin-top: 0; }

  .section { padding: 72px 0; }

  .settings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1180px); }

  .nav { min-height: 64px; }

  .hero { padding-top: 88px; }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .metrics-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
