/* AMP AI Labs — Lead Generation page (loaded only by digital-marketing/lead-generation.html) */

:root { --lg-lime: #A3E635; --lg-ease: cubic-bezier(.2,.7,.2,1); }

/* ═════════ LAYOUT + BANDS ═════════ */
.lg-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; position: relative; }
@media (min-width: 640px)  { .lg-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .lg-wrap { padding: 0 2rem; } }
.lg-band { padding: clamp(3.2rem, 6vw, 5rem) 0; }
.lg-sec { background: radial-gradient(ellipse 800px 260px at 50% 0%, rgba(10,90,223,.10), transparent 70%), #060C1E !important; border-top: 1px solid rgba(255,255,255,.07); }
.lg-alt { background: radial-gradient(ellipse 800px 260px at 50% 0%, rgba(10,90,223,.16), transparent 70%), #0C1547 !important; border-top: 1px solid rgba(255,255,255,.09); }

.lg-h2 { margin: 0; font-size: clamp(1.7rem, 1.15rem + 2vw, 2.6rem); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.lg-h2.center, .lg-center { text-align: center; }
.lg-lead { margin: .8rem 0 0; font-size: 1rem; line-height: 1.7; color: rgba(220,229,240,.78); max-width: 42rem; }
.lg-center .lg-lead, .lg-lead.center { margin-left: auto; margin-right: auto; }
.lg-hl { position: relative; display: inline-block; color: #4A8FFF; }
.lg-hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.14em; height: .16em; border-radius: 99px; background: var(--lg-lime); transform: scaleX(0); transform-origin: left; transition: transform .9s .25s var(--lg-ease); }
.lg-reveal.is-in .lg-hl::after, html:not(.js) .lg-hl::after { transform: scaleX(1); }
.lg-hero .lg-hl::after { animation: lg-underline .9s .7s var(--lg-ease) both; transform: none; }
@keyframes lg-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lg-dash { display: block; width: 1.8rem; height: 3px; border-radius: 3px; background: var(--lg-lime); margin-bottom: .9rem; }

.js .lg-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--lg-ease) var(--d, 0s), transform .7s var(--lg-ease) var(--d, 0s); }
.js .lg-reveal.is-in { opacity: 1; transform: none; }

/* ═════════ HERO ═════════ */
.lg-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse 900px 600px at 100% -10%, rgba(10,90,223,.4), transparent 60%), radial-gradient(ellipse 700px 500px at -10% 115%, rgba(163,230,53,.07), transparent 55%), #060C1E; padding: clamp(2rem,5vw,3rem) 1rem clamp(2.5rem,5vw,3.5rem); }
.lg-hero-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .lg-hero-grid { grid-template-columns: .95fr 1.05fr; gap: 1.5rem; } }
.lg-crumb { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .35rem .9rem; border-radius: 9999px; margin-bottom: 1.4rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #00E5E8; background: rgba(0,229,232,.08); border: 1px solid rgba(0,229,232,.28); }
.lg-crumb a:hover { text-decoration: underline; }
.lg-crumb .lg-dot { width: .4rem; height: .4rem; border-radius: 50%; background: #00E5E8; animation: ping 2s infinite; }
.lg-eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #C9D6E8; }
.lg-eyebrow::before { content: ''; flex: none; width: 1.7rem; height: 3px; border-radius: 3px; background: var(--lg-lime); }
.lg-h1 { margin: 0 0 1.4rem; font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.8rem); font-weight: 900; line-height: 1.07; letter-spacing: -.03em; color: #fff; }
.lg-h1 .lg-hl { background: linear-gradient(90deg, #0A5ADF, #00E5E8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lg-hero-sub { margin: 0 0 2rem; max-width: 33rem; font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,.74); }
.lg-hero-copy > * { animation: lg-rise .8s var(--lg-ease) both; }
.lg-hero-copy > :nth-child(2) { animation-delay: .08s; } .lg-hero-copy > :nth-child(3) { animation-delay: .16s; } .lg-hero-copy > :nth-child(4) { animation-delay: .24s; } .lg-hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes lg-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* hero diagram */
.lg-diagram { position: relative; width: 100%; max-width: 36rem; margin: 0 auto; }
.lg-glow { position: absolute; inset: 14% 14% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(10,90,223,.42), transparent 68%); filter: blur(26px); animation: hero-glow-pulse 5s ease-in-out infinite; pointer-events: none; }
.lg-svg { position: relative; display: block; width: 100%; height: auto; font-family: Inter, system-ui, sans-serif; overflow: visible; }
.lg-node { transform-box: fill-box; transform-origin: center; animation: lg-node 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes lg-node { 0%, 70%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(74,143,255,0)); } 12%, 22% { transform: scale(1.06); filter: drop-shadow(0 0 12px rgba(74,143,255,.7)); } }
.lg-flow { animation: lg-dash 1.2s linear infinite; }
@keyframes lg-dash { to { stroke-dashoffset: -18; } }
.lg-layer { animation: lg-layer 4.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes lg-layer { 0%, 100% { filter: brightness(1); } 30% { filter: brightness(1.35); } }
.lg-pill { transform-box: fill-box; transform-origin: center; animation: fb-a 6s ease-in-out infinite; }
.lg-t { font-size: 10.5px; font-weight: 800; fill: #fff; }
.lg-s { font-size: 8.5px; font-weight: 600; fill: rgba(220,229,240,.75); }

/* trust strip */
.lg-trust { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 2.2rem; padding: 1.3rem 1.4rem; border-radius: 1.2rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
@media (min-width: 640px) { .lg-trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lg-trust { grid-template-columns: repeat(4, 1fr); gap: 0; } .lg-trust-item + .lg-trust-item { border-left: 1px solid rgba(255,255,255,.12); padding-left: 1.4rem; } }
.lg-trust-item { display: flex; align-items: center; gap: .8rem; }
.lg-trust-item svg { flex: none; width: 2.1rem; height: 2.1rem; color: #4A8FFF; }
.lg-trust-item b { display: block; font-size: .86rem; font-weight: 800; color: #fff; line-height: 1.25; }
.lg-trust-item span { display: block; font-size: .74rem; color: rgba(200,205,235,.7); margin-top: .1rem; }

/* ═════════ ENGINE CARDS + INDUSTRY CARDS ═════════ */
.lg-cards { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); margin: 2.2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 700px)  { .lg-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .lg-cards { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 479px)  { .lg-cards { grid-template-columns: 1fr; } }
.lg-card { --c: 74,143,255; height: 100%; padding: 1.2rem 1rem 1.3rem; border-radius: 1.1rem; background: linear-gradient(160deg, rgba(var(--c),.16), rgba(255,255,255,.03)); border: 1px solid rgba(var(--c),.3); transition: transform .3s var(--lg-ease), box-shadow .3s, border-color .3s; }
.lg-card:hover { transform: translateY(-6px); border-color: rgba(var(--c),.7); box-shadow: 0 20px 44px rgba(var(--c),.2); }
.lg-card.g { --c: 74,222,128; } .lg-card.p { --c: 167,139,250; }
.lg-ico { width: 2.9rem; height: 2.9rem; border-radius: .9rem; display: grid; place-items: center; margin-bottom: .9rem; color: rgb(var(--c)); background: rgba(var(--c),.14); transition: transform .3s var(--lg-ease), background .3s, color .3s; }
.lg-ico svg { width: 1.6rem; height: 1.6rem; }
.lg-card:hover .lg-ico { transform: rotate(-6deg) scale(1.08); background: rgb(var(--c)); color: #0B1240; }
.lg-card h3 { margin: 0 0 .45rem; font-size: .98rem; font-weight: 800; line-height: 1.25; color: #fff; }
.lg-card p { margin: 0; font-size: .8rem; line-height: 1.55; color: rgba(220,229,240,.72); }

/* ═════════ DASHBOARD ═════════ */
.lg-dashwrap { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 1024px) { .lg-dashwrap { grid-template-columns: .8fr 1.5fr; gap: 2rem; } }
.lg-laptop { position: relative; max-width: 40rem; margin: 0 auto; width: 100%; }
.lg-lap-screen { border-radius: 1rem 1rem .4rem .4rem; background: #0A1233; border: 7px solid #1E2B66; border-bottom-width: 9px; box-shadow: 0 30px 70px rgba(0,0,0,.5); overflow: hidden; display: grid; grid-template-columns: 6.6rem 1fr; min-height: 17.5rem; }
.lg-lap-base { height: .8rem; margin: 0 -1.6rem; border-radius: 0 0 1.2rem 1.2rem; background: linear-gradient(180deg, #2a3a7a, #131c4a); }
@media (max-width: 640px) { .lg-lap-base { margin: 0 -.5rem; } }
.lg-side { padding: .8rem .5rem; background: #101C4C; border-right: 1px solid rgba(255,255,255,.08); font-size: .56rem; color: rgba(220,229,240,.7); }
.lg-side b { display: block; margin-bottom: .6rem; font-size: .6rem; font-weight: 900; color: #fff; letter-spacing: .02em; }
.lg-side span { display: flex; align-items: center; gap: .35rem; padding: .32rem .35rem; border-radius: .35rem; font-weight: 700; }
.lg-side span i { width: .5rem; height: .5rem; border-radius: 2px; background: currentColor; opacity: .7; }
.lg-side span.on { background: #0A5ADF; color: #fff; }
.lg-main { padding: .8rem .9rem .9rem; }
.lg-main h4 { margin: 0 0 .6rem; font-size: .78rem; font-weight: 900; color: #fff; }
.lg-kpis { display: grid; gap: .45rem; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 639px) { .lg-kpis { grid-template-columns: repeat(2, 1fr); } .lg-lap-screen { grid-template-columns: 1fr; } .lg-side { display: none; } }
.lg-kpi { padding: .5rem .45rem; border-radius: .55rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); min-height: 5.2rem; }
.lg-kpi small { display: block; font-size: .5rem; line-height: 1.2; font-weight: 800; color: rgba(220,229,240,.75); margin-bottom: .35rem; }
.lg-kpi svg { width: 100%; height: 2.4rem; display: block; }
.lg-bars { display: grid; gap: .22rem; }
.lg-bars i { display: block; height: .32rem; border-radius: 9px; transform-origin: left; transform: scaleX(0); }
.lg-kpi b { display: block; margin-top: .25rem; font-size: .9rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.lg-checks { display: grid; gap: .25rem; margin-top: .1rem; }
.lg-checks span { display: flex; align-items: center; gap: .25rem; font-size: .5rem; color: rgba(220,229,240,.8); }
.lg-checks span i { width: .55rem; height: .55rem; border-radius: 50%; background: #16A34A; display: grid; place-items: center; transform: scale(0); }
.lg-checks span i::after { content: ''; width: .22rem; height: .12rem; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }
.lg-chart { margin-top: .6rem; border-radius: .55rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: .3rem .4rem 0; }
.lg-chart svg { display: block; width: 100%; height: auto; }
.lg-donut circle.arc { stroke-dasharray: 0 100; }
/* dashboard animations start when it scrolls into view */
.is-in .lg-donut circle.arc { animation: lg-arc 1s var(--lg-ease) both; animation-delay: var(--d, 0s); }
@keyframes lg-arc { to { stroke-dasharray: var(--L) 100; } }
.is-in .lg-bars i { animation: lg-bar 1s var(--lg-ease) both; animation-delay: var(--d, 0s); }
@keyframes lg-bar { to { transform: scaleX(1); } }
.is-in .lg-checks span i { animation: lg-pop .5s var(--d, 0s) cubic-bezier(.3,1.5,.5,1) both; }
@keyframes lg-pop { to { transform: scale(1); } }
.lg-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .lg-line { animation: lg-drawline 2.2s .5s ease-in-out both; }
@keyframes lg-drawline { to { stroke-dashoffset: 0; } }
.lg-area { opacity: 0; } .is-in .lg-area { animation: lg-fadein .8s 2.2s both; }
@keyframes lg-fadein { to { opacity: 1; } }
.is-in .lg-live { animation: ping 2s infinite; }

/* ═════════ DELIVERABLES + INDUSTRIES ═════════ */
.lg-recv { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 1024px) { .lg-recv { grid-template-columns: .6fr 1.7fr; gap: 2rem; } }
.lg-tiles { display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .lg-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .lg-tiles { grid-template-columns: repeat(6, 1fr); } }
.lg-tile { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; padding: 1rem .5rem; border-radius: 1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); font-size: .76rem; font-weight: 700; line-height: 1.3; color: #E8EAF6; transition: transform .3s var(--lg-ease), border-color .3s, background .3s; }
.lg-tile:hover { transform: translateY(-4px); border-color: rgba(74,143,255,.6); background: rgba(74,143,255,.1); }
.lg-tile svg { width: 1.7rem; height: 1.7rem; color: #4A8FFF; }

.lg-ind { display: grid; gap: 1.6rem; align-items: stretch; }
@media (min-width: 1024px) { .lg-ind { grid-template-columns: .75fr 2.3fr; gap: 1.6rem; } }
.lg-ind-intro { padding: 1.4rem 1.3rem; border-radius: 1.2rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; justify-content: center; }
.lg-ind-intro p { margin: .7rem 0 0; font-size: .82rem; line-height: 1.6; color: rgba(220,229,240,.72); }
.lg-ind-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .lg-ind-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .lg-ind-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 479px) { .lg-ind-grid { grid-template-columns: 1fr; } }

/* ═════════ FAQ ═════════ */
.lg-faqwrap { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .lg-faqwrap { grid-template-columns: 17rem 1fr; gap: 3rem; align-items: start; } }
.lg-faq { max-width: 48rem; display: grid; gap: .7rem; }
.lg-q { border-radius: 1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); transition: border-color .25s, background .25s, box-shadow .25s; }
.lg-q:hover { border-color: rgba(74,143,255,.45); }
.lg-q[open] { background: rgba(255,255,255,.09); border-color: rgba(74,143,255,.6); box-shadow: 0 14px 38px rgba(10,90,223,.15); }
.lg-q summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; padding: 1rem 1.2rem; min-height: 3.2rem; font-size: .96rem; font-weight: 800; color: #fff; }
.lg-q summary::-webkit-details-marker { display: none; }
.lg-q summary svg { flex: none; width: 1.1rem; height: 1.1rem; color: #4A8FFF; transition: transform .3s var(--lg-ease); }
.lg-q[open] summary svg { transform: rotate(45deg); }
.lg-q summary:focus-visible { outline: 3px solid #4A8FFF; outline-offset: 2px; border-radius: 1rem; }
.lg-qa { padding: 0 1.2rem 1.1rem; font-size: .92rem; line-height: 1.7; color: rgba(220,229,240,.8); animation: lg-rise .35s var(--lg-ease) both; }

/* ═════════ CTA ═════════ */
.lg-cta { position: relative; overflow: hidden; display: grid; gap: 1.4rem; align-items: center; padding: 2rem 1.6rem; border-radius: 1.4rem; background: radial-gradient(ellipse 600px 300px at 0% 0%, rgba(10,90,223,.55), transparent 65%), linear-gradient(135deg, #1a2d6e, #0B1240); border: 1px solid rgba(255,255,255,.14); }
@media (min-width: 900px) { .lg-cta { grid-template-columns: auto 1.3fr 1fr auto; padding: 2rem 2.4rem; gap: 1.6rem; } }
.lg-target { width: 5.2rem; height: 5.2rem; }
.lg-target .dart { transform-box: fill-box; transform-origin: 20% 80%; animation: lg-dart 3.2s ease-in-out infinite; }
@keyframes lg-dart { 0%, 60%, 100% { transform: translate(0,0); } 68% { transform: translate(-3px,3px); } 78% { transform: translate(1px,-1px); } }
.lg-target .ring { transform-box: fill-box; transform-origin: center; animation: lg-ringp 3.2s ease-out infinite; }
@keyframes lg-ringp { 0%, 62% { opacity: 0; transform: scale(.6); } 70% { opacity: .7; } 100% { opacity: 0; transform: scale(1.5); } }
.lg-cta h2 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); font-weight: 900; line-height: 1.15; color: #fff; }
.lg-cta h2 b { color: var(--lg-lime); }
.lg-cta p { margin: 0; font-size: .95rem; line-height: 1.6; color: rgba(255,255,255,.8); }
.lg-cta-side { display: grid; gap: .8rem; justify-items: start; }
.lg-cta-side a.mail { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 700; color: #C9D6E8; }
.lg-cta-side a.mail:hover { color: #fff; text-decoration: underline; }

/* ═════════ REDUCED MOTION ═════════ */
@media (prefers-reduced-motion: reduce) {
  .lg-glow, .lg-node, .lg-flow, .lg-layer, .lg-pill, .lg-target .dart, .lg-target .ring, .lg-hero-copy > *, .lg-crumb .lg-dot { animation: none !important; }
  .lg-target .ring { opacity: 0; }
  .lg-donut circle.arc { animation: none !important; stroke-dasharray: var(--L) 100; }
  .lg-bars i { animation: none !important; transform: none; }
  .lg-checks span i { animation: none !important; transform: scale(1); }
  .lg-line { animation: none !important; stroke-dashoffset: 0; } .lg-area { animation: none !important; opacity: 1; }
  .js .lg-reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .lg-hl::after { transform: scaleX(1) !important; animation: none !important; }
}

/* ═════════ PROCESS WORKFLOW — scene-specific motion (the player is css/workflow-player.css) ═════════ */
.ll-wave { transform-box: fill-box; transform-origin: center; animation: ll-wave 1.1s ease-in-out infinite; }
@keyframes ll-wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1.25); } }
.pw-scene .ll-cur1, .pw-scene .ll-cur2, .pw-scene .ll-env { opacity: 0; }
/* scene 1: you click "Approve plan" */
.pw-scene.is-active .ll-cur1 { animation: ll-cur1 3.6s 6.0s ease-in-out both; }
@keyframes ll-cur1 {
  0%   { opacity: 0; transform: translate(950px, 440px); }
  10%  { opacity: 1; transform: translate(950px, 440px); }
  60%  { opacity: 1; transform: translate(810px, 380px); }
  66%  { opacity: 1; transform: translate(810px, 380px) scale(.82); }
  72%  { opacity: 1; transform: translate(810px, 380px) scale(1); }
  88%  { opacity: 1; transform: translate(810px, 380px); }
  100% { opacity: 0; transform: translate(850px, 420px); }
}
/* scene 2: you click "Approve funnel & creatives" */
.pw-scene.is-active .ll-cur2 { animation: ll-cur2 3.6s 6.2s ease-in-out both; }
@keyframes ll-cur2 {
  0%   { opacity: 0; transform: translate(950px, 440px); }
  10%  { opacity: 1; transform: translate(950px, 440px); }
  60%  { opacity: 1; transform: translate(806px, 364px); }
  66%  { opacity: 1; transform: translate(806px, 364px) scale(.82); }
  72%  { opacity: 1; transform: translate(806px, 364px) scale(1); }
  88%  { opacity: 1; transform: translate(806px, 364px); }
  100% { opacity: 0; transform: translate(850px, 410px); }
}
/* scene 2: a sample lead travels through the CRM stages */
.pw-scene.is-active .ll-move { animation: ll-move 4.6s 2.9s ease-in-out both; }
@keyframes ll-move {
  0%, 12% { transform: translate(0, 0); }
  28%, 42% { transform: translate(66px, 0); }
  58%, 72% { transform: translate(132px, 0); }
  88%, 100% { transform: translate(198px, 0); }
}
/* scene 5: the report envelope drops to the client */
.pw-scene.is-active .ll-env { animation: ll-env 1.1s 5.6s ease-in-out both; }
@keyframes ll-env {
  0%   { opacity: 0; transform: translate(800px, 170px) scale(.4); }
  16%  { opacity: 1; transform: translate(800px, 180px) scale(1); }
  70%  { opacity: 1; transform: translate(800px, 214px) scale(1); }
  100% { opacity: 0; transform: translate(800px, 228px) scale(.4); }
}
@media (prefers-reduced-motion: reduce) {
  .ll-wave { animation: none !important; }
  .pw-scene .ll-cur1, .pw-scene .ll-cur2, .pw-scene .ll-env { animation: none !important; opacity: 0; }
  .pw-scene .ll-move { animation: none !important; transform: translate(198px, 0); }
}
