:root {
  --bg: #f1f3f1;
  --surface: #ffffff;
  --surface-soft: #e8efe8;
  --text: #172117;
  --muted: #657065;
  --green-900: #0b5f16;
  --green-800: #0c7318;
  --green-700: #168325;
  --green-500: #56bc5c;
  --green-300: #98d49c;
  --accent: #ff7a2e;
  --accent-dark: #df5d13;
  --discord: #5865f2;
  --border: rgba(23, 33, 23, 0.11);
  --shadow: 0 16px 45px rgba(17, 55, 21, 0.10);
  --shadow-hover: 0 22px 55px rgba(17, 55, 21, 0.16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid #ffb11b;
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 800;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ===== HEADER ===== */
.site-header {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  isolation: isolate;
}
 
.site-header__top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-right: clamp(12px, 3vw, 44px);
}

.site-header__brand { display: inline-flex; flex: 0 0 auto; }
.site-header__brand-box {
  width: 156px;
  height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 20px;
  color: #fff;
  background: var(--green-900);
  border-bottom-right-radius: 96px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.site-header__brand-small {
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1;
}
.site-header__brand-large {
  font-size: 48px;
  font-weight: 950;
  line-height: .92;
}

.site-header__nav { margin-left: auto; }
.site-header__nav-list {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header__nav-link {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 0 0 16px 16px;
  color: #fff;
  background: rgba(8, 71, 16, .78);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease;
}
.site-header__nav-link:hover { transform: translateY(3px); background: var(--green-900); }
.site-header__nav-link--active { background: var(--green-900); }

.mobile-menu { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 390px;
  padding-top: 150px;
}
.hero__waves {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  width: 100%;
  height: 280px;
  transform: scaleY(-1);
  transform-origin: center;
}
.hero__wave--dark { fill: var(--green-900); }
.hero__wave--mid { fill: var(--green-500); }
.hero__wave--light { fill: var(--green-300); }

.hero__content {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 44px 0 62px;
}
.hero__eyebrow {
  margin: 0 0 10px;
  color: var(--green-800);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero__title {
  margin: 0;
  max-width: 19ch;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.hero__subtitle {
  max-width: 680px;
  margin: 16px auto 24px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.hero__server-box {
  display: inline-flex;
  min-width: min(100%, 330px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 24px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), #f2a66f);
  box-shadow: var(--shadow);
}
.hero__server-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .92;
}
.hero__server-ip { font-size: clamp(18px, 2vw, 26px); font-weight: 900; }

/* ===== GLOBAL SECTIONS ===== */
.section { padding: 68px 0; }
.section--tight { padding: 46px 0; }
.section--surface { background: var(--surface); }
.section-heading { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-heading__kicker {
  margin: 0 0 8px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-heading__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.section-heading__text { margin: 14px auto 0; color: var(--muted); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { color: #fff; background: var(--green-800); box-shadow: 0 10px 24px rgba(12,115,24,.22); }
.button--accent { color: #fff; background: linear-gradient(120deg, var(--accent), #f39a61); box-shadow: 0 10px 24px rgba(230,102,32,.23); }
.button--discord { color: #fff; background: var(--discord); box-shadow: 0 10px 24px rgba(88,101,242,.25); }
.button--ghost { border: 1px solid var(--border); background: #fff; color: var(--green-900); }
.button--wallet {
  color: #fff;
  border: 1px solid #149326;
  background: linear-gradient(135deg, #45c457, var(--green-700));
  box-shadow: 0 10px 24px rgba(22, 131, 37, .28);
}
.button--wallet:hover {
  background: linear-gradient(135deg, #38b84b, var(--green-800));
  box-shadow: 0 14px 30px rgba(22, 131, 37, .34);
}
.button--full { width: 100%; }

/* ===== HOME ===== */
.about-section { padding: 40px 0 70px; }
.about-section__list { display: grid; gap: 18px; }
.about-section__item {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(17,55,21,.05);
}
.about-section__title { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); line-height: 1.16; }
.about-section__text { margin: 0; color: #445044; }
ul.about-section__text { padding-left: 22px; }
ul.about-section__text li + li { margin-top: 8px; }

.mode-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.mode-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #fff, #f3f7f3);
  box-shadow: 0 8px 24px rgba(17,55,21,.06);
}
.mode-card__icon { font-size: 34px; }
.mode-card h3 { margin: 12px 0 8px; font-size: 20px; }
.mode-card p { margin: 0; color: var(--muted); font-size: 14px; }

.community {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  color: #fff;
  background: linear-gradient(135deg, #2030a5, var(--discord));
}
.community__content { position: relative; z-index: 2; text-align: center; }
.community__title { margin: 0; font-size: clamp(30px, 5vw, 52px); line-height: 1.05; }
.community__text { max-width: 600px; margin: 16px auto 24px; color: rgba(255,255,255,.85); }
.community__decor {
  position: absolute;
  width: 92px;
  opacity: .16;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.15));
}
.community__decor--1 { top: 12%; left: 5%; transform: rotate(-14deg); }
.community__decor--2 { bottom: 10%; left: 20%; transform: rotate(12deg) scale(.75); }
.community__decor--3 { top: 20%; right: 10%; transform: rotate(18deg) scale(.9); }
.community__decor--4 { bottom: 4%; right: 26%; transform: rotate(-10deg) scale(.65); }
.community__decor--5 { top: 44%; left: 47%; transform: rotate(8deg) scale(.55); }

/* ===== WALLET ===== */
.wallet-intro { padding: 36px 0 24px; }
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.wallet-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 24px 20px 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wallet-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.wallet-card--featured { border: 2px solid var(--green-500); }
.wallet-card__badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green-900);
  background: #dff4e1;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.wallet-card__value { margin: 0; font-size: 34px; line-height: 1; font-weight: 950; color: var(--green-900); }
.wallet-card__caption { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.wallet-card__price { margin: 26px 0 2px; font-size: 27px; font-weight: 950; }
.wallet-card__saving { min-height: 44px; margin: 0 0 18px; color: var(--green-700); font-size: 13px; font-weight: 800; }
.wallet-card .button { margin-top: auto; }
.wallet-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--green-500);
  border-radius: 10px;
  background: #eaf5eb;
  color: #385039;
}

/* ===== PAYMENT / DISCORD ===== */
.checkout-wrap {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 20px;
  padding: 34px 0 72px;
}
.checkout-card, .discord-card {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.checkout-card__amount { margin: 8px 0; color: var(--green-900); font-size: clamp(40px, 6vw, 64px); line-height: 1; font-weight: 950; }
.checkout-card__price { margin: 0; color: var(--muted); font-size: 18px; }
.checkout-card__price strong { color: var(--text); }
.discord-card { color: #fff; background: linear-gradient(145deg, #4e59d8, #6772ff); border: 0; }
.discord-card h2 { margin-top: 0; font-size: 30px; }
.discord-card p { color: rgba(255,255,255,.88); }
.discord-placeholder {
  display: block;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px dashed rgba(255,255,255,.55);
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  font-weight: 900;
  text-align: center;
  word-break: break-word;
}
.checkout-steps { margin: 18px 0 0; padding-left: 20px; }
.checkout-steps li + li { margin-top: 8px; }

/* ===== OWNERS ===== */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.team-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: 0 8px 24px rgba(17,55,21,.06); }
.team-card__role { display: inline-block; margin-bottom: 10px; color: var(--green-700); font-size: 12px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.team-card h3 { margin: 0 0 8px; font-size: 22px; }
.team-card p { margin: 0; color: var(--muted); }

/* ===== RULES ===== */
.rules-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 34px 0 72px;
}
.rules-toc {
  position: sticky;
  top: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}
.rules-toc h2 { margin: 0 0 10px; font-size: 16px; }
.rules-toc ol { margin: 0; padding-left: 20px; }
.rules-toc li + li { margin-top: 5px; }
.rules-toc a { color: var(--green-800); font-size: 13px; font-weight: 800; }
.rules-content { display: grid; gap: 14px; }
.rule-card { scroll-margin-top: 20px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: 0 8px 26px rgba(17,55,21,.05); }
.rule-card h2 { margin: 0 0 12px; font-size: clamp(21px, 3vw, 28px); }
.rule-card ul { margin: 0; padding-left: 22px; color: #445044; }
.rule-card li + li { margin-top: 8px; }

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 70px 0 160px;
  color: #fff;
  background: #102410;
}
.site-footer__content { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(210px, .5fr); gap: 50px; position: relative; z-index: 2; }
.site-footer__brand-group { display: flex; gap: 24px; align-items: flex-start; }
.site-footer__logo { flex: 0 0 auto; }
.site-footer__logo-inner { width: 118px; height: 96px; display: flex; flex-direction: column; justify-content: center; padding-left: 15px; border-radius: 16px 55px 55px 16px; background: var(--green-800); }
.site-footer__logo-small { font-size: 14px; font-weight: 950; letter-spacing: .08em; }
.site-footer__logo-large { font-size: 34px; font-weight: 950; line-height: .9; }
.site-footer__heading { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); }
.site-footer__heading-muted { color: var(--green-300); }
.site-footer__description, .site-footer__copyright { max-width: 650px; margin: 6px 0; color: rgba(255,255,255,.67); font-size: 14px; }
.site-footer__nav-title { margin: 0 0 12px; font-size: 16px; }
.site-footer__nav-list { margin: 0; padding: 0; list-style: none; }
.site-footer__nav-list li + li { margin-top: 8px; }
.site-footer__nav-link { color: rgba(255,255,255,.76); font-weight: 700; }
.site-footer__nav-link:hover { color: #fff; }
.site-footer__waves { position: absolute; inset: auto 0 0; width: 100%; height: 130px; }
.site-footer__wave--light { fill: var(--green-300); }
.site-footer__wave--mid { fill: var(--green-500); }
.site-footer__wave--dark { fill: var(--green-800); }

.line { width: 100%; height: 1px; background: var(--border); }

/* ===== TABLET ===== */
@media (max-width: 980px) {
  .site-header__nav-link { padding-inline: 12px; font-size: 12px; }
  .mode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wallet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-card:last-child { grid-column: 1 / -1; max-width: 560px; width: 100%; justify-self: center; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules-layout { grid-template-columns: 1fr; }
  .rules-toc { position: static; }
  .rules-toc ol { columns: 2; column-gap: 28px; }
}

/* ===== MOBILE ===== */
@media (max-width: 760px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .site-header { min-height: 360px; }
  .site-header__top { padding-right: 12px; align-items: flex-start; }
  .site-header__brand-box { width: 112px; height: 88px; padding-left: 14px; border-bottom-right-radius: 60px; }
  .site-header__brand-small { font-size: 13px; }
  .site-header__brand-large { font-size: 34px; }
  .site-header__nav { display: none; }

  .mobile-menu { display: block; position: relative; margin-top: 10px; }
  .mobile-menu summary {
    display: inline-flex;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: var(--green-900);
    cursor: pointer;
    list-style: none;
    font-size: 24px;
    font-weight: 900;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] summary { border-radius: 14px 14px 0 0; }
  .mobile-menu__panel {
    position: absolute;
    top: 48px;
    right: 0;
    width: min(82vw, 290px);
    padding: 8px;
    border-radius: 14px 0 14px 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,.2);
  }
  .mobile-menu__panel a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--text); font-weight: 850; }
  .mobile-menu__panel a:hover { background: var(--surface-soft); }
  .mobile-menu__panel a[aria-current="page"] { color: #fff; background: var(--green-800); }

  .hero { min-height: 360px; padding-top: 110px; }
  .hero__waves { height: 210px; }
  .hero__content { padding: 58px 0 38px; }
  .hero__title { font-size: clamp(31px, 10vw, 44px); }
  .hero__subtitle { margin-top: 12px; }
  .hero__server-box { min-width: 0; width: 100%; max-width: 340px; }

  .section { padding: 52px 0; }
  .about-section { padding: 26px 0 52px; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .mode-card { min-height: 180px; }
  .community { padding: 62px 0; }
  .community__decor { width: 68px; }

  .wallet-grid { grid-template-columns: 1fr; }
  .wallet-card, .wallet-card:last-child { grid-column: auto; max-width: none; min-height: 0; }
  .wallet-card__saving { min-height: 0; }

  .checkout-wrap { grid-template-columns: 1fr; padding-top: 22px; }
  .team-grid { grid-template-columns: 1fr; }
  .rules-toc ol { columns: 1; }

  .site-footer { padding: 58px 0 135px; }
  .site-footer__content { grid-template-columns: 1fr; gap: 34px; }
  .site-footer__brand-group { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { width: min(calc(100% - 20px), var(--container)); }
  .hero__content { padding-top: 64px; }
  .hero__title { font-size: 31px; }
  .hero__actions { width: 100%; }
  .hero__actions .button { width: 100%; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 0; }
  .section-heading { margin-bottom: 26px; }
  .about-section__item, .rule-card { border-radius: 16px; }
  .checkout-card, .discord-card { border-radius: 20px; }
  .site-footer__logo-inner { width: 110px; height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
