/* 
   Lead Pulse Automation - Shared CSS (Dynamics Pass)
   Design Rules: Dark mode, continuous motion everywhere, animated icons, calm CTAs.
*/

:root {
  --bg-dark: #0A0F1A;
  --bg-panel: #111827;
  --cyan-primary: #22ADD2;
  --cyan-bright: #60D8F0;
  --blue-deep: #004878;
  --indigo-sec: #3048A8;
  --text-head: #FFFFFF;
  --text-body: #D1D5DB;
  --danger-red: #ef4444;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background-color: var(--bg-dark); color: var(--text-body); line-height: 1.7; overflow-x: hidden; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; color: var(--text-head); }
h1 { font-size: 4rem; letter-spacing: -1.5px; }
h2 { font-size: 3rem; letter-spacing: -1px; }
h3 { font-size: 1.5rem; color: var(--cyan-bright); }
p { font-size: 1.1rem; margin-bottom: 1.5rem; }

a { color: var(--cyan-primary); text-decoration: none; transition: color 0.3s ease, text-shadow 0.3s ease; }
a:hover { color: var(--cyan-bright); text-shadow: 0 0 8px rgba(96, 216, 240, 0.5); }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0; }
.py-8 { padding-top: 8rem; padding-bottom: 8rem; }
.py-5 { padding-top: 5rem; padding-bottom: 5rem; }
.text-center { text-align: center; }
.highlight { color: var(--cyan-primary); }

/* Header & Nav */
header {
  background: rgba(10, 15, 26, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid rgba(48, 72, 168, 0.4);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 85px; width: 90%; max-width: 1200px; margin: 0 auto; }

/* LP Logo Coin Flip (Real Art) */
.lp-logo-container { display: flex; align-items: center; gap: 12px; perspective: 1000px; cursor: pointer; text-decoration: none !important; }
.lp-logo-coin {
  width: 48px; height: 48px; transform-style: preserve-3d;
  animation: coinFlipLoad 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.lp-logo-coin img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 4px rgba(34, 173, 210, 0.4)); }
.logo-text { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--text-head); letter-spacing: -0.5px; text-transform: uppercase; }
.highlight-text { color: var(--cyan-primary); font-weight: 800; }
.lp-logo-container:hover .logo-text { text-shadow: none; }

@keyframes coinFlipLoad { 0% { transform: rotateY(-540deg) scale(0.5); opacity: 0; } 100% { transform: rotateY(0deg) scale(1); opacity: 1; } }
@keyframes coinSpinHover { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
@keyframes calmPulse { 0% { filter: drop-shadow(0 0 5px rgba(34, 173, 210, 0.3)); transform: scale(1); } 100% { filter: drop-shadow(0 0 15px rgba(96, 216, 240, 0.8)); transform: scale(1.02); } }
.lp-logo-coin.idle-pulse img { animation: calmPulse 3s infinite alternate; }
.lp-logo-coin.is-spinning { animation: coinSpinHover 0.8s linear forwards; }

nav ul { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
nav ul li a { color: var(--text-head); font-weight: 600; font-size: 0.95rem; padding: 0.5rem; }
nav ul li a:hover, nav ul li a.active { color: var(--cyan-primary); }
.nav-cta { background: var(--cyan-primary); padding: 0.7rem 1.8rem; border-radius: 6px; color: var(--bg-dark) !important; font-weight: 800; transition: background 0.3s ease, box-shadow 0.3s ease; }
.nav-cta:hover { background: var(--cyan-bright); box-shadow: 0 4px 15px rgba(96, 216, 240, 0.4); }

/* Layouts & Panels */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.panel { background: var(--bg-panel); border: 1px solid rgba(48, 72, 168, 0.4); border-radius: 12px; padding: 3rem; position: relative; overflow: hidden; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease; }
.panel:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0, 72, 120, 0.3), inset 0 0 20px rgba(34, 173, 210, 0.1); border-color: var(--cyan-bright); }
.glass-panel { background: rgba(17, 24, 39, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(96, 216, 240, 0.2); border-radius: 12px; padding: 3rem; transition: transform 0.4s ease, border-color 0.4s ease; }
.glass-panel:hover { transform: translateY(-5px); border-color: var(--cyan-primary); box-shadow: 0 10px 30px rgba(0, 72, 120, 0.4); }

/* Animated SVG Icons (Dynamic Everywhere) */
.icon-wrap { width: 50px; height: 50px; margin-bottom: 1.5rem; color: var(--cyan-primary); display: flex; align-items: center; justify-content: center; }
.icon-wrap svg { width: 100%; height: 100%; overflow: visible; }
.panel:hover .icon-wrap svg, .glass-panel:hover .icon-wrap svg { color: var(--cyan-bright); filter: drop-shadow(0 0 8px rgba(96, 216, 240, 0.6)); }

/* Specific Icon Animations */
@keyframes svgDraw { to { stroke-dashoffset: 0; } }
@keyframes bounceDots { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseRing { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes pinDrop { 0% { transform: translateY(-20px); opacity: 0; } 50% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(-5px); } 100% { transform: translateY(0); opacity: 1; } }
@keyframes enEsFlip { 0%, 45% { transform: rotateX(0deg); } 50%, 95% { transform: rotateX(180deg); } 100% { transform: rotateX(360deg); } }
@keyframes starFill { 0% { fill: transparent; } 50% { fill: var(--cyan-primary); } 100% { fill: transparent; } }

.anim-draw { stroke-dasharray: 100; stroke-dashoffset: 100; animation: svgDraw 2s ease-out forwards infinite alternate; }
.anim-dot:nth-child(1) { animation: bounceDots 1s infinite; }
.anim-dot:nth-child(2) { animation: bounceDots 1s infinite 0.2s; }
.anim-dot:nth-child(3) { animation: bounceDots 1s infinite 0.4s; }
.anim-spin { animation: spin 4s linear infinite; transform-origin: center; }
.anim-pulse-ring { animation: pulseRing 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1); transform-origin: center; }
.anim-pin { animation: pinDrop 2s infinite; transform-origin: bottom center; }
.anim-flip { animation: enEsFlip 6s infinite; transform-origin: center; transform-style: preserve-3d; }
.anim-star { animation: starFill 3s infinite; }

/* Demos & Hero Loops */
.hero { padding-top: 180px; padding-bottom: 80px; min-height: 90vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.kinetic-grid { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -2; background-image: linear-gradient(rgba(48, 72, 168, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(48, 72, 168, 0.15) 1px, transparent 1px); background-size: 50px 50px; animation: moveGrid 30s linear infinite; opacity: 0.6; }
.hero-gradient-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 80%); z-index: -1; }
@keyframes moveGrid { 0% { background-position: 0 0; } 100% { background-position: 50px 50px; } }
.hero-text-zone { background: rgba(10, 15, 26, 0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 3rem; border-radius: 16px; border: 1px solid rgba(48, 72, 168, 0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }

/* Phone Demo */
.hero-demo-wrapper { display: flex; justify-content: center; align-items: center; position: relative; }
.demo-phone { width: 280px; height: 560px; background: var(--bg-dark); border: 10px solid var(--blue-deep); border-radius: 40px; position: relative; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 72, 120, 0.4), inset 0 0 20px rgba(0,0,0,0.8); display: flex; flex-direction: column; }
.demo-phone-header { height: 60px; background: var(--bg-panel); display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,0.05); gap: 10px; }
.demo-avatar { width: 30px; height: 30px; background: var(--cyan-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--bg-dark); font-weight: 800; font-size: 0.8rem; }
.demo-chat-area { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 15px; position: relative; }
.chat-bubble { max-width: 85%; padding: 12px 16px; border-radius: 12px; font-size: 0.85rem; line-height: 1.4; opacity: 0; animation: chatPop 8s infinite; }
.chat-bubble.bot { background: var(--bg-panel); border: 1px solid rgba(48, 72, 168, 0.4); align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-bubble.user { background: var(--cyan-primary); color: var(--bg-dark); font-weight: 600; align-self: flex-end; border-bottom-right-radius: 2px; animation-delay: 2s; }
.chat-bubble.bot-response { background: var(--bg-panel); border: 1px solid var(--cyan-primary); color: var(--cyan-bright); align-self: flex-start; border-bottom-left-radius: 2px; animation-delay: 4s; }
@keyframes chatPop { 0%, 5% { opacity: 0; transform: translateY(10px) scale(0.95); } 10%, 90% { opacity: 1; transform: translateY(0) scale(1); } 95%, 100% { opacity: 0; transform: translateY(-10px) scale(0.95); } }
.demo-pulse-line { position: absolute; top: -100px; right: 60px; width: 4px; height: 100px; background: linear-gradient(to bottom, transparent, var(--cyan-bright), transparent); animation: dataDrop 8s infinite; z-index: 10; }
@keyframes dataDrop { 0%, 30% { transform: translateY(-100px); opacity: 0; } 35% { opacity: 1; } 45%, 100% { transform: translateY(600px); opacity: 0; } }

/* Browser Assembly Demo (Dynamic Sites) */
.browser-demo { width: 100%; height: 300px; background: var(--bg-dark); border: 2px solid var(--blue-deep); border-radius: 12px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.browser-header { height: 30px; background: var(--bg-panel); display: flex; align-items: center; padding: 0 10px; gap: 5px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.browser-body { flex: 1; padding: 20px; position: relative; }
.browser-el { background: rgba(34, 173, 210, 0.2); border: 1px solid var(--cyan-primary); border-radius: 4px; position: absolute; opacity: 0; animation: assemble 6s infinite; }
.bel-1 { top: 20px; left: 20px; right: 20px; height: 40px; animation-delay: 0s; }
.bel-2 { top: 80px; left: 20px; width: 40%; height: 120px; animation-delay: 1s; }
.bel-3 { top: 80px; right: 20px; width: 50%; height: 20px; animation-delay: 1.5s; }
.bel-4 { top: 120px; right: 20px; width: 50%; height: 20px; animation-delay: 2s; }
.bel-5 { top: 160px; right: 20px; width: 30%; height: 40px; background: var(--cyan-primary); animation-delay: 2.5s; }
@keyframes assemble { 0%, 10% { opacity: 0; transform: translateY(20px) scale(0.9); } 20%, 80% { opacity: 1; transform: translateY(0) scale(1); } 90%, 100% { opacity: 0; transform: translateY(-20px); } }

/* Bilingual Text Flip Demo */
.bilingual-demo { font-size: 3rem; font-weight: 900; color: var(--cyan-bright); height: 80px; perspective: 1000px; }
.bilingual-flipper { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: textFlip 6s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.bilingual-front, .bilingual-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; align-items: center; justify-content: center; }
.bilingual-back { transform: rotateX(180deg); color: #fff; }
@keyframes textFlip { 0%, 40% { transform: rotateX(0deg); } 50%, 90% { transform: rotateX(180deg); } 100% { transform: rotateX(360deg); } }

/* Map Area Demo */
.map-demo { width: 100%; height: 300px; background: radial-gradient(circle, var(--bg-panel) 0%, var(--bg-dark) 100%); border: 1px solid var(--blue-deep); border-radius: 12px; position: relative; overflow: hidden; }
.map-grid { position: absolute; top:0; left:0; right:0; bottom:0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 20px 20px; }
.map-pin-demo { position: absolute; color: var(--cyan-bright); animation: pinDrop 3s infinite; }
.mpd-1 { top: 30%; left: 30%; animation-delay: 0s; }
.mpd-2 { top: 50%; left: 60%; animation-delay: 0.5s; }
.mpd-3 { top: 70%; left: 40%; animation-delay: 1s; }
.map-ripple { position: absolute; width: 40px; height: 40px; border: 2px solid var(--cyan-primary); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: pulseRing 3s infinite; }

/* 3-Step Path */
.step-path { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.05); }
.step-node { background: var(--bg-panel); border: 2px solid var(--blue-deep); padding: 1rem 2rem; border-radius: 30px; font-weight: 800; color: var(--text-head); z-index: 2; transition: all 0.3s ease; }
.step-node:hover { border-color: var(--cyan-primary); box-shadow: 0 0 15px rgba(34, 173, 210, 0.3); }
.step-line { height: 2px; width: 60px; background: rgba(48, 72, 168, 0.5); position: relative; overflow: hidden; }
.step-line::after { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 50%; background: var(--cyan-bright); box-shadow: 0 0 10px var(--cyan-bright); animation: lineFlow 2s linear infinite; }
@keyframes lineFlow { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

/* Buttons (Calm CTAs) */
.btn { display: inline-block; padding: 1.2rem 2.8rem; border-radius: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border: none; cursor: pointer; transition: all 0.3s ease; text-align: center; font-size: 1rem; }
.btn-primary { background: var(--cyan-primary); color: var(--bg-dark) !important; box-shadow: 0 4px 15px rgba(34, 173, 210, 0.3); }
.btn-primary:hover { background: var(--cyan-bright); box-shadow: 0 6px 20px rgba(96, 216, 240, 0.5); transform: scale(1.02); }
.btn-outline { background: transparent; border: 2px solid var(--cyan-primary); color: var(--cyan-primary) !important; }
.btn-outline:hover { background: rgba(34, 173, 210, 0.1); border-color: var(--cyan-bright); color: var(--cyan-bright) !important; }

/* Reveal Classes */
.reveal-text { opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.3s; } .delay-3 { animation-delay: 0.5s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.continuous-float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* Chatbot Widget Hook */
#lead-pulse-chat-widget-container { position: fixed; bottom: 24px; right: 24px; width: 64px; height: 64px; background: var(--cyan-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 25px rgba(0, 72, 120, 0.6); z-index: 9999; animation: calmPulseWidget 3s infinite alternate; transition: transform 0.3s ease; }
#lead-pulse-chat-widget-container:hover { transform: scale(1.1); }
@keyframes calmPulseWidget { 0% { box-shadow: 0 8px 25px rgba(0, 72, 120, 0.6); } 100% { box-shadow: 0 8px 30px rgba(96, 216, 240, 0.8), inset 0 0 10px rgba(255,255,255,0.3); } }

/* Pricing Table (Animated Rows) */
.pricing-matrix { width: 100%; border-collapse: collapse; background: var(--bg-panel); border-radius: 12px; overflow: hidden; border: 1px solid rgba(48, 72, 168, 0.4); }
.pricing-matrix th, .pricing-matrix td { padding: 1.5rem; text-align: left; border-bottom: 1px solid rgba(48, 72, 168, 0.3); }
.pricing-matrix th { background: rgba(10, 15, 26, 0.5); color: var(--cyan-primary); font-weight: 800; }
.pricing-matrix tr:last-child td { border-bottom: none; }
.pricing-matrix td:nth-child(2), .pricing-matrix td:nth-child(3) { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--text-head); }
.pricing-matrix tbody tr { opacity: 0; transform: translateX(-20px); transition: all 0.5s ease; }
.pricing-matrix tbody tr.visible { opacity: 1; transform: translateX(0); }
.pricing-matrix tr:hover td { background: rgba(48, 72, 168, 0.2); }

/* FAQ Accordion */
.faq-accordion { max-width: 800px; margin: 0 auto; margin-top: 4rem; }
.faq-item { background: var(--bg-panel); border: 1px solid rgba(48, 72, 168, 0.4); border-radius: 8px; margin-bottom: 1rem; overflow: hidden; transition: border-color 0.3s ease; }
.faq-item:hover { border-color: var(--cyan-primary); }
.faq-question { padding: 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 800; font-family: var(--font-heading); font-size: 1.2rem; }
.faq-icon { width: 24px; height: 24px; position: relative; transition: transform 0.3s ease; color: var(--cyan-primary); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: currentColor; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-icon::before { width: 16px; height: 2px; }
.faq-icon::after { width: 2px; height: 16px; transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(90deg); }
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-answer { max-height: 0; padding: 0 1.5rem; opacity: 0; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); color: var(--text-body); }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 1.5rem 1.5rem; opacity: 1; }

/* Forms (Animated Focus) */
.form-group { margin-bottom: 1.5rem; position: relative; }
.form-label { display: block; margin-bottom: 8px; color: var(--text-body); font-weight: 600; transition: color 0.3s ease; }
.form-control { width: 100%; padding: 12px; background: rgba(0,0,0,0.3); border: 1px solid rgba(48, 72, 168, 0.4); color: var(--text-head); border-radius: 6px; font-family: var(--font-body); transition: all 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--cyan-primary); box-shadow: 0 0 15px rgba(34, 173, 210, 0.3); background: rgba(0,0,0,0.5); }
.form-control:focus + .form-focus-line { width: 100%; }
.form-focus-line { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--cyan-bright); transition: width 0.4s ease; border-radius: 0 0 6px 6px; }

/* Footer */
footer { background: var(--bg-panel); padding: 5rem 0 2rem; border-top: 1px solid rgba(48, 72, 168, 0.3); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-body); font-size: 0.95rem; }

/* Prefers Reduced Motion override for loops */
@media (prefers-reduced-motion: reduce) {
  * { animation-play-state: paused !important; }
  .browser-el { opacity: 1 !important; transform: none !important; }
  .chat-bubble { opacity: 1 !important; transform: none !important; }
  .bilingual-flipper { animation: none !important; transform: rotateX(0deg) !important; }
  .map-pin-demo { animation: none !important; transform: none !important; opacity: 1 !important; }
  .lp-logo-coin img { animation: none !important; }
}

@media (max-width: 992px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } .hero { padding-top: 140px; } .hero h1 { font-size: 3rem; } }
@media (max-width: 768px) { .grid-3 { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: repeat(2, 1fr); } nav ul { display: none; } header.menu-open nav ul { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(13,21,38,.98); padding: 1rem 1.5rem 1.5rem; gap: .25rem; border-bottom: 1px solid rgba(96,216,240,.25); box-shadow: 0 24px 40px rgba(0,0,0,.5); } header.menu-open nav ul li a { display: block; padding: .8rem .25rem; font-size: 1.05rem; } .hero-text-zone { padding: 2rem; } .step-path { flex-direction: column; gap: 1rem; } .step-line { width: 2px; height: 30px; } .step-line::after { width: 100%; height: 50%; animation: lineFlowVert 2s linear infinite; } }
@keyframes lineFlowVert { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }

/* MICA MOBILE MENU (staging fix 2026-10-25) */
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(96,216,240,.4); color: #60D8F0; font-size: 1.35rem; line-height: 1; border-radius: 10px; padding: .45rem .7rem; cursor: pointer; }
header { position: fixed; }
@media (max-width: 768px) { .nav-toggle { display: block; } .nav-wrapper { position: relative; } }
