/* ================================
   AI WORKFLOWS / AGENTS PAGE
   ================================ */

/* HERO */
.page-hero.workflow-hero {
    padding: 3.4rem 0 3.2rem;
}

.workflow-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}

.workflow-hero-copy {
    max-width: 34rem;
}

.workflow-hero-kicker {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 0.6rem;
}

.workflow-hero-title {
    margin: 0 0 0.85rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.9rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.workflow-hero-title .highlight {
    background: linear-gradient(120deg, var(--accent-2), var(--accent-strong));
    -webkit-background-clip: text;
    color: transparent;
}

.workflow-hero-subtitle {
    margin: 0 0 0.9rem;
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.workflow-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.workflow-hero-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(255, 255, 255, 0.9);
}

.workflow-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.workflow-hero-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* HERO VISUAL CARD */
.workflow-hero-visual {
    position: relative;
    min-height: 260px;
}

.workflow-hero-orbit {
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.3), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.28), transparent 55%);
    filter: blur(26px);
    opacity: 0.9;
    z-index: 0;
}

.workflow-hero-card {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    padding: 1.3rem 1.35rem 1.2rem;
    background: linear-gradient(135deg, #ffffff, #ecfdf5);
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.2);
    max-width: 360px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    animation: floatHeroCard 9s ease-in-out infinite;
}

@keyframes floatHeroCard {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.workflow-hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workflow-hero-pill {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 0.26rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    background: rgba(255, 255, 255, 0.95);
}

.workflow-hero-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0%, #22c55e, #16a34a);
    box-shadow: 0 0 10px rgba(22, 163, 74, 0.9);
    animation: pulse-dot 1.6s ease-out infinite;
}

.workflow-hero-flowsteps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    font-size: 0.8rem;
}

.workflow-hero-step {
    border-radius: 12px;
    padding: 0.45rem 0.6rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.workflow-hero-step.is-active {
    border-color: rgba(34, 197, 94, 0.85);
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(224, 242, 254, 0.96));
}

.workflow-step-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.workflow-step-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-main);
}

.workflow-step-text {
    margin: 0.1rem 0 0;
    color: var(--text-muted);
}

.workflow-hero-chat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.workflow-chat-bubble {
    border-radius: 12px;
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
    line-height: 1.5;
}

.workflow-chat-bubble.bot {
    background: #0f172a;
    color: #e5e7eb;
}

.workflow-chat-bubble.user {
    background: #ecfdf5;
    color: #111827;
    align-self: flex-end;
}

.workflow-chat-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
    margin-bottom: 0.15rem;
}

.workflow-hero-foot {
    margin-top: 0.2rem;
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* QUICK WINS GRID */
.workflow-section {
    position: relative;
}

.workflow-section.workflow-ui {
    background-color: beige !important;
    box-shadow: 2px 2px 22px 2px #ccc;
}

.workflow-quickwins-inner {
    position: relative;
    z-index: 1;
}

.workflow-quickwins-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.workflow-win-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    transform: translateZ(0);
    transition:
        transform 220ms ease-out,
        box-shadow 220ms ease-out;
}

.workflow-win-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.22);
}

.workflow-win-media {
    margin: 0;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.workflow-win-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 260ms ease-out;
}

.workflow-win-card:hover .workflow-win-media img {
    transform: scale(1.08);
}

.workflow-win-body {
    padding: 1rem 1rem 0.9rem;
    font-size: 0.85rem;
}

.workflow-win-title {
    margin: 0 0 0.4rem;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-main);
}

.workflow-win-text {
    margin: 0 0 0.5rem;
    color: var(--text-muted);
}

.workflow-win-list {
    margin: 0;
    padding-left: 1rem;
    color: var(--text-muted);
}

/* PREVIEW SECTION */
.workflow-preview-inner {
    position: relative;
    z-index: 1;
}

.workflow-preview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2.1rem;
    align-items: center;
}

.workflow-preview-kicker {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-strong);
    margin-bottom: 0.6rem;
}

.workflow-preview-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);
}

.workflow-preview-text {
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.workflow-preview-list {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.workflow-preview-visual {
    position: relative;
    min-height: 260px;
}

.workflow-preview-orbit {
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(circle at 0 0, rgba(22, 163, 74, 0.3), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.3), transparent 50%);
    filter: blur(26px);
    opacity: 0.9;
    z-index: 0;
}

.workflow-preview-card {
    position: relative;
    z-index: 1;
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.98);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.28);
}

.workflow-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workflow-preview-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 0.7rem 0.9rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    color: #e5e7eb;
    font-size: 0.8rem;
}

.workflow-preview-tag {
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.workflow-preview-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.workflow-preview-pills span {
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    font-size: 0.72rem;
}

/* AI VS BOTS */
.workflow-ai-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.4rem;
}

.workflow-ai-card {
    border-radius: 20px;
    padding: 1.1rem 1.2rem 1rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    font-size: 0.86rem;
}

.workflow-ai-card.bad {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.97), rgba(248, 250, 252, 0.97));
    border: 1px solid rgba(248, 113, 113, 0.6);
}

.workflow-ai-card.good {
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.98), rgba(224, 242, 254, 0.98));
    border: 1px solid rgba(34, 197, 94, 0.6);
}

.workflow-ai-title {
    margin: 0 0 0.5rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-main);
}

.workflow-ai-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.workflow-ai-note {
    margin-top: 0.7rem;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(34, 197, 94, 0.6);
    font-size: 0.82rem;
}

/* HOW FLOWS GO LIVE */
.workflow-how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.workflow-how-step {
    border-radius: 20px;
    padding: 1.1rem 1.1rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
    font-size: 0.86rem;
}

.workflow-how-badge {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 0 0, #22c55e, #0ea5e9);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
    margin-bottom: 0.25rem;
}

.workflow-how-badge span {
    color: #ecfdf5;
    font-weight: 600;
    font-size: 0.9rem;
}

.workflow-how-title {
    margin: 0 0 0.4rem;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-main);
}

.workflow-how-text {
    margin: 0 0 0.4rem;
    color: var(--text-muted);
}

.workflow-how-note {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-main);
}

.workflow-how-cta {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* FINAL CTA */
.workflow-final-inner {
    position: relative;
    z-index: 1;
}

.workflow-final-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: center;
}

.workflow-final-kicker {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-strong);
    margin-bottom: 0.6rem;
}

.workflow-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);
}

.workflow-final-text {
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.workflow-final-list {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.workflow-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.workflow-final-visual {
    position: relative;
    min-height: 220px;
}

.workflow-final-orbit {
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(circle at 0 100%, rgba(34, 197, 94, 0.35), transparent 60%),
        radial-gradient(circle at 100% 0, rgba(59, 130, 246, 0.32), transparent 55%);
    filter: blur(26px);
    opacity: 0.9;
    z-index: 0;
}

.workflow-final-card {
    margin: 0;
    position: relative;
    z-index: 1;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.98);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.26);
}

.workflow-final-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RESPONSIVE – AI WORKFLOWS PAGE */

@media (max-width: 960px) {
    .workflow-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .workflow-hero-visual {
        order: -1;
        margin-bottom: 1.4rem;
    }

    .workflow-hero-card {
        margin: 0 auto;
    }

    .workflow-quickwins-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-preview-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .workflow-preview-visual {
        order: -1;
        margin-bottom: 1.5rem;
    }

    .workflow-ai-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .workflow-how-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-final-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .workflow-final-visual {
        order: -1;
        margin-bottom: 1.3rem;
    }
}

@media (max-width: 720px) {
    .page-hero.workflow-hero {
        padding: 2.6rem 0 2.6rem;
    }

    .workflow-quickwins-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .workflow-how-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* NEW PREMIUM CARDS (V2) */
.workflow-win-card.v2 {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    transform: translateZ(0);
    transition: transform .25s ease, box-shadow .25s ease;
}

.workflow-win-card.v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.18);
}

/* MEDIA WITH DARK OVERLAY */
.workflow-win-media.v2 {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.workflow-win-media.v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.92);
    transform: scale(1.05);
    transition: transform .35s ease, filter .35s ease;
}

.workflow-win-card.v2:hover .workflow-win-media.v2 img {
    transform: scale(1.12);
    filter: brightness(1);
}

.win-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.55));
}

/* CONTENT */
.workflow-win-body.v2 {
    position: relative;
    padding: 1.2rem 1.2rem 1.4rem;
    z-index: 2;
}

.win-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    margin-bottom: 0.7rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.workflow-win-title.v2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--text-main);
}

.workflow-win-text.v2 {
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: .7rem;
    line-height: 1.55;
}

/* BULLETS */
.win-bullets {
    padding-left: 1rem;
    font-size: .88rem;
    color: var(--text-main);
}

.win-bullets li {
    margin-bottom: .4rem;
    position: relative;
}

.win-bullets li::before {
    content: "•";
    color: #22c55e;
    position: absolute;
    left: -0.65rem;
}

/* GLOW UNDER TEXT */
.win-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: radial-gradient(circle at bottom, rgba(34, 197, 94, 0.25), transparent 60%);
    filter: blur(20px);
    pointer-events: none;
}