/* ---------------------------------------------------------------
   vless landing — cool signal palette, editorial type, quiet chrome
   --------------------------------------------------------------- */

:root {
  --paper: #eef4f2;
  --paper-2: #f8fbfa;
  --paper-3: #e5eeeb;
  --ink: #071a24;
  --ink-2: #0d2a35;
  --muted: #587077;
  --muted-2: #6f858b;
  --line: rgba(7, 26, 36, 0.13);
  --line-strong: rgba(7, 26, 36, 0.24);
  --jade: #0b9a73;
  --jade-bright: #35d6a4;
  --jade-soft: #c9f5e4;
  --cobalt: #1746d1;
  --amber: #e9a23b;
  --white: #ffffff;
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  --max: 1320px;
  --radius: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 26, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 26, 36, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 80%);
}

::selection {
  background: var(--jade-soft);
  color: var(--ink);
}

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

button,
input {
  font: inherit;
}

img,
svg {
  display: block;
}

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}

.scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--jade);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.08s linear;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 74px;
  padding: 0 clamp(24px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(238, 244, 242, 0.82);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--jade);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.brand-dot {
  width: 5px;
  height: 5px;
  margin-top: 12px;
  border-radius: 50%;
  background: var(--jade);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--jade);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 28px;
}

.nav-login {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.nav-login:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--ink);
  color: var(--paper-2);
}

.btn-primary:hover {
  background: var(--jade);
  color: var(--ink);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(7, 26, 36, 0.04);
}

.btn-small {
  min-height: 40px;
  padding: 0 17px;
  font-size: 13px;
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 7vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 214, 164, 0.15), transparent 66%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(42px, 5vw, 72px);
}

.hero-copy {
  min-width: 0;
  max-width: 600px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.live-dot,
.micro-dot,
.scene-status i,
.node-panel-status i,
.node-state::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
}

.live-dot {
  box-shadow: 0 0 0 5px rgba(11, 154, 115, 0.1);
  animation: breathe 3.4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 5px rgba(11, 154, 115, 0.1); }
  50% { box-shadow: 0 0 0 9px rgba(11, 154, 115, 0.02); }
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 94px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-title-quiet {
  color: var(--ink-2);
  font-weight: 550;
  letter-spacing: -0.052em;
}

.lede {
  max-width: 52ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.proof-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.proof-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid var(--jade);
  transform: rotate(45deg);
}

.fine-print {
  margin: 28px 0 0;
  color: var(--muted-2);
  font-size: 11.5px;
}

/* ------------------------------------------------------------ world map scene */

.scene-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(19, 65, 70, 0.92), transparent 60%),
    #071a24;
  box-shadow: 0 42px 110px rgba(7, 26, 36, 0.24);
  color: #dcf7ee;
}

.scene-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(213, 255, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 255, 241, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 46%, black, transparent 76%);
}

.scene-chrome,
.scene-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(213, 255, 241, 0.1);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(220, 247, 238, 0.7);
}

.scene-footer {
  flex-wrap: wrap;
  gap: 10px 24px;
  border-top: 1px solid rgba(213, 255, 241, 0.1);
  border-bottom: 0;
}

.scene-footer-live {
  color: rgba(220, 247, 238, 0.56);
}

.scene-footer-live em {
  color: rgba(220, 247, 238, 0.4);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.scene-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(220, 247, 238, 0.82);
}

.scene-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--jade-bright);
}

.scene-status i {
  background: var(--jade-bright);
  box-shadow: 0 0 10px rgba(53, 214, 164, 0.8);
}

.scene-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

#route-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.scene-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 82% 72% at 49% 48%, transparent 56%, rgba(7, 26, 36, 0.36) 100%);
}

.scene-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.scene-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(125, 224, 205, 0.5) 0.7px, transparent 0.95px);
  background-size: 7px 7px;
  mask-image: radial-gradient(ellipse 62% 44% at 50% 50%, black 22%, transparent 76%);
  opacity: 0.42;
}

.scene-card.has-map .scene-fallback {
  display: none;
}

.fallback-caption {
  position: relative;
  color: rgba(220, 247, 238, 0.4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scene-footer strong {
  color: #effff9;
  font-weight: 600;
}

.micro-dot {
  width: 5px;
  height: 5px;
  background: var(--jade-bright);
}

/* ---------------------------------------------------------------- dark band */

.dark-band {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 9vw, 124px) 0;
  background: var(--ink);
  color: #e9f8f3;
}

.dark-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(233, 248, 243, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 248, 243, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.dark-band .shell {
  position: relative;
  z-index: 1;
}

.band-head {
  max-width: 850px;
}

.section-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--jade);
  font-size: 12.5px;
  font-weight: 700;
}

.section-mark::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.dark-band .section-mark {
  color: var(--jade-bright);
}

.band-head h2,
.section-head h2,
.security-copy h2,
.cta-inner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.band-lede {
  max-width: 58ch;
  margin: 24px 0 0;
  color: rgba(233, 248, 243, 0.62);
  font-size: 16.5px;
  line-height: 1.7;
  text-wrap: pretty;
}

.route-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 72px;
}

.route-step {
  padding-top: 20px;
  border-top: 1px solid rgba(233, 248, 243, 0.16);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--jade-bright);
}

.route-step h3 {
  margin: 20px 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.route-step p {
  max-width: 30ch;
  margin: 0;
  color: rgba(233, 248, 243, 0.54);
  font-size: 14px;
  line-height: 1.65;
}

.band-diagram {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 76px;
  color: rgba(233, 248, 243, 0.4);
  font-family: var(--font-mono);
  font-size: 10px;
}

.diagram-stop {
  flex: none;
}

.diagram-line {
  position: relative;
  flex: 1;
  height: 1px;
  background: rgba(233, 248, 243, 0.16);
  overflow: hidden;
}

.diagram-line i {
  position: absolute;
  top: 0;
  left: -20%;
  width: 20%;
  height: 1px;
  background: var(--jade-bright);
  animation: packet-line 4.5s linear infinite;
}

.diagram-line:nth-of-type(2) i { animation-delay: 0.8s; }
.diagram-line:nth-of-type(3) i { animation-delay: 1.6s; }

@keyframes packet-line {
  0% { left: -20%; }
  100% { left: 100%; }
}

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

.section {
  padding: clamp(82px, 9vw, 124px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.section-lede {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.section-head .section-lede {
  padding-bottom: 4px;
}

/* ---------------------------------------------------------------- comparison */

.compare {
  border-top: 1px solid var(--line-strong);
}

.compare-row {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 1.15fr;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.compare-row > span:first-child {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.compare-head {
  padding: 14px 0;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 700;
}

.compare-vless {
  color: var(--ink);
  font-weight: 700;
}

.compare-row:not(.compare-head) .compare-vless {
  position: relative;
  padding-left: 18px;
}

.compare-row:not(.compare-head) .compare-vless::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
}

/* ---------------------------------------------------------------- security */

.security-section {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 7vw, 110px);
}

.security-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

.security-copy h2 {
  font-size: clamp(38px, 4.4vw, 56px);
}

.security-copy .section-lede {
  margin-top: 24px;
}

.honesty-note {
  max-width: 44ch;
  margin: 34px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--jade);
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.7;
}

.security-list {
  border-top: 1px solid var(--line-strong);
}

.security-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.security-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--jade);
}

.security-icon svg {
  width: 21px;
  height: 21px;
}

.security-item h3 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.security-item p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------------------------------------------------------------- nodes */

.nodes-head {
  align-items: start;
}

.node-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(248, 251, 250, 0.55);
}

.node-panel-head,
.node-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 22px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
}

.node-panel-head {
  border-bottom: 1px solid var(--line);
}

.node-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--jade);
}

.node-panel-status i {
  width: 6px;
  height: 6px;
}

.node-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 0.6fr 0.5fr 0.5fr;
  gap: 16px;
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.node-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.flag {
  display: inline-flex;
  flex: none;
  width: 24px;
  height: 17px;
  overflow: hidden;
  border: 1px solid rgba(7, 26, 36, 0.18);
  border-radius: 3px;
  background: var(--paper-3);
  box-shadow: 0 1px 1px rgba(7, 26, 36, 0.08);
}

.flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.node-code,
.node-latency {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.node-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  color: var(--jade);
  font-size: 12px;
  font-weight: 600;
}

.node-state::before {
  content: "";
  width: 6px;
  height: 6px;
}

.node-panel-foot {
  border-bottom: 0;
  color: var(--muted-2);
}

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

.cta-section {
  padding-top: 24px;
}

.cta-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 6vw, 76px);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(53, 214, 164, 0.16), transparent 58%),
    var(--paper-2);
}

.cta-inner h2 {
  max-width: 720px;
}

.cta-inner .section-lede {
  max-width: 46ch;
  margin-top: 22px;
}

.cta-inner .hero-actions {
  margin-top: 30px;
}

.site-footer {
  margin-top: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--line);
  padding: 54px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 0.7fr;
  gap: 44px;
}

.footer-badge {
  display: inline-flex;
  width: 178px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(7, 26, 36, 0.08);
}
.footer-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-brand p {
  max-width: 30ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-brand .footer-fine {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
}

.footer-col h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.footer-col a:hover {
  color: var(--jade);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11.5px;
}

/* ---------------------------------------------------------------- reveal */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- auth */

.auth-page {
  min-height: 100vh;
  background: var(--paper);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 100vh;
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(100% 100% at 12% 8%, rgba(53, 214, 164, 0.2), transparent 48%),
    var(--ink);
  color: #e8f8f2;
}

.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 248, 242, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 248, 242, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, black, transparent 80%);
}

.auth-aside .brand {
  position: relative;
  z-index: 1;
  color: #e8f8f2;
}

.auth-aside .brand-mark {
  color: var(--jade-bright);
}

.auth-quote {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-top: auto;
  padding-top: 80px;
}

.auth-quote h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.auth-quote p {
  max-width: 38ch;
  margin: 24px 0 0;
  color: rgba(232, 248, 242, 0.56);
  font-size: 14px;
  line-height: 1.7;
}

.auth-route {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  color: rgba(232, 248, 242, 0.4);
  font-family: var(--font-mono);
  font-size: 10px;
}

.auth-route-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--jade-bright), rgba(53, 214, 164, 0.08));
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.auth-card {
  width: min(100%, 450px);
}

.auth-card .section-mark {
  margin-bottom: 12px;
}

.auth-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 50px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.auth-lede {
  margin: 16px 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(248, 251, 250, 0.8);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input::placeholder {
  color: var(--muted-2);
}

.field input:focus {
  border-color: var(--jade);
  background: var(--white);
  outline: none;
}

.field-hint {
  color: var(--muted-2);
  font-size: 11px;
}

.auth-form .btn {
  width: 100%;
  margin-top: 4px;
}

.form-error {
  margin: 0;
  padding: 11px 14px;
  border: 1px solid rgba(170, 46, 28, 0.24);
  border-radius: 10px;
  background: rgba(170, 46, 28, 0.07);
  color: #8a2b1d;
  font-size: 12.5px;
  line-height: 1.5;
}

.auth-alt {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-alt a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--jade);
  text-underline-offset: 3px;
}

.auth-note {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.6;
}

.auth-home {
  color: rgba(232, 248, 242, 0.52);
  font-size: 12px;
}

.auth-home:hover {
  color: var(--jade-bright);
}

.auth-home-mobile {
  display: none;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 30px;
}

.auth-home-mobile:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------------- dashboard */

.app-page {
  min-height: 100vh;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 0 clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.dashboard-shell {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 100px;
}

.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.dashboard-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.dashboard-head p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

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

.dash-card {
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--paper-2);
}

.dash-card h2 {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.dash-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.dash-sub {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 12px;
}

.dash-wide {
  margin-top: 16px;
  padding: 30px;
}

.dash-wide h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.dash-wide p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.token-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
}

.token-box span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-box span:last-child {
  flex: none;
  color: var(--jade);
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1040px) {
  .main-nav {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .scene-card {
    min-height: 560px;
  }

  .section-head,
  .security-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .security-copy {
    position: static;
  }

  .section-head .section-lede {
    padding-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.7fr 0.7fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .main-nav {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .route-steps {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
  }

  .route-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding-top: 18px;
  }

  .route-step h3 {
    margin-top: 0;
  }

  .route-step p {
    grid-column: 2;
    max-width: 46ch;
  }

  .band-diagram {
    margin-top: 48px;
  }

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

  .dashboard-head {
    display: block;
  }

  .dashboard-head p {
    margin-top: 12px;
    text-align: left;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .auth-home-mobile {
    display: block;
    width: max-content;
    margin-bottom: 24px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(var(--max), calc(100% - 32px));
  }

  .site-header {
    gap: 12px;
    min-height: 66px;
    padding: 0 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand-word {
    font-size: 19px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn-small {
    padding-inline: 14px;
  }

  .nav-actions {
    gap: 10px;
  }

  .nav-login {
    display: none;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-title {
    font-size: clamp(40px, 11.5vw, 54px);
    letter-spacing: -0.055em;
  }

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

  .scene-card {
    min-height: 430px;
    border-radius: 20px;
  }

  .compare-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    padding: 16px 0;
    font-size: 13px;
  }

  .compare-row > span:first-child {
    grid-column: 1 / -1;
    font-size: 11.5px;
  }

  .compare-head {
    display: grid;
    padding-top: 12px;
    font-size: 10.5px;
  }

  .compare-head > span:first-child {
    display: none;
  }

  .node-row {
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
  }

  .node-code,
  .node-latency {
    display: none;
  }

  .node-state {
    grid-column: 2;
    grid-row: 1;
  }

  .node-panel-head,
  .node-panel-foot {
    padding-inline: 16px;
  }

  .node-row {
    padding: 15px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 6px;
  }

  .auth-panel {
    padding: 28px 18px 50px;
  }

  .dashboard-shell {
    width: calc(100% - 32px);
    padding-top: 48px;
  }

  .dash-wide {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------ modes */

.modes-section {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.modes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.mode-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
}

.mode-switch-btn,
.gaming-switch-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease;
}

.mode-switch-btn {
  padding: 9px 18px;
}

.mode-switch-btn:hover,
.gaming-switch-btn:hover {
  color: var(--ink);
}

.mode-switch-btn.is-active {
  background: var(--ink);
  color: #effff9;
}

.mode-summary {
  margin-top: 30px;
}

.mode-kicker {
  margin: 0 0 10px;
  color: var(--jade);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mode-summary h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.mode-summary p {
  max-width: 48ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.mode-points {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.mode-points li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}

.mode-points li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--jade);
  border-radius: 2px;
  transform: rotate(45deg);
}

.mode-footnote {
  max-width: 46ch;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.65;
}

.mode-demo {
  position: relative;
  overflow: hidden;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(213, 255, 241, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(90% 90% at 80% 0%, rgba(32, 107, 103, 0.25), transparent 62%),
    #071a24;
  box-shadow: 0 30px 80px rgba(7, 26, 36, 0.2);
}

.mode-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(213, 255, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 255, 241, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 78%);
}

.mode-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.mode-card {
  fill: rgba(4, 22, 30, 0.72);
  stroke: rgba(213, 255, 241, 0.12);
}

.mode-caption {
  fill: rgba(220, 247, 238, 0.42);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.mode-app rect {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(213, 255, 241, 0.13);
}

.mode-app circle {
  fill: var(--jade-bright);
}

.mode-app text {
  fill: rgba(232, 255, 247, 0.82);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
}

.mode-node-card {
  fill: rgba(53, 214, 164, 0.08);
  stroke: rgba(53, 214, 164, 0.42);
}

.mode-node-ring {
  fill: none;
  stroke: var(--jade-bright);
  stroke-width: 1;
  opacity: 0.6;
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 2.6s ease-out infinite;
}

.mode-node-dot {
  fill: var(--jade-bright);
}

.mode-node-title {
  fill: var(--jade-bright);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mode-node-sub {
  fill: rgba(220, 247, 238, 0.58);
  font-family: var(--font-body);
  font-size: 16px;
}

.mode-node-flag {
  fill: rgba(53, 214, 164, 0.55);
  font-family: var(--font-mono);
  font-size: 14px;
}

.mode-direct-card {
  fill: rgba(255, 255, 255, 0.025);
  stroke: rgba(143, 233, 255, 0.2);
}

.mode-direct-title {
  fill: rgba(143, 233, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mode-direct-sub {
  fill: rgba(220, 247, 238, 0.4);
  font-family: var(--font-body);
  font-size: 16px;
}

.mode-flow {
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 5 9;
  opacity: 0.12;
  transition: opacity 0.35s ease;
}

.flow--browser-node,
.flow--game-node,
.flow--work-node,
.flow--system-node {
  stroke: var(--jade-bright);
}

.flow--game-direct,
.flow--system-direct {
  stroke: rgba(143, 233, 255, 0.55);
}

.mode-demo[data-mode="proxy"] .flow--browser-node,
.mode-demo[data-mode="proxy"] .flow--work-node,
.mode-demo[data-mode="proxy"] .flow--game-direct,
.mode-demo[data-mode="proxy"] .flow--system-direct,
.mode-demo[data-mode="full"] .flow--browser-node,
.mode-demo[data-mode="full"] .flow--game-node,
.mode-demo[data-mode="full"] .flow--work-node,
.mode-demo[data-mode="full"] .flow--system-node {
  opacity: 1;
  animation: modeFlow 1.7s linear infinite;
}

.mode-demo[data-mode="full"] .flow--game-direct,
.mode-demo[data-mode="full"] .flow--system-direct {
  opacity: 0.08;
}

.mode-edge {
  fill: var(--jade-bright);
  opacity: 0.7;
}

.mode-demo-caption {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  color: rgba(220, 247, 238, 0.36);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mode-demo-caption span:first-child {
  color: var(--jade-bright);
}

/* ------------------------------------------------------------ gaming */

.gaming-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(53, 214, 164, 0.09), transparent 56%),
    var(--ink);
  color: #dcf7ee;
}

.gaming-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(213, 255, 241, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 255, 241, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, black, transparent 76%);
}

.gaming-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 6vw, 86px);
  align-items: center;
}

.gaming-copy .section-mark {
  color: var(--jade-bright);
}

.gaming-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 550;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.gaming-copy .section-lede {
  margin-top: 24px;
  color: rgba(220, 247, 238, 0.64);
}

.gaming-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 28px;
  padding: 4px;
  border: 1px solid rgba(213, 255, 241, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.gaming-switch-btn {
  padding: 9px 14px;
  color: rgba(220, 247, 238, 0.52);
}

.gaming-switch-btn:hover {
  color: #effff9;
}

.gaming-switch-btn.is-active {
  background: var(--jade-bright);
  color: var(--ink);
}

.gaming-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}

.gaming-metric {
  padding: 15px 16px;
  border: 1px solid rgba(213, 255, 241, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.gaming-metric span {
  display: block;
  color: rgba(220, 247, 238, 0.5);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gaming-metric strong {
  display: block;
  margin-top: 7px;
  color: #effff9;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.035em;
}

.gaming-metric small {
  display: block;
  margin-top: 4px;
  color: rgba(220, 247, 238, 0.42);
  font-size: 10.5px;
  line-height: 1.5;
}

.gaming-metric--accent {
  border-color: rgba(53, 214, 164, 0.38);
  background: rgba(53, 214, 164, 0.07);
}

.gaming-grid[data-view="direct"] [data-gaming-metric="vless"],
.gaming-grid[data-view="vless"] [data-gaming-metric="direct"] {
  opacity: 0.38;
}

.gaming-copy .honesty-note {
  border-color: rgba(53, 214, 164, 0.55);
  color: rgba(220, 247, 238, 0.42);
}

.gaming-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(213, 255, 241, 0.12);
  border-radius: 24px;
  background: rgba(3, 20, 28, 0.62);
  box-shadow: 0 34px 90px rgba(2, 14, 20, 0.28);
}

.gaming-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: rgba(220, 247, 238, 0.42);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jade-bright);
  box-shadow: 0 0 8px rgba(53, 214, 164, 0.8);
}

.gaming-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.legend-direct,
.legend-vless {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-direct {
  background: rgba(196, 214, 213, 0.65);
}

.legend-vless {
  background: var(--jade-bright);
  box-shadow: 0 0 7px rgba(53, 214, 164, 0.6);
}

.gaming-chart {
  display: block;
  width: 100%;
  height: auto;
}

.chart-grid line {
  stroke: rgba(213, 255, 241, 0.075);
  stroke-width: 1;
}

.chart-axis text {
  fill: rgba(220, 247, 238, 0.34);
  font-family: var(--font-mono);
  font-size: 9px;
}

.chart-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: opacity 0.3s ease;
}

.gaming-panel.is-visible .chart-line {
  animation: drawLine 1.7s var(--ease) forwards;
}

.chart-line--direct {
  stroke: rgba(196, 214, 213, 0.48);
}

.chart-line--vless {
  stroke: var(--jade-bright);
  filter: drop-shadow(0 0 5px rgba(53, 214, 164, 0.4));
}

.gaming-panel[data-view="direct"] .chart-line--vless,
.gaming-panel[data-view="vless"] .chart-line--direct {
  opacity: 0.1;
}

.gaming-chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  color: rgba(220, 247, 238, 0.4);
  font-size: 10px;
}

.gaming-chart-foot span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ------------------------------------------------------------ tls explainer */

.tls-explainer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 86px);
  align-items: start;
  margin-top: clamp(58px, 7vw, 88px);
  padding-top: clamp(38px, 5vw, 56px);
  border-top: 1px solid var(--line-strong);
}

.tls-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 550;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.tls-copy > p {
  max-width: 48ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tls-copy code,
.feature-card code,
.faq-item code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(7, 26, 36, 0.07);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.tls-card {
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(213, 255, 241, 0.13);
  border-radius: 22px;
  background:
    radial-gradient(90% 100% at 100% 0%, rgba(53, 214, 164, 0.09), transparent 60%),
    var(--ink);
  color: #dcf7ee;
  box-shadow: 0 28px 70px rgba(7, 26, 36, 0.16);
}

.tls-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.tls-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--jade-bright);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tls-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.tls-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(220, 247, 238, 0.58);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.tls-switch-track {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  border: 1px solid rgba(53, 214, 164, 0.45);
  border-radius: 999px;
  background: rgba(53, 214, 164, 0.16);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.tls-switch-track i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--jade-bright);
  box-shadow: 0 0 8px rgba(53, 214, 164, 0.6);
  transition: transform 0.25s var(--ease), background 0.25s ease;
}

.tls-card[data-insecure="true"] .tls-state {
  color: var(--amber);
}

.tls-card[data-insecure="true"] .tls-switch-track {
  border-color: rgba(233, 162, 59, 0.55);
  background: rgba(233, 162, 59, 0.14);
}

.tls-card[data-insecure="true"] .tls-switch-track i {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(233, 162, 59, 0.55);
  transform: translateX(16px);
}

.tls-code {
  margin: 20px 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid rgba(213, 255, 241, 0.1);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(220, 247, 238, 0.68);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
}

.tls-code [data-tls-value] {
  color: var(--jade-bright);
  font-weight: 700;
}

.tls-card[data-insecure="true"] .tls-code [data-tls-value] {
  color: var(--amber);
}

.tls-note {
  margin: 0;
  color: rgba(220, 247, 238, 0.5);
  font-size: 12px;
  line-height: 1.7;
}

.tls-card[data-insecure="true"] .tls-note {
  color: rgba(233, 162, 59, 0.8);
}

.tls-demo-label {
  display: block;
  margin-top: 18px;
  color: rgba(220, 247, 238, 0.26);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ features */

.features-section {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

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

.feature-card {
  position: relative;
  display: flex;
  min-height: 226px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(248, 251, 250, 0.62);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--jade);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature-tag--next {
  background: rgba(233, 162, 59, 0.13);
  color: #8a5c13;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.feature-card--next {
  border-style: dashed;
  background: transparent;
}

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

.faq-section {
  border-top: 1px solid var(--line);
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 20px;
  right: 0;
  color: var(--jade);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  max-width: 72ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ------------------------------------------------------------ live node table */

.node-panel-status.is-warn {
  color: var(--amber);
}

.node-panel-status.is-warn i {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(233, 162, 59, 0.55);
}

.node-rows {
  display: block;
}

.node-row--placeholder {
  display: block;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
}

.node-name .flag {
  width: 24px;
  height: 17px;
}

.node-latency {
  color: var(--ink);
  font-weight: 600;
}

.node-state.is-offline {
  color: var(--amber);
}

.node-state.is-offline::before {
  background: var(--amber);
}

.nodes-note {
  max-width: 72ch;
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.65;
}

/* ------------------------------------------------------------ animations */

@keyframes modeFlow {
  to {
    stroke-dashoffset: -28;
  }
}

@keyframes nodePulse {
  0% {
    opacity: 0.7;
    transform: scale(0.7);
  }
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* ------------------------------------------------------------ new responsive */

@media (max-width: 1040px) {
  .modes-grid,
  .gaming-grid,
  .tls-explainer {
    grid-template-columns: minmax(0, 1fr);
  }

  .modes-copy,
  .gaming-copy,
  .tls-copy,
  .tls-card,
  .gaming-panel,
  .mode-demo {
    min-width: 0;
  }

  .mode-demo {
    max-width: 760px;
  }

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

@media (max-width: 820px) {
  .gaming-panel {
    padding: 14px;
  }

  .gaming-panel-head {
    font-size: 8.5px;
  }

  .gaming-chart-foot {
    display: grid;
    gap: 7px;
    font-size: 9.5px;
  }

  .faq-item summary {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .mode-switch {
    width: 100%;
  }

  .mode-switch-btn {
    flex: 1;
    padding-inline: 8px;
  }

  .mode-summary h3 {
    font-size: 30px;
  }

  .mode-points li {
    font-size: 12.5px;
  }

  .mode-demo {
    padding: 10px;
    border-radius: 18px;
  }

  .mode-demo-caption {
    display: grid;
    gap: 4px;
    font-size: 8px;
  }

  .gaming-switch {
    width: 100%;
    border-radius: 16px;
  }

  .gaming-switch-btn {
    flex: 1;
    padding: 9px 8px;
    font-size: 11.5px;
  }

  .gaming-metrics {
    grid-template-columns: 1fr;
  }

  .gaming-panel {
    border-radius: 18px;
  }

  .gaming-panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .chart-axis {
    display: none;
  }

  .gaming-chart {
    margin-top: 4px;
  }

  .tls-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tls-switch {
    width: 100%;
    justify-content: space-between;
  }

  .tls-code {
    padding: 14px;
    font-size: 11px;
  }

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

  .feature-card {
    min-height: 0;
  }

  .node-rows .node-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 14px;
    padding: 14px 16px;
  }

  .node-rows .node-name {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .node-rows .node-latency {
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .node-rows .node-code {
    display: none;
  }

  .node-rows .node-state {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    font-size: 11px;
  }

  .node-rows .node-row--placeholder {
    display: block;
  }

  .scene-footer {
    gap: 8px 16px;
    padding: 16px 18px;
    font-size: 11.5px;
  }

  .scene-footer-live {
    flex-basis: 100%;
  }

  .faq-item summary {
    padding: 17px 34px 17px 0;
    font-size: 17px;
  }

  .faq-item summary::after {
    top: 17px;
  }

  .faq-item p {
    font-size: 13px;
  }
}


.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-word-pass {
  color: var(--jade);
}

.btn-google {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(7, 26, 36, 0.07);
}

.btn-google:hover {
  border-color: var(--ink);
  background: var(--paper-2);
  color: var(--ink);
}

.btn-google:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.auth-oauth {
  margin-top: 4px;
}

.auth-config {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(233, 162, 59, 0.34);
  border-radius: 10px;
  background: rgba(233, 162, 59, 0.08);
  color: #7d5517;
  font-size: 12px;
  line-height: 1.55;
}

.cf-turnstile {
  display: flex;
  justify-content: center;
  margin: 2px 0 4px;
}

.auth-captcha-note {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

.auth-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.profile-chip strong {
  color: var(--ink);
  font-weight: 700;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.hero-auth {
  margin-top: 24px;
}

.hero-auth .cf-turnstile {
  justify-content: flex-start;
  margin: 0;
}

.hero-auth .auth-captcha-note {
  margin: 4px 0 0;
  text-align: left;
}

.hero-auth .hero-actions {
  margin-top: 14px;
}

.auth-captcha-ok {
  margin: 0 0 16px;
  color: var(--jade);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

.auth-badge-link {
  display: block;
  width: max-content;
}

.auth-badge {
  display: block;
  width: 130px;
  height: auto;
}

.auth-badge-mobile {
  display: none;
  width: max-content;
  margin-bottom: 24px;
}

.auth-badge-mobile .auth-badge {
  width: 130px;
}

@media (max-width: 960px) {
  .auth-badge-mobile {
    display: block;
  }
}

/* ---------------------------------------------------------------
   Customer dashboard side rail
   --------------------------------------------------------------- */
.dashboard-page {
  background: var(--paper);
}
.user-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: 272px;
  flex-direction: column;
  padding: 24px 16px 18px;
  border-right: 1px solid var(--line);
  background: var(--paper-2);
}
.user-side-brand {
  display: block;
  flex: none;
  padding: 0 4px;
}
.user-side-badge {
  display: block;
  width: min(100%, 160px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(7, 26, 36, 0.09));
}
.user-side-label {
  margin: 22px 0 10px;
  padding: 0 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0;
  text-transform: none;
}
.user-nav {
  display: grid;
  gap: 3px;
}
.user-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.user-nav a svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.user-nav a:hover {
  background: rgba(11, 154, 115, 0.06);
  color: var(--ink);
}
.user-nav a.is-active {
  border-color: rgba(11, 154, 115, 0.2);
  background: var(--jade-soft);
  color: #08785a;
}
.user-sidebar-foot {
  display: grid;
  gap: 11px;
  margin-top: auto;
  padding: 16px 4px 0;
  border-top: 1px solid var(--line);
}
.user-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  color: var(--jade);
  font-family: var(--font-mono);
  font-size: 8.5px;
}
.user-account-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.user-sidebar-foot .profile-chip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 10px;
  line-height: 1.45;
}
.user-sidebar-foot .profile-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.user-sidebar-foot .profile-chip strong {
  font-size: 11px;
}
.user-signout {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}
.user-signout:hover {
  background: var(--ink-2);
  color: #fff;
}
.user-side-legal {
  display: flex;
  gap: 14px;
  color: var(--muted-2);
  font-size: 9.5px;
}
.user-side-legal a:hover { color: var(--jade); }

.dashboard-page .user-dashboard-main {
  width: min(1160px, calc(100% - 272px));
  margin: 0 0 0 272px;
  padding: 48px clamp(24px, 4vw, 54px) 80px;
}
.dashboard-page .dashboard-head {
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 34px;
}
.dashboard-page .dashboard-head h1 {
  font-size: clamp(38px, 4.6vw, 56px);
}
.dashboard-page .dashboard-head p {
  max-width: 34ch;
  text-align: left;
}
.dashboard-page .dash-grid { gap: 16px; }
.dashboard-page .dash-card {
  border-radius: 14px;
  background: var(--white);
}
.dashboard-page .dash-wide {
  margin-top: 16px;
  padding: 30px;
}

@media (max-width: 980px) {
  .user-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .user-side-label,
  .user-sidebar-foot .user-account-pill { display: none; }
  .user-nav {
    order: 3;
    display: flex;
    width: 100%;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .user-nav::-webkit-scrollbar { display: none; }
  .user-nav a { flex: none; padding: 8px 10px; }
  .user-sidebar-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 0 auto;
    padding: 0;
    border-top: 0;
  }
  .user-sidebar-foot .profile-chip { display: none; }
  .user-signout { width: auto; padding: 0 12px; }
  .dashboard-page .user-dashboard-main {
    width: 100%;
    margin: 0;
    padding: 28px 18px 60px;
  }
}

@media (max-width: 560px) {
  .user-side-badge { width: 138px; }
  .user-nav a { gap: 7px; font-size: 10.5px; }
  .dashboard-page .dashboard-head { display: block; }
  .dashboard-page .dashboard-head p { margin-top: 16px; }
}

/* ---------------------------------------------------------------
   Legal pages
   --------------------------------------------------------------- */
.legal-page {
  background: var(--paper);
}
.legal-shell {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 54px;
  align-items: start;
  margin: 0 auto;
  padding: 58px 0 84px;
}
.legal-back {
  display: block;
  width: max-content;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.legal-back:hover { color: var(--jade); }
.legal-main > .section-mark {
  display: flex;
  width: max-content;
  margin-bottom: 10px;
}
.legal-main h1 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.055em;
}
.legal-lede {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
}
.legal-meta a { color: var(--jade); font-weight: 700; }
.legal-meta a:hover { text-decoration: underline; }
.legal-section {
  padding-top: 30px;
  scroll-margin-top: 100px;
}
.legal-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.035em;
}
.legal-section p {
  max-width: 68ch;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.legal-list {
  display: grid;
  gap: 9px;
  max-width: 68ch;
  margin: 4px 0 18px;
  padding: 0;
  list-style: none;
}
.legal-list li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.legal-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jade);
}
.legal-aside {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 14px;
}
.legal-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
}
.legal-card--accent {
  border-color: rgba(11, 154, 115, 0.2);
  background: var(--jade-soft);
}
.legal-card p:not(.section-mark) {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.legal-summary {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal-summary li {
  position: relative;
  padding-left: 15px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}
.legal-summary li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jade);
}
.legal-card .btn { width: 100%; justify-content: center; }
.legal-card .section-mark {
  display: flex;
  width: max-content;
  margin-bottom: 8px;
}
.legal-link {
  display: block;
  width: max-content;
  margin-top: 6px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 700;
}
.legal-link:hover { text-decoration: underline; }
.legal-footer {
  margin-top: 0;
  padding-bottom: 30px;
}
.legal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-footer-inner .footer-badge { width: 150px; }
.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 11.5px;
}
.legal-footer-links a:hover { color: var(--jade); }
.legal-footer-inner > span {
  color: var(--muted-2);
  font-size: 10.5px;
}
.auth-note a { color: var(--jade); }
.auth-note a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .legal-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    width: min(720px, calc(100% - 36px));
    padding-top: 40px;
  }
  .legal-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .legal-footer-inner {
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  .legal-main h1 { font-size: 45px; }
  .legal-aside { grid-template-columns: 1fr; }
  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
