:root {
  --bg-top: #080b1c;
  --bg-mid: #0e0a24;
  --bg-bottom: #050817;
  --card: rgba(255, 255, 255, 0.055);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --accent: #00d4ff;
  --accent-secondary: #8f4afa;
  --accent-tertiary: #ff459e;
  --connected: #33f28c;
  --warn: #ffb833;
  --radius: 22px;
  --radius-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%);
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(ellipse 420px 320px at 15% 8%, rgba(0, 212, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 480px 360px at 90% 72%, rgba(143, 74, 250, 0.22), transparent 72%);
}

body::after {
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.28) 100%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.wrap-narrow { max-width: 520px; }

/* Brand */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 36px;
}

.brand-inline {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 14px;
  margin-bottom: 28px;
}

.logo-mark {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.35) 0%, rgba(143, 74, 250, 0.08) 55%, transparent 70%);
}

.logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-secondary), var(--accent-tertiary), rgba(0, 212, 255, 0.45), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.35);
}

.logo-core {
  position: absolute;
  inset: 14%;
  border-radius: 16px;
  background: linear-gradient(145deg, #1f2447 0%, #0f142e 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
}

.logo-core svg {
  width: 52%;
  height: 52%;
}

.wordmark {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 55%, var(--accent-tertiary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.brand-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

h1 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.card-text {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact-list li {
  display: grid;
  gap: 4px;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.lead {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 1rem;
}

/* Cards */

.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06), rgba(0, 212, 255, 0.18));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.feature-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 560px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-icon {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.feature-title {
  font-weight: 650;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.feature-text {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--connected);
  background: rgba(51, 242, 140, 0.1);
  border: 1px solid rgba(51, 242, 140, 0.28);
  margin-bottom: 20px;
}

.privacy-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--connected);
  box-shadow: 0 0 10px rgba(51, 242, 140, 0.6);
}

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 14px;
}

input:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  color: #032028;
  background: linear-gradient(180deg, #c8fbff 0%, #6deeff 42%, #45e4ff 100%);
  box-shadow:
    0 0 0 1px rgba(180, 250, 255, 0.7),
    0 8px 28px rgba(80, 220, 255, 0.35);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  filter: brightness(1.04);
  box-shadow:
    0 0 0 1px rgba(200, 252, 255, 0.85),
    0 10px 32px rgba(80, 220, 255, 0.42);
}

.btn-primary:active {
  box-shadow:
    0 0 0 1px rgba(180, 250, 255, 0.7),
    0 4px 16px rgba(80, 220, 255, 0.28);
}

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

.btn-ghost {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.62);
}

.btn-ghost:active {
  background: rgba(255, 255, 255, 0.32);
}

/* кнопки не должны тускнеть вместе с reveal-блоками */
.reveal-block .btn {
  opacity: 1 !important;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 480px) {
  .btn-row { flex-direction: row; }
  .btn-row .btn { width: auto; flex: 1; }
}

.plan {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.plan.selected {
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.07);
}

.plan input { width: auto; margin: 0; accent-color: var(--accent); }

.plan-info { flex: 1; }

.plan-title { font-weight: 650; }

.plan-sub { font-size: 0.85rem; color: var(--muted); }

.plan-price {
  font-weight: 750;
  white-space: nowrap;
  color: var(--accent);
}

.badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.14);
  color: var(--accent);
  margin-left: 8px;
  vertical-align: middle;
}

.msg {
  font-size: 0.9rem;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.msg-error {
  background: rgba(255, 70, 90, 0.12);
  color: #ff9aaa;
  border: 1px solid rgba(255, 70, 90, 0.25);
}

.msg-ok {
  background: rgba(51, 242, 140, 0.1);
  color: #8efcb8;
  border: 1px solid rgba(51, 242, 140, 0.25);
}

.msg-info {
  background: rgba(0, 212, 255, 0.08);
  color: #9aeaff;
  border: 1px solid rgba(0, 212, 255, 0.22);
}

.status {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.steps {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.steps li { margin-bottom: 8px; }

.steps strong { color: var(--text); }

.footer {
  margin-top: 36px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

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

.footer a:hover { text-decoration: underline; }

.hidden { display: none !important; }

.legal-doc h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.legal-doc p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-doc p:last-child { margin-bottom: 0; }

.legal-doc ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-doc li { margin-bottom: 6px; }

.legal-doc a { color: var(--accent); }
