/* ============================================================
   ClockIn+ · Marketing / Public pages enhancement layer
   Shared utilities: scroll-reveal, hero orbs, trust chips,
   animated gradient text, hover polish, mkt CTA banner.
   ============================================================ */

/* ---------- Scroll reveal ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal][data-reveal-delay="1"].is-visible { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"].is-visible { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"].is-visible { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"].is-visible { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero orbs (drop-in background) ---------- */
.mkt-hero-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.mkt-hero-orbs .mkt-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: mktOrbFloat 14s ease-in-out infinite;
}
.mkt-hero-orbs .mkt-orb-1 {
    width: 320px; height: 320px; top: -80px; left: -60px;
    background: radial-gradient(circle, rgba(13, 202, 240, 0.55), transparent 70%);
}
.mkt-hero-orbs .mkt-orb-2 {
    width: 380px; height: 380px; bottom: -120px; right: -80px;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.5), transparent 70%);
    animation-delay: -6s;
}
.mkt-hero-orbs .mkt-orb-3 {
    width: 220px; height: 220px; top: 30%; right: 25%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.35), transparent 70%);
    animation-delay: -10s;
}
.mkt-hero-orbs .mkt-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 86, 179, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 86, 179, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
}
@keyframes mktOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(20px, -30px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .mkt-hero-orbs .mkt-orb { animation: none; }
}

/* Any hero-ish section that wraps orbs should relate + layer content */
.mkt-hero-host {
    position: relative;
    overflow: hidden;
}
.mkt-hero-host > *:not(.mkt-hero-orbs) {
    position: relative;
    z-index: 1;
}

/* ---------- Trust chip row ---------- */
.mkt-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.mkt-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    color: #212529;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.mkt-trust-chip i { color: #0056b3; }
.mkt-trust-chip .stars { color: #ffc107; display: inline-flex; gap: 1px; font-size: 0.8rem; }
.mkt-trust-chip strong { color: #212529; }

[data-bs-theme="dark"] .mkt-trust-chip {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}
[data-bs-theme="dark"] .mkt-trust-chip strong { color: #f1f5f9; }

/* ---------- Animated gradient headline ---------- */
.mkt-gradient {
    background: linear-gradient(90deg, #0056b3, #0dcaf0, #6f42c1, #0056b3);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: mktGradientShift 8s ease-in-out infinite;
}
@keyframes mktGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .mkt-gradient { animation: none; }
}

/* ---------- Pulse dot ---------- */
.mkt-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #0dcaf0;
    box-shadow: 0 0 0 0 rgba(13, 202, 240, 0.6);
    animation: mktPulse 1.8s infinite;
    display: inline-block;
    vertical-align: middle;
}
@keyframes mktPulse {
    0%   { box-shadow: 0 0 0 0 rgba(13, 202, 240, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(13, 202, 240, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 202, 240, 0); }
}

/* ---------- Bottom CTA banner (drop-in) ---------- */
.mkt-cta-banner {
    position: relative;
    padding: 60px 20px;
    background: linear-gradient(135deg, #0056b3 0%, #1e40af 50%, #6f42c1 100%);
    color: white;
    overflow: hidden;
}
.mkt-cta-banner::before {
    content: "";
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    pointer-events: none;
}
.mkt-cta-banner::after {
    content: "";
    position: absolute;
    bottom: -60px; left: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.2), transparent 70%);
    pointer-events: none;
}
.mkt-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.mkt-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.mkt-cta-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.mkt-cta-desc {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 24px;
}
.mkt-cta-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.mkt-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mkt-cta-btn.primary {
    background: white;
    color: #0056b3;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.mkt-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
    color: #0056b3;
}
.mkt-cta-btn.ghost {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.mkt-cta-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

/* ---------- Hover polish for common card patterns ---------- */
.mkt-hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mkt-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}
