:root {
  --bg: #080a0f;
  --bg-soft: #0e1119;
  --card: rgba(18, 22, 33, 0.72);
  --line: rgba(255,255,255,.08);
  --text: #f5f7fb;
  --muted: #9aa3b5;
  --accent: #8cffb2;
  --accent-2: #7de8ff;
  --danger: #ff7d8e;
  --warning: #ffd166;
  --shadow: 0 30px 80px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(125,232,255,.08), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(140,255,178,.08), transparent 25%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

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

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}

.ambient-one {
  width: 380px;
  height: 380px;
  background: var(--accent);
  top: 16%;
  right: -120px;
}

.ambient-two {
  width: 320px;
  height: 320px;
  background: var(--accent-2);
  left: -140px;
  bottom: 10%;
}

.header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 16px;
  z-index: 20;
  background: rgba(8,10,15,.74);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0,0,0,.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-accent { color: var(--accent); }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(140,255,178,.20), rgba(125,232,255,.08));
  border: 1px solid rgba(140,255,178,.28);
  display: grid;
  place-items: center;
}

.door {
  width: 13px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 2px 6px 6px 2px;
  position: relative;
  transform: perspective(30px) rotateY(-8deg);
}
.door::after {
  content: "";
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  right: 2px;
  top: 8px;
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}
.nav a:hover { color: var(--text); }

.header-cta {
  padding: 10px 15px;
  border-radius: 12px;
  background: var(--text);
  color: #0c1016;
  font-size: 14px;
  font-weight: 800;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 72px;
  align-items: center;
  padding: 90px 0 70px;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(140,255,178,.18);
  border-radius: 999px;
  background: rgba(140,255,178,.05);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(140,255,178,.8);
}

h1 {
  margin: 22px 0 20px;
  font-size: clamp(48px, 6.5vw, 86px);
  line-height: .96;
  letter-spacing: -.065em;
  max-width: 760px;
}
h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.button {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  color: #07100b;
  background: linear-gradient(135deg, var(--accent), #c6ffd8);
  box-shadow: 0 16px 40px rgba(140,255,178,.14);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255,255,255,.025);
}

.full { width: 100%; }

.mini-points {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  color: #c6cbd6;
  font-size: 13px;
}
.mini-points i {
  font-style: normal;
  color: var(--accent);
}

.hero-panel {
  min-height: 460px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-panel::before {
  content: "";
  width: 380px;
  height: 380px;
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(140,255,178,.10);
  box-shadow:
    0 0 0 55px rgba(140,255,178,.018),
    0 0 0 110px rgba(125,232,255,.012);
}

.status-card {
  width: min(100%, 430px);
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(18,23,33,.94), rgba(11,14,21,.92));
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(20px);
}

.status-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(140,255,178,.2), transparent 35%, rgba(125,232,255,.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

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

.label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 18px rgba(255,209,102,.55);
}

.status-dot.online {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(140,255,178,.75);
}
.status-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 20px rgba(255,125,142,.65);
}
.status-dot.checking {
  animation: pulse 1.3s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .4; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

.shield {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(140,255,178,.08);
  border: 1px solid rgba(140,255,178,.16);
}
.shield svg {
  width: 27px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.latency {
  margin-top: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.ping-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ping-value span {
  font-size: 52px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.06em;
}
.ping-value small { color: var(--muted); }

.signal {
  height: 48px;
  display: flex;
  gap: 5px;
  align-items: end;
}
.signal span {
  width: 6px;
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  border-radius: 5px;
}
.signal span:nth-child(1){height: 13px;opacity:.55}
.signal span:nth-child(2){height: 22px;opacity:.7}
.signal span:nth-child(3){height: 32px;opacity:.85}
.signal span:nth-child(4){height: 43px}

.status-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.floating-card {
  position: absolute;
  z-index: 3;
  background: rgba(18,22,33,.9);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

.floating-price {
  top: 40px;
  right: -6px;
  padding: 14px 16px;
}
.floating-price span,
.floating-price small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.floating-price strong {
  display: block;
  font-size: 22px;
  margin: 2px 0;
}

.floating-trial {
  left: -15px;
  bottom: 60px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.floating-trial .spark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(125,232,255,.08);
  color: var(--accent-2);
}
.floating-trial strong,
.floating-trial small { display:block; }
.floating-trial small { color: var(--muted); }

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 36px;
}
.section-heading h2,
.price-card h2 {
  margin: 10px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -.05em;
}
.section-heading p,
.price-card p {
  color: var(--muted);
  line-height: 1.7;
}

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

.feature-card {
  min-height: 260px;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  transition: transform .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(140,255,178,.18);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(140,255,178,.06);
  border: 1px solid rgba(140,255,178,.12);
  font-size: 20px;
}
.feature-card h3 {
  margin: 24px 0 10px;
  font-size: 20px;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.pricing-section { padding-top: 70px; }

.price-card {
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(140,255,178,.14);
  background:
    radial-gradient(circle at 90% 20%, rgba(140,255,178,.09), transparent 30%),
    linear-gradient(145deg, rgba(17,22,31,.96), rgba(10,13,19,.92));
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
  box-shadow: var(--shadow);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 13px;
  color: #d8dde7;
}
.price-card li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-card li span { color: var(--accent); }

.price-box {
  padding: 28px;
  border-radius: 22px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  text-align: center;
}
.price-main {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 6px;
}
.price-main strong {
  font-size: 74px;
  line-height: 1;
  letter-spacing: -.07em;
}
.price-main span {
  font-size: 25px;
  margin-top: 8px;
}
.price-period {
  color: var(--muted);
  margin-top: 6px;
}
.trial-badge {
  margin: 18px 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(140,255,178,.07);
  color: var(--accent);
  font-size: 13px;
}
.price-box small {
  display: block;
  color: var(--muted);
  margin-top: 11px;
}

.faq-section { padding-bottom: 120px; }

.faq-list {
  display: grid;
  gap: 10px;
}
details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  padding: 0 20px;
}
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 20px 0;
}
summary::-webkit-details-marker { display:none; }
details p {
  margin: -4px 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}
.footer p { margin-right: auto; }
.footer > a:last-child { color: var(--accent); }

@media (max-width: 900px) {
  .nav { display:none; }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 65px;
  }
  .hero-panel { min-height: 420px; }
  .feature-grid { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header { width: calc(100% - 20px); top: 10px; }
  .header-cta { display:none; }
  .hero,
  .section,
  .footer { width: calc(100% - 24px); }
  .hero { padding-top: 52px; }
  h1 { font-size: 52px; }
  .hero-text { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .button { width:100%; }
  .hero-panel { min-height: 390px; }
  .status-card { padding: 21px; }
  .floating-price { right: 0; top: 20px; }
  .floating-trial { left: 0; bottom: 24px; }
  .ping-value span { font-size: 44px; }
  .section { padding: 70px 0; }
  .price-card { padding: 22px; }
  .price-box { padding: 22px; }
  .footer { align-items:flex-start; flex-direction:column; }
  .footer p { margin:0; }
}


/* MTProto help */
.button-proxy-help {
  cursor: pointer;
  color: #dfffe9;
  border-color: rgba(140,255,178,.18);
  background: rgba(140,255,178,.055);
  font: inherit;
}

.button-proxy-help:hover {
  border-color: rgba(140,255,178,.34);
  background: rgba(140,255,178,.09);
}

.proxy-quick {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.proxy-quick a {
  color: var(--accent);
  font-weight: 750;
}

.proxy-quick a:hover {
  text-decoration: underline;
}

.proxy-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.proxy-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.proxy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,5,9,.78);
  backdrop-filter: blur(10px);
}

.proxy-dialog {
  width: min(100%, 590px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  position: relative;
  z-index: 1;
  padding: 32px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 0%, rgba(140,255,178,.08), transparent 30%),
    linear-gradient(145deg, #121722, #0b0e15);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 34px 100px rgba(0,0,0,.55);
}

.proxy-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.proxy-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--accent);
  background: rgba(140,255,178,.07);
  border: 1px solid rgba(140,255,178,.16);
  font-size: 23px;
  font-weight: 800;
}

.proxy-dialog h2 {
  margin: 9px 0 10px;
  padding-right: 38px;
  font-size: clamp(31px, 5vw, 44px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.proxy-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.proxy-steps {
  display: grid;
  gap: 12px;
  margin: 25px 0 22px;
}

.proxy-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.proxy-step > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(140,255,178,.08);
  color: var(--accent);
  font-weight: 850;
}

.proxy-step strong {
  display: block;
  margin: 3px 0 5px;
}

.proxy-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.proxy-connect {
  margin-top: 4px;
}

.proxy-bot-link {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.proxy-note {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

body.proxy-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .proxy-dialog {
    padding: 25px 19px 20px;
    border-radius: 22px;
  }

  .proxy-step {
    grid-template-columns: 30px 1fr;
    padding: 13px;
  }

  .proxy-quick {
    line-height: 1.5;
  }
}
