/* ============================================================
   ChatBot WP — styles.css
   ============================================================ */

/* ---- Variables ---- */
:root {
  /* Backgrounds */
  --bg:           #07090F;
  --bg-surface:   #0C1018;
  --bg-card:      #0F1521;
  --bg-card-hover:#141D2C;

  /* Borders */
  --border:       rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Brand colors */
  --green:        #25D366;
  --green-mid:    #1fb857;
  --green-dim:    rgba(37, 211, 102, 0.1);
  --green-glow:   rgba(37, 211, 102, 0.22);
  --blue:         #3B82F6;
  --blue-dim:     rgba(59, 130, 246, 0.1);
  --violet:       #8B5CF6;
  --violet-dim:   rgba(139, 92, 246, 0.1);

  /* Text */
  --text:         #EEF2F8;
  --text-secondary: #8494AB;
  --text-muted:   #3E4D61;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Misc */
  --radius:       14px;
  --radius-sm:    8px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   0.28s var(--ease);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
strong { font-weight: 600; }

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  background: var(--green);
  color: #061210;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 0 28px var(--green-glow), 0 4px 14px rgba(0,0,0,0.35);
}
.btn-primary:hover {
  background: #2eeb74;
  box-shadow: 0 0 48px rgba(37, 211, 102, 0.45), 0 6px 20px rgba(0,0,0,0.45);
  transform: translateY(-2px);
}
.btn-primary svg {
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}
.btn-primary:hover svg { transform: translateX(4px); }

.btn-large {
  padding: 17px 36px;
  font-size: 16px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--green-dim);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(37, 211, 102, 0.18);
  border-radius: 50px;
  transition: var(--transition);
}
.btn-nav:hover {
  background: var(--green);
  color: #061210;
  box-shadow: 0 0 24px var(--green-glow);
}

/* ---- Gradient text ---- */
.gradient-text {
  background: linear-gradient(125deg, var(--green) 0%, #00C8FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Section label ---- */
.section-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  padding: 6px 14px;
  background: var(--green-dim);
  border: 1px solid rgba(37, 211, 102, 0.15);
  border-radius: 50px;
  margin-bottom: 24px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding var(--transition), background var(--transition), border-color var(--transition);
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--green-dim);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-accent { color: var(--green); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 110px;
  overflow: hidden;
}

/* Background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.glow-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.14) 0%, transparent 65%);
  top: -160px;
  right: -80px;
}
.glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 65%);
  bottom: -60px;
  left: -60px;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 100%);
}

/* Hero layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero text */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(37, 211, 102, 0.2);
  padding: 7px 15px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2.2s ease infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 22px;
}
.hero-subtitle {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 38px;
  max-width: 460px;
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* Stats bar */
.hero-stats {
  display: inline-flex;
  align-items: center;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 22px;
}
.stat:first-child { padding-left: 0; }
.stat:last-child  { padding-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 400;
}
.stat-divider {
  width: 1px;
  height: 38px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- Chat phone mockup ---- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.chat-phone {
  width: 325px;
  background: #0B1622;
  border: 1px solid rgba(37, 211, 102, 0.14);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255,255,255,0.03),
    0 0 70px rgba(37, 211, 102, 0.07);
  position: relative;
  z-index: 2;
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 18px;
  background: linear-gradient(180deg, #0D1E15 0%, #0A1810 100%);
  border-bottom: 1px solid rgba(37, 211, 102, 0.1);
}
.phone-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.35);
}
.phone-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.phone-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  display: block;
}
.phone-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--green);
}
.status-dot {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
.phone-icons { flex-shrink: 0; }

.chat-body {
  padding: 18px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 285px;
  background: linear-gradient(180deg, #0B1622 0%, #081019 100%);
}

/* Chat messages */
.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  transform: translateY(10px);
}
.chat-msg.bot  { align-items: flex-start; }
.chat-msg.user { align-items: flex-end; }

.msg-bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 225px;
  word-break: break-word;
}
.bot .msg-bubble {
  background: #1C2D3F;
  color: #d8e5f2;
  border-radius: 4px 16px 16px 16px;
  border: 1px solid rgba(255,255,255,0.05);
}
.user .msg-bubble {
  background: #0C5C35;
  color: #dfffd9;
  border-radius: 16px 4px 16px 16px;
  border: 1px solid rgba(37, 211, 102, 0.1);
}
.msg-time {
  font-size: 10px;
  color: var(--text-muted);
  padding: 0 4px;
}

/* Typing indicator */
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 3px 2px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: bounce-dot 1.3s ease infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes bounce-dot {
  0%, 60%, 100% { transform: translateY(0);  opacity: 0.35; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* Staggered message reveal */
.msg-1 { animation: msgIn 0.38s var(--ease) 0.6s  forwards; }
.msg-2 { animation: msgIn 0.38s var(--ease) 1.4s  forwards; }
.msg-3 { animation: msgIn 0.38s var(--ease) 2.2s  forwards; }
.msg-4 { animation: msgIn 0.38s var(--ease) 3.2s  forwards; }
.msg-5 { animation: msgIn 0.38s var(--ease) 4.0s  forwards; }
@keyframes msgIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Chat ambient glow */
.chat-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.13) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

/* Floating badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  background: rgba(12, 16, 24, 0.88);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 3;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.badge-speed {
  bottom: 10px;
  right: -28px;
  color: var(--green);
  border-color: rgba(37, 211, 102, 0.22);
  animation: float-badge 3.5s ease-in-out infinite;
}
.badge-speed svg { stroke: var(--green); }

.badge-ai {
  top: 24px;
  left: -32px;
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.22);
  animation: float-badge 3.5s ease-in-out 1.75s infinite;
}
.badge-ai svg { stroke: var(--blue); }

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits {
  padding: 110px 0;
  border-top: 1px solid var(--border);
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.benefit-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon-green {
  background: var(--green-dim);
  border: 1px solid rgba(37, 211, 102, 0.15);
  color: var(--green);
}
.icon-blue {
  background: var(--blue-dim);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--blue);
}
.icon-violet {
  background: var(--violet-dim);
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: var(--violet);
}
.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.benefit-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ============================================================
   HOW IT HELPS
   ============================================================ */
.howhelps {
  padding: 110px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.howhelps::before {
  content: '';
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.howhelps-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.howhelps-text h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: var(--text);
  margin-bottom: 22px;
}
.howhelps-body {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 300;
}
.howhelps-body:last-child { margin-bottom: 0; }

/* Tags */
.tags-title {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: default;
  user-select: none;
}
.tag:hover {
  border-color: rgba(37, 211, 102, 0.28);
  color: var(--green);
  background: var(--green-dim);
}
.tag:hover svg { stroke: var(--green); }
.tag svg { flex-shrink: 0; transition: stroke var(--transition); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  padding: 130px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.glow-cta {
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(37, 211, 102, 0.1) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  border-radius: 50%;
  animation: glow-pulse 5s ease-in-out infinite;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
}
.cta-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  padding: 6px 14px;
  background: var(--green-dim);
  border: 1px solid rgba(37, 211, 102, 0.15);
  border-radius: 50px;
  margin-bottom: 22px;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.cta-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 42px;
  font-weight: 300;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-layout   { gap: 60px; }
}

@media (max-width: 768px) {
  .hero {
    padding: 130px 0 90px;
    min-height: auto;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }
  .hero-subtitle { max-width: 100%; }
  .badge         { justify-content: center; }
  .hero-ctas     { justify-content: center; }
  .hero-stats    {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
  }
  .hero-visual { justify-content: center; }
  .chat-phone  { width: 285px; }
  .badge-ai    { left: -12px; top: 14px; font-size: 11.5px; padding: 8px 12px; }
  .badge-speed { right: -12px; font-size: 11.5px; padding: 8px 12px; }

  .benefits    { padding: 88px 0; }
  .benefits-grid { grid-template-columns: 1fr; gap: 14px; }

  .howhelps { padding: 88px 0; }
  .howhelps-layout { grid-template-columns: 1fr; gap: 52px; }
  .howhelps-text h2 { font-size: 30px; }

  .cta-section { padding: 88px 0; }
  .cta-title   { font-size: 32px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 18px 20px;
  }
  .stat { padding: 6px 0; }
  .stat-divider { width: 100%; height: 1px; margin: 2px 0; }

  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
}
