/* ═══════════════════════════════════════════════════════════
   what-is-agent.css — Premium Dark "What We Build" Redesign
   ═══════════════════════════════════════════════════════════ */

.what-is-agent-section {
    position: relative;
    padding: 120px 0 120px 0;
    background-color: transparent !important;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255, 61, 138, 0.08) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='40' x2='80' y2='40' stroke='rgba(255, 61, 138,0.012)' stroke-width='1'/%3E%3Cline x1='40' y1='0' x2='40' y2='80' stroke='rgba(255, 61, 138,0.012)' stroke-width='1'/%3E%3Cpath d='M35 40H45M40 35V45' stroke='rgba(255, 61, 138,0.09)' stroke-width='1'/%3E%3C/svg%3E") !important;
    background-size: 1100px 1100px, 80px 80px !important;
    background-position: center, center !important;
    color: var(--ink) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    overflow: hidden;
}

.wia-bg-glow {
    display: none !important;
}

.wia-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
}

/* ── Top: Text Area ── */
.wia-header-area {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.wia-label-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.section-label-purple {
    display: inline-block;
    font-family: var(--font-primary) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 24px;
    line-height: 1;
    box-shadow: none !important;
}

.wia-headline {
    font-family: var(--font-primary);
    font-size: clamp(34px, 4.8vw, 52px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0;
    max-width: 1000px;
    color: var(--ink);
}

.wia-headline em {
    color: var(--pink);
    font-style: normal;
    font-weight: 600;
}

.wia-headline .text-gradient {
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
}

/* ── Evolution Track Layout ── */
.evolution-track {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 60px 1fr 60px 1fr;
    align-items: stretch;
    gap: 0;
    position: relative;
    z-index: 1;
}

.evo-card {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    padding: 36px 30px 32px;
    background: rgba(3, 10, 26, 0.75) !important; /* Dark high-contrast backdrop */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
    display: flex;
    flex-direction: column;
}

.evo-card::before {
    content: "" !important;
    position: absolute !important;
    inset: -1px !important;
    pointer-events: none !important;
    --corner: 14px !important;
    --line: 1.5px !important;
    border-radius: 16px !important;
    background:
        linear-gradient(var(--pink) 0 0) top left / var(--corner) var(--line) no-repeat,
        linear-gradient(var(--pink) 0 0) top left / var(--line) var(--corner) no-repeat,
        linear-gradient(var(--pink) 0 0) top right / var(--corner) var(--line) no-repeat,
        linear-gradient(var(--pink) 0 0) top right / var(--line) var(--corner) no-repeat,
        linear-gradient(var(--pink) 0 0) bottom left / var(--corner) var(--line) no-repeat,
        linear-gradient(var(--pink) 0 0) bottom left / var(--line) var(--corner) no-repeat,
        linear-gradient(var(--pink) 0 0) bottom right / var(--corner) var(--line) no-repeat,
        linear-gradient(var(--pink) 0 0) bottom right / var(--line) var(--corner) no-repeat !important;
    opacity: 0 !important;
    transition: opacity 0.35s ease !important;
    z-index: 10 !important;
}

.evo-card:hover {
    border-color: rgba(255, 61, 138, 0.35) !important;
    transform: translateY(-6px);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(255, 61, 138, 0.15) !important;
    background: rgba(3, 10, 26, 0.85) !important;
}

.evo-card:hover::before {
    opacity: 0.85 !important;
}

.evo-card.active {
    background: rgba(3, 10, 26, 0.85) !important;
    border-color: rgba(255, 61, 138, 0.4) !important;
    box-shadow: 
        0 24px 56px rgba(0, 0, 0, 0.55), 
        0 0 32px rgba(255, 61, 138, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}

.evo-card.active::before {
    opacity: 0.25 !important;
}

.evo-card.active:hover {
    border-color: rgba(255, 61, 138, 0.6) !important;
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.65), 
        0 0 40px rgba(255, 61, 138, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
    background: rgba(3, 10, 26, 0.9) !important;
}

.evo-card.active:hover::before {
    opacity: 1 !important;
}

/* Card icon: clean SVG mark */
.card-mark {
    width: 40px; 
    height: 40px;
    border-radius: 10px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin-bottom: 20px;
}
.card-mark.muted { 
    background: rgba(255, 255, 255, 0.06); 
}
.card-mark.lit { 
    background: rgba(255, 61, 138, 0.12); 
    border: 1px solid rgba(255, 61, 138, 0.3); 
}
.card-mark.glow { 
    background: rgba(255, 61, 138, 0.15); 
    border: 1px solid rgba(255, 61, 138, 0.45); 
    box-shadow: 0 0 18px rgba(255, 61, 138, 0.25); 
}

.evo-card h3 {
    font-family: var(--font-primary);
    font-size: 1.15rem; 
    font-weight: 700;
    margin-bottom: 12px;
}
.evo-card h3.cyan { 
    color: var(--pink); 
}
.evo-card h3.dim { 
    color: var(--color-text-secondary); 
}
.evo-card p {
    font-family: var(--font-primary);
    font-size: 0.88rem; 
    color: var(--ink-soft); 
    line-height: 1.65;
    margin-bottom: 0;
}

/* ── Flow diagrams inside cards ── */
.flow-box {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.active .flow-box { 
    border-top-color: rgba(255, 61, 138, 0.14); 
}

/* Linear flow: 3 labelled steps joined by a line */
.linear-flow {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.lf-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.lf-dot {
    width: 10px; 
    height: 10px;
    border-radius: 50%;
    background: var(--pink) !important;
    border: 1px solid var(--ink) !important;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--pink);
}
.lf-label {
    font-family: var(--font-primary);
    font-size: 0.72rem; 
    color: var(--ink-soft) !important;
    letter-spacing: 0.05em; 
    text-align: center;
    line-height: 1.3;
    font-weight: 600;
}
.lf-connector {
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    padding-top: 4px;
}
.lf-line {
    width: 100%; 
    height: 1px;
    background: rgba(255, 61, 138, 0.25);
    position: relative;
}
.lf-line::after {
    content: '';
    position: absolute;
    right: -1px; 
    top: 50%;
    transform: translateY(-50%);
    width: 0; 
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 5px solid rgba(255, 61, 138, 0.45);
}
.flow-note {
    font-size: 0.72rem;
    color: var(--ink-dim) !important;
    text-align: center;
    margin-top: 12px;
    font-family: var(--font-primary);
    letter-spacing: 0.05em;
    font-weight: 500;
}
.flow-box svg text {
    fill: var(--ink-soft) !important;
    font-size: 8px !important;
    font-weight: 600 !important;
}

/* Branching flow: goal -> parallel paths */
.branch-flow {
    position: relative;
}
.branch-flow svg {
    width: 100%;
    display: block;
}

/* Mesh flow: full interconnected network */
.mesh-flow {
    position: relative;
}
.mesh-flow svg {
    width: 100%;
    display: block;
}

/* Animations */
@keyframes dash-move {
    from { stroke-dashoffset: 20; }
    to   { stroke-dashoffset: 0; }
}
@keyframes node-pulse {
    0%, 100% { opacity: 0.5; r: 5; }
    50%       { opacity: 1;   r: 6.5; }
}
.anim-dash { animation: dash-move 1.8s linear infinite; }
.anim-dash-slow { animation: dash-move 3s linear infinite; }
.anim-node { animation: node-pulse 2.4s ease-in-out infinite; }
.anim-node-2 { animation: node-pulse 2.4s ease-in-out infinite; animation-delay: 0.6s; }
.anim-node-3 { animation: node-pulse 2.4s ease-in-out infinite; animation-delay: 1.2s; }
.anim-node-4 { animation: node-pulse 2.4s ease-in-out infinite; animation-delay: 1.8s; }

/* Arrow between cards — points RIGHT, vertically centred in row */
.evo-arrow {
    display: flex; 
    flex-direction: row;
    align-items: center; 
    justify-content: center;
    height: 100%;
    padding-top: 0;
    gap: 0;
    animation: arr-pulse 2s ease-in-out infinite;
}
.arr-stem {
    height: 1px; 
    width: 28px;
    background: linear-gradient(to right, rgba(255, 61, 138, 0.2), var(--pink));
}
.arr-head {
    width: 0; 
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--pink);
}
@keyframes arr-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Bottom strip */
.build-tagline {
    margin-top: 60px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 20px; 
    position: relative; 
    z-index: 1;
}
.tl-line {
    flex: 1; 
    max-width: 200px; 
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 61, 138, 0.2));
}
.tl-line.rev { 
    background: linear-gradient(to left, transparent, rgba(255, 61, 138, 0.2)); 
}
.build-tagline span {
    font-family: var(--font-primary);
    font-size: 1.4rem; 
    color: var(--color-text-secondary); 
    letter-spacing: 0.06em;
}
.build-tagline span strong { 
    color: var(--pink); 
    font-weight: 600; 
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 61, 138, 0.18), transparent);
    margin: 0 60px;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .evolution-track {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .evo-arrow {
        transform: rotate(90deg);
        height: 30px;
        width: 100%;
        margin: 10px 0;
    }
    .arr-stem {
        width: 20px;
    }
}
@media (max-width: 768px) {
    .what-is-agent-section {
        padding: 80px 0;
    }
    .wia-headline {
        font-size: clamp(26px, 6vw, 38px);
    }
    .build-tagline span {
        font-size: 1.0rem;
    }
}
