/* ============================================================
   EVOLVE AI — SHARED DESIGN SYSTEM
   Brand Kit: cyan #22D3EE → blue #3B82F6 → #2563EB
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --cyan-400:    #22D3EE;
  --cyan-500:    #06B6D4;
  --blue-500:    #3B82F6;
  --blue-600:    #2563EB;
  --brand-grad:  linear-gradient(135deg, #22D3EE 0%, #3B82F6 50%, #2563EB 100%);
  --brand-grad-sub: linear-gradient(135deg, rgba(34,211,238,0.12) 0%, rgba(59,130,246,0.06) 100%);
  --cyan-glow:   rgba(34,211,238,0.15);
  --blue-glow:   rgba(59,130,246,0.1);

  --bg:          #020617;
  --bg-1:        #0F172A;
  --bg-2:        #1E293B;
  --border:      #1E293B;
  --border-cyan: rgba(34,211,238,0.2);

  --text:        #FFFFFF;
  --text-2:      #CBD5E1;
  --text-3:      #94A3B8;
  --text-4:      #475569;

  --success:     #10B981;
  --warning:     #F59E0B;

  --font-head:   'Plus Jakarta Sans', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;

  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Dot constellation grid */
  background-image: radial-gradient(circle, rgba(34,211,238,0.032) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Ambient floating orbs — the background theme */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 12% 20%, rgba(34,211,238,0.055) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 88% 78%, rgba(59,130,246,0.065) 0%, transparent 62%),
    radial-gradient(ellipse 50% 60% at 58% 2%, rgba(37,99,235,0.042) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 30% 90%, rgba(34,211,238,0.03) 0%, transparent 60%);
  animation: ambient-drift 22s ease-in-out infinite alternate;
}
@keyframes ambient-drift {
  0%   { transform: scale(1) translate(0,0); }
  33%  { transform: scale(1.04) translate(12px, -8px); }
  66%  { transform: scale(0.97) translate(-8px, 14px); }
  100% { transform: scale(1.06) translate(6px, -16px); }
}

/* Grain */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 9000;
  padding: 22px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, border-color .4s, padding .3s;
}
nav.scrolled {
  background: rgba(2,6,23,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(34,211,238,0.08);
  padding: 14px 48px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 30px; width: auto; }
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 800;
  background: var(--brand-grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-3); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--cyan-400); }

.btn-nav-ghost {
  font-size: 14px; font-weight: 500; color: var(--text-3);
  text-decoration: none; padding: 9px 18px;
  border-radius: 100px; border: 1px solid var(--border);
  transition: all .2s;
}
.btn-nav-ghost:hover { color: var(--text); border-color: rgba(34,211,238,0.3); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--brand-grad);
  padding: 10px 22px; border-radius: 100px;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .25s;
  box-shadow: 0 0 0 0 rgba(34,211,238,0);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(34,211,238,0.25), 0 4px 12px rgba(59,130,246,0.2);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  background: transparent;
  padding: 10px 22px; border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer; transition: all .25s;
}
.btn-secondary:hover {
  color: var(--text); border-color: rgba(34,211,238,0.3);
  background: rgba(34,211,238,0.04);
}

.btn-lg { font-size: 16px; padding: 15px 32px; }

/* ── LAYOUT ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.section-pad { padding: 112px 0; }
.section-pad-sm { padding: 72px 0; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--brand-grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.h1 {
  font-family: var(--font-head);
  font-size: clamp(48px, 6.5vw, 88px); font-weight: 800;
  line-height: 1.0; letter-spacing: -0.03em; color: var(--text);
}
.h2 {
  font-family: var(--font-head);
  font-size: clamp(36px, 4vw, 56px); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.025em; color: var(--text);
}
.h3 {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.5vw, 32px); font-weight: 700;
  line-height: 1.2; letter-spacing: -0.02em; color: var(--text);
}
.h4 {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 700; line-height: 1.3;
  letter-spacing: -0.01em; color: var(--text);
}
.body-lg { font-size: 18px; line-height: 1.72; color: var(--text-2); font-weight: 300; }
.body-md { font-size: 15px; line-height: 1.68; color: var(--text-3); }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(36px, 4vw, 52px); font-weight: 700;
  background: var(--brand-grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: -0.02em;
}

/* ── CARDS ── */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .3s, transform .3s;
}
.card:hover {
  border-color: rgba(34,211,238,0.25);
  transform: translateY(-2px);
}

/* ── MARQUEE ── */
.marquee-strip {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-1); overflow: hidden; white-space: nowrap; padding: 18px 0;
}
.marquee-inner { display: inline-flex; gap: 40px; animation: marquee 30s linear infinite; }
.marquee-inner span { font-size: 12px; font-weight: 500; color: var(--text-4); letter-spacing: 0.14em; text-transform: uppercase; }
.marquee-inner .dot { color: var(--cyan-400); opacity: 0.6; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── FOOTER ── */
footer {
  padding: 64px 48px 36px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; text-decoration: none; }
.footer-logo img { height: 26px; }
.footer-logo-name {
  font-family: var(--font-head); font-size: 17px; font-weight: 800;
  background: var(--brand-grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-desc { font-size: 13.5px; color: var(--text-4); line-height: 1.7; max-width: 240px; }
.footer-col-title { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 13.5px; color: var(--text-4); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--cyan-400); }
.footer-bottom {
  max-width: 1240px; margin: 44px auto 0;
  padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 12px; color: var(--text-4); }
.footer-socials { display: flex; gap: 10px; }
.social-link {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-4); text-decoration: none; font-size: 13px;
  transition: all .2s;
}
.social-link:hover { border-color: var(--border-cyan); color: var(--cyan-400); }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9000;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  animation: wa-pulse 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.35), 0 0 0 0 rgba(37,211,102,0.25); }
  50% { box-shadow: 0 4px 20px rgba(37,211,102,0.35), 0 0 0 10px rgba(37,211,102,0); }
}

/* ── CHATBOT WIDGET ── */
.chatbot-widget {
  position: fixed; bottom: 92px; right: 28px; z-index: 8999;
  width: 360px;
  background: var(--bg-1);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 40px rgba(34,211,238,0.06);
  display: none; flex-direction: column;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: all 0.35s var(--ease-expo);
}
.chatbot-widget.open {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}
.chat-toggle {
  position: fixed; bottom: 28px; right: 92px; z-index: 9000;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  box-shadow: 0 4px 20px rgba(34,211,238,0.3);
  transition: all .25s;
}
.chat-toggle:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(34,211,238,0.4); }
.chat-toggle svg { width: 24px; height: 24px; fill: #fff; }
.chat-hdr {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(59,130,246,0.06));
}
.chat-hdr-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.chat-hdr-name { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--text); }
.chat-hdr-status {
  font-size: 11px; color: var(--success);
  display: flex; align-items: center; gap: 4px;
}
.chat-hdr-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.chat-hdr-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--text-4); font-size: 18px; line-height: 1;
  transition: color .2s;
}
.chat-hdr-close:hover { color: var(--text); }
.chat-msgs {
  flex: 1; overflow-y: auto; padding: 16px; display: flex;
  flex-direction: column; gap: 10px; max-height: 320px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.chat-bubble {
  max-width: 88%; padding: 10px 14px;
  border-radius: 14px; font-size: 13.5px; line-height: 1.5;
  animation: bubble-in .3s var(--ease-expo);
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-bubble.bot {
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-bubble.user {
  background: var(--brand-grad); color: #fff;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.chat-typing {
  display: flex; gap: 4px; align-items: center;
  padding: 10px 14px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 14px; border-bottom-left-radius: 4px;
  align-self: flex-start; max-width: 56px;
}
.chat-typing-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-4);
  animation: tdot 1.2s ease-in-out infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-input-row {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; gap: 8px; align-items: center;
}
.chat-input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 100px; padding: 9px 16px;
  font-size: 13.5px; color: var(--text);
  font-family: var(--font-body);
  outline: none; transition: border-color .2s;
}
.chat-input::placeholder { color: var(--text-4); }
.chat-input:focus { border-color: rgba(34,211,238,0.3); }
.chat-send-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-grad);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; flex-shrink: 0;
  transition: all .2s;
}
.chat-send-btn:hover { transform: scale(1.1); }

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(36px); }

/* ── PAGE HERO SHARED ── */
.page-hero {
  padding: 160px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 70%; height: 60%;
  background: radial-gradient(ellipse, rgba(34,211,238,0.07) 0%, rgba(59,130,246,0.04) 40%, transparent 70%);
  pointer-events: none;
}

/* ── SHARED FOOTER (sub-pages) ── */
.footer { padding: 64px 0 36px; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  text-decoration: none;
}
.footer-brand .footer-logo img { height: 26px; }
.footer-brand .footer-logo span {
  font-family: var(--font-head); font-size: 17px; font-weight: 800;
  background: var(--brand-grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-tagline { font-size: 13.5px; color: var(--text-4); line-height: 1.7; max-width: 240px; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social-link {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-4); text-decoration: none;
  transition: all .2s;
}
.footer-social-link:hover { border-color: var(--border-cyan); color: var(--cyan-400); }
.footer-social-link svg { fill: currentColor; }

/* ── CURSOR GLOW ── */
#cursor-glow {
  position: fixed; pointer-events: none; z-index: 9997;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.055) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s, width 0.3s, height 0.3s;
  mix-blend-mode: screen;
}

/* ── 3D TILT CARDS ── */
.tilt-card {
  transition: transform 0.1s ease-out, box-shadow 0.3s;
  will-change: transform;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 18px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .container { padding: 0 24px; }
  .section-pad { padding: 72px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .chatbot-widget { width: 320px; right: 16px; }
  .chat-toggle { right: 80px; }
  .wa-float { right: 16px; }
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 48px 24px 28px; }
  .chatbot-widget { width: calc(100vw - 32px); right: 16px; }
}
