/* =====================================================================
   Service pages (AI Solutions, Digital Marketing). Loaded after main.css;
   only what the homepage doesn't already provide.
   ===================================================================== */

/* Hero */
.hero--sub .hero__title { font-size: clamp(2.35rem, 6.6vw, 7.6rem); line-height: .96; letter-spacing: -.04em; }
.hero--sub .hero__typeline { min-height: .96em; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; }
.hero__badge .icon { width: 16px; height: 16px; color: var(--accent-text); }
.hero__art { position: absolute; right: 4%; top: 16%; z-index: 0; width: min(46vw, 720px); height: 66%; opacity: .75; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.hero__art svg { width: 100%; height: 100%; }
[data-theme="light"] .hero__art .net-lines path { stroke: rgba(31,79,224,.45); }
[data-theme="light"] .hero__art .net-nodes circle { fill: var(--accent); }
.art-line { fill: none; stroke: var(--glow); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: art-draw 2.6s var(--ease-out) .5s forwards; }
.art-bars rect { fill: color-mix(in srgb, var(--glow) 22%, transparent); transform-box: fill-box; transform-origin: 50% 100%; animation: art-bar 1.2s var(--ease-out) both; }
@keyframes art-draw { to { stroke-dashoffset: 0; } }
@keyframes art-bar { from { transform: scaleY(0); } }
@media (max-width: 767px) { .hero__art { width: 90vw; right: 5%; top: 11%; height: 34%; opacity: .55; } }

/* Statement that brightens word by word */
.mods { padding-top: var(--section-y); }
.mods__statement { font: 500 clamp(1.5rem, 3vw, 2.9rem)/1.14 var(--font-display); letter-spacing: -.02em; max-width: 26em; color: var(--text); }

/* Service modules: stacked by default, pinned scroll-through when JS adds .is-pinned */
.mods__pin { position: relative; }
.mods__list { display: grid; gap: clamp(48px, 7vw, 96px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--section-y); }
.mod { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.mod__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mod__num { display: flex; align-items: center; gap: 12px; }
.mod__num .icon { width: 24px; height: 24px; color: var(--accent-text); }
.mod h3 { font: 600 clamp(1.9rem, 3.8vw, 3.6rem)/1 var(--font-display); letter-spacing: -.03em; }
.mod p { color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.14rem); line-height: 1.55; max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font: 500 .7rem/1.3 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mod__badge { padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); font: 500 .68rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.mod__mock { height: clamp(320px, 60vh, 520px); min-width: 0; }

.mods.is-pinned .mods__list { display: block; position: relative; height: 100svh; padding: 0; }
.mods.is-pinned .mod { position: absolute; inset: 0; padding: 96px 0 40px; opacity: 0; visibility: hidden; }
.mods.is-pinned .mod.is-active { opacity: 1; visibility: visible; }
.mods__idx { display: none; }
.mods.is-pinned .mods__idx { display: flex; gap: 8px; position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; }
.mods__idx i { flex: 1; height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.mods__idx b { display: block; height: 100%; background: var(--accent-text); transform: scaleX(0); transform-origin: 0 50%; }

@media (max-width: 1023px) {
  .mod { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .mod__mock { order: -1; height: clamp(230px, 36vh, 340px); }
  .mods.is-pinned .mod { padding: 74px 0 36px; align-content: start; gap: 16px; }
  .mods.is-pinned .mod__mock { height: clamp(170px, 32svh, 300px); }
  .mods.is-pinned .mod__copy { gap: 10px; }
  .mods.is-pinned .mod h3 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .mods.is-pinned .mod p { font-size: .94rem; line-height: 1.45; }
  .mods.is-pinned .mods__idx { bottom: 12px; }
}
@media (max-width: 1023px) and (max-height: 740px) { .mods.is-pinned .tags { display: none; } .mods.is-pinned .mod__mock { height: 26svh; } }

/* Mock "screens" */
.mock { position: relative; height: 100%; display: flex; flex-direction: column; gap: 12px; padding: clamp(14px, 2vw, 24px); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
[data-theme="dark"] .mock { background: radial-gradient(90% 70% at 90% 0%, rgba(61,124,255,.13), transparent 65%), var(--surface); }
.mock__bar { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mock__bar .label:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.mock__body { flex: 1; min-height: 0; position: relative; }

/* One-shot entrance, re-fired every time a module becomes active */
.js .m-in, .js .m-flash { opacity: 0; }
.mod.is-active .m-in { animation: m-in .55s var(--ease-out) var(--d, 0s) forwards; }
@keyframes m-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.mod.is-active .m-flash { animation: m-in .3s var(--ease-out) var(--d, 0s) forwards, m-out .2s linear calc(var(--d, 0s) + var(--hold, 1s)) forwards; }
@keyframes m-out { to { opacity: 0; height: 0; padding-block: 0; margin: 0; border-width: 0; } }

/* Chat */
.chat { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.bubble { max-width: 78%; padding: 9px 14px; border-radius: 16px; font-size: clamp(.82rem, 1.1vw, .98rem); line-height: 1.35; align-self: flex-start; background: var(--surface-2); }
.bubble--me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.bubble--ai { border-bottom-left-radius: 5px; }
.bubble--dots { display: flex; gap: 4px; padding: 12px 14px; }
.bubble--dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s ease-in-out infinite; }
.bubble--dots i:nth-child(2) { animation-delay: .15s; } .bubble--dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .5; } }

/* Call */
.call { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; }
.call__who { display: flex; align-items: center; gap: 14px; }
.call__ring { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.call__ring .icon { width: 20px; height: 20px; }
.call__ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent-text); animation: wa-pulse 1.8s var(--ease-out) infinite; }
.call__who strong { display: block; font: 600 1.05rem/1.2 var(--font-display); }
.wave { display: flex; align-items: center; justify-content: center; gap: clamp(3px, .5vw, 6px); min-height: 0; }
.wave i { width: clamp(3px, .45vw, 6px); height: 70%; border-radius: 6px; background: linear-gradient(var(--glow), var(--accent)); transform: scaleY(.15); }
.mod.is-active .wave i { animation: wave 1.1s ease-in-out calc(var(--i) * -.13s) infinite alternate; }
@keyframes wave { from { transform: scaleY(.12); } to { transform: scaleY(var(--h, 1)); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); font-size: clamp(.74rem, 1vw, .86rem); font-weight: 600; }
.chip .icon { width: 13px; height: 13px; color: var(--accent-text); }

/* Task list */
.tasks { display: grid; gap: 8px; }
.task { display: flex; align-items: center; gap: 12px; padding: clamp(8px, 1vw, 12px) 12px; border-radius: 12px; background: var(--surface-2); font-size: clamp(.84rem, 1.1vw, .98rem); }
.task .icon { width: 20px; height: 20px; padding: 3px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; }
.task small { margin-left: auto; color: var(--muted); font: 500 .68rem var(--font-mono); }
.toast { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: .88rem; font-weight: 600; }

/* Pipeline (automation + email) */
.flow { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.flow__node { display: flex; align-items: center; gap: 12px; padding: clamp(6px, 1vw, 11px) 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: clamp(.82rem, 1.1vw, .98rem); font-weight: 600; }
.flow__node .icon { width: 18px; height: 18px; color: var(--accent-text); }
.flow__node small { margin-left: auto; color: var(--muted); font: 500 .66rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.flow__link { position: relative; flex: 1; min-height: 6px; width: 2px; margin-left: 20px; background: var(--line-strong); overflow: visible; }
.flow__link::after { content: ""; position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); opacity: 0; }
.mod.is-active .flow__link::after { animation: flow 1.4s ease-in calc(var(--d, 0s)) infinite; }
@keyframes flow { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Search ranking */
.serp { display: flex; flex-direction: column; gap: 10px; height: 100%; --step: clamp(40px, 7vh, 66px); }
.serp__q { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: var(--surface-2); font-size: .94rem; }
.serp__q .icon { width: 16px; height: 16px; color: var(--muted); }
.serp__rows { position: relative; flex: 1; }
.serp__row { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--step) - 8px); padding: 0 14px; display: flex; flex-direction: column; justify-content: center; gap: 5px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.serp__row i { display: block; height: 6px; border-radius: 3px; background: var(--line-strong); }
.serp__row i:last-child { width: 62%; opacity: .6; }
.serp__row--a { transform: translateY(0); } .serp__row--b { transform: translateY(var(--step)); }
.serp__row--me { transform: translateY(calc(var(--step) * 2)); border-color: var(--accent-text); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); font-size: clamp(.82rem, 1.1vw, .96rem); font-weight: 700; color: var(--accent-text); z-index: 1; flex-direction: row; align-items: center; justify-content: space-between; }
.mod.is-active .serp__row--a { animation: serp-a 3s var(--ease-out) .8s forwards; }
.mod.is-active .serp__row--b { animation: serp-b 3s var(--ease-out) .8s forwards; }
.mod.is-active .serp__row--me { animation: serp-me 3s var(--ease-out) .8s forwards; }
@keyframes serp-a { 40%, 100% { transform: translateY(var(--step)); } }
@keyframes serp-b { 40%, 100% { transform: translateY(calc(var(--step) * 2)); } }
@keyframes serp-me { 40%, 100% { transform: translateY(0); } }

/* Social feed */
.feed { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 10px; }
.feed__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-height: 0; }
.post { position: relative; min-height: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.post img { width: 100%; height: 100%; object-fit: cover; }
.post b { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: .9rem; opacity: 0; }
.mod.is-active .post b { animation: heart 1.8s var(--ease-out) var(--d, 1s) infinite; }
@keyframes heart { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.2); } 40%, 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }

/* Ads */
.ads { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: center; }
.target { position: relative; aspect-ratio: 1; max-height: 100%; margin: auto; width: 100%; max-width: 240px; }
.target span { position: absolute; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.target span:nth-child(1) { inset: 0; } .target span:nth-child(2) { inset: 18%; } .target span:nth-child(3) { inset: 37%; background: var(--accent); border-color: var(--glow); }
.target i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--glow); transform: translate(var(--x), var(--y)); }
.mod.is-active .target i { animation: home 2.4s var(--ease-out) var(--d) infinite; }
@keyframes home { 0% { transform: translate(var(--x), var(--y)); opacity: 0; } 15% { opacity: 1; } 70%, 100% { transform: translate(0, 0); opacity: 0; } }
.bars { display: grid; gap: 12px; }
.bars div { display: grid; gap: 5px; font-size: .84rem; font-weight: 600; }
.bars i { display: block; height: 8px; border-radius: 4px; background: var(--line-strong); overflow: hidden; }
.bars b { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--glow)); transform: scaleX(0); transform-origin: 0 50%; }
.mod.is-active .bars b { animation: bar-grow 1.4s var(--ease-out) var(--d) forwards; }
@keyframes bar-grow { to { transform: scaleX(var(--w)); } }

/* Why tiles */
.bento--four .tile { grid-column: span 6; }
@media (min-width: 1024px) { .bento--four .tile:nth-child(1), .bento--four .tile:nth-child(4) { grid-column: span 7; } .bento--four .tile:nth-child(2), .bento--four .tile:nth-child(3) { grid-column: span 5; } }
@media (max-width: 639px) { .bento--four .tile { grid-column: span 12; min-height: 230px; } }
.tile__icon { position: absolute; left: clamp(22px, 2.4vw, 32px); top: clamp(22px, 2.4vw, 32px); width: 30px; height: 30px; color: var(--accent-text); }
.vbars { position: absolute; right: 0; top: 0; display: flex; align-items: flex-end; gap: 8px; height: 100%; }
.vbars i { width: 20px; border-radius: 5px 5px 0 0; background: linear-gradient(var(--glow), var(--accent)); height: var(--h); transform-origin: 50% 100%; animation: vbar 3s ease-in-out infinite alternate; }
.vbars i:nth-child(2n) { animation-delay: -1.2s; }
@keyframes vbar { from { transform: scaleY(.7); } to { transform: scaleY(1); } }
.ping { position: absolute; right: 20%; top: 20%; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; }
.ping::before, .ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--glow); animation: wa-pulse 1.8s var(--ease-out) infinite; }
.ping::after { animation-delay: .6s; }
.ping .icon { width: 24px; height: 24px; }
.pie { position: absolute; right: 8%; top: 0; width: 110px; height: 110px; transform: rotate(-90deg); }
.pie circle { fill: none; stroke-width: 20; }
.pie .pie__bg { stroke: var(--line-strong); }
.pie .pie__fg { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: 1; animation: pie 4s var(--ease-out) infinite alternate; }
@keyframes pie { to { stroke-dashoffset: .3; } }
.tile .tile__viz--plain { top: 22px; right: 22px; width: 44%; height: 40%; }

/* Final CTA */
.launch-title--stack .fit { width: auto; }
.launch-title--stack .fit__l { display: block; width: max-content; margin-inline: auto; }
.launch-title--stack .fit__l + .fit__l { margin-top: .06em; }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(40px, 6vw, 72px); }
.btn--wa { background: #15803D; color: #fff; }
.btn--wa:hover { background: #116B33; }

/* Reduced motion: every mock simply shows its finished state */
@media (prefers-reduced-motion: reduce) {
  .mock *, .mock *::before, .mock *::after { animation: none !important; }
  .js .m-in { opacity: 1; }
  .m-flash { display: none; }
  .wave i { transform: scaleY(var(--h, 1)); }
  .serp__row--a { transform: translateY(var(--step)); } .serp__row--b { transform: translateY(calc(var(--step) * 2)); } .serp__row--me { transform: none; }
  .bars b { transform: scaleX(var(--w)); }
  .post b { opacity: 1; }
  .target i { display: none; }
  .art-line { stroke-dashoffset: 0; animation: none; }
}

.post picture { display: block; height: 100%; }
@media (min-width: 1024px) { .serp { --step: clamp(56px, 11vh, 104px); } }
