:root {
  --black: #050403;
  --panel: rgba(7, 6, 4, .58);
  --gold: #f4d383;
  --gold-soft: #ffe7a8;
  --line: rgba(244, 211, 131, .34);
  --text: #fff4cf;
  --muted: rgba(255, 244, 207, .72);
}

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

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

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

.page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.32) 34%, rgba(0,0,0,.64) 100%),
    url("../images/background.webp") center 45% / cover no-repeat;
}

.page::before {
  display: none;
}

.site-header,
.main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(18, 15, 11, .97), rgba(8, 7, 5, .94));
  border-bottom: 1px solid rgba(244, 211, 131, .22);
  box-shadow: 0 12px 34px rgba(0,0,0,.38);
}

.brand {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.brand-logo {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.brand-mark {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.divider {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(244,211,131,.48), transparent);
}

.main {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 36px 0 28px;
}

.content {
  width: 100%;
  text-align: center;
}

h1 {
  margin: 0 auto 24px;
  max-width: 650px;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.22;
  letter-spacing: .04em;
  color: #fff0b8;
  text-shadow: 0 8px 30px rgba(0,0,0,.78), 0 0 26px rgba(244, 211, 131, .16);
  transform: translateY(-32px);
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(430px, 100%);
  min-height: 74px;
  padding: 0 36px;
  border: 1px solid rgba(255, 241, 187, .82);
  border-radius: 16px;
  overflow: hidden;
  color: #2a1905;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(168deg, #fff0c4 0%, #f3cb6c 52%, #d49b36 100%);
  box-shadow:
    0 12px 30px -18px rgba(0,0,0,.64),
    0 10px 34px -18px rgba(244,211,131,.42),
    inset 0 1px 0 rgba(255,255,255,.72),
    inset 0 -9px 16px -14px rgba(150,95,20,.5);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 4px 10px auto;
  height: 28%;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0));
  pointer-events: none;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 241, 187, .96);
  box-shadow:
    0 16px 38px -18px rgba(0,0,0,.64),
    0 12px 40px -16px rgba(244,211,131,.5),
    inset 0 1px 0 rgba(255,255,255,.78),
    inset 0 -9px 16px -14px rgba(150,95,20,.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary .btn-text {
  position: relative;
  z-index: 1;
}

.primary-spinner {
  position: relative;
  z-index: 1;
  display: none;
  width: 22px;
  height: 22px;
  margin-right: 12px;
  border-radius: 50%;
  border: 3px solid rgba(42, 25, 5, .18);
  border-top-color: rgba(42, 25, 5, .82);
  animation: btn-spin .72s linear infinite;
}

.btn-primary.is-loading {
  transform: translateY(0);
  color: #241401;
  border-color: rgba(255, 241, 187, .94);
  background: linear-gradient(168deg, #fff6d6 0%, #f5d47b 52%, #dca33d 100%);
  box-shadow:
    0 14px 36px -20px rgba(0,0,0,.62),
    0 12px 42px -18px rgba(244,211,131,.46),
    inset 0 1px 0 rgba(255,255,255,.82),
    inset 0 -8px 15px -14px rgba(150,95,20,.42);
  text-shadow: 0 1px 0 rgba(255,255,255,.28);
  filter: none;
  pointer-events: none;
}

.btn-primary.is-loading .primary-spinner {
  display: inline-block;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 26px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.section-title::before,
.section-title::after {
  content: "";
  width: 92px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.section-title::after {
  background: linear-gradient(90deg, var(--line), transparent);
}

.link-grid {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.btn-secondary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(8, 7, 5, .62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
}

.btn-secondary:hover {
  border-color: rgba(255, 231, 168, .8);
  background: rgba(13, 11, 7, .76);
  transform: translateY(-1px);
}

.btn-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 84px;
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 231, 168, .3);
  border-top-color: var(--gold-soft);
  animation: btn-spin .72s linear infinite;
}

.btn-secondary.is-loading {
  border-color: rgba(255, 231, 168, .92);
  background: rgba(244, 211, 131, .15);
  pointer-events: none;
}

.btn-secondary.is-loading .spinner {
  display: inline-block;
}

.btn-primary.is-muted,
.btn-secondary.is-muted {
  opacity: .48;
  pointer-events: none;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.indicator {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #31d36b;
  box-shadow: 0 0 14px currentColor;
}

.site-footer {
  width: min(1320px, calc(100% - 40px));
  min-height: 86px;
  margin: 0 auto 28px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 28px rgba(245, 211, 131, .05);
}

.feature-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.feature-item {
  position: relative;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.feature-item span {
  line-height: 1.1;
}

.feature-item + .feature-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(244,211,131,.32), transparent);
}

.feature-icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(244, 211, 131, .18));
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .page {
    background:
      linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.06) 34%, rgba(0,0,0,.32) 100%),
      url("../images/background-mobile.webp") center top / cover no-repeat;
  }

  .page::before {
    display: none;
  }

  .site-header {
    min-height: 60px;
  }

  .brand {
    min-height: 60px;
    gap: 14px;
  }

  .brand-logo {
    height: 32px;
  }

  .brand-mark {
    height: 42px;
  }

  .divider {
    height: 28px;
  }

  .main {
    width: min(430px, calc(100% - 12px));
    padding: 228px 26px 10px;
    align-items: start;
  }

  h1 {
    margin: 20px auto 8px;
    font-size: clamp(30px, 8.4vw, 38px);
    line-height: 1.28;
    letter-spacing: .03em;
    transform: none;
  }

  .btn-primary {
    width: min(250px, 100%);
    min-height: 58px;
    margin-top: 10px;
    border-radius: 16px;
    font-size: 26px;
  }

  .section-title {
    margin: 35px 0 12px;
    font-size: 14px;
  }

  .section-title::before,
  .section-title::after {
    width: 54px;
  }

  .link-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn-secondary {
    min-height: 46px;
    padding: 0 14px 0 16px;
    border-radius: 12px;
    background: rgba(8, 7, 5, .66);
  }

  .btn-label {
    font-size: 16px;
  }

  .btn-action {
    min-width: 82px;
    font-size: 13px;
  }

  .site-footer {
    width: min(430px, calc(100% - 12px));
    min-height: 0;
    margin: 20px auto 6px;
    padding: 12px 10px;
    border: 0;
    border-top: 1px solid rgba(244, 211, 131, .34);
    border-radius: 0;
    background: rgba(0,0,0,.42);
    box-shadow: none;
  }

  .feature-item {
    min-height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
  }

  .feature-item + .feature-item::before {
    display: none;
  }

  .feature-icon {
    width: 24px;
    height: 24px;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
