:root {
  --bg: #f6fbff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --indigo: #4f46e5;
  --border: #e2e8f0;
  --shadow: 0 20px 50px -18px rgba(15, 23, 42, 0.16);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { text-decoration: none; color: inherit; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

.ts-nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid #eef2f7;
}
.ts-nav { height: 84px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.ts-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.ts-brand img { height: 42px; width: auto; }
.ts-nav-links { display: inline-flex; gap: 26px; justify-self: center; color: #475569; font-weight: 600; }
.ts-nav-links a:hover { color: var(--blue); }
.ts-nav-actions { display: inline-flex; gap: 10px; }

.btn { border-radius: 999px; font-weight: 700; transition: .25s ease; border: 1px solid transparent; }
.btn.ghost { padding: 10px 16px; border-color: var(--border); color: #334155; background: #fff; }
.btn.ghost:hover { transform: translateY(-1px); border-color: #cbd5e1; }
.btn.solid { padding: 10px 18px; background: linear-gradient(135deg, var(--blue), var(--indigo)); color: #fff; box-shadow: 0 10px 20px -10px rgba(37,99,235,.6); }
.btn.solid:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -12px rgba(37,99,235,.7); }
.btn.big { padding: 14px 24px; border-radius: 14px; }

.ts-menu-btn { display: none; border: 0; background: transparent; color: #334155; }
.ts-mobile-menu { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
  background:
    radial-gradient(680px 280px at 18% 0%, rgba(59,130,246,.22), transparent 65%),
    radial-gradient(740px 300px at 88% 14%, rgba(16,185,129,.18), transparent 68%),
    linear-gradient(180deg, #f4fbff 0%, #eefbf5 100%);
}
.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); opacity: .4; }
.hero-glow-a { width: 460px; height: 220px; background: #93c5fd; top: 10%; left: 8%; }
.hero-glow-b { width: 420px; height: 220px; background: #86efac; top: 4%; right: 10%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: #eff6ff; border: 1px solid #dbeafe;
  color: #1d4ed8; font-size: 13px; font-weight: 700;
}
.hero-badge i { width: 16px; height: 16px; }
.hero-content h1 { margin: 18px 0 14px; font-size: clamp(42px, 5.2vw, 76px); line-height: 1.08; letter-spacing: -0.03em; }
.hero-content h1 span { background: linear-gradient(135deg, #2563eb, #4f46e5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-content p { margin: 0; max-width: 680px; color: var(--muted); font-size: 22px; line-height: 1.45; }
.hero-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-stats article {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 14px 28px -20px rgba(15,23,42,.25);
  border-radius: 16px;
  padding: 16px 14px;
}
.hero-stats strong { display: block; font-size: 36px; line-height: 1; margin-bottom: 6px; }
.hero-stats span { color: #475569; font-weight: 600; font-size: 14px; }

.hero-chat-wrap { display: flex; justify-content: flex-end; }
.hero-chat {
  width: min(100%, 440px);
  height: 570px;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: rotate(1.8deg);
  transition: transform .35s ease;
  display: flex;
  flex-direction: column;
}
.hero-chat:hover { transform: rotate(0deg); }
.chat-head {
  padding: 14px;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
}
.chat-user { display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 42px; height: 42px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #dbeafe; color: #1d4ed8; }
.chat-user h3 { margin: 0; font-size: 14px; }
.chat-user small { color: #64748b; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.chat-user small span { width: 8px; height: 8px; border-radius: 999px; background: #10b981; display: inline-block; }
.chat-body { flex: 1; overflow: auto; background: #f0f2f5; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.chat-body::-webkit-scrollbar { width: 0; height: 0; }
.bubble {
  max-width: 85%;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.bubble.left { align-self: flex-start; background: #fff; border: 1px solid #e2e8f0; color: #1f2937; }
.bubble.right { align-self: flex-end; background: #dcf8c6; color: #1f2937; }
.typing { align-self: flex-start; background: #fff; border: 1px solid #e2e8f0; width: 62px; display: inline-flex; justify-content: center; gap: 5px; }
.typing span { width: 6px; height: 6px; border-radius: 999px; background: #64748b; animation: dot 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%,80%,100% { transform: translateY(0); opacity:.4;} 40% { transform: translateY(-3px); opacity:1; } }
.chat-input { padding: 12px; border-top: 1px solid #edf2f7; background: #fff; display: flex; align-items: center; gap: 10px; }
.chat-input span { flex: 1; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 14px; padding: 10px 14px; }
.chat-input button { width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

.section { padding: 88px 0; background: #fff; }
.section.alt { background: #f8fafc; }
.section-title { text-align: center; margin-bottom: 34px; }
.section-title.left { text-align: left; }
.section-title p, .tag { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: #3b82f6; font-weight: 700; margin: 0 0 8px; }
.section-title h2, .integration-grid h2, .faq-wrap h2, .cta-inner h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.15; letter-spacing: -0.02em; }
.lead { color: #475569; line-height: 1.6; font-size: 18px; margin-top: 12px; }

.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 24px -20px rgba(15,23,42,.25);
  transition: .24s ease;
}
.card i { color: #2563eb; width: 24px; height: 24px; }
.card h3 { margin: 12px 0 8px; font-size: 21px; }
.card p { margin: 0; color: #64748b; line-height: 1.5; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -20px rgba(15,23,42,.3); }

.integration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: #334155; font-weight: 600; }
.check-list li::before {
  content: '';
  position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
}
.integration-box { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chips span { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 11px; text-align: center; font-weight: 700; color: #334155; }
.integration-box pre { margin: 12px 0 0; background: #0f172a; color: #cbd5e1; border-radius: 12px; padding: 12px; overflow: auto; font-size: 12px; }

.plans-wrap { display: grid; grid-template-columns: 54px 1fr 54px; gap: 10px; align-items: center; }
.plan-arrow {
  width: 48px; height: 48px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.plans-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px;
}
.plans-slider::-webkit-scrollbar { height: 0; }
.plan-card {
  scroll-snap-align: center;
  border-radius: 26px;
  padding: 26px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 18px 40px -24px rgba(15,23,42,.24);
  transition: .25s ease;
}
.plan-card.active { transform: translateY(-2px) scale(1.01); border-color: #60a5fa; box-shadow: 0 22px 48px -26px rgba(37,99,235,.32); }
.plan-card .badge { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #1d4ed8; margin-bottom: 8px; }
.plan-card h3 { margin: 0; font-size: 28px; }
.plan-card .sub { color: #64748b; margin-top: 6px; }
.plan-card .price { margin: 18px 0 14px; font-size: 42px; font-weight: 800; letter-spacing: -0.02em; }
.plan-card ul { margin: 0; padding-left: 18px; color: #334155; display: grid; gap: 8px; }
.plan-card .btn { display: block; margin-top: 20px; text-align: center; border-radius: 12px; padding: 12px 14px; }
.plan-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.plan-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: #cbd5e1; }
.plan-dots button.active { width: 24px; background: #2563eb; }
.pricing-error { margin-top: 14px; text-align: center; color: #64748b; display: none; }
.pricing-error.show { display: block; }

.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; }
.faq-item button {
  width: 100%;
  background: transparent;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  text-align: left;
}
.faq-item p { margin: 0; padding: 0 18px 18px; color: #64748b; display: none; }
.faq-item.open p { display: block; }
.faq-item.open i { transform: rotate(180deg); }

.cta { background: linear-gradient(135deg, #eff6ff, #ecfeff); border-top: 1px solid #dbeafe; }
.cta-inner { text-align: center; max-width: 860px; }
.cta-inner p { color: #475569; font-size: 18px; }
.cta-inner .hero-cta { justify-content: center; }

.ts-footer { background: #fff; border-top: 1px solid #e2e8f0; padding: 22px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #64748b; font-size: 14px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #0f172a; font-weight: 700; }
.footer-brand img { height: 30px; }

.wpp-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.wpp-float span { width: 56px; height: 56px; border-radius: 999px; background: #22c55e; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px -8px rgba(34,197,94,.6); }

@media (max-width: 1024px) {
  .hero-grid, .features-grid, .integration-grid { grid-template-columns: 1fr; }
  .hero-chat-wrap { justify-content: center; }
  .hero-content p { font-size: 19px; }
  .plans-wrap { grid-template-columns: 1fr; }
  .plan-arrow { display: none; }
}

@media (max-width: 860px) {
  .ts-menu-btn { display: inline-flex; }
  .ts-nav { grid-template-columns: auto auto auto; }
  .ts-nav-links, .ts-nav-actions { display: none; }
  .ts-mobile-menu { display: none; background: #fff; border-top: 1px solid #eef2f7; padding: 12px 20px 16px; }
  .ts-mobile-menu.open { display: grid; gap: 10px; }
  .ts-mobile-menu a { color: #334155; font-weight: 700; }
  .mobile-actions { margin-top: 8px; display: grid; gap: 8px; }
  .hero { padding-top: 120px; }
  .hero-content h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero-content p { font-size: 17px; }
  .hero-chat { transform: none; height: 520px; }
  .hero-stats strong { font-size: 30px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
