*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --black: #0a0a0a; --dark: #111; --dark2: #1a1a1a; --dark3: #222;
  --blue: #0057FF; --blue-light: #2979FF; --blue-glow: rgba(0,87,255,0.2);
  --green: #22c55e; --purple: #a855f7; --orange: #f97316;
  --white: #fff; --gray: #888; --gray-light: #ccc; --border: rgba(255,255,255,0.08);
  --font: 'Inter', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--black); color: var(--white); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.blue { color: var(--blue); }
.green-text { color: var(--green); }
.blue-text { color: var(--blue); }
.hidden { display: none !important; }

/* HEADER */
.header { background: rgba(10,10,10,0.95); border-bottom: 1px solid var(--border); padding: 16px 24px; position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.logo span:first-child { font-size: 20px; }
.logo-tag { background: rgba(0,87,255,0.15); border: 1px solid rgba(0,87,255,0.3); color: #60a5ff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px; }
.header-badge { background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 100px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }

/* HERO */
.hero { padding: 64px 0 48px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero p { font-size: 18px; color: var(--gray); margin-bottom: 36px; line-height: 1.7; }
.btn-start { background: var(--blue); color: #fff; border: none; padding: 18px 40px; border-radius: 12px; font-size: 18px; font-weight: 700; cursor: pointer; transition: all 0.2s; box-shadow: 0 0 40px var(--blue-glow); font-family: var(--font); }
.btn-start:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 0 60px rgba(0,87,255,0.4); }
.btn-start:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.reset-hint { margin-top: 16px; font-size: 14px; }
.reset-hint a { color: var(--blue); }

/* DEMO LAYOUT */
.demo-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 40px 24px; align-items: start; }

/* TIMELINE */
.timeline-panel { background: var(--dark); border: 1px solid var(--border); border-radius: 16px; padding: 24px; position: sticky; top: 80px; }
.panel-title { font-size: 15px; font-weight: 700; margin-bottom: 20px; color: var(--gray-light); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-empty { color: var(--gray); font-size: 13px; text-align: center; padding: 20px 0; }
.tl-item { display: flex; gap: 12px; align-items: flex-start; opacity: 0; transform: translateX(-10px); transition: all 0.4s ease; }
.tl-item.visible { opacity: 1; transform: translateX(0); }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.tl-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.tl-dot.blue { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.tl-dot.purple { background: var(--purple); box-shadow: 0 0 8px var(--purple); }
.tl-dot.orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.tl-dot.gray { background: var(--gray); }
.tl-line { width: 1px; background: var(--border); margin-left: 4px; height: 24px; }
.tl-content { padding-bottom: 20px; }
.tl-label { font-size: 13px; font-weight: 600; color: var(--white); }
.tl-time { font-size: 11px; color: var(--gray); margin-top: 2px; }

/* SCREENS PANEL */
.screens-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.screen { background: var(--dark); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color 0.3s; }
.screen.active { border-color: var(--blue); box-shadow: 0 0 30px var(--blue-glow); }
.screen-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--dark2); border-bottom: 1px solid var(--border); }
.screen-dot { width: 8px; height: 8px; border-radius: 50%; }
.screen-dot.green { background: var(--green); }
.screen-dot.blue { background: var(--blue); }
.screen-dot.purple { background: var(--purple); }
.screen-dot.orange { background: var(--orange); }
.screen-title { font-size: 13px; font-weight: 600; color: var(--gray-light); }
.screen-body { padding: 20px; min-height: 200px; }
.idle-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 160px; gap: 10px; }
.idle-icon { font-size: 32px; }
.idle-state p { font-size: 13px; color: var(--gray); }

/* LEAD CARD */
.lead-card { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.lead-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lead-avatar { width: 40px; height: 40px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.lead-name { font-size: 15px; font-weight: 700; }
.lead-time { font-size: 11px; color: var(--gray); }
.lead-badge { margin-left: auto; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; animation: pulse 1s infinite; }
.lead-badge.new { background: #dc2626; }
.lead-details { display: flex; flex-direction: column; gap: 8px; }
.lead-detail { font-size: 13px; color: var(--gray-light); display: flex; gap: 8px; }
.lead-detail span { color: var(--gray); min-width: 80px; }

/* MESSAGES */
.message-thread { display: flex; flex-direction: column; gap: 12px; animation: fadeIn 0.4s ease; }
.message-item { display: flex; gap: 8px; align-items: flex-end; }
.message-item.sent { flex-direction: row-reverse; }
.msg-avatar { width: 28px; height: 28px; background: var(--dark3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.msg-bubble { max-width: 85%; padding: 12px 14px; border-radius: 16px; font-size: 13px; line-height: 1.5; }
.received-bubble { background: var(--dark3); border-radius: 16px 16px 16px 4px; }
.sent-bubble { background: var(--blue); border-radius: 16px 16px 4px 16px; }
.msg-time { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 6px; }
.sent-tag { color: #93c5fd; }
.typing-indicator { display: flex; gap: 8px; align-items: center; }
.typing-dots { background: var(--dark3); padding: 12px 16px; border-radius: 16px; display: flex; gap: 4px; }
.typing-dots span { width: 6px; height: 6px; background: var(--gray); border-radius: 50%; animation: bounce 1s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }

/* BOOKING CARD */
.booking-card { text-align: center; animation: fadeIn 0.4s ease; }
.booking-check { width: 56px; height: 56px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 16px; box-shadow: 0 0 24px rgba(34,197,94,0.4); }
.booking-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--green); }
.booking-details { background: var(--dark2); border-radius: 12px; padding: 16px; text-align: left; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.booking-row { display: flex; justify-content: space-between; font-size: 13px; }
.booking-row span { color: var(--gray); }
.booking-msg { font-size: 12px; color: var(--green); background: rgba(34,197,94,0.1); padding: 8px 12px; border-radius: 8px; }

/* TELEGRAM */
.telegram-mock { animation: fadeIn 0.4s ease; }
.tg-header { display: flex; align-items: center; gap: 10px; background: #1a2744; padding: 12px 16px; border-radius: 12px 12px 0 0; margin-bottom: 0; }
.tg-avatar { width: 36px; height: 36px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.tg-name { font-size: 14px; font-weight: 600; }
.tg-status { font-size: 11px; color: var(--green); }
.tg-message { background: #1a2744; padding: 12px 16px 16px; border-radius: 0 0 12px 12px; }
.tg-bubble { background: #2a3f6e; padding: 14px 16px; border-radius: 12px; font-size: 13px; line-height: 1.7; }
.tg-time { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 8px; text-align: right; }

/* STATS BAR */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 32px 24px; }
.stat-box { background: var(--dark); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 900; letter-spacing: -1px; margin-bottom: 6px; }
.stat-label { font-size: 12px; color: var(--gray); font-weight: 500; }

/* FOLLOW UP */
.followup-section { padding: 0 24px 40px; }
.followup-sub { font-size: 15px; color: var(--gray); margin-bottom: 24px; }
.followup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.followup-card { background: var(--dark); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.fu-time { font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.fu-msg { font-size: 12px; color: var(--gray-light); line-height: 1.6; margin-bottom: 12px; font-style: italic; }
.fu-status { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px; display: inline-block; }
.fu-status.sent { background: rgba(34,197,94,0.1); color: var(--green); }
.fu-status.final { background: rgba(0,87,255,0.1); color: #60a5ff; }

/* CTA */
.cta-section { padding: 0 24px 64px; }
.cta-card { background: linear-gradient(135deg, #050f25 0%, #0a0a0a 100%); border: 1px solid var(--blue); border-radius: 20px; padding: 48px; text-align: center; box-shadow: 0 0 60px rgba(0,87,255,0.15); }
.cta-card h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.cta-card p { font-size: 16px; color: var(--gray); margin-bottom: 32px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 24px; }
.btn-cta { background: var(--blue); color: #fff; padding: 16px 36px; border-radius: 10px; font-weight: 700; font-size: 16px; transition: all 0.2s; box-shadow: 0 0 30px var(--blue-glow); }
.btn-cta:hover { background: var(--blue-light); transform: translateY(-2px); }
.cta-price { font-size: 15px; color: var(--gray); font-weight: 500; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .demo-layout { grid-template-columns: 1fr; }
  .screens-panel { grid-template-columns: 1fr; }
  .timeline-panel { position: relative; top: auto; }
  .followup-grid, .stats-bar { grid-template-columns: repeat(2,1fr); }
}
