:root {
  --bg-1: #020b18;
  --bg-2: #031225;
  --panel: rgba(5, 18, 38, 0.92);
  --panel-soft: rgba(12, 29, 53, 0.9);
  --panel-strong: rgba(18, 39, 67, 0.98);
  --border: rgba(120, 180, 255, 0.18);
  --border-strong: rgba(120, 180, 255, 0.28);
  --text: #eef6ff;
  --muted: #9fb5cf;
  --accent: #88d8ff;
  --accent-2: #6fc7ff;
  --accent-3: #c9f2ff;
  --chip: rgba(31, 58, 90, 0.82);
  --shadow: 0 14px 42px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar-w: 250px;
  --content-w: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 110, 255, 0.12), transparent 24%),
    radial-gradient(circle at 82% 48%, rgba(100, 200, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #031326 0%, #02101f 40%, #010b17 100%);
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.snow span {
  position: absolute;
  top: -10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(221, 242, 255, 0.78);
  box-shadow: 0 0 10px rgba(160, 220, 255, 0.22);
  animation: snowFall linear infinite;
}

@keyframes snowFall {
  from {
    transform: translateY(-20px);
    opacity: 0.9;
  }
  to {
    transform: translateY(110vh);
    opacity: 0.25;
  }
}

.mobile-sidebar-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1300;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(7, 20, 40, 0.9);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.mobile-sidebar-toggle .bars {
  display: inline-grid;
  gap: 4px;
}

.mobile-sidebar-toggle .bars span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(1, 8, 18, 0.64);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

.network-return {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1300;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(144, 214, 255, 0.24);
  background: linear-gradient(180deg, rgba(10, 31, 56, 0.92), rgba(5, 19, 36, 0.96));
  color: #eff9ff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.network-return::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #82deff;
  box-shadow: 0 0 16px rgba(130, 222, 255, 0.55);
}

.network-return:hover {
  transform: translateY(-1px);
  border-color: rgba(173, 236, 255, 0.42);
  filter: brightness(1.04);
}

.layout {
  position: relative;
  z-index: 1;
  padding: 34px 24px 48px;
}

.shell {
  width: min(calc(var(--sidebar-w) + var(--content-w) + 42px), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 28px;
  padding: 22px 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(4, 17, 36, 0.95), rgba(2, 12, 28, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.brand {
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(150, 200, 255, 0.12);
}

.brand h1 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.nav-group + .nav-group {
  margin-top: 18px;
}

.nav-label {
  margin: 0 0 10px;
  color: #a5bdd8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.sidebar a {
  display: block;
  padding: 11px 12px;
  border-radius: 13px;
  color: #e7f2ff;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  border: 1px solid transparent;
}

.sidebar a:hover {
  background: rgba(42, 68, 102, 0.4);
  border-color: rgba(135, 190, 255, 0.12);
  transform: translateX(2px);
}

.sidebar a.active {
  background: linear-gradient(180deg, rgba(47, 77, 108, 0.82), rgba(37, 64, 92, 0.82));
  border-color: rgba(129, 188, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(164, 215, 255, 0.05);
}

.page {
  min-width: 0;
}

.hero {
  padding: 30px 30px 24px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.07), transparent 30%),
    linear-gradient(90deg, rgba(33, 58, 86, 0.95) 0%, rgba(10, 27, 50, 0.96) 62%, rgba(2, 15, 33, 0.98) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  font-weight: 800;
}

.hero h2 {
  margin: 0 0 14px;
  max-width: 900px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.hero p {
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.hero-copy,
.hero-side {
  min-width: 0;
}

.hero-side {
  display: grid;
  gap: 14px;
}

.hero-panel {
  padding: 16px;
  border: 1px solid rgba(120, 180, 255, 0.16);
  border-radius: 18px;
  background: rgba(20, 42, 67, 0.72);
}

.top-links,
.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip,
.pay-button,
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
}

.chip {
  background: var(--chip);
  border: 1px solid rgba(120, 180, 255, 0.2);
  color: #e6f2ff;
}

.pay-button {
  background: linear-gradient(180deg, #9be5ff 0%, #7fd4ff 100%);
  color: #06203a;
  border: 1px solid rgba(200, 245, 255, 0.45);
  box-shadow: 0 10px 24px rgba(85, 200, 255, 0.18);
}

.chip:hover,
.pay-button:hover,
.back-to-top:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.content {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.section {
  scroll-margin-top: 24px;
  padding: 20px 20px 22px;
  border: 1px solid rgba(115, 175, 245, 0.15);
  border-radius: 24px;
  background: rgba(3, 15, 32, 0.9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.section h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 850;
}

.section p {
  margin: 0;
  color: #d8e6f6;
  line-height: 1.65;
  font-size: 15px;
}

.section p + p,
.section ul + p,
.section p + ul {
  margin-top: 12px;
}

.section ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.65;
  color: #dce9f8;
}

.section ul.tight li + li {
  margin-top: 4px;
}

.features-grid,
.cards-grid,
.tier-grid,
.stat-grid {
  display: grid;
  gap: 14px;
}

.features-grid,
.cards-grid,
.tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card,
.tier-card,
.stat {
  min-width: 0;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(120, 180, 255, 0.16);
  background: linear-gradient(180deg, rgba(16, 35, 59, 0.94), rgba(9, 24, 44, 0.96));
}

.card h4,
.tier-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.tier-price {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(120, 180, 255, 0.15);
  border-radius: 16px;
}

.compare-table th,
.compare-table td {
  padding: 14px 12px;
  text-align: left;
  border-right: 1px solid rgba(120, 180, 255, 0.1);
  border-bottom: 1px solid rgba(120, 180, 255, 0.1);
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-right: none;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table th {
  background: rgba(22, 42, 68, 0.92);
  font-weight: 800;
}

.compare-table td {
  background: rgba(7, 21, 41, 0.9);
  color: #e7f1fd;
}

.collapsible + .collapsible {
  margin-top: 12px;
}

.collapsible {
  border: 1px solid rgba(120, 180, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 22, 42, 0.92);
}

.collapse-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(21, 43, 69, 0.72);
  color: #edf7ff;
  border: none;
  cursor: pointer;
  text-align: left;
}

.collapse-title {
  font-weight: 800;
  flex: 1;
  min-width: 0;
}

.price {
  color: var(--accent);
  font-weight: 900;
}

.collapse-icon {
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.collapsible.open .collapse-icon {
  transform: rotate(45deg);
}

.collapse-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.collapse-inner {
  padding: 0 18px 16px;
}

.collapsible.open .collapse-content {
  max-height: 420px;
}

.footer {
  padding: 18px 4px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 1000;
  background: rgba(20, 39, 63, 0.88);
  border: 1px solid rgba(120, 180, 255, 0.16);
  color: #edf7ff;
  box-shadow: var(--shadow);
}

code {
  background: rgba(173, 216, 255, 0.1);
  padding: 2px 6px;
  border-radius: 8px;
  color: #dff8ff;
}

@media (max-width: 1080px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: min(320px, 88vw);
    border-radius: 0 24px 24px 0;
    transform: translateX(-104%);
    transition: transform 0.25s ease;
    z-index: 1200;
    padding-top: 72px;
    overflow-y: auto;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-sidebar-toggle {
    display: inline-flex;
  }

  .network-return {
    right: 14px;
    top: 72px;
  }

  .layout {
    padding-top: 74px;
  }
}

@media (max-width: 900px) {
  .hero,
  .section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-grid,
  .features-grid,
  .cards-grid,
  .tier-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .network-return {
    left: 14px;
    right: 14px;
    top: 70px;
    justify-content: center;
    min-height: 42px;
  }

  .hero {
    padding: 24px 22px 20px;
    border-radius: 24px;
  }

  .section {
    padding: 18px 16px 20px;
    border-radius: 20px;
  }

  .hero h2 {
    font-size: clamp(31px, 11vw, 48px);
  }

  .pay-actions,
  .top-links {
    flex-direction: column;
  }

  .chip,
  .pay-button {
    width: 100%;
  }
}
