/* ============================================================
   EVERXP SECTIONS — Phase 3+
   Shared section typography + all content sections
   ============================================================ */

/* ---- Section headers (shared) ---- */
.xp-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: var(--weight-extrabold);
    color: var(--xp-navy);
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.xp-section-sub {
    font-size: var(--text-lg);
    color: var(--xp-muted);
    line-height: var(--leading-loose);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Testimonials section always centred */
.xp-testimonials-section .intro {
    text-align: center;
}

.xp-testimonials-section .intro .xp-section-title,
.xp-testimonials-section .intro .xp-section-sub,
.xp-testimonials-section .intro .label-overline {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   PHASE 3 — HOW IT WORKS
   ============================================================ */

.xp-how-it-works {
    padding: var(--space-24) 0 var(--space-20);
    background: var(--xp-white);
    overflow-x: hidden;
}

/* ---- Architecture diagram ---- */
.xp-layer-diagram {
    display: grid;
    grid-template-columns: 1fr 56px 1.15fr 56px 1fr;
    align-items: center;
    margin: var(--space-12) 0 var(--space-8);
    position: relative;
}

/* Each layer block */
.xp-layer {
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-5);
    position: relative;
}

/* Layer 1: Content Sources */
.xp-layer--sources {
    background: var(--xp-light);
    border: 1.5px solid var(--xp-border);
}

/* Layer 2: EverXP (center hero) */
.xp-layer--everxp {
    background: var(--xp-navy);
    border: 2px solid var(--xp-gold);
    box-shadow: var(--shadow-gold), var(--shadow-xl);
    z-index: 2;
    padding: var(--space-8) var(--space-6);
    transform: scaleY(1.04);
}

/* Layer 3: Website */
.xp-layer--website {
    background: var(--xp-light);
    border: 1.5px solid var(--xp-border);
}

/* Layer label */
.xp-layer__label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--xp-muted);
    margin-bottom: var(--space-4);
}

.xp-layer__label--white {
    color: rgba(255, 255, 255, 0.55);
}

/* Layer logo (EverXP layer) */
.xp-layer__logo {
    margin-bottom: var(--space-4);
}

/* Chip items (Sources + Website layers) */
.xp-layer__items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.xp-layer__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--xp-white);
    border: 1px solid var(--xp-border);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--xp-navy);
    white-space: nowrap;
}

/* Process badges in EverXP layer */
.xp-layer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.xp-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.80);
    white-space: nowrap;
}

.xp-badge--gold {
    background: var(--xp-gold);
    border-color: var(--xp-gold);
    color: var(--xp-navy-dark);
    font-weight: var(--weight-bold);
}

/* Animated pulse on the EverXP layer */
.xp-layer--everxp::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--radius-lg) + 4px);
    border: 1px solid var(--xp-gold);
    opacity: 0;
    animation: layer-pulse 2.5s ease-in-out infinite;
}

@keyframes layer-pulse {
    0%   { opacity: 0; transform: scale(1); }
    50%  { opacity: 0.35; transform: scale(1.015); }
    100% { opacity: 0; transform: scale(1); }
}

/* Result badge in Website layer */
.xp-layer__result {
    margin-top: var(--space-4);
}

.xp-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #fff7e0, #fff);
    border: 1.5px solid var(--xp-gold);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    color: var(--xp-gold-dark);
}

/* ---- Flow arrows between layers ---- */
.xp-layer-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.xp-arrow-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.xp-arrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--xp-gold);
    animation: dot-flow 1.6s ease-in-out infinite;
}

.xp-arrow-dot:nth-child(2) { animation-delay: 0.3s; }
.xp-arrow-dot:nth-child(3) { animation-delay: 0.6s; }
.xp-arrow-dot:nth-child(4) { animation-delay: 0.9s; }

@keyframes dot-flow {
    0%, 100% { opacity: 0.2; transform: translateX(0); }
    50%       { opacity: 1;   transform: translateX(6px); }
}

.xp-arrow-head {
    font-size: 18px;
    color: var(--xp-gold);
    line-height: 1;
    margin-top: 2px;
    animation: arrow-pulse 1.6s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50%       { opacity: 1;   transform: translateX(4px); }
}

/* ---- 3-Step cards ---- */
.xp-steps {
    position: relative;
}

/* Horizontal connector line on desktop */
.xp-steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(16.66% + 32px);
    right: calc(16.66% + 32px);
    height: 2px;
    background: linear-gradient(90deg,
        var(--xp-gold) 0%,
        var(--xp-gold) 50%,
        var(--xp-border) 100%
    );
    z-index: 0;
}

.xp-step {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    position: relative;
    z-index: 1;
}

.xp-step__number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: var(--weight-black);
    color: var(--xp-light-mid);
    line-height: 1;
    position: absolute;
    top: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    user-select: none;
}

.xp-step__icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    background: var(--xp-white);
    border: 2px solid var(--xp-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto var(--space-4);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--ease-smooth), box-shadow var(--ease-smooth);
}

.xp-step:hover .xp-step__icon {
    border-color: var(--xp-gold);
    box-shadow: var(--shadow-gold);
}

.xp-step__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--xp-navy);
    margin-bottom: var(--space-3);
}

.xp-step__desc {
    font-size: var(--text-base);
    color: var(--xp-muted);
    line-height: var(--leading-loose);
    max-width: 280px;
    margin: 0 auto;
}

/* ---- Diagram responsive ---- */
@media (max-width: 991px) {
    .xp-layer-diagram {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

    .xp-layer-arrow {
        flex-direction: row;
        height: 32px;
        padding: 0;
        justify-content: center;
    }

    .xp-arrow-track {
        flex-direction: row;
    }

    @keyframes dot-flow {
        0%, 100% { opacity: 0.2; transform: translateY(0); }
        50%       { opacity: 1;   transform: translateY(4px); }
    }

    .xp-arrow-head {
        transform: rotate(90deg);
    }

    .xp-layer--everxp {
        transform: none;
    }

    .xp-steps::before {
        display: none;
    }
}

/* ============================================================
   PHASE 4 — ANALYTICS SECTION
   ============================================================ */

.xp-analytics-section {
    background: var(--xp-navy-dark);
    padding: var(--space-24) 0;
    position: relative;
    overflow-x: hidden;
    overflow: hidden;
}

/* Subtle radial glow behind the chart */
.xp-analytics-section::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,197,24,0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* Section title / sub overrides for dark bg */
.xp-title--white {
    color: var(--xp-white) !important;
}

.xp-sub--light {
    color: rgba(255, 255, 255, 0.60) !important;
}

.xp-overline--light::before {
    background: rgba(255, 255, 255, 0.30);
}

.xp-overline--light {
    color: rgba(255, 255, 255, 0.45);
}

/* ---- Stat grid (2×2) ---- */
.xp-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-top: var(--space-8);
}

.xp-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-4);
    transition: border-color var(--ease-smooth), background var(--ease-smooth);
}

.xp-stat:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(245, 197, 24, 0.30);
}

.xp-stat__number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--weight-black);
    color: var(--xp-gold);
    line-height: 1;
    letter-spacing: -0.02em;
}

.xp-stat__label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: rgba(255, 255, 255, 0.40);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: var(--space-2);
}

/* ---- Chart panel ---- */
.xp-chart-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    backdrop-filter: blur(8px);
}

.xp-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.xp-chart-title {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.70);
}

.xp-chart-live {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.50);
}

/* ---- Bar chart ---- */
.xp-chart-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.xp-bar-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.xp-bar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xp-bar-label {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.xp-bar-value {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: rgba(255, 255, 255, 0.60);
}

.xp-bar-value--gold {
    color: var(--xp-gold);
}

.xp-bar-track {
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-full);
    height: 12px;
    overflow: hidden;
}

.xp-bar {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--xp-bar-color, rgba(255,255,255,0.25));
    width: 0;
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.xp-bar.xp-bar--animated {
    width: var(--xp-bar-pct);
}

.xp-bar--gold {
    background: var(--xp-gold) !important;
    box-shadow: 0 0 12px rgba(245, 197, 24, 0.45);
}

/* Winner badge in bar label */
.xp-winner-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--xp-gold);
    color: var(--xp-navy-dark);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: var(--weight-extrabold);
    letter-spacing: 0.04em;
    animation: winner-pop 0.5s var(--ease-bounce) forwards;
    opacity: 0;
}

.xp-winner-badge.visible {
    opacity: 1;
}

@keyframes winner-pop {
    0%   { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

/* Promoted notice bar */
.xp-promoted-notice {
    background: rgba(245, 197, 24, 0.08);
    border: 1px solid rgba(245, 197, 24, 0.20);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--xp-gold);
    margin-bottom: var(--space-5);
}

.xp-promoted-notice i {
    margin-right: var(--space-2);
}

/* ---- Mini metrics table ---- */
.xp-metrics-table {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.xp-metrics-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.xp-metrics-row:last-child {
    border-bottom: none;
}

.xp-metrics-row span {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.55);
}

.xp-metrics-row--head {
    background: rgba(255, 255, 255, 0.04);
}

.xp-metrics-row--head span {
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.35);
}

.xp-col--gold {
    color: var(--xp-gold) !important;
    font-weight: var(--weight-bold) !important;
}

/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .xp-analytics-section {
        padding: var(--space-16) 0;
    }

    .xp-stat-grid {
        margin-bottom: var(--space-8);
    }

    /* Layer diagram stacks on tablet */
    .xp-layer-diagram {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .xp-arrow {
        transform: rotate(90deg);
    }

    .xp-arrow-dot {
        animation: none;
    }
}

@media (max-width: 767px) {
    .xp-proof-stat__number {
        font-size: 2rem;
    }

    /* Step cards: full width on small tablets */
    .xp-step {
        margin-bottom: var(--space-6);
    }
}

@media (max-width: 575px) {
    .xp-stat__number {
        font-size: var(--text-3xl);
    }

    .xp-metrics-table {
        display: none;
    }

    .xp-proof-stats {
        gap: var(--space-4);
    }

    .xp-integration-grid {
        justify-content: flex-start;
    }

    .xp-integration-logo {
        min-width: calc(50% - var(--space-2));
        flex: 1 1 calc(50% - var(--space-2));
    }
}

/* ============================================================
   PHASE 6 — FOOTER
   ============================================================ */

.xp-footer {
    background: var(--xp-navy-dark);
    padding: var(--space-16) 0 var(--space-8);
    position: relative;
}

/* Top row */
.xp-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    padding-bottom: var(--space-8);
    flex-wrap: wrap;
}

.xp-footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: flex-start;
}

.xp-footer__brand img {
    height: 51px;
    width: auto;
}

.xp-footer__tagline {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1;
}

/* Divider */
.xp-footer__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: var(--space-8) 0;
}

/* Link columns */
.xp-footer__col-title {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: var(--space-4);
}

.xp-footer__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.xp-footer__links ul li a {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--ease-default);
}

.xp-footer__links ul li a:hover {
    color: var(--xp-gold);
}

/* Bottom row */
.xp-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.xp-footer__copy {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.25);
}

.xp-footer__socials {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.xp-footer__socials a {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.40);
    text-decoration: none;
    transition: color var(--ease-default);
}

.xp-footer__socials a:hover {
    color: var(--xp-gold);
}

@media (max-width: 767px) {
    .xp-footer__top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    /* Footer bottom: stack copyright / socials / lang-toggle vertically */
    .xp-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    /* Smaller section sub text on phones */
    .xp-section-sub {
        font-size: var(--text-base);
    }
}

/* ============================================================
   PHASE 6 — PRICING PAGE
   ============================================================ */

/* Pricing hero */
.xp-pricing-hero {
    background: var(--xp-navy);
    padding: var(--space-20) 0 var(--space-24);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.xp-pricing-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--xp-light);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.xp-pricing-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--weight-black);
    color: var(--xp-white);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.xp-pricing-hero p {
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
}

/* Pricing section wrapper */
.xp-pricing-section {
    background: var(--xp-light);
    padding: var(--space-16) 0 var(--space-24);
}

/* Override pricing table for new brand */
.pricing-table__item {
    border: 1.5px solid var(--xp-border) !important;
    transition: transform var(--ease-smooth), box-shadow var(--ease-smooth) !important;
}

/* Highlight the popular plan */
.pricing-table__item--popular {
    border-color: var(--xp-gold) !important;
    box-shadow: var(--shadow-gold), var(--shadow-lg) !important;
    transform: translateY(-8px);
    position: relative;
}

.pricing-table__item--popular::before {
    background: var(--xp-gold) !important;
    color: var(--xp-navy-dark) !important;
    font-weight: var(--weight-extrabold) !important;
    top: -14px !important;
    right: 50% !important;
    transform: translateX(50%) !important;
    padding: 4px 16px !important;
}

.pricing-table__title {
    font-family: var(--font-display) !important;
    font-weight: var(--weight-bold) !important;
    color: var(--xp-navy) !important;
}

.pricing-table__price {
    font-family: var(--font-display) !important;
    color: var(--xp-navy) !important;
}

.pricing-table__item--popular .pricing-table__price {
    color: var(--xp-navy) !important;
}

.pricing-table__save {
    color: var(--xp-gold-dark) !important;
    font-weight: var(--weight-semibold) !important;
}

/* CTA button on popular plan → gold */
.pricing-table__item--popular .pricing-table__button {
    background: var(--xp-gold) !important;
    border-color: var(--xp-gold) !important;
    color: var(--xp-navy-dark) !important;
    font-weight: var(--weight-bold) !important;
}

.pricing-table__item--popular .pricing-table__button:hover {
    background: var(--xp-gold-dark) !important;
    border-color: var(--xp-gold-dark) !important;
}

@media (max-width: 767px) {
    .xp-step {
        margin-bottom: var(--space-8);
    }
}

/* ============================================================
   PHASE 5 — SOCIAL PROOF & INTEGRATIONS
   ============================================================ */

/* ---- Stats band ---- */
.xp-proof-band {
    background: var(--xp-navy);
    padding: var(--space-12) 0;
    position: relative;
}

.xp-proof-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.xp-proof-stat {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: var(--space-4) var(--space-6);
}

.xp-proof-stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 3vw, 2.75rem);
    font-weight: var(--weight-black);
    color: var(--xp-gold);
    line-height: 1;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.xp-proof-stat__label {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.50);
    line-height: 1.3;
}

.xp-proof-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.10);
    flex-shrink: 0;
}

/* ---- Integrations section ---- */
.xp-integrations {
    padding: var(--space-20) 0 var(--space-16);
    background: var(--xp-white);
    text-align: center;
}

.xp-integrations__label {
    color: var(--xp-gold-dark);
    margin-bottom: var(--space-3);
    text-align: center;
}

.xp-integrations .xp-section-title,
.xp-integrations .xp-section-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.xp-integration-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin: var(--space-10) 0 var(--space-8);
}

.xp-integration-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    border: 1.5px solid var(--xp-border);
    border-radius: var(--radius-lg);
    min-width: 120px;
    transition: border-color var(--ease-default), box-shadow var(--ease-default), transform var(--ease-smooth);
    background: var(--xp-white);
}

.xp-integration-logo:hover {
    border-color: var(--xp-gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
}

.xp-integration-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.25);
    transition: filter var(--ease-default);
}

.xp-integration-logo:hover img {
    filter: grayscale(0);
}

.xp-integration-logo span {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--xp-muted);
}

.xp-integrations__note {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    color: var(--xp-muted);
    text-align: center;
    margin-top: var(--space-2);
}

.xp-integrations__note a {
    color: var(--xp-navy);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    border-bottom: 1.5px solid var(--xp-gold);
    padding-bottom: 1px;
    transition: color var(--ease-default);
}

.xp-integrations__note a:hover {
    color: var(--xp-gold-dark);
}

@media (max-width: 767px) {
    .xp-proof-divider {
        display: none;
    }

    .xp-proof-stat {
        min-width: 45%;
    }

    .xp-integration-grid {
        gap: var(--space-3);
    }

    .xp-integration-logo {
        min-width: 100px;
        padding: var(--space-4);
    }
}

/* ================================================================
   INTEGRATIONS SHOWCASE — dark section, category rows + logo cards
   ================================================================ */
.xp-int-showcase {
    background: var(--xp-navy);
    padding: var(--space-20) 0 var(--space-20);
    position: relative;
    overflow-x: hidden;
    overflow: hidden;
}

/* Dot-grid texture */
.xp-int-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Title / sub on dark */
.xp-int-showcase .xp-section-title { color: var(--xp-white); }
.xp-int-showcase .xp-section-sub   { color: rgba(255,255,255,.6); }

/* ── Category rows ── */
.xp-int-rows {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.xp-int-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.xp-int-row:last-child { border-bottom: none; }

/* Left: category label */
.xp-int-row__label {
    flex-shrink: 0;
}
.xp-int-row__label strong {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--xp-gold);
    margin-bottom: .3rem;
}
.xp-int-row__label small {
    font-size: .72rem;
    color: rgba(255,255,255,.35);
    line-height: 1.4;
    display: block;
}

/* Right: logo cards */
.xp-int-row__logos {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.xp-int-logo-card {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    cursor: default;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
    text-decoration: none;
}
.xp-int-logo-card:hover {
    background: rgba(245,197,24,.1);
    border-color: rgba(245,197,24,.4);
    transform: translateY(-2px);
}

.xp-int-logo-card img {
    height: 22px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.xp-int-logo-card img.invert {
    filter: brightness(0) invert(1);
}
.xp-int-logo-card span {
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    white-space: nowrap;
}

/* Bottom link row */
.xp-int-showcase__footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.07);
}
.xp-int-showcase__footer a {
    color: var(--xp-gold);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .18s;
}
.xp-int-showcase__footer a:hover { opacity: .75; }

/* ── Responsive ── */
@media (max-width: 767px) {
    .xp-int-row {
        grid-template-columns: 1fr;
        gap: .9rem;
        padding: 1.25rem 0;
    }
    .xp-int-row__label { display: flex; align-items: baseline; gap: .75rem; }
    .xp-int-row__label small { display: inline; }
    .xp-int-row__label strong { margin-bottom: 0; }
}

@media (max-width: 480px) {
    .xp-int-logo-card { padding: .5rem .75rem; }
    .xp-int-logo-card img { height: 18px; }
    .xp-int-logo-card span { font-size: .73rem; }
}

/* ================================================================
   LIVE API DEMO — 1M+ Combinations
   ================================================================ */
.xp-combinations-section {
    background: var(--xp-light);
    padding: var(--space-24) 0;
    overflow-x: hidden;
}

/* Big gradient number */
.xp-combo-number {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: var(--weight-black);
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--xp-navy) 0%, var(--xp-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
}

/* ---- API demo panel ---- */
.xp-api-demo {
    background: #0d1b30;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(26,43,74,.35);
}

.xp-api-demo__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: .75rem 1.25rem;
}

.xp-api-demo__dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.xp-api-demo__dots span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.xp-api-demo__title {
    font-family: var(--font-mono, monospace);
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    flex: 1;
    text-align: center;
}

.xp-api-demo__live {
    display: flex;
    align-items: center;
    font-family: var(--font-mono, monospace);
    font-size: .7rem;
    font-weight: 700;
    color: #22c55e;
    flex-shrink: 0;
}

.xp-api-demo__endpoint {
    padding: .75rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.xp-api-demo__endpoint select {
    width: 100%;
    max-width: 100%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,.75);
    font-family: var(--font-mono, monospace);
    font-size: .78rem;
    padding: .45rem .75rem;
    appearance: none;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.xp-api-demo__endpoint select:focus {
    border-color: rgba(245,197,24,.4);
}

.xp-api-demo__response {
    padding: 1.5rem 1.25rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.xp-api-demo__key {
    font-family: var(--font-mono, monospace);
    font-size: .72rem;
    color: rgba(245,197,24,.6);
    display: block;
}

.xp-api-demo__text {
    font-family: var(--font-mono, monospace);
    font-size: 1rem;
    font-weight: 600;
    color: var(--xp-gold);
    line-height: 1.55;
    margin: 0;
    min-height: 3em;
    overflow-wrap: break-word;
    word-break: break-word;
}

.xp-api-demo__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: .85rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.02);
}

.xp-api-demo__docs {
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.4);
    text-decoration: none;
    transition: color var(--ease-default);
}
.xp-api-demo__docs:hover { color: var(--xp-gold); }

/* pulse keyframe for the live dot */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .35; }
}

/* ================================================================
   PERSONALIZATION SECTION — Visit progression cards
   ================================================================ */
.xp-personalization-section {
    background: var(--xp-white);
    padding: var(--space-24) 0;
    overflow-x: hidden;
}

/* Stack of visit cards */
.xp-visit-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.xp-visit-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-5);
    background: var(--xp-light);
    border: 1.5px solid var(--xp-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--ease-smooth), box-shadow var(--ease-smooth), transform var(--ease-smooth);
}

.xp-visit-card:hover {
    border-color: rgba(245,197,24,.45);
    box-shadow: var(--shadow-gold);
    transform: translateX(4px);
}

/* Highlighted / active card */
.xp-visit-card--active {
    background: var(--xp-white);
    border-color: var(--xp-gold);
    box-shadow: var(--shadow-gold);
}

/* Emoji badge circle */
.xp-visit-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.xp-visit-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.xp-visit-label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--xp-muted);
}

.xp-visit-headline {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--xp-navy);
    line-height: 1.4;
}

/* Forbes quote callout */
.xp-stat-callout {
    background: rgba(245,197,24,.07);
    border-left: 3px solid var(--xp-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: var(--space-4) var(--space-5);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    color: var(--xp-muted);
    line-height: 1.6;
    margin: var(--space-6) 0;
}
.xp-stat-callout strong {
    color: var(--xp-navy);
    font-weight: var(--weight-bold);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .xp-combinations-section,
    .xp-personalization-section {
        padding: var(--space-16) 0;
    }
}

@media (max-width: 575px) {
    .xp-combo-number { font-size: 3rem; }
    .xp-api-demo__text { font-size: .9rem; }
    .xp-visit-card { padding: var(--space-4); }
}
