/* CRM & LEAD INTELLIGENCE PAGE
   Uses global tokens from style.css
*/

/* HERO */

.crm-hero {
    position: relative;
    padding-top: 3.2rem;
    padding-bottom: 3.4rem;
}

.crm-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
    gap: 2.6rem;
    align-items: center;
}

.crm-hero-copy {
    max-width: 34rem;
}

.crm-hero-kicker {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-strong);
    margin-bottom: 0.6rem;
}

.crm-hero-title {
    margin: 0 0 0.9rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(1.9rem, 2.7vw + 1rem, 2.6rem);
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.crm-hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.crm-hero-subtitle strong {
    color: var(--text-main);
}

.crm-hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.crm-hero-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: flex-start;
}

.crm-hero-list .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    margin-top: 0.35rem;
    background: radial-gradient(circle, #22c55e, #0ea5e9);
}

.crm-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 0.7rem;
}

.crm-hero-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* HERO VISUAL */

.crm-hero-visual {
    position: relative;
    min-height: 260px;
}

.crm-hero-orbit {
    position: absolute;
    inset: -14%;
    background:
        radial-gradient(circle at 0% 0%, rgba(124, 92, 255, 0.24), transparent 65%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.24), transparent 60%);
    filter: blur(26px);
    opacity: 0.9;
    z-index: 0;
}

.crm-hero-card {
    position: relative;
    z-index: 1;
    border-radius: 22px;
    padding: 1.2rem 1.3rem 1.1rem;
    background: linear-gradient(135deg, #ffffff, #eef2ff);
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.crm-hero-card-main {
    max-width: 380px;
    margin-left: auto;
    overflow: hidden;
}

.crm-hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
}

.crm-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(209, 213, 219, 0.9);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.crm-hero-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0%, #22c55e, #16a34a);
    box-shadow: 0 0 10px rgba(22, 163, 74, 0.9);
    animation: crmPulse 1.6s ease-out infinite;
}

.crm-hero-card-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* lead top */

.crm-hero-lead-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.35rem;
}

.crm-hero-lead-name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-main);
}

.crm-hero-lead-line {
    margin: 0.1rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.crm-hero-lead-score-badge {
    border-radius: 999px;
    padding: 0.16rem 0.7rem;
    font-size: 0.72rem;
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.6);
}

/* tags */

.crm-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.crm-tag {
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(209, 213, 219, 0.9);
    color: var(--text-muted);
}

.crm-tag-intent {
    border-color: rgba(34, 197, 94, 0.5);
    color: #166534;
    background: rgba(240, 253, 244, 0.98);
}

.crm-tag-budget {
    border-color: rgba(59, 130, 246, 0.5);
    color: #1d4ed8;
    background: rgba(239, 246, 255, 0.98);
}

.crm-tag-timeline {
    border-color: rgba(251, 191, 36, 0.6);
    color: #92400e;
    background: rgba(255, 251, 235, 0.98);
}

.crm-tag-channel {
    border-color: rgba(56, 189, 248, 0.6);
    color: #0369a1;
    background: rgba(240, 249, 255, 0.98);
}

/* split area */

.crm-hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 0.8rem;
    align-items: flex-start;
}

.crm-hero-metrics {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
}

.crm-hero-metric {
    border-radius: 12px;
    padding: 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px dashed rgba(209, 213, 219, 0.9);
    font-size: 0.75rem;
}

.crm-hero-metric .label {
    display: block;
    color: var(--text-muted);
}

.crm-hero-metric .value {
    color: var(--text-main);
    font-weight: 600;
}

.crm-hero-timeline {
    border-radius: 14px;
    padding: 0.45rem 0.55rem;
    background: rgba(15, 23, 42, 0.96);
    color: #e5e7eb;
    font-size: 0.74rem;
}

.crm-hero-timeline-title {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #a5b4fc;
}

.crm-hero-timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.crm-hero-timeline-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem;
    align-items: flex-start;
}

.crm-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    margin-top: 0.28rem;
    background: radial-gradient(circle, #64748b, #0f172a);
}

.crm-dot-positive {
    background: radial-gradient(circle, #22c55e, #0ea5e9);
}

/* footer */

.crm-hero-footer {
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.7);
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
}

.crm-hero-next-action {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.crm-hero-next-action .label {
    display: block;
}

.crm-hero-next-action .value {
    color: var(--text-main);
    font-weight: 600;
}

.crm-hero-cta-mini {
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.74rem;
    border: 1px solid rgba(59, 130, 246, 0.7);
    background: rgba(239, 246, 255, 0.98);
    color: #1d4ed8;
    cursor: pointer;
    transition: background 160ms ease-out, transform 160ms ease-out, box-shadow 160ms ease-out;
}

.crm-hero-cta-mini:hover {
    background: #1d4ed8;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* floating */

.crm-hero-floating {
    position: absolute;
    left: -2.5rem;
    bottom: -5.4rem;
    border-radius: 16px;
    padding: 0.6rem 0.85rem;
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    font-size: 0.78rem;
    max-width: 230px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.25);
    animation: crmFloat 5s ease-in-out infinite;
}

.crm-hero-floating-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #a5b4fc;
    margin: 0 0 0.25rem;
}

.crm-hero-floating-text {
    margin: 0;
}

/* METRIC STRIP */

.crm-metric-strip {
    padding-top: 1.4rem;
    padding-bottom: 2.2rem;
}

.crm-metric-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.crm-metric {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.95);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.crm-metric-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-strong);
}

.crm-metric-value {
    display: block;
    margin-top: 0.3rem;
    margin-bottom: 0.15rem;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: "Space Grotesk", system-ui, sans-serif;
    color: var(--text-main);
}

.crm-metric-text {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* INTEL SECTION */

.crm-intel {
    padding-top: 2.6rem;
    padding-bottom: 3.2rem;
}

.crm-intel-header {
    max-width: 40rem;
    margin-bottom: 2rem;
}

.crm-kicker {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-strong);
    margin-bottom: 0.6rem;
}

.crm-intel-title {
    margin: 0 0 0.8rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.crm-intel-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.crm-intel-grid {
    margin-top: 1.4rem;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: stretch;
}

.crm-intel-card {
    border-radius: 20px;
    padding: 1.1rem 1.1rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.95);
    box-shadow: 0 13px 32px rgba(15, 23, 42, 0.16);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    position: relative;
    overflow: hidden;
}

.crm-intel-card::before {
    content: "";
    position: absolute;
    inset: -35%;
    background:
        radial-gradient(circle at 0 0, rgba(124, 92, 255, 0.2), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.2), transparent 55%);
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 220ms ease-out;
}

.crm-intel-card:hover::before {
    opacity: 1;
}

.crm-intel-card-tall {
    grid-row: span 2;
}

.crm-intel-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 0 0, rgba(0, 188, 212, 0.24), #ffffff);
    border: 1px solid rgba(148, 163, 184, 0.8);
    margin-bottom: 0.2rem;
}

.crm-intel-card-title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-main);
}

.crm-intel-card-text {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.crm-intel-list {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* TIMELINE */

.crm-timeline {
    padding-top: 2.4rem;
    padding-bottom: 3.2rem;
}

.crm-timeline-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2.2rem;
    align-items: flex-start;
}

.crm-timeline-copy {
    max-width: 30rem;
}

.crm-timeline-title {
    margin: 0 0 0.8rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.crm-timeline-text {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.crm-timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.crm-timeline-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.45rem;
    align-items: flex-start;
}

.crm-timeline-list .crm-dot {
    margin-top: 0.35rem;
}

/* visual card */

.crm-timeline-visual {
    position: relative;
    min-height: 260px;
}

.crm-timeline-orbit {
    position: absolute;
    inset: -14%;
    background:
        radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.22), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.24), transparent 55%);
    filter: blur(24px);
    opacity: 0.9;
    z-index: 0;
}

.crm-timeline-card {
    position: relative;
    z-index: 1;
    border-radius: 22px;
    padding: 1.1rem 1.15rem 1rem;
    background: #0b1220;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.8);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.crm-timeline-header {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
}

.crm-timeline-name {
    font-weight: 600;
}

.crm-timeline-stage {
    border-radius: 999px;
    padding: 0.18rem 0.6rem;
    font-size: 0.72rem;
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.7);
}

.crm-timeline-items {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.crm-timeline-items li {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0.4rem;
    align-items: flex-start;
}

.crm-timeline-time {
    width: 2.4rem;
    color: #94a3b8;
}

.crm-timeline-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    margin-top: 0.32rem;
    background: radial-gradient(circle, #38bdf8, #0ea5e9);
}

.crm-timeline-dot-good {
    background: radial-gradient(circle, #22c55e, #0ea5e9);
}

/* 
.crm-timeline-text {
    color: #e5e7eb;
} */

.crm-timeline-footer {
    margin-top: 0.7rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.7);
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: center;
    font-size: 0.78rem;
}

.crm-timeline-footer .label {
    display: block;
    color: #94a3b8;
}

.crm-timeline-footer .value {
    color: #e5e7eb;
    font-weight: 600;
}

.crm-timeline-cta {
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.74rem;
    border: 1px solid rgba(34, 197, 94, 0.8);
    background: rgba(22, 163, 74, 0.12);
    color: #bbf7d0;
    cursor: pointer;
    transition: background 160ms ease-out, transform 160ms ease-out, box-shadow 160ms ease-out;
}

.crm-timeline-cta:hover {
    background: #22c55e;
    color: #022c22;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.4);
}

/* FEATURE GRID */

.crm-features {
    padding-top: 2.4rem;
    padding-bottom: 3.2rem;
}

.crm-features-header {
    max-width: 40rem;
    margin-bottom: 2rem;
}

.crm-features-title {
    margin: 0 0 0.8rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.crm-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

.crm-feature-card {
    border-radius: 20px;
    padding: 1.05rem 1.1rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.95);
    box-shadow: 0 13px 30px rgba(15, 23, 42, 0.16);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.crm-feature-card::before {
    content: "";
    position: absolute;
    inset: -35%;
    background:
        radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.18), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.2), transparent 55%);
    opacity: 0;
    transition: opacity 220ms ease-out;
    mix-blend-mode: screen;
}

.crm-feature-card:hover::before {
    opacity: 1;
}

.crm-feature-card-wide {
    grid-column: span 2;
}

.crm-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 0 0, rgba(0, 188, 212, 0.24), #ffffff);
    border: 1px solid rgba(148, 163, 184, 0.8);
}

.crm-feature-title {
    margin: 0.2rem 0 0.2rem;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-main);
}

.crm-feature-text {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.crm-feature-list {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* FINAL CTA */

.crm-final-cta {
    padding-top: 2.6rem;
    padding-bottom: 3.6rem;
}

.crm-final-card {
    border-radius: 24px;
    padding: 1.7rem 1.8rem 1.7rem;
    background: linear-gradient(135deg,
            rgba(240, 253, 244, 0.98),
            rgba(224, 242, 254, 0.98));
    border: 1px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 1.6rem;
    align-items: center;
}

.crm-final-copy {
    max-width: 34rem;
}

.crm-final-kicker {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-strong);
    margin-bottom: 0.6rem;
}

.crm-final-title {
    margin: 0 0 0.8rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.crm-final-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.crm-final-actions {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.crm-final-visual {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(209, 213, 219, 0.95);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.crm-final-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ANIMATIONS */

@keyframes crmPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }

    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes crmFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .crm-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .crm-hero-visual {
        order: -1;
        margin-bottom: 1.6rem;
    }

    .crm-hero-card-main {
        margin: 0 auto;
    }

    .crm-hero-floating {
        left: 1.4rem;
        bottom: -0.4rem;
    }

    .crm-metric-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .crm-intel-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .crm-intel-card-tall {
        grid-row: span 1;
    }

    .crm-timeline-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .crm-timeline-copy {
        max-width: none;
    }

    .crm-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-feature-card-wide {
        grid-column: 1 / -1;
    }

    .crm-final-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .crm-final-visual {
        max-height: 260px;
    }
}

@media (max-width: 720px) {
    .crm-hero {
        padding-top: 2.6rem;
        padding-bottom: 2.9rem;
    }

    .crm-metric-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .crm-intel-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .crm-features-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .crm-final-card {
        padding: 1.5rem 1.3rem 1.5rem;
    }

    .crm-hero-floating {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 0.8rem;
    }
}