/* ============================================================
   API Watchdog — Landing styles
   Dark, minimalist, dev-tool aesthetic (Linear / Raycast вектор)
   ============================================================ */

/* ---------- Reset & root ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --bg:        #0a0b0f;
  --bg-alt:    #0f1117;
  --surface:   #131520;
  --surface-2: #181a26;
  --border:    #232634;
  --border-2:  #2c3042;
  --text:      #e8eaf2;
  --text-mute: #9aa0b4;
  --text-dim:  #6c7186;
  --accent:    #8b9cff;
  --accent-2:  #a78bff;
  --danger:    #ff6b6b;
  --warn:      #ffd166;
  --info:      #62b6ff;
  --ok:        #6ee7b7;

  --radius:   12px;
  --radius-l: 18px;
  --max-w:    1080px;
}

/* ---------- Typography ---------- */
h1, h2, h3 { color: var(--text); margin: 0 0 0.6em; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.6vw, 36px); font-weight: 650; }
h3 { font-size: 18px; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--text); }
.lead { font-size: 17px; color: var(--text); }
.muted { color: var(--text-mute); }
.small { font-size: 13px; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--accent);
  background: rgba(139,156,255,0.08);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(139,156,255,0.18);
}
.accent { color: var(--accent); }

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-2); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,11,15,0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.brand-mark { color: var(--accent); font-size: 20px; line-height: 1; }
.brand-name { letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text-mute); font-size: 14px; }
.nav a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  font-size: 15px; font-weight: 550;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover { background: #fff; color: var(--bg); border-color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { border-color: var(--text-mute); color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(139,156,255,0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(167,139,255,0.08), transparent 60%);
}
.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(139,156,255,0.08);
  border: 1px solid rgba(139,156,255,0.22);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-title {
  max-width: 880px;
  margin-bottom: 22px;
}
.hero-sub {
  max-width: 680px;
  font-size: 18px;
  color: var(--text-mute);
  margin-bottom: 32px;
}
.hero-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px;
  margin-bottom: 56px;
}
.hero-microcopy { color: var(--text-mute); font-size: 14px; }

/* Mock alert card */
.alert-card {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  max-width: 560px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 20px 40px -20px rgba(0,0,0,0.6);
}
.alert-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.alert-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 6px;
}
.tag-breaking {
  color: #ffb3b3;
  background: rgba(255,107,107,0.12);
  border: 1px solid rgba(255,107,107,0.3);
}
.alert-source { color: var(--text-dim); font-size: 12px; }
.alert-title { color: var(--text); font-weight: 600; margin-bottom: 8px; }
.alert-line { color: var(--text-mute); margin-bottom: 4px; }
.alert-key { color: var(--text-dim); }

/* ---------- Steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.steps li {
  display: flex; gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px;
}
.step-num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  background: rgba(139,156,255,0.08);
  border: 1px solid rgba(139,156,255,0.22);
  border-radius: 8px;
  padding: 6px 10px;
  height: fit-content;
  letter-spacing: 0.06em;
}
.step-body h3 { margin-bottom: 4px; }
.step-body p  { color: var(--text-mute); margin: 0; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Reasons (Why not TG) ---------- */
.reasons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px;
}
.reason-num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  background: rgba(139,156,255,0.08);
  border: 1px solid rgba(139,156,255,0.22);
  border-radius: 8px;
  padding: 6px 10px;
  height: fit-content;
  letter-spacing: 0.06em;
}
.reason h3 { margin-bottom: 6px; }
.reason p  { color: var(--text-mute); margin: 0; }

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-l);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(139,156,255,0.08), transparent 60%);
  pointer-events: none;
}
.pricing-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 8px;
}
.pricing-title { margin: 0; }
.pricing-num { font-size: 32px; font-weight: 700; color: var(--text); }
.pricing-period { color: var(--text-mute); font-size: 16px; margin-left: 4px; }
.pricing-tag { color: var(--text-mute); margin-bottom: 20px; }

.features {
  list-style: none; padding: 0; margin: 0 0 28px;
  border-top: 1px solid var(--border);
}
.features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  position: relative;
  padding-left: 24px;
}
.features li::before {
  content: "→";
  position: absolute; left: 0; top: 12px;
  color: var(--accent);
  font-weight: 600;
}

.pricing-cta { margin-bottom: 18px; }
.pricing-note {
  background: var(--bg-alt);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text-mute);
  font-size: 14px;
  margin: 0 0 14px;
}
.pricing-note strong { color: var(--text); }
.pricing-anchor {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0;
}

/* ---------- Signup form ---------- */
.signup-form {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px;
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label, .form-label {
  font-size: 13px; color: var(--text-mute); font-weight: 500;
  letter-spacing: 0.02em;
}
.form-row input[type="text"], .form-row input[type="email"] {
  background: var(--bg);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-row input::placeholder { color: var(--text-dim); }
.form-row input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-alt);
}
.radio-group {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 4px;
}
.radio-group label {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}
.radio-group input[type="radio"] { accent-color: var(--accent); }

.form-microcopy {
  color: var(--text-dim);
  font-size: 13px;
  margin: 12px 0 0;
  text-align: center;
}

.signup-success {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid rgba(110,231,183,0.3);
  border-left: 3px solid var(--ok);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.signup-success h3 { color: var(--ok); margin-bottom: 6px; }
.signup-success p { color: var(--text-mute); margin: 0; }

/* ---------- FAQ ---------- */
.faq {
  margin-top: 24px;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 4px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 550;
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--text-mute);
  font-size: 22px;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq-body {
  color: var(--text-mute);
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 36px 0;
  margin-top: 40px;
}
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  font-size: 14px;
  color: var(--text-mute);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-mute); }
.footer-links a:hover { color: var(--text); }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .pricing-card { padding: 24px 20px; }
  .signup-form { padding: 22px 20px; }
}
