:root {
  --bg: #080914;
  --panel: #111429;
  --panel-strong: #181d39;
  --text: #f4f7ff;
  --muted: #b8c0dc;
  --line: rgba(255, 255, 255, 0.14);
  --violet: #8b5cf6;
  --blue: #38bdf8;
  --pink: #f472b6;
  --green: #7dd3fc;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(8, 9, 20, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.nav-button,
.primary-button,
.secondary-button,
.product-footer button,
.payment-grid a,
.admin-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-button,
.primary-button,
.product-footer button,
.admin-panel button {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.22);
}

.secondary-button,
.payment-grid a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 92vh;
  padding: 126px clamp(20px, 6vw, 84px) 58px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 20, 0.98) 0%, rgba(8, 9, 20, 0.76) 42%, rgba(8, 9, 20, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 9, 20, 0.95) 0%, rgba(8, 9, 20, 0.1) 34%),
    url("assets/lazyland-hero.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(60px, 12vw, 136px);
  line-height: 0.88;
  font-weight: 800;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-copy {
  max-width: 590px;
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.55;
}

.hero-actions,
.server-strip,
.product-footer,
.site-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.server-strip {
  width: min(100%, 560px);
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 20, 41, 0.72);
  box-shadow: var(--shadow);
}

.server-strip span {
  color: var(--blue);
  font-weight: 800;
}

.server-strip strong {
  font-size: 20px;
}

.server-strip small {
  color: var(--muted);
}

.section {
  padding: 86px clamp(20px, 6vw, 84px);
}

.page-hero {
  padding: 142px clamp(20px, 6vw, 84px) 58px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(56, 189, 248, 0.08)),
    rgba(255, 255, 255, 0.02);
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.95;
}

.page-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 23px);
  line-height: 1.55;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading p,
.feature-grid p,
.rule-card li,
.payment-grid p,
.product-card p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-grid,
.quick-grid,
.product-grid,
.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.quick-card,
.product-card,
.payment-grid article,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 29, 57, 0.92), rgba(17, 20, 41, 0.82));
  box-shadow: var(--shadow);
}

.feature-grid article,
.quick-card,
.payment-grid article {
  padding: 24px;
}

.quick-card {
  min-height: 250px;
}

.quick-card p {
  color: var(--muted);
  line-height: 1.65;
}

.quick-card a {
  display: inline-flex;
  margin-top: 10px;
  color: #d9e8ff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.community-section {
  background: radial-gradient(circle at 12% 0%, rgba(139, 92, 246, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.02);
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.status-card,
.discord-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 29, 57, 0.92), rgba(17, 20, 41, 0.82));
  box-shadow: var(--shadow);
}

.status-card {
  padding: 24px;
}

.discord-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 24px;
}

.status-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 14px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(56, 189, 248, 0.1);
  color: #d9f3ff;
  font-size: 13px;
  font-weight: 800;
}

.status-pill[data-state="online"] {
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(74, 222, 128, 0.12);
  color: #bbf7d0;
}

.status-pill[data-state="offline"] {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.status-pill[data-state="loading"] {
  color: var(--muted);
}

.icon-button,
.discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.icon-button {
  background: rgba(255, 255, 255, 0.08);
}

.discord-button {
  margin-top: auto;
  background: linear-gradient(135deg, #5865f2, var(--violet));
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.24);
}

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

.status-numbers div {
  min-height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.status-numbers span {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1;
  font-weight: 800;
}

.status-numbers small,
.status-message,
.discord-card p {
  color: var(--muted);
  line-height: 1.65;
}

.status-message {
  min-height: 28px;
  margin-bottom: 0;
}

.join-section,
.info-section,
.shop-section {
  background: linear-gradient(180deg, rgba(18, 22, 45, 0.74), rgba(8, 9, 20, 0));
}

.steps {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.steps span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.17);
  color: var(--blue);
  font-weight: 800;
}

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

.join-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 24px;
  box-shadow: var(--shadow);
}

.join-card p,
.mini-steps li {
  color: var(--muted);
  line-height: 1.65;
}

.join-card a {
  color: #d9e8ff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.version-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.version-list span {
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(56, 189, 248, 0.1);
  color: #d9e8ff;
  font-weight: 800;
}

.current-version {
  margin-bottom: 0;
}

.mini-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.join-ip {
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(56, 189, 248, 0.09)),
    rgba(255, 255, 255, 0.055);
}

.join-ip > strong {
  display: block;
  margin: 14px 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

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

.rule-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 22px;
}

.rule-card.wide {
  grid-column: 1 / -1;
}

.rule-card h3 {
  margin-bottom: 14px;
}

.rule-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-card li {
  overflow-wrap: anywhere;
}

.rule-card strong {
  color: var(--blue);
}

.rules-link {
  display: inline-flex;
  margin-top: 18px;
  color: #d9e8ff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 24px;
}

.product-card.featured {
  border-color: rgba(56, 189, 248, 0.58);
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.18), rgba(17, 20, 41, 0.9)),
    var(--panel);
}

.badge {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(244, 114, 182, 0.16);
  color: #ffd7ea;
  font-size: 13px;
  font-weight: 800;
}

.product-footer {
  justify-content: space-between;
  margin-top: 24px;
}

.product-footer strong {
  font-size: 26px;
}

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

.payment-grid a {
  margin-top: 10px;
}

.checkout-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 4, 12, 0.72);
  backdrop-filter: blur(16px);
}

.checkout-modal[hidden] {
  display: none;
}

.checkout-card {
  position: relative;
  width: min(100%, 560px);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 29, 57, 0.98), rgba(10, 12, 27, 0.98)),
    var(--panel);
  padding: 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.checkout-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.checkout-card h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 5vw, 42px);
}

.checkout-copy,
.checkout-status {
  color: var(--muted);
  line-height: 1.6;
}

.checkout-label {
  display: grid;
  gap: 10px;
  margin: 22px 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.checkout-label input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  background: rgba(8, 9, 20, 0.82);
  color: var(--text);
  padding: 0 15px;
  font: inherit;
}

.checkout-label input:focus {
  outline: 2px solid rgba(56, 189, 248, 0.42);
  outline-offset: 2px;
}

.checkout-methods {
  display: grid;
  gap: 12px;
}

.checkout-methods button {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}

.checkout-methods button:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.1);
}

.checkout-methods button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.checkout-methods span {
  font-weight: 800;
}

.checkout-methods small {
  color: var(--muted);
  line-height: 1.45;
}

.checkout-status {
  min-height: 26px;
  margin: 16px 0 0;
}

.checkout-status[data-type="error"] {
  color: #fecdd3;
}

.checkout-status[data-type="loading"] {
  color: #d9e8ff;
}

.admin-panel,
.rcon-test {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 960px;
  padding: 24px;
}

.admin-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.admin-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 9, 20, 0.7);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.admin-panel button {
  align-self: end;
}

.rcon-test {
  margin-top: 18px;
}

.rcon-test p,
.rcon-test-status {
  color: var(--muted);
  line-height: 1.65;
}

.rcon-test-controls {
  display: grid;
  gap: 12px;
}

.rcon-test label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.rcon-test input,
.rcon-test select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 9, 20, 0.7);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.rcon-test button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.rcon-test-status {
  grid-column: 1 / -1;
  min-height: 26px;
  margin: 0;
}

.rcon-test-status[data-type="error"] {
  color: #fecdd3;
}

.rcon-test-status[data-type="success"] {
  color: #bbf7d0;
}

.site-footer {
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 880px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(8, 9, 20, 0.72), rgba(8, 9, 20, 0.98)),
      url("assets/lazyland-hero.png") center / cover no-repeat;
  }

  .feature-grid,
  .quick-grid,
  .community-grid,
  .join-grid,
  .product-grid,
  .payment-grid,
  .rules-grid,
  .admin-panel {
    grid-template-columns: 1fr;
  }

  .nav-button {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-actions a,
  .hero-actions button,
  .product-footer button,
  .admin-panel button {
    width: 100%;
  }

  .product-footer {
    align-items: stretch;
  }

  .status-card-header,
  .status-numbers {
    grid-template-columns: 1fr;
  }

  .status-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .icon-button,
  .discord-button {
    width: 100%;
  }
}
