/* ============================================================
   SpyGrabs v2 — Telegram Dark Design System
   Override layer: loaded AFTER landing.css
   ============================================================ */

/* ── Design tokens ── */
:root {
  --bg:            #17212B;
  --bg-soft:       #1E2C3A;
  --surface:       rgba(30, 44, 58, 0.80);
  --surface-strong:#232E3C;
  --surface-dark:  #2B5278;
  --surface-dark-2:#3A7AB5;
  --ink:           #F0F4F8;
  --ink-soft:      #8BA3B8;
  --line:          rgba(76, 184, 255, 0.10);
  --line-strong:   rgba(76, 184, 255, 0.22);
  --accent:        #4CB8FF;
  --accent-hover:  #74CBFF;
  --accent-soft:   rgba(76, 184, 255, 0.12);
  --warm:          #FFB43C;
  --warm-soft:     rgba(255, 180, 60, 0.12);
  --accent-rgb:    76, 184, 255;
  --warm-rgb:      255, 180, 60;
  --dark-rgb:      0, 0, 0;
  --shadow:        0 20px 60px -10px rgba(0,0,0,0.55);
  --shadow-soft:   0 12px 36px rgba(0,0,0,0.35);
  --radius-xl:     20px;
  --radius-lg:     14px;
  --radius-md:     10px;
  --radius-sm:     8px;
  --container:     1240px;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', 'Raleway', system-ui, sans-serif;
}

/* Remove v1 grid overlay */
body::before { display: none; }

/* Animated background mesh */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% -10%, rgba(76,184,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(43,82,120,0.10) 0%, transparent 50%);
}

/* ── Header ── */
.site-header {
  background: rgba(23, 33, 43, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

/* ── Brand logo ── */
.brand__mark--sg {
  background: linear-gradient(135deg, #2B5278 0%, #1a3a5e 100%);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(76,184,255,0.18);
}

.brand__glyph--s { color: #F0F4F8; }

.brand__glyph--g {
  background: linear-gradient(90deg, #4CB8FF 0%, #74CBFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.brand__text small { color: var(--ink-soft); }

/* ── Nav ── */
.site-nav a,
.lang-switch a,
.footer-links a {
  color: var(--ink-soft);
}
.site-nav a:hover,
.lang-switch a:hover,
.footer-links a:hover { color: var(--ink); }

/* ── Lang switch ── */
.lang-switch {
  background: var(--surface-strong);
  border-color: var(--line);
}
.lang-switch .is-current {
  background: rgba(76,184,255,0.14);
  color: var(--accent);
}

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, #3A9AE0 0%, #2B78C2 100%);
  border: 1px solid rgba(76,184,255,0.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 16px rgba(43,120,194,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4DAFF5 0%, #3A8FD9 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 8px 24px rgba(43,120,194,0.45);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink-soft);
}
.btn-secondary:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

/* ── Eyebrow / Section kicker ── */
.eyebrow,
.section-kicker {
  background: rgba(76,184,255,0.08);
  border-color: var(--line);
  color: var(--accent);
}

.section-kicker--light {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  color: rgba(240,244,248,0.7);
}

/* ── Hero ── */
.hero h1 span { color: var(--accent); }

.lead, .section-lead { color: var(--ink-soft); }

/* ── Hero panel / cards / panels ── */
.hero-panel,
.card,
.list-panel,
.step-card,
.pricing-card,
.final-cta,
details,
.private-side,
.support-card {
  background: var(--surface-strong);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

/* Demo stage */
.demo-stage {
  background:
    linear-gradient(180deg, rgba(30,44,58,0.9), rgba(23,33,43,0.95)),
    linear-gradient(135deg, rgba(76,184,255,0.05), transparent 55%);
  border-color: var(--line);
}
.demo-stage::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(76,184,255,0.08), transparent 32%),
    radial-gradient(circle at 82% 88%, rgba(43,82,120,0.10), transparent 28%);
}

/* Demo head */
.demo-head {
  background: rgba(30,44,58,0.7);
  border-color: var(--line);
}
.demo-head__dots span { background: rgba(76,184,255,0.3); }
.demo-head__dots span:nth-child(2) { background: rgba(255,180,60,0.4); }
.demo-head__dots span:nth-child(3) { background: rgba(76,184,255,0.55); }
.demo-head__meta small { color: var(--ink-soft); }

/* Demo tabs */
.demo-tab {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-soft);
}
.demo-tab:hover { background: var(--surface-strong); color: var(--ink); }

/* Demo bubbles */
.demo-bubble--user {
  background: linear-gradient(135deg, rgba(43,82,120,0.6), rgba(35,46,60,0.9));
  border-color: rgba(76,184,255,0.18);
}
.demo-bubble--user strong { color: var(--ink); }
.demo-bubble--bot {
  background: rgba(24,37,51,0.95);
  border-color: var(--line);
}
.demo-bubble--bot p { color: var(--ink-soft); }
.demo-bubble--system {
  background: linear-gradient(135deg, rgba(43,82,120,0.3), rgba(30,44,58,0.9));
  border-color: rgba(76,184,255,0.15);
}
.demo-bubble__label { color: var(--ink-soft); }
.demo-bubble p { color: var(--ink-soft); }

/* Demo badge */
.demo-badge {
  background: rgba(76,184,255,0.12);
  color: var(--accent);
}
.demo-badge--auth,
.demo-badge--queue {
  background: rgba(255,180,60,0.12);
  color: var(--warm);
}

/* Demo progress */
.demo-progress {
  background: rgba(255,255,255,0.06);
}
.demo-progress span {
  background: linear-gradient(90deg, var(--accent), #2B78C2);
}

/* ── Card tags ── */
.card-tag {
  background: rgba(76,184,255,0.10);
  color: var(--accent);
}
.card-tag--warm {
  color: var(--warm);
  background: var(--warm-soft);
  border-color: rgba(255,180,60,0.22);
}

/* ── Card hover ── */
.card--link:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 40px rgba(76,184,255,0.08), var(--shadow);
}

/* ── Steps ── */
.step-card { background: var(--surface-strong); border-color: var(--line); }
.step-number {
  background: rgba(76,184,255,0.08);
  border-color: var(--line);
  color: var(--accent);
}

/* ── Pricing ── */
.pricing-card { background: var(--surface-strong); border-color: var(--line); }
.pricing-card--accent {
  background: linear-gradient(150deg, #1E3A5A, #17212B);
  border-color: var(--line-strong);
}
.pricing-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 40px rgba(76,184,255,0.08), var(--shadow);
}

/* Price value override */
.price-value { color: var(--ink); }
.price-meta { color: var(--ink-soft); }

/* Detail list */
.detail-list li strong { color: var(--ink); }
.detail-list li span { color: var(--ink-soft); }
.detail-list--on-dark li strong,
.detail-list--on-dark li span { color: rgba(240,244,248,0.8); }

/* ── FAQ ── */
details {
  background: var(--surface-strong);
  border-color: var(--line);
}
details summary { color: var(--ink); }
details p { color: var(--ink-soft); }
details[open] { border-color: var(--line-strong); }

/* ── Final CTA ── */
.final-cta { background: var(--surface-strong); border-color: var(--line); }

/* ── Support cards ── */
.support-card {
  background: var(--surface-strong);
  border-color: var(--line);
  color: var(--ink);
}
.support-card:hover { border-color: var(--line-strong); }
.support-card__tag { color: var(--accent); }
.support-card h3 { color: var(--ink); }
.support-card p { color: var(--ink-soft); }

/* \u2500\u2500 Article link cards (articles/index.html grid) \u2500\u2500 */
.article-link-card {
  display: block;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 26px 28px 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  box-shadow: var(--shadow-soft);
}
.article-link-card:hover {
  border-color: rgba(76,184,255,0.35);
  box-shadow: 0 0 0 1px rgba(76,184,255,0.12), var(--shadow);
  transform: translateY(-2px);
}

/* Category pill inside article card */
.article-link-card .support-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(76,184,255,0.10);
  border: 1px solid rgba(76,184,255,0.18);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Title inside card */
.article-link-card h3 {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

/* Description inside card */
.article-link-card p {
  color: #C8D8E8;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

/* Global support-card__tag in dark mode */
.support-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(76,184,255,0.10);
  border: 1px solid rgba(76,184,255,0.18);
  border-radius: 999px;
  color: var(--accent) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── Article meta badges ── */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: rgba(76,184,255,0.10);
  border: 1px solid rgba(76,184,255,0.18);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ── Article copy text ── */
.article-copy h2 { color: var(--ink); font-size: clamp(1.25rem, 2.5vw, 1.6rem); margin-bottom: 12px; }
.article-copy p, .article-copy li { color: #C8D8E8; font-size: 1rem; line-height: 1.75; }
.article-copy ul, .article-copy ol { padding-left: 1.4em; }
.article-copy ol li, .article-copy ul li { margin-bottom: 6px; color: #C8D8E8; }
.article-copy strong { color: var(--ink); }
.article-copy a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(76,184,255,0.35); }
.article-copy a:hover { text-decoration-color: var(--accent); }

/* ── Article aside (quick summary panel) ── */
.article-aside .list-panel { background: var(--surface-strong); border-color: var(--line); }
.article-aside .list-panel p,
.article-aside .list-panel li { color: #C8D8E8; }
.article-aside .list-panel strong { color: var(--ink); }

/* ── Articles index page ── */
.articles-grid .card h3 { color: var(--ink); }
.articles-grid .card p { color: #C8D8E8; }
.articles-list li a { color: var(--ink); }
.articles-list li a:hover { color: var(--accent); }
.articles-list .list-panel p { color: #C8D8E8; }

/* ── eyebrow in articles ── */
.article-shell .eyebrow, .article-shell .section-kicker {
  background: rgba(76,184,255,0.08);
  border-color: var(--line);
  color: var(--accent);
}

/* ── Breadcrumbs ── */
.article-breadcrumbs, .article-breadcrumbs span { color: var(--ink-soft); }
.article-breadcrumbs a { color: var(--ink-soft); }
.article-breadcrumbs a:hover { color: var(--ink); }
.article-breadcrumbs strong { color: var(--ink); }

/* ── Article lead ── */
.article-shell .lead { color: #C8D8E8; font-size: 1.05rem; }

/* ── Footer ── */
.site-footer {
  background: var(--surface-strong);
  border-top: 1px solid var(--line);
}
.brand--footer .brand__text small { color: var(--ink-soft); }

/* ── Section titles ── */
.section-title,
.section-title--compact,
.section-title--light { color: var(--ink); }

/* ── Scenario and other h2/h3 ── */
.card h3, .step-card h3, .pricing-card h3,
.support-card h3, .final-cta h2 { color: var(--ink); }

/* ── Code inline ── */
code {
  background: rgba(76,184,255,0.10);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--accent);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2B5278; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3A7AB5; }

/* ── Featured card (archive) dark bg ── */
.card--featured {
  background: linear-gradient(150deg, #1E3A5A 0%, #17212B 100%);
  border-color: var(--line-strong);
}
.card--featured h3 { color: var(--ink); }
.card--featured p { color: rgba(240,244,248,0.75); }
.card--featured .card-tag--warm { color: var(--warm); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2B5278; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3A7AB5; }

/* ============================================================
   MOBILE RESPONSIVE — v2 Dark
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .scenario-grid,
  .pricing-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .steps-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
  /* Base */
  html { font-size: 15px; }

  /* Header */
  .site-header, .navbar { padding: 0; }
  .header-inner, .nav-inner { padding: 14px 16px; gap: 12px; }
  .site-nav, .nav-links { display: none !important; }
  .brand__text small, .brand-tagline { display: none; }

  /* Hero */
  .hero { padding: 40px 0 32px; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .hero h1, #hero-heading { font-size: clamp(2rem, 8vw, 2.8rem) !important; line-height: 1.05 !important; }
  .hero-lead, .lead { font-size: 1rem !important; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn, .hero-actions .btn-tg, .hero-actions .btn-outline { width: 100%; justify-content: center; }
  .trust-badges { flex-wrap: wrap; gap: 8px; }

  /* Telegram demo widget */
  .tg-demo, .hero-panel--demo { max-height: 420px; }

  /* Sections */
  .section { padding: 56px 0 !important; }
  .section-title, .section-title--compact { font-size: clamp(1.7rem, 6vw, 2.2rem) !important; }
  .section-lead { font-size: 0.97rem; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .step-card:nth-child(2), .step-card:nth-child(4) { margin-top: 0 !important; }

  /* Bento / Scenarios */
  .bento-grid { grid-template-columns: 1fr !important; }
  .bento-card--span2 { grid-column: 1 !important; }
  .bento-card--accent { grid-column: 1 !important; grid-row: auto !important; }
  .scenario-grid { grid-template-columns: 1fr !important; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr !important; gap: 14px !important; }

  /* FAQ */
  .faq-list { max-width: 100%; }

  /* CTA block */
  .cta-block, .final-cta {
    flex-direction: column !important;
    padding: 36px 24px !important;
    text-align: center;
  }
  .cta-actions { width: 100%; }
  .cta-actions .btn-tg, .cta-actions .btn-outline { width: 100%; justify-content: center; }

  /* Support grid */
  .support-grid { grid-template-columns: 1fr !important; }

  /* Articles */
  .article-grid { grid-template-columns: 1fr !important; }
  .article-aside { order: -1; }
  .article-meta { gap: 6px; }
  .article-meta span { font-size: 0.78rem; padding: 5px 10px; }
  .article-copy h2 { font-size: 1.2rem !important; }

  /* Lang switch */
  .lang-switch, .lang-sw { padding: 4px; }
  .lang-switch a, .lang-sw a { padding: 4px 7px; font-size: 0.8rem; }

  /* Footer */
  .footer-inner, .footer-inner { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 2px; }
  .footer-links a { font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1, #hero-heading { font-size: 1.85rem !important; }
  .section-title { font-size: 1.65rem !important; }
  .btn-tg, .btn-primary { font-size: 0.95rem; min-height: 48px; }
  .pricing-card, .step-card, .card, .bento-card { padding: 20px 18px; }
  .cta-block, .final-cta { padding: 28px 18px !important; }
  .cta-text h2 { font-size: 1.5rem !important; }
  .article-meta { flex-direction: column; gap: 6px; }
  .article-meta span { width: fit-content; }
}
