:root {
  --bg: #030818;
  --bg-elevated: rgba(15, 23, 42, 0.92);
  --bg-soft: #071022;
  --bg-muted: #020617;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-strong: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.45);
  --text: #e8eef9;
  --text-soft: #94a3b8;
  --border-subtle: rgba(148, 163, 184, 0.28);
  --shadow-soft: 0 18px 45px rgba(8, 15, 35, 0.95);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --mouse-x: 50;
  --mouse-y: 50;
  --scroll-progress: 0;
  --scroll-y: 0;
}

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

html {
  overflow-x: hidden;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(ellipse 100% 80% at calc(var(--mouse-x) * 1%) calc(var(--mouse-y) * 1%), rgba(59, 130, 246, 0.28) 0%, transparent 48%),
    radial-gradient(ellipse 90% 100% at calc(100% - (100 - var(--mouse-x)) * 0.35%) calc(var(--mouse-y) * 0.35% + 18%), rgba(37, 99, 235, 0.22) 0%, transparent 48%),
    radial-gradient(ellipse 85% 95% at calc(50% + (var(--mouse-x) - 50) * 0.18%) calc(72% + (var(--mouse-y) - 50) * 0.12%), rgba(14, 165, 233, 0.18) 0%, transparent 46%),
    radial-gradient(ellipse 110% 72% at calc(72% + (var(--mouse-x) - 50) * 0.22%) calc(88% - (var(--mouse-y) - 50) * 0.18%), rgba(79, 70, 229, 0.2) 0%, transparent 52%),
    radial-gradient(ellipse 75% 105% at calc(22% + (var(--mouse-x) - 50) * 0.28%) calc(58% + (var(--mouse-y) - 50) * 0.22%), rgba(56, 189, 248, 0.14) 0%, transparent 46%);
  background-size: 120% 120%;
  background-position: center;
  transform: translateY(calc(var(--scroll-y) * -0.08px)) scale(calc(1 + var(--scroll-progress) * 0.06));
  animation: bgShift 22s ease-in-out infinite;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

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

  body::before {
    animation: none;
  }
}

@keyframes bgShift {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    opacity: 0.96;
    transform: scale(0.99);
    filter: hue-rotate(-4deg);
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  --overlay-top: calc(0.18 + var(--scroll-progress) * 0.12);
  --overlay-mid: calc(0.42 + var(--scroll-progress) * 0.14);
  --overlay-bottom: calc(0.68 + var(--scroll-progress) * 0.18);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(3, 8, 24, var(--overlay-top)) 28%,
    rgba(3, 8, 24, var(--overlay-mid)) 52%,
    rgba(3, 8, 24, var(--overlay-bottom)) 78%,
    rgba(2, 4, 14, calc(0.88 + var(--scroll-progress) * 0.1)) 100%
  );
  transition: background 0.15s ease-out;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 72px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px 0;
  background: rgba(3, 8, 24, 0.92);
  border-bottom: 1px solid rgba(96, 165, 250, 0.14);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.site-header__logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
}

.back-to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 6px 26px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.back-to-top:hover {
  filter: brightness(1.06);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .back-to-top__text {
    display: none;
  }
  .back-to-top {
    padding: 13px;
  }
}

.hero {
  padding: 28px 0 48px;
}

.hero__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(147, 197, 253, 0.35);
  background: rgba(15, 23, 42, 0.65);
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.65);
}

.hero__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero__subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f8fafc;
  box-shadow: 0 14px 34px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.55);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(96, 165, 250, 0.35);
  color: var(--text-soft);
}

.btn--ghost:hover {
  border-color: rgba(147, 197, 253, 0.65);
  color: var(--text);
}

.btn--small {
  padding: 9px 16px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.section {
  padding: 36px 0;
}

.section--muted {
  background: transparent;
}

h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.section__subtitle {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 620px;
}

.section__subtitle--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#proxies h2 {
  text-align: center;
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow: var(--shadow-soft);
}

.step-card__num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: #dbeafe;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.35), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
}

.notice {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.35);
  font-size: 14px;
  color: #cbd5f5;
  line-height: 1.55;
}

.notice--warn {
  background: rgba(120, 53, 15, 0.35);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.notice__code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.92em;
  color: #bae6fd;
}

.proxy-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
}

.proxy-card {
  width: 100%;
  justify-self: stretch;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 62%),
    rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: 0 16px 40px rgba(8, 15, 35, 0.85);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.16s ease-out, border-color 0.16s ease-out, box-shadow 0.16s ease-out;
}

.proxy-card:hover {
  transform: translateY(-3px);
  border-color: rgba(147, 197, 253, 0.55);
  box-shadow: 0 22px 52px rgba(8, 15, 35, 0.95);
}

.proxy-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.proxy-card__title {
  margin: 0;
  font-size: 17px;
}

.proxy-status {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86efac;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.proxy-card__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.proxy-card__host {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  color: #e0f2fe;
  word-break: break-all;
}

.proxy-card__hint {
  margin: 0;
  font-size: 12px;
  color: #fcd34d;
  line-height: 1.45;
}

.two-col {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.info-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(96, 165, 250, 0.22);
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.info-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
}

.info-card__link {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-card__link:hover {
  color: #bfdbfe;
}

.share-block {
  text-align: center;
  padding: 36px 16px;
}

.share-block h2 {
  margin-bottom: 8px;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.url-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(96, 165, 250, 0.28);
  font-size: 13px;
  color: var(--text-soft);
  max-width: 100%;
}

.url-pill code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #bae6fd;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer {
  padding: 28px 0 22px;
  margin-top: auto;
  font-size: 13px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer__brand {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.footer__text {
  margin: 4px 0 0;
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 420px;
}

.footer__copy {
  margin: 0;
  color: var(--text-soft);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
