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

:root {
  --bg-page: #f4f5f7;
  --bg-card: #ffffff;
  --text: #1a1d2e;
  --text-muted: #6b7280;
  --border: rgba(0, 0, 0, 0.08);
  --blue: #007bff;
  --blue-soft: rgba(0, 123, 255, 0.1);
  --pink: #e91e63;
  --pink-hover: #d81b60;
  --success: #22c55e;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  --radius-card: 16px;
  --radius-btn: 999px;
  --radius-input: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.5;
  position: relative;
}

/* Full-page illustration: top-centered, full viewport width, intrinsic proportions */
.page-bg {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100vw;
  z-index: 0;
  pointer-events: none;
  line-height: 0;
  background: #f7f8fa;
}

.page-bg__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.page-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(100px, 26vh, 320px);
  background: linear-gradient(
    to bottom,
    rgba(244, 245, 247, 0) 0%,
    rgba(244, 245, 247, 0.55) 45%,
    var(--bg-page) 100%
  );
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}

.brand:hover {
  opacity: 0.92;
}

.brand-logo {
  display: block;
  height: 44px;
  width: calc(44px * 83 / 64);
  flex-shrink: 0;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero */
.hero {
  text-align: center;
  padding: 8px 0 4px;
  padding-top: 10em;
}

.hero-art {
  max-width: 320px;
  margin: 0 auto 24px;
  color: var(--blue);
}

.hero-art svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-panel {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 32px 28px 28px;
  margin-top: 4px;
}

/* Large soft white glow behind copy (not a card) */
.hero-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(120%, 560px);
  height: 145%;
  min-height: 280px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 85% 65% at 50% 48%,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.72) 28%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(255, 255, 255, 0) 72%
  );
  filter: blur(40px);
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

/* Extra legibility on busy background */
.hero-panel h1,
.hero-panel .lead,
.hero-panel .hero-tags {
  text-shadow:
    0 0 18px rgba(255, 255, 255, 1),
    0 0 56px rgba(255, 255, 255, 0.7);
}

.hero h1 {
  font-size: clamp(28px, 6.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}

.hero h1 .accent {
  color: var(--blue);
}

.hero .lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 20px;
}

.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-tag svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex-shrink: 0;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.proxy-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.proxy-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.proxy-icon svg {
  width: 28px;
  height: 28px;
}

.proxy-server-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.proxy-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.status-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}

.details-toggle {
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  padding: 14px 0 0;
  margin-top: 18px;
  color: var(--blue);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.details-toggle:hover {
  color: #0062cc;
}

.details-arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.25s;
}

.details-toggle.open .details-arrow {
  transform: rotate(180deg);
}

.details-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.details-body.open {
  max-height: 280px;
}

.details-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
}

.proxy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
}

.proxy-row-key {
  font-size: 12px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.proxy-row-val {
  font-size: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.connect-btn {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-btn);
  border: none;
  background: var(--pink);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.35);
}

.connect-btn:hover {
  background: var(--pink-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(233, 30, 99, 0.35);
}

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

.connect-btn.copied {
  background: var(--success);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.proxy-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.proxy-qr__frame {
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.proxy-qr__img {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 10px;
}

.proxy-qr__text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
  max-width: 280px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-top: 1px;
}

.step-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.step-text b {
  color: var(--text);
  font-weight: 600;
}

.share-url-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 16px;
}

.share-url {
  padding: 12px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.clip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--blue);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: var(--shadow-sm);
}

.clip-btn:hover {
  border-color: rgba(0, 123, 255, 0.35);
  transform: translateY(-1px);
}

.clip-btn.copied {
  border-color: var(--success);
  color: var(--success);
}

.share-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.links-wrap {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: var(--shadow-sm);
}

.link-card:hover {
  border-color: rgba(0, 123, 255, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.link-info {
  min-width: 0;
}

.link-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 2px;
}

.link-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.site-footer {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .page {
    padding: 20px 16px 40px;
    gap: 22px;
  }

  .card {
    padding: 20px 18px;
    border-radius: 14px;
  }

  .brand-logo {
    height: 38px;
    width: calc(38px * 83 / 64);
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero .lead {
    font-size: 14px;
  }

  .hero-panel {
    padding: 24px 18px 22px;
  }

  .hero-panel::before {
    width: min(130%, 100vw);
    filter: blur(28px);
  }

  .links {
    grid-template-columns: 1fr;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}
  
}
