:root {
  --page-bg-image: url("assets/background.png");
  --page-bg-darkness: 0.24;
  --page-bg-blur: 0px;
  --bg: #06111b;
  --panel: rgba(8, 22, 34, 0.74);
  --panel-strong: rgba(12, 31, 45, 0.9);
  --border: rgba(111, 148, 171, 0.24);
  --border-strong: rgba(230, 192, 120, 0.28);
  --accent: #1d8aa8;
  --accent-bright: #55c4d8;
  --gold: #b88a43;
  --gold-bright: #e6c078;
  --text: #edf5f7;
  --text-muted: #a9bec5;
  --text-dim: #6f8792;
  --green: #62d18d;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #030910; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #030910;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background-image: var(--page-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--page-bg-blur));
  transform: scale(1.04);
  transform-origin: center;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 9, 16, 0.24), rgba(3, 9, 16, 0.68)),
    linear-gradient(90deg, rgba(3, 9, 16, 0.58), rgba(3, 9, 16, var(--page-bg-darkness)) 48%, rgba(3, 9, 16, 0.62)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 96px);
}

a { color: inherit; }

.landing-shell {
  width: min(100%, 1160px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.landing-nav {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-mark-svg {
  background: transparent url("assets/sos4.svg") center / contain no-repeat;
}

.brand-copy { display: grid; gap: 4px; }
.brand-name { color: #f1d99c; font-family: Cinzel, Georgia, serif; font-size: 1rem; font-weight: 700; line-height: 1; }
.brand-stage {
  width: fit-content;
  padding: 2px 7px;
  border: 1px solid rgba(230, 192, 120, 0.34);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

.language-switch {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(111, 148, 171, 0.22);
  border-radius: 8px;
  background: rgba(8, 22, 34, 0.54);
  color: var(--text-muted);
  padding: 5px 8px 5px 10px;
  font-size: 0.76rem;
  font-weight: 800;
}

.language-switch select {
  min-height: 26px;
  border: 1px solid rgba(111, 148, 171, 0.3);
  border-radius: 6px;
  background: rgba(3, 13, 22, 0.76);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0;
  padding: 2px 24px 2px 7px;
}

.language-switch select:focus-visible {
  outline: none;
  border-color: rgba(85, 196, 216, 0.62);
  box-shadow: 0 0 0 3px rgba(85, 196, 216, 0.16);
}

.nav-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(111, 148, 171, 0.22);
  border-radius: 8px;
  background: rgba(8, 22, 34, 0.54);
  color: var(--text-muted);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--text); border-color: rgba(85, 196, 216, 0.48); outline: none; }

.hero {
  flex: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  align-items: center;
  gap: 34px;
  padding: 28px 0 8px;
}

.hero-content { max-width: 690px; }
.eyebrow { margin: 0 0 13px; color: var(--gold-bright); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1 {
  max-width: 760px;
  margin: 0;
  color: #f4fbfd;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.85rem, 4.7vw, 3.55rem);
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero-lead { max-width: 620px; margin: 20px 0 0; color: var(--text-muted); font-size: 1.02rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); outline: none; }
.btn-primary { border: 1px solid rgba(85, 196, 216, 0.62); background: linear-gradient(180deg, #1f9bb7, #116d86); color: #f6fdff; box-shadow: 0 10px 24px rgba(29, 138, 168, 0.24); }
.btn-primary:hover, .btn-primary:focus-visible { background: linear-gradient(180deg, #55c4d8, #16829b); }
.btn-secondary { border: 1px solid rgba(230, 192, 120, 0.34); background: rgba(8, 22, 34, 0.66); color: #f1d99c; }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: rgba(230, 192, 120, 0.62); background: rgba(184, 138, 67, 0.14); }

.server-panel {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(10, 25, 38, 0.92), rgba(5, 16, 27, 0.78)), rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
  padding: 18px;
}

.server-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.server-kicker { color: var(--text-dim); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.server-state {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(98, 209, 141, 0.34);
  border-radius: 999px;
  background: rgba(98, 209, 141, 0.12);
  color: #d9ffe8;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 800;
}
.server-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 0 18px; border-bottom: 1px solid rgba(111, 148, 171, 0.2); }
.server-name { color: #f6e3ae; font-family: Cinzel, Georgia, serif; font-size: 1.55rem; font-weight: 700; line-height: 1.1; }
.server-subtitle { margin-top: 6px; color: var(--text-muted); font-size: 0.88rem; }
.server-emblem { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(85, 196, 216, 0.28); border-radius: 9px; background: rgba(29, 138, 168, 0.1); font-size: 1.8rem; flex: 0 0 auto; }
.server-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.server-stats div { min-width: 0; border: 1px solid rgba(111, 148, 171, 0.18); border-radius: 8px; background: rgba(3, 13, 22, 0.42); padding: 10px; }
.server-stats dt { color: var(--text-dim); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase; }
.server-stats dd { margin: 6px 0 0; color: var(--text); font-size: 1rem; font-weight: 800; line-height: 1.15; }
.server-action {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(230, 192, 120, 0.48);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(184, 138, 67, 0.28), rgba(111, 80, 35, 0.34));
  color: #ffe7ad;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}
.server-action:hover, .server-action:focus-visible { border-color: rgba(230, 192, 120, 0.72); background: linear-gradient(180deg, rgba(230, 192, 120, 0.3), rgba(128, 93, 39, 0.38)); outline: none; }

.feature-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 20px; }
.feature-band article { min-height: 132px; border: 1px solid var(--border); border-radius: 8px; background: rgba(8, 22, 34, 0.58); padding: 15px; backdrop-filter: blur(5px); }
.feature-icon { display: block; margin-bottom: 12px; font-size: 1.25rem; }
.feature-band h2 { margin: 0; color: var(--text); font-size: 0.96rem; line-height: 1.25; }
.feature-band p { margin: 8px 0 0; color: var(--text-muted); font-size: 0.84rem; line-height: 1.5; }


.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(111, 148, 171, 0.18);
  padding: 14px 0 4px;
  color: var(--text-dim);
  font-size: 0.76rem;
}

.landing-footer-copy {
  flex: 0 0 auto;
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
}

.landing-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.landing-footer-links a:hover,
.landing-footer-links a:focus-visible {
  color: var(--gold-bright);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .landing-shell { padding: 14px; }
  .hero { min-height: auto; grid-template-columns: 1fr; align-items: start; gap: 24px; padding-top: 24px; }
  .hero-content { max-width: none; }
  .server-panel { width: 100%; }
  .feature-band { grid-template-columns: 1fr; }

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

  .landing-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .landing-nav { align-items: flex-start; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-link { min-height: 34px; padding: 7px 10px; }
  h1 { font-size: 2rem; }
  .hero-lead { font-size: 0.95rem; }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .server-panel { padding: 14px; }
  .server-stats { grid-template-columns: 1fr; }
}
