/* ============================================================
   LeadBot Studio — Demo Pages Shared Styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #04080f;
  --bg-card:     #080f1e;
  --bg-dark:     #020609;
  --bg-section:  #060d1a;
  --grad:        linear-gradient(135deg,#2563eb 0%,#0891b2 100%);
  --grad-card:   linear-gradient(135deg,rgba(37,99,235,.04) 0%,rgba(8,145,178,.02) 100%);
  --cyan:        #38bdf8;
  --blue:        #2563eb;
  --border:      rgba(255,255,255,.07);
  --border-blue: rgba(37,99,235,.35);
  --white:       #ffffff;
  --text:        #94a3b8;
  --text-bright: #cbd5e1;
  --text-muted:  #475569;
  --radius:      16px;
  --radius-sm:   8px;
  --ease:        cubic-bezier(.4,0,.2,1);
  --transition:  .28s var(--ease);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --accent-h:    var(--grad);   /* override per page */
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

h1,h2,h3 { color: var(--white); font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -.02em; margin-bottom: 16px; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }

.accent { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #fff; }
.btn--primary:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.btn--outline { background: transparent; color: var(--text-bright); border: 1px solid var(--border-blue); }
.btn--outline:hover { border-color: var(--blue); color: var(--white); background: rgba(37,99,235,.08); }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--tg { background: linear-gradient(135deg,#2ca5e0,#1a8bbf); color:#fff; }
.btn--tg:hover { opacity:.9; transform:translateY(-2px); }
.btn svg { flex-shrink:0; }

/* ── Header ───────────────────────────────────────────────── */
.d-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4,8,15,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.d-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.d-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.d-logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.d-logo__text { display: flex; flex-direction: column; }
.d-logo__title { font-size: 15px; font-weight: 800; color: var(--white); line-height: 1.1; }
.d-logo__sub { font-size: 10px; color: rgba(255,255,255,.45); }

.d-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.d-nav a { font-size: 13px; color: var(--text); padding: 6px 12px; border-radius: 6px; transition: color var(--transition); }
.d-nav a:hover { color: var(--white); }
.d-demo-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.15);
  border-radius: 50px;
  padding: 3px 10px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.d-hero {
  position: relative;
  padding: 80px 0 72px;
  overflow: hidden;
}
.d-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.d-hero__glow--1 { width: 480px; height: 480px; background: rgba(37,99,235,.14); top: -120px; left: -80px; }
.d-hero__glow--2 { width: 360px; height: 360px; background: rgba(8,145,178,.1); top: 40px; right: -60px; }

.d-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.d-hero__content { display: flex; flex-direction: column; }
.d-hero__title { margin-bottom: 20px; }
.d-hero__subtitle { font-size: 17px; color: var(--text); line-height: 1.75; margin-bottom: 36px; max-width: 520px; }
.d-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.d-hero__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.d-hero__badge {
  font-size: 12px;
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 14px;
}

/* ── Phone Mockup ─────────────────────────────────────────── */
.d-hero__visual { display: flex; justify-content: center; align-items: center; }

.phone-mock {
  width: 240px;
  background: #0d1829;
  border-radius: 36px;
  border: 2px solid rgba(37,99,235,.4);
  box-shadow: 0 24px 80px rgba(37,99,235,.2), 0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden;
  position: relative;
}
.phone-mock__bar {
  background: #111d33;
  padding: 10px 16px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.phone-mock__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.phone-mock__info { flex: 1; }
.phone-mock__name { font-size: 12px; font-weight: 700; color: var(--white); }
.phone-mock__status { font-size: 10px; color: #4ade80; }
.phone-mock__body { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 300px; }

.tg-msg { font-size: 11px; border-radius: 10px; padding: 8px 10px; max-width: 85%; line-height: 1.5; }
.tg-msg--bot { background: rgba(37,99,235,.15); border: 1px solid rgba(37,99,235,.25); color: var(--text-bright); align-self: flex-start; border-radius: 2px 10px 10px 10px; }
.tg-msg--user { background: rgba(8,145,178,.2); border: 1px solid rgba(8,145,178,.3); color: var(--white); align-self: flex-end; border-radius: 10px 2px 10px 10px; }

.tg-btns { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.tg-btn { font-size: 10px; background: rgba(37,99,235,.1); border: 1px solid rgba(37,99,235,.25); border-radius: 6px; padding: 6px 10px; color: var(--cyan); text-align: center; }

/* ── Sections ─────────────────────────────────────────────── */
.d-section { padding: 80px 0; }
.d-section--dark { background: var(--bg-section); }
.d-section__header { text-align: center; margin-bottom: 56px; }
.d-section__lead { font-size: 16px; color: var(--text); max-width: 600px; margin: 0 auto; }

/* ── Cards Grid ───────────────────────────────────────────── */
.d-grid { display: grid; gap: 20px; }
.d-grid--3 { grid-template-columns: repeat(3, 1fr); }
.d-grid--2 { grid-template-columns: repeat(2, 1fr); }

.d-card {
  background: var(--bg-card);
  background-image: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.d-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--transition);
}
.d-card:hover { transform: translateY(-5px); border-color: var(--border-blue); box-shadow: 0 16px 48px rgba(37,99,235,.15); }
.d-card:hover::before { opacity: 1; }
.d-card__icon { font-size: 32px; margin-bottom: 14px; }
.d-card__price { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.d-card__note { font-size: 12px; color: var(--text-muted); }
.d-card__desc { font-size: 14px; color: var(--text); line-height: 1.65; margin-top: 8px; }

/* ── Steps ────────────────────────────────────────────────── */
.d-steps { display: flex; flex-direction: column; gap: 0; }
.d-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.d-step:last-child { border-bottom: none; }
.d-step__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(37,99,235,.12);
  border: 1px solid var(--border-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: var(--cyan);
  flex-shrink: 0;
}
.d-step__body { flex: 1; }
.d-step__title { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.d-step__text { font-size: 14px; color: var(--text); }

/* ── Bot Integration Block ────────────────────────────────── */
.d-bot-block {
  background: linear-gradient(135deg, rgba(37,99,235,.09) 0%, rgba(8,145,178,.06) 100%);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.d-bot-block__title { font-size: 24px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.d-bot-block__text { font-size: 15px; color: var(--text); line-height: 1.7; max-width: 520px; }
.d-bot-block__actions { display: flex; flex-direction: column; gap: 10px; min-width: 200px; }

/* ── Features list ────────────────────────────────────────── */
.d-features { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.d-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-bright);
}
.d-feature::before { content: '→'; color: var(--cyan); font-size: 12px; flex-shrink: 0; }

/* ── Pricing ──────────────────────────────────────────────── */
.d-price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
}
.d-price-card:hover { border-color: var(--border-blue); box-shadow: 0 12px 40px rgba(37,99,235,.12); }
.d-price-card--featured {
  border-color: rgba(37,99,235,.5);
  background: linear-gradient(135deg,rgba(37,99,235,.08),rgba(8,145,178,.04));
  box-shadow: 0 0 40px rgba(37,99,235,.1);
}
.d-price-card__name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--cyan); margin-bottom: 12px; }
.d-price-card__amount { font-size: 36px; font-weight: 900; color: var(--white); line-height: 1; margin-bottom: 4px; }
.d-price-card__period { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.d-price-card__list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; text-align: left; }
.d-price-card__item { font-size: 13px; color: var(--text-bright); display: flex; align-items: center; gap: 8px; }
.d-price-card__item::before { content: '✓'; color: var(--cyan); font-size: 12px; flex-shrink: 0; }

/* ── CTA ──────────────────────────────────────────────────── */
.d-cta {
  background: linear-gradient(135deg,rgba(37,99,235,.12),rgba(8,145,178,.07));
  border-top: 1px solid var(--border-blue);
  border-bottom: 1px solid var(--border-blue);
  padding: 80px 0;
  text-align: center;
}
.d-cta h2 { margin-bottom: 14px; }
.d-cta p { font-size: 16px; color: var(--text); max-width: 560px; margin: 0 auto 36px; }
.d-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.d-cta__note { font-size: 12px; color: var(--text-muted); margin-top: 16px; }

/* ── Footer ───────────────────────────────────────────────── */
.d-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
}
.d-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.d-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.d-footer__link { font-size: 13px; color: var(--text); transition: color var(--transition); }
.d-footer__link:hover { color: var(--white); }
.d-footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.d-footer__copy { font-size: 12px; color: var(--text-muted); }
.d-footer__demo { font-size: 11px; color: rgba(56,189,248,.6); }

/* ── Fade animation ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade-up.visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .d-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .d-bot-block { grid-template-columns: 1fr; text-align: center; }
  .d-bot-block__text { max-width: 100%; }
  .d-bot-block__actions { flex-direction: row; justify-content: center; min-width: auto; }
}

@media (max-width: 768px) {
  .d-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .d-hero__visual { order: -1; }
  .phone-mock { width: 210px; }
  .d-nav { display: none; }
  .d-grid--3, .d-grid--2 { grid-template-columns: 1fr; }
  .d-bot-block { padding: 32px 20px; }
  .d-bot-block__actions { flex-direction: column; }
  .d-cta__actions { flex-direction: column; align-items: center; }
  .d-cta__actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .d-footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .d-footer__bottom { flex-direction: column; align-items: flex-start; }
  .d-section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .d-hero__actions { flex-direction: column; }
  .d-hero__actions .btn { width: 100%; justify-content: center; }
}
