/* HERO */
.hero { text-align: center; padding: 6rem 5% 4rem; max-width: 900px; margin: 0 auto; }
.badge {
  display: inline-block; padding: 0.4rem 1rem;
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.85rem; color: var(--accent);
  background: rgba(34, 211, 238, 0.08); margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--primary-glow), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 2.5rem; }

.status-strip { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.status-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 1.6rem; min-width: 180px; text-align: left;
}
.status-card .label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.status-card .value { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem; transition: all 0.3s;
}
.feature:hover { border-color: var(--primary); transform: translateY(-4px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(139, 92, 246, 0.12); display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 1.2rem;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* CONFIGURATOR */
.configurator {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 2.5rem; max-width: 760px; margin: 0 auto;
}
.configurator h3 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.config-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
@media (max-width: 600px) { .config-row { grid-template-columns: 1fr; } }

.gateway-preview {
  margin-top: 1.5rem; padding: 1.2rem 1.4rem; border-radius: 12px;
  background: #0d1117; border: 1px solid var(--border);
  font-family: 'Fira Code', monospace; font-size: 0.85rem;
  color: #c9d1d9; word-break: break-all; line-height: 1.7;
}
.preview-actions { display: flex; gap: 0.6rem; margin-top: 0.8rem; }
.preview-actions button {
  padding: 0.5rem 1rem; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text); cursor: pointer; font-size: 0.85rem;
  transition: all 0.2s;
}
.preview-actions button:hover { border-color: var(--primary); background: rgba(139,92,246,0.1); }
.preview-actions button:disabled { opacity: 0.6; cursor: not-allowed; }

/* API DEMO */
.api-demo { background: #0d1117; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; max-width: 860px; margin: 0 auto; }
.api-header {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.2rem;
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.api-header .title { margin-left: auto; color: var(--muted); font-size: 0.85rem; font-family: monospace; }
.api-body {
  padding: 1.2rem; font-family: 'Fira Code', monospace; font-size: 0.85rem;
  color: #c9d1d9; min-height: 140px; max-height: 320px; overflow: auto;
}
.api-body .method { color: #79c0ff; font-weight: 700; }
.api-body .url { color: #a5d6ff; }
.api-body pre { margin-top: 1rem; white-space: pre-wrap; }
.api-body .loading { color: var(--muted); font-style: italic; }
.api-controls { padding: 1rem 1.2rem; border-top: 1px solid var(--border); display: flex; gap: 0.8rem; flex-wrap: wrap; }
.api-controls button {
  padding: 0.6rem 1.2rem; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text); cursor: pointer; font-size: 0.9rem;
  transition: all 0.2s;
}
.api-controls button:hover { border-color: var(--primary); background: rgba(139,92,246,0.1); }
.api-controls button.active { background: var(--primary); border-color: var(--primary); }

/* LOGS */
.logs-panel {
  max-width: 860px; margin: 0 auto;
  background: #0d1117; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.logs-head {
  padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex; justify-content: space-between; align-items: center;
}
.logs-head .left {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 600; font-size: 0.9rem;
}
.logs-head .right button {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  padding: 0.4rem 0.9rem; border-radius: 8px; cursor: pointer; font-size: 0.8rem;
  transition: all 0.2s;
}
.logs-head .right button:hover { border-color: var(--primary); }
.logs-body {
  padding: 1rem 1.2rem; font-family: 'Fira Code', monospace;
  font-size: 0.8rem; line-height: 1.8; max-height: 260px; overflow-y: auto;
}
.log-line { display: flex; gap: 0.8rem; animation: fadeIn 0.4s ease; }
.log-time    { color: #8b949e; flex-shrink: 0; }
.log-method  { font-weight: 700; flex-shrink: 0; }
.log-method.GET    { color: #79c0ff; }
.log-method.POST   { color: #7ee787; }
.log-method.PUT    { color: #ffa657; }
.log-method.DELETE { color: #ff7b72; }
.log-path    { color: #c9d1d9; flex: 1; }
.log-code    { font-weight: 700; flex-shrink: 0; }
.log-code.s2 { color: #7ee787; }
.log-code.s4 { color: #ffa657; }
.log-code.s5 { color: #ff7b72; }
.log-latency { color: #8b949e; flex-shrink: 0; }

/* PRICING */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.plan {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem; transition: all 0.3s;
  display: flex; flex-direction: column;
}
.plan:hover { border-color: var(--primary); transform: translateY(-4px); }
.plan.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(139,92,246,0.1), var(--card));
  position: relative;
}
.plan.featured::after {
  content: 'Популярный'; position: absolute; top: -10px; right: 1.2rem;
  background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.7rem; border-radius: 100px;
}
.plan-name  { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.plan-price { font-size: 2.2rem; font-weight: 800; margin: 0.8rem 0; letter-spacing: -1px; }
.plan-price small { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.plan-features { list-style: none; margin: 1.2rem 0 1.6rem; flex-grow: 1; }
.plan-features li {
  padding: 0.4rem 0; color: var(--muted); font-size: 0.9rem;
  display: flex; gap: 0.5rem;
}
.plan-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.plan .btn { width: 100%; text-align: center; }

/* FINAL CTA */
.final-cta {
  text-align: center; padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(34,211,238,0.12));
  border: 1px solid var(--border); border-radius: 24px;
  margin: 3rem auto; max-width: 900px;
}
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; letter-spacing: -1px; }
.final-cta p  { color: var(--muted); margin-bottom: 2rem; }
