:root {
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1220px;
  --shadow: 0 24px 60px rgba(13, 20, 35, 0.18);
  --shadow-soft: 0 14px 34px rgba(13, 20, 35, 0.12);
  --grid-line: rgba(91, 112, 151, 0.12);
}

:root[data-theme="dark"] {
  --bg: #08111f;
  --bg-2: #0d1728;
  --surface: rgba(11, 21, 37, 0.78);
  --surface-strong: rgba(8, 16, 31, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(96, 165, 250, 0.18);
  --text: #edf4ff;
  --muted: #9fb0ca;
  --primary: #4b8dff;
  --primary-2: #73adff;
  --accent: #f59e0b;
  --accent-2: #ffd37a;
  --green: #22c55e;
  --header-bg: rgba(8, 17, 31, 0.68);
  --hero-gradient: linear-gradient(180deg, rgba(15, 27, 45, 0.98), rgba(8, 16, 31, 0.96));
  --proxy-gradient: linear-gradient(135deg, rgba(65, 122, 255, 0.18), rgba(245, 158, 11, 0.18));
  --proxy-border: rgba(115, 173, 255, 0.22);
  --toast-bg: rgba(6, 10, 18, 0.96);
  --theme-color: #09111f;
}

:root[data-theme="light"] {
  --bg: #f4f1ee;
  --bg-2: #ebe8e4;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --surface-soft: rgba(33, 46, 72, 0.04);
  --line: rgba(40, 55, 84, 0.1);
  --line-strong: rgba(76, 122, 235, 0.18);
  --text: #1c2740;
  --muted: #67748f;
  --primary: #5a95f7;
  --primary-2: #7fb1ff;
  --accent: #f6aa45;
  --accent-2: #ffd38f;
  --green: #22c55e;
  --header-bg: rgba(244, 241, 238, 0.78);
  --hero-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 242, 239, 0.96));
  --proxy-gradient: linear-gradient(135deg, rgba(90, 149, 247, 0.12), rgba(246, 170, 69, 0.14));
  --proxy-border: rgba(90, 149, 247, 0.18);
  --toast-bg: rgba(31, 41, 55, 0.96);
  --theme-color: #f4f1ee;
  --shadow: 0 20px 50px rgba(48, 61, 89, 0.10);
  --shadow-soft: 0 12px 28px rgba(48, 61, 89, 0.08);
  --grid-line: rgba(84, 102, 137, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(90,149,247,.14), transparent 26%),
    radial-gradient(circle at 90% 10%, rgba(246,170,69,.10), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 340px;
  height: 340px;
  left: -120px;
  top: 60px;
  background: rgba(75,141,255,.15);
}
.glow-2 {
  width: 280px;
  height: 280px;
  right: -80px;
  top: 280px;
  background: rgba(245,158,11,.12);
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(54, 117, 255, 0.18));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand-text strong {
  letter-spacing: .03em;
  font-size: 18px;
}
.brand-text small {
  color: var(--muted);
  font-size: 13px;
}

.nav-actions,
.hero-actions,
.proxy-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn-full { width: 100%; }
.btn-lg { min-height: 56px; padding-inline: 26px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.btn-secondary {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--line);
}
.btn-dark {
  color: #fff;
  background: linear-gradient(180deg, #1f2937, #111827);
}
.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ffbf55);
}
.btn-ghost {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--line);
}

.hero, .section, .footer { position: relative; z-index: 1; }
.hero { padding: 52px 0 28px; }

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy { padding: 24px 0; }
.hero-chip,
.panel-kicker,
.proxy-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-chip {
  padding: 10px 14px;
  border-radius: 999px;
  color: #bfd4ff;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.panel-kicker,
.proxy-badge { color: var(--muted); }
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(34,197,94,.12);
}

h1 {
  margin: 20px 0 16px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: .96;
  letter-spacing: -.05em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.hero-lead,
.section-head p,
.info-card p,
.proxy-spotlight p,
.faq-list p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lead {
  max-width: 720px;
  font-size: 18px;
  margin: 0 0 28px;
}

.hero-actions-single { margin-bottom: 26px; }

.metrics,
.cards-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.hero-panel,
.info-card,
.faq-list details,
.access-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.metric-card,
.info-card,
.faq-list details,
.access-card {
  border-radius: var(--radius-lg);
}

.metric-card,
.info-card,
.hero-panel,
.access-card {
  padding: 22px;
}

.metric-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}
.metric-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.metric-icon {
  margin-bottom: 16px;
}

.hero-panel {
  border-radius: var(--radius-xl);
  background: var(--hero-gradient);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(54, 117, 255, 0.18));
}

.access-card {
  background: var(--surface-soft);
}

.switcher {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  width: 100%;
}
.switcher-btn {
  border: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  flex: 1 1 0;
}
.switcher-btn.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
}

.tab-content { display: none; }
.tab-content.is-active { display: block; }
.field-group { margin-bottom: 14px; }
.field-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.only-button { margin-bottom: 8px; }

.proxy-spotlight {
  position: relative;
  margin-top: 18px;
  padding: 22px;
  border-radius: 24px;
  background: var(--proxy-gradient);
  border: 1px solid var(--proxy-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 40px rgba(46, 88, 171, 0.12);
  overflow: hidden;
}
.proxy-spotlight::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -60px;
  top: -60px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.proxy-badge {
  margin-bottom: 12px;
  color: var(--accent-2);
}
.proxy-spotlight h3 {
  font-size: 34px;
  margin-bottom: 12px;
  line-height: 1.02;
}
.proxy-actions {
  margin-top: 18px;
  flex-wrap: wrap;
}
.proxy-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.proxy-mini-card {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}
.proxy-mini-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.proxy-mini-card strong {
  display: block;
  font-size: 16px;
}
.manual-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px dashed rgba(255,255,255,.20);
  color: var(--text);
}

.section { padding: 34px 0; }
.faq-wrap { max-width: 1080px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
}
.section-head-centered {
  justify-content: center;
  text-align: center;
}
.section-head-centered p {
  max-width: 840px;
  margin: 0 auto;
}
.icon-box {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 14px;
  font-size: 24px;
  background: rgba(75,141,255,.14);
}

.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  padding: 0 20px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 800;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { margin: 0 0 18px; }

.footer {
  padding: 8px 0 34px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--toast-bg);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .22s ease;
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr; }
  .metrics, .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header { position: static; }
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .brand {
    width: 100%;
    justify-content: center;
  }
  .metrics, .cards-grid, .proxy-meta { grid-template-columns: 1fr; }
  .nav-actions,
  .hero-actions,
  .proxy-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-actions .btn,
  .hero-actions .btn,
  .proxy-actions .btn {
    flex: 0 1 auto;
  }
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .switcher-btn { flex: 1 1 100%; }
  .proxy-spotlight h3 { font-size: 28px; }
}

@media (max-width: 520px) {
  .brand-logo { width: 44px; height: 44px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { font-size: 12px; }
  .nav-actions { gap: 10px; }
  .nav-actions .btn { min-width: 132px; }
  .hero { padding-top: 32px; }
  h1 { font-size: clamp(34px, 12vw, 54px); }
  .hero-lead { font-size: 17px; }
  .metric-card, .hero-panel, .access-card, .proxy-spotlight { padding: 18px; }
}
