:root {
  --bg: #050b08;
  --surface: #09110d;
  --surface-2: #0d1711;
  --surface-3: #101c15;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.12);
  --text: #f5f8f6;
  --muted: #8d9d94;
  --green: #34e889;
  --green-2: #20c875;
  --danger: #ff777e;
  --shadow: 0 28px 80px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0%, rgba(52,232,137,.08), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(52,232,137,.04), transparent 25%),
    linear-gradient(180deg, #06100a 0%, #040806 100%);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(5,11,8,.84);
  backdrop-filter: blur(18px) saturate(130%);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 13px; object-fit: cover; border: 1px solid rgba(52,232,137,.22); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.brand > span { display: flex; flex-direction: column; gap: 2px; }
.brand strong { color: var(--green); font-size: 14px; line-height: 1.2; letter-spacing: -.01em; }
.brand small { color: #718078; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions > a, .status-pill, .prefix-badge {
  color: #cbd5cf;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255,255,255,.022);
  font-size: 12px;
  font-weight: 600;
}
.status-pill { display: inline-flex; align-items: center; gap: 7px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(52,232,137,.75); }
.header-actions > a:hover { color: var(--green); border-color: rgba(52,232,137,.26); }
.language-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.022); }
.lang-btn { min-width: 39px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: #7f8d85; font-size: 11px; font-weight: 800; cursor: pointer; transition: .18s ease; }
.lang-btn:hover { color: #d9e0dc; }
.lang-btn.active { color: #031008; background: var(--green); box-shadow: 0 5px 16px rgba(52,232,137,.16); }

.hero { padding: 84px 0 74px; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(400px,.76fr); gap: 78px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #95a89d; font-size: 12px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 15px rgba(52,232,137,.5); }
.kicker, .small-label { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .015em; }
.hero h1 { margin: 18px 0 18px; max-width: 700px; font-size: clamp(44px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.045em; font-weight: 750; }
.lead { margin: 0; max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.feature-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 9px; }
.feature-row span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: #afbeb6; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.018); }
.bot-summary { margin-top: 34px; max-width: 540px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.012); }
.bot-summary div { min-height: 82px; padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-right: 1px solid var(--line); }
.bot-summary div:last-child { border-right: 0; }
.bot-summary b { color: var(--green); font-size: 21px; letter-spacing: -.02em; }
.bot-summary span { color: #75847b; font-size: 11px; }

.pair-card { position: relative; padding: 26px; border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(180deg, rgba(15,29,21,.98), rgba(7,14,10,.98)); box-shadow: var(--shadow); overflow: hidden; }
.pair-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(52,232,137,.45), transparent); opacity: .65; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.card-title-wrap { display: flex; align-items: center; gap: 13px; min-width: 0; }
.card-title-wrap img { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px; object-fit: cover; border: 1px solid rgba(52,232,137,.2); }
.card-heading h2 { margin: 5px 0 0; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
.server-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #66736c; box-shadow: 0 0 0 5px rgba(255,255,255,.03); }
.server-dot.online { background: var(--green); box-shadow: 0 0 0 5px rgba(52,232,137,.08), 0 0 16px rgba(52,232,137,.46); }
.server-dot.offline { background: var(--danger); }
.server-dot.checking { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

label { display: block; margin-bottom: 8px; color: #d5ddd8; font-size: 12px; font-weight: 700; }
.phone-field { height: 54px; display: flex; align-items: center; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: #07100b; transition: border-color .18s ease, box-shadow .18s ease; overflow: hidden; }
.phone-field:focus-within { border-color: rgba(52,232,137,.5); box-shadow: 0 0 0 4px rgba(52,232,137,.055); }
.phone-field > span { padding-left: 15px; color: var(--green); font-weight: 800; }
.phone-field input { width: 100%; height: 100%; border: 0; outline: 0; padding: 0 14px 0 8px; background: transparent !important; color: var(--text); font-size: 15px; font-weight: 650; caret-color: var(--green); }
.phone-field input::placeholder { color: #526058; }
.phone-field input:-webkit-autofill,
.phone-field input:-webkit-autofill:hover,
.phone-field input:-webkit-autofill:focus { -webkit-text-fill-color: #f5f8f6 !important; -webkit-box-shadow: 0 0 0 1000px #07100b inset !important; box-shadow: 0 0 0 1000px #07100b inset !important; transition: background-color 9999s ease-in-out 0s; }
.field-hint { margin: 9px 2px 16px; color: #6f7f76; font-size: 11px; line-height: 1.55; }
.primary-btn, .secondary-btn, .text-btn, .code-box { cursor: pointer; }
.primary-btn { width: 100%; height: 52px; border: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #39ea8e, #2dd980); color: #031008; font-size: 13px; font-weight: 800; box-shadow: 0 12px 26px rgba(52,232,137,.12); transition: transform .18s ease, filter .18s ease; }
.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.035); }
.primary-btn:active { transform: translateY(0); }
.primary-btn:disabled { cursor: wait; opacity: .6; transform: none; }
.primary-btn svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pair-result { margin-top: 12px; }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.status-badge { padding: 7px 10px; border-radius: 999px; color: var(--green); background: rgba(52,232,137,.075); border: 1px solid rgba(52,232,137,.14); font-size: 11px; font-weight: 800; }
.status-badge.connected { color: #031008; background: var(--green); border-color: var(--green); }
.status-badge.error { color: #ff9aa0; background: rgba(255,119,126,.07); border-color: rgba(255,119,126,.16); }
.masked-number { color: var(--muted); font-size: 11px; }
.code-panel { margin: 10px 0 18px; }
.code-box { width: 100%; min-height: 70px; margin-top: 8px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 1px dashed rgba(52,232,137,.28); border-radius: 13px; background: rgba(52,232,137,.035); color: var(--text); }
.code-box strong { color: var(--green); font-size: 22px; letter-spacing: .09em; }
.code-box span { color: #89988f; font-size: 11px; }
.qr-panel { text-align: center; margin: 15px 0 18px; }
.qr-shell { width: 190px; height: 190px; margin: auto; padding: 9px; border-radius: 14px; background: #fff; }
.qr-shell img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-panel p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.steps { list-style: none; padding: 0; margin: 19px 0; display: grid; gap: 11px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; }
.steps li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: rgba(52,232,137,.065); border: 1px solid rgba(52,232,137,.11); font-size: 10px; font-weight: 800; }
.steps p { margin: 4px 0 0; color: #89988f; font-size: 11px; line-height: 1.55; }
.result-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.secondary-btn { border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 9px 12px; background: rgba(255,255,255,.025); color: #dbe2de; font-size: 11px; font-weight: 700; }
.text-btn { border: 0; background: transparent; color: #7c8b83; padding: 8px; font-size: 11px; font-weight: 700; }
.secondary-btn:hover, .text-btn:hover { color: var(--green); }
.error-box { margin-top: 14px; padding: 12px 13px; border: 1px solid rgba(255,119,126,.14); border-radius: 10px; background: rgba(255,119,126,.065); color: #ff949a; font-size: 11px; line-height: 1.55; }
.hidden { display: none !important; }

.commands-section { padding: 84px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.009); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading h2, .system-card h2 { margin: 9px 0 0; font-size: clamp(29px,4vw,42px); line-height: 1.12; letter-spacing: -.035em; }
.prefix-badge b { color: var(--green); margin-left: 4px; }
.command-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.command-grid article { min-height: 170px; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.008)); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.command-grid article:hover { transform: translateY(-3px); border-color: rgba(52,232,137,.22); background: linear-gradient(180deg, rgba(52,232,137,.035), rgba(255,255,255,.008)); }
.command-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid rgba(52,232,137,.13); background: rgba(52,232,137,.055); color: var(--green); }
.command-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.command-grid h3 { margin: 18px 0 8px; font-size: 15px; letter-spacing: -.01em; }
.command-grid p { margin: 0; color: #7f8f86; font-size: 12px; line-height: 1.75; word-break: break-word; }

.system-section { padding: 72px 0 88px; }
.system-card { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 34px; border: 1px solid rgba(52,232,137,.13); border-radius: 20px; background: linear-gradient(120deg, rgba(52,232,137,.04), rgba(255,255,255,.008)); }
.system-card p { max-width: 660px; margin-bottom: 0; color: var(--muted); line-height: 1.75; font-size: 13px; }
.system-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.system-list span { padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; color: #abb9b1; background: rgba(255,255,255,.017); font-size: 11px; font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #66756d; font-size: 11px; }
.footer-inner p { display: flex; align-items: center; gap: 9px; margin: 0; }
.footer-inner b { color: #aebbb4; }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 58px; }
  .pair-card { width: min(560px,100%); }
  .command-grid { grid-template-columns: repeat(2,1fr); }
  .system-card { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { width: min(100% - 24px,1160px); }
  .header-inner { min-height: 68px; gap: 12px; }
  .brand img { width: 36px; height: 36px; border-radius: 11px; }
  .brand strong { font-size: 12px; }
  .brand small { display: none; }
  .status-pill { display: none; }
  .header-actions > a { display: none; }
  .language-switch { margin-left: auto; }
  .hero { padding: 46px 0 54px; }
  .hero h1 { font-size: clamp(38px,11vw,50px); }
  .lead { font-size: 14px; }
  .bot-summary div { padding: 14px 10px; min-height: 72px; }
  .bot-summary b { font-size: 18px; }
  .pair-card { padding: 19px; border-radius: 18px; }
  .card-title-wrap img { width: 43px; height: 43px; }
  .card-heading h2 { font-size: 18px; }
  .command-grid { grid-template-columns: 1fr; }
  .commands-section { padding: 62px 0; }
  .prefix-badge { display: none; }
  .system-card { padding: 23px; }
  .system-list { grid-template-columns: 1fr; }
  .footer-inner { padding: 20px 0; align-items: flex-start; }
}
