:root {
  --bg: #0e1116;
  --surface: #161b22;
  --surface-2: #1d232c;
  --border: #262d38;
  --text: #edeef0;
  --muted: #9aa4b2;
  --accent: #2bd4a6;
  --accent-2: #e8a33d;
  --danger: #ef6a6a;
  --radius: 14px;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 32px; }
h3 { font-size: 1.15rem; }

p { color: var(--muted); margin: 0 0 12px; }

a { color: inherit; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--accent);
  color: #08150f;
}
.btn--primary:hover { transform: translateY(-1px); background: #35e8b6; }
.btn--wide { width: 100%; text-align: center; }

/* ---------------- Topbar ---------------- */
.topbar {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.nav-cta {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 500;
}
.nav-cta:hover { border-color: var(--accent); }

/* ---------------- Hero ---------------- */
.hero { padding: 72px 0 40px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__lede { font-size: 1.08rem; max-width: 46ch; }
.hero__stats {
  display: flex;
  gap: 36px;
  margin: 36px 0 0;
}
.hero__stats dt {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
}
.hero__stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.route-svg { width: 100%; height: auto; }
.route-blocked {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
  stroke-dasharray: 6 6;
}
.route-block-x { fill: var(--surface-2); stroke: var(--danger); stroke-width: 2; }
.route-x1 { stroke: var(--danger); stroke-width: 2; }
.route-live {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route-dot { fill: var(--accent-2); }
.route-dot--end { fill: var(--accent); }
.route-label {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---------------- Steps ---------------- */
.steps { padding: 40px 0; border-top: 1px solid var(--border); }
.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.steps__list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* ---------------- Pricing / Checkout ---------------- */
.pricing { padding: 56px 0; border-top: 1px solid var(--border); }
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.plan-card:hover { border-color: var(--accent); }
.plan-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-card input { position: absolute; opacity: 0; }
.plan-card__tag {
  display: inline-block;
  background: var(--accent-2);
  color: #201400;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 10px;
}
.plan-card__title { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 6px; }
.plan-card__price { font-size: 1.6rem; font-weight: 600; color: var(--text); }
.plan-card__price span { font-size: 0.9rem; color: var(--muted); font-weight: 400; }

.checkout__contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.checkout__contact label, .pay-option {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}
.checkout__contact input {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.checkout__contact input:focus, .plan-card input:focus-visible + * {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.checkout__pay {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.checkout__pay legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.85rem;
}
.pay-option { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: var(--text); }
.checkout__error {
  color: var(--danger);
  font-size: 0.9rem;
  margin-top: 10px;
}
.muted { color: var(--muted); font-weight: 400; }

/* ---------------- FAQ ---------------- */
.faq { padding: 56px 0 72px; border-top: 1px solid var(--border); }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1.02rem;
}
.faq p { margin-top: 10px; }

/* ---------------- Footer ---------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------------- Success page ---------------- */
.success-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}
.success-wrap img { border-radius: 12px; margin: 24px 0; background: #fff; padding: 12px; }
.config-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  word-break: break-all;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent);
  text-align: left;
  margin: 16px 0;
}
.copy-btn { margin-top: 8px; }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 24px auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .steps__list, .plans { grid-template-columns: 1fr; }
  .checkout__contact { grid-template-columns: 1fr; }
}
