:root {
  --bg: #070a1c;
  --bg-2: #0d1230;
  --surface: #131a3d;
  --surface-2: #1a2250;
  --line: #2a3370;
  --text: #e8ecff;
  --muted: #a3adda;
  --accent: #ff6b2c;
  --accent-2: #ffb03a;
  --violet: #7b5cff;
  --cyan: #35d0ff;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --wrap: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 12% -5%, rgba(123, 92, 255, .22), transparent 60%),
    radial-gradient(800px 480px at 92% 4%, rgba(53, 208, 255, .14), transparent 60%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 28, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  transition: transform .3s ease;
}

.brand:hover {
  transform: scale(1.04);
}

.brand img {
  height: 46px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
}

.btn:hover::after {
  left: 130%;
}

.btn-ghost {
  color: var(--text);
  border: 2px solid var(--line);
  background: rgba(26, 34, 80, .5);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 10px 24px rgba(53, 208, 255, .25);
}

.btn-primary {
  color: #16060a;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border: 2px solid transparent;
  box-shadow: 0 8px 22px rgba(255, 107, 44, .35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255, 107, 44, .55);
}

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

/* ---------- banner ---------- */

.banner {
  padding: 26px 0 10px;
}

.banner-box {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 380px;
  display: flex;
  align-items: center;
}

.banner-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.banner-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7, 10, 28, .92) 0%, rgba(7, 10, 28, .75) 42%, rgba(7, 10, 28, .18) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  padding: 46px 40px;
}

.banner-badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(123, 92, 255, .2);
  border: 1px solid rgba(123, 92, 255, .55);
  color: #cbc0ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.banner-title {
  display: block;
  margin-top: 16px;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.12;
  font-weight: 800;
}

.banner-title span {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.banner-sub {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.banner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.banner-list span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(26, 34, 80, .75);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
}

.banner-cta {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 16px 44px;
  font-size: 18px;
}

.banner-note {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- sections ---------- */

.section {
  padding: 46px 0 10px;
}

.section-head {
  display: block;
  margin-bottom: 22px;
}

.section-kicker {
  display: block;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin-top: 6px;
}

/* ---------- slots ---------- */

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.slot-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.slot-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .5s ease, filter .35s ease;
}

.slot-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(255, 107, 44, .28);
}

.slot-card:hover img {
  transform: scale(1.09);
  filter: brightness(.45) saturate(1.15);
}

.slot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  background: linear-gradient(180deg, rgba(7, 10, 28, .25), rgba(7, 10, 28, .8));
  transition: opacity .35s ease;
}

.slot-card:hover .slot-overlay,
.slot-card:focus-within .slot-overlay {
  opacity: 1;
}

.slot-overlay .btn {
  transform: translateY(14px) scale(.92);
  transition: transform .35s ease, box-shadow .25s ease;
}

.slot-card:hover .slot-overlay .btn,
.slot-card:focus-within .slot-overlay .btn {
  transform: translateY(0) scale(1);
}

.slot-name {
  display: block;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

/* ---------- page content box ---------- */

.toc {
  margin: 44px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(19, 26, 61, .55));
  overflow: hidden;
}

.toc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: none;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background-color .25s ease;
}

.toc-toggle:hover {
  background: rgba(123, 92, 255, .12);
}

.toc-arrow {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(45deg);
  transition: transform .3s ease;
}

.toc-toggle[aria-expanded="true"] .toc-arrow {
  transform: rotate(-135deg);
}

.toc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.toc-body-inner {
  padding: 6px 22px 22px;
  border-top: 1px solid var(--line);
}

.toc-list {
  list-style: none;
  counter-reset: toc;
}

.toc-list li {
  border-bottom: 1px dashed rgba(42, 51, 112, .8);
}

.toc-list li:last-child {
  border-bottom: 0;
}

.toc-list a {
  display: block;
  padding: 10px 6px;
  color: var(--text);
  font-size: 15px;
  transition: color .25s ease, padding-left .25s ease;
}

.toc-list a:hover {
  color: var(--accent-2);
  padding-left: 14px;
}

.toc-list .toc-sub a {
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
}

.toc-list .toc-sub a:hover {
  padding-left: 32px;
  color: var(--accent-2);
}

/* ---------- article ---------- */

.article {
  padding: 30px 0 10px;
}

.article h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 22px;
}

.article h2 {
  font-size: clamp(23px, 2.8vw, 30px);
  font-weight: 800;
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

.article h3 {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 700;
  margin: 28px 0 12px;
  color: #ffd9a8;
}

.article p {
  margin-bottom: 16px;
  color: #d4dbff;
}

.article strong {
  color: #fff;
}

.article ol,
.article ul {
  margin: 0 0 18px 22px;
  color: #d4dbff;
}

.article li {
  margin-bottom: 8px;
}

.article hr {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 38px 0;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
  font-size: 15px;
}

.article th,
.article td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.article thead th {
  background: var(--surface-2);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.article tbody tr {
  transition: background-color .2s ease;
}

.article tbody tr:nth-child(even) {
  background: rgba(26, 34, 80, .35);
}

.article tbody tr:hover {
  background: rgba(123, 92, 255, .16);
}

.article tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- faq ---------- */

.faq {
  margin-top: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .3s ease;
}

.faq-item.is-open {
  border-color: var(--accent);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  background: none;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease;
}

.faq-q:hover {
  color: var(--accent-2);
  background: rgba(123, 92, 255, .1);
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--accent-2);
  transform: translateY(-50%);
  transition: transform .3s ease, opacity .3s ease;
}

.faq-icon::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  transform: translateY(-50%) rotate(0);
  opacity: 0;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-a p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--muted);
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 40px 0 26px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.footer-brand img {
  height: 44px;
  width: auto;
}

.footer-about {
  display: block;
  max-width: 460px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.footer-col-title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color .25s ease, transform .25s ease;
}

.footer-links a:hover {
  color: var(--accent-2);
  transform: translateX(5px);
}

.footer-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .banner-box {
    min-height: 0;
  }

  .banner-shade {
    background: linear-gradient(180deg, rgba(7, 10, 28, .72) 0%, rgba(7, 10, 28, .93) 65%);
  }

  .banner-content {
    max-width: 100%;
    padding: 34px 24px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 66px;
  }

  .brand img {
    height: 36px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .header-actions {
    gap: 8px;
  }

  .slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }

  .slot-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 10, 28, .85));
    justify-content: flex-end;
    padding-bottom: 14px;
  }

  .slot-overlay .btn {
    transform: none;
  }
}
