:root {
  --bg: #f4f7f1;
  --paper: #ffffff;
  --ink: #12263a;
  --muted: #526170;
  --brand: #1f9d8f;
  --brand-strong: #15776c;
  --accent: #ff8f52;
  --line: #d6e2df;
  --shadow: 0 20px 60px rgba(18, 38, 58, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Rubik", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, #dff8ef 0%, transparent 45%),
    radial-gradient(circle at 90% 15%, #ffe6d8 0%, transparent 35%),
    var(--bg);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(8px);
  pointer-events: none;
  opacity: 0.6;
}

.orb-a {
  width: 360px;
  height: 360px;
  background: #b4f0da;
  top: -140px;
  right: -110px;
}

.orb-b {
  width: 280px;
  height: 280px;
  background: #ffd6bf;
  bottom: -110px;
  left: -60px;
}

.container {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.hero {
  padding: 42px 36px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fffd 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #173149 0%, #215072 100%);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 8px 18px rgba(23, 49, 73, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(23, 49, 73, 0.3);
}

.hero-bot-link {
  text-decoration: none;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-strong);
  border: 1px solid #cde7e2;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f7fffd;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-bot-link:hover {
  background: #ecfbf7;
  border-color: #b9ddd6;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-strong);
}

h1 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.03;
}

.subtitle {
  margin: 18px 0 0;
  max-width: 690px;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  box-shadow: 0 10px 28px rgba(31, 157, 143, 0.35);
}

.btn-secondary {
  margin-top: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, #f27035 100%);
  box-shadow: 0 10px 28px rgba(255, 143, 82, 0.35);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #ffffff;
}

.hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.panel {
  margin-top: 18px;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

h2 {
  margin: 0 0 18px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(18px, 2vw, 23px);
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kv-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  background: #fbfffe;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
}

.kv-item.secret {
  grid-column: 1 / -1;
}

.kv-label {
  grid-column: 1 / -1;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

code {
  margin: 0;
  padding: 0;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 14px;
  line-height: 1.4;
  color: #173149;
  word-break: break-all;
}

.copy-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  border-radius: 10px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: #f3f8f7;
}

.steps {
  margin-top: 18px;
}

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

.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.step-num {
  margin: 0 0 10px;
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: #e8f7f3;
  color: var(--brand-strong);
}

.step-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.step-route {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 14px;
}

.mini-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.bot-username-line {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.troubles-grid > div {
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fafffd;
}

.troubles-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.seo-link-card {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.seo-link-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: "Rubik", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.seo-link-card:hover {
  border-color: #c2d8d4;
  background: #f9fffd;
}

.promo-callout {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #cde7e2;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f7fffd 0%, #f0faf6 100%);
}

.promo-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.promo-callout p + p {
  margin-top: 6px;
}

.promo-callout .promo-label {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-strong);
  margin-bottom: 8px;
}

.promo-code-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.promo-code-line code {
  display: inline-block;
  padding: 8px 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-strong);
  background: #ffffff;
  border: 2px dashed var(--brand);
  border-radius: var(--radius-md);
  user-select: all;
}

.promo-code-line .copy-btn {
  padding: 8px 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  background: #173149;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  animation: rise 0.5s ease both;
}

.panel.reveal:nth-of-type(2) {
  animation-delay: 0.08s;
}

.steps.reveal {
  animation-delay: 0.14s;
}

.panel.reveal:last-of-type {
  animation-delay: 0.2s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .step-grid {
    grid-template-columns: 1fr;
  }

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

  .seo-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100%, calc(100% - 18px));
    margin: 14px auto 30px;
  }

  .hero {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .hero-top {
    flex-wrap: wrap;
    margin-bottom: 8px;
  }

  .hero-bot-link,
  .brand-chip {
    width: auto;
  }

  .panel {
    padding: 18px 14px;
  }

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

  .kv-item.secret {
    grid-column: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
