/* ── RESET ────────────────────────────────────────────────────────────────── */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}

/* ── TOKENS ───────────────────────────────────────────────────────────────── */
:root{
    --bg:       #071e1d;
    --bg-l:     #0c2a28;
    --bg-card:  rgba(255,255,255,0.04);
    --bg-card-h:rgba(255,255,255,0.07);
    --primary:  #053736;
    --cream:    #f1dca7;
    --cream-d:  #c9a85c;
    --cream-dim:rgba(241,220,167,0.55);
    --teal:     #4ecdc4;
    --red:      #ff8b8b;
    --green:    #5ecf8a;
    --white:    #ffffff;
    --text:     rgba(255,255,255,0.88);
    --text-m:   rgba(255,255,255,0.58);
    --text-l:   rgba(255,255,255,0.35);
    --border:   rgba(241,220,167,0.1);
    --border-h: rgba(241,220,167,0.35);
    --radius-sm:8px;
    --radius-md:14px;
    --radius-lg:20px;
    --radius-xl:28px;
    --trans:    220ms cubic-bezier(.4,0,.2,1);
    --trans-s:  400ms cubic-bezier(.4,0,.2,1);
    --shadow:   0 16px 48px rgba(0,0,0,0.35);
}

/* ── BASE ─────────────────────────────────────────────────────────────────── */
body{
    font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    background: var(--bg);
    color:var(--text);
    line-height:1.6;
    min-height:100vh;
    overflow-x:hidden;
}

/* Subtle grid overlay */
body::before{
    content:'';
    position:fixed;
    inset:0;
    background-image:
        linear-gradient(rgba(241,220,167,0.025) 1px,transparent 1px),
        linear-gradient(90deg,rgba(241,220,167,0.025) 1px,transparent 1px);
    background-size:60px 60px;
    pointer-events:none;
    z-index:0;
}

/* ── ICONS ────────────────────────────────────────────────────────────────── */
.wf-icon{display:inline-block;width:18px;height:18px;flex-shrink:0;vertical-align:middle}
.wf-icon--xs{width:12px;height:12px}
.wf-icon--sm{width:14px;height:14px}
.wf-icon--lg{width:22px;height:22px}
.wf-icon--xl{width:28px;height:28px}

/* ── NAV ──────────────────────────────────────────────────────────────────── */
.wf-nav{
    position:sticky;
    top:0;
    z-index:200;
    background:rgba(7,30,29,0.92);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    border-bottom:1px solid var(--border);
    padding:0 32px;
    height:58px;
    display:flex;
    align-items:center;
    gap:14px;
}

.wf-nav-back{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:var(--cream);
    text-decoration:none;
    font-size:.82rem;
    font-weight:600;
    letter-spacing:.01em;
    transition:opacity var(--trans);
}
.wf-nav-back:hover{opacity:.7}

.wf-nav-divider{width:1px;height:14px;background:rgba(255,255,255,.15);flex-shrink:0}

.wf-nav-title{
    font-size:.78rem;
    color:var(--text-l);
    font-weight:500;
}

/* ── HEADER ───────────────────────────────────────────────────────────────── */
.wf-header{
    position:relative;
    text-align:center;
    padding:72px 24px 56px;
    z-index:1;
    border-bottom:1px solid var(--border);
    background:linear-gradient(180deg, rgba(5,55,54,0.4) 0%, transparent 100%);
}

.wf-header-inner{max-width:740px;margin:0 auto}

.wf-header-badge{
    display:inline-flex;
    align-items:center;
    gap:7px;
    background:rgba(241,220,167,.08);
    border:1px solid rgba(241,220,167,.2);
    color:var(--cream-dim);
    padding:6px 16px;
    border-radius:999px;
    font-size:.73rem;
    font-weight:600;
    letter-spacing:.04em;
    text-transform:uppercase;
    margin-bottom:24px;
    animation:fadeDown .7s ease both;
}

.wf-header-title{
    font-size:clamp(2rem,5vw,3.2rem);
    font-weight:800;
    color:var(--cream);
    line-height:1.1;
    margin-bottom:16px;
    animation:fadeDown .7s .08s ease both;
    letter-spacing:-.01em;
}

.wf-header-sub{
    font-size:.985rem;
    color:var(--text-m);
    max-width:600px;
    margin:0 auto 36px;
    animation:fadeDown .7s .15s ease both;
}

/* Legend */
.wf-legend{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    animation:fadeDown .7s .22s ease both;
}

.wf-legend-item{
    display:flex;
    align-items:center;
    gap:8px;
    padding:7px 16px;
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:999px;
    font-size:.75rem;
    font-weight:500;
    color:var(--text-m);
}

.wf-legend-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.wf-legend-dot--teal{background:var(--teal)}
.wf-legend-dot--cream{background:var(--cream-d)}
.wf-legend-dot--red{background:var(--red)}
.wf-legend-dot--green{background:var(--green)}

/* ── MAIN ─────────────────────────────────────────────────────────────────── */
.wf-main{
    position:relative;
    z-index:1;
    max-width:1200px;
    margin:0 auto;
    padding:0 24px 80px;
}

/* ── STAGE ────────────────────────────────────────────────────────────────── */
.wf-stage{
    margin-top:64px;
    animation:fadeUp .7s ease both;
}
.wf-stage:nth-child(1){animation-delay:.1s}
.wf-stage:nth-child(2){animation-delay:.18s}
.wf-stage:nth-child(3){animation-delay:.24s}
.wf-stage:nth-child(4){animation-delay:.3s}
.wf-stage:nth-child(5){animation-delay:.36s}
.wf-stage:nth-child(6){animation-delay:.42s}

.wf-stage-head{
    display:flex;
    align-items:flex-start;
    gap:18px;
    margin-bottom:28px;
    padding-bottom:24px;
    border-bottom:1px solid var(--border);
}

.wf-stage-num{
    width:44px;height:44px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--cream-d),var(--cream));
    color:var(--primary);
    font-size:1.1rem;
    font-weight:800;
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
    box-shadow:0 4px 20px rgba(241,220,167,0.25);
}

.wf-stage-title{
    font-size:1.5rem;
    font-weight:800;
    color:var(--cream);
    margin-bottom:5px;
    line-height:1.2;
}

.wf-stage-desc{
    font-size:.9rem;
    color:var(--text-m);
    line-height:1.6;
}

/* Connector between stages */
.wf-connector{
    width:2px;
    height:40px;
    background:linear-gradient(to bottom,var(--cream-d),transparent);
    margin:28px auto 0;
    border-radius:99px;
}

.wf-mt{margin-top:20px}

/* ── ROLES GRID ───────────────────────────────────────────────────────────── */
.wf-roles-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin-bottom:4px;
}

.wf-role-card{
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    padding:22px 18px;
    text-align:center;
    transition:transform var(--trans-s),background var(--trans-s),border-color var(--trans-s);
}
.wf-role-card:hover{
    transform:translateY(-5px);
    background:var(--bg-card-h);
    border-color:var(--border-h);
}

.wf-role-icon{
    width:48px;height:48px;
    border-radius:var(--radius-md);
    display:flex;align-items:center;justify-content:center;
    margin:0 auto 12px;
}
.wf-role-icon--teal{background:rgba(78,205,196,.15);color:var(--teal)}
.wf-role-icon--cream{background:rgba(241,220,167,.12);color:var(--cream)}
.wf-role-icon--red{background:rgba(255,139,139,.12);color:var(--red)}
.wf-role-icon--green{background:rgba(94,207,138,.12);color:var(--green)}

.wf-role-name{font-size:.9rem;font-weight:700;color:var(--white);margin-bottom:5px}
.wf-role-desc{font-size:.78rem;color:var(--text-m);line-height:1.5}

/* ── CARDS GRID ───────────────────────────────────────────────────────────── */
.wf-cards-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:16px;
}

.wf-card{
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    padding:26px 22px;
    position:relative;
    overflow:hidden;
    transition:transform var(--trans-s),background var(--trans-s),border-color var(--trans-s),box-shadow var(--trans-s);
    cursor:default;
}

/* Shimmer on hover */
.wf-card::before{
    content:'';
    position:absolute;
    top:0;left:-100%;
    width:100%;height:100%;
    background:linear-gradient(90deg,transparent,rgba(241,220,167,.05),transparent);
    transition:left .55s ease;
}
.wf-card:hover::before{left:100%}

.wf-card:hover{
    transform:translateY(-6px);
    background:var(--bg-card-h);
    border-color:var(--border-h);
    box-shadow:0 20px 50px rgba(0,0,0,0.3),0 0 0 1px rgba(241,220,167,.12);
}

.wf-card-icon-wrap{
    width:44px;height:44px;
    border-radius:var(--radius-md);
    background:rgba(241,220,167,.08);
    color:var(--cream-d);
    display:flex;align-items:center;justify-content:center;
    margin-bottom:14px;
}
.wf-card-icon-wrap--red{background:rgba(255,139,139,.1);color:var(--red)}
.wf-card-icon-wrap--green{background:rgba(94,207,138,.1);color:var(--green)}
.wf-card-icon-wrap--teal{background:rgba(78,205,196,.1);color:var(--teal)}

.wf-card-title{font-size:1rem;font-weight:700;color:var(--white);margin-bottom:6px}
.wf-card-desc{font-size:.82rem;color:var(--text-m);line-height:1.6;margin-bottom:12px}

.wf-list{list-style:none;display:flex;flex-direction:column;gap:7px}
.wf-list li{
    display:flex;align-items:flex-start;gap:8px;
    font-size:.82rem;color:var(--text-m);line-height:1.5;
}
.wf-list li::before{
    content:'';
    width:16px;height:16px;
    border-radius:50%;
    background:rgba(94,207,138,.15);
    border:1.5px solid rgba(94,207,138,.4);
    flex-shrink:0;
    margin-top:1px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235ecf8a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size:10px;
    background-position:center;
    background-repeat:no-repeat;
}

/* Badges */
.wf-badge{
    display:inline-flex;align-items:center;gap:6px;
    padding:5px 12px;border-radius:999px;
    font-size:.73rem;font-weight:600;
    margin-top:14px;
    border:1px solid;
}
.wf-badge--green{background:rgba(94,207,138,.1);color:var(--green);border-color:rgba(94,207,138,.3)}
.wf-badge--red{background:rgba(255,139,139,.1);color:var(--red);border-color:rgba(255,139,139,.3)}
.wf-badge--cream{background:rgba(241,220,167,.1);color:var(--cream);border-color:rgba(241,220,167,.3)}

/* ── DEAL ROOM ────────────────────────────────────────────────────────────── */
.wf-deal-room{
    background:linear-gradient(135deg,rgba(241,220,167,.06) 0%,rgba(78,205,196,.04) 100%);
    border:1px solid rgba(241,220,167,.2);
    border-radius:var(--radius-xl);
    padding:32px 28px;
    transition:border-color var(--trans-s);
}
.wf-deal-room:hover{border-color:rgba(241,220,167,.35)}

.wf-deal-room-header{
    display:flex;align-items:flex-start;gap:18px;
    margin-bottom:24px;
    padding-bottom:22px;
    border-bottom:1px solid rgba(241,220,167,.12);
}

.wf-deal-room-icon{
    width:52px;height:52px;
    border-radius:var(--radius-md);
    background:rgba(241,220,167,.1);
    color:var(--cream);
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
}

.wf-deal-room-title{font-size:1.2rem;font-weight:700;color:var(--cream);margin-bottom:7px}
.wf-deal-room-desc{font-size:.875rem;color:var(--text-m);line-height:1.65}

/* Components grid */
.wf-components-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:12px;
    margin-bottom:26px;
}

.wf-component{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(78,205,196,.15);
    border-left:3px solid var(--teal);
    border-radius:var(--radius-md);
    padding:14px 16px;
    display:flex;align-items:flex-start;gap:12px;
    transition:background var(--trans),border-color var(--trans);
}
.wf-component:hover{background:rgba(78,205,196,.06);border-color:rgba(78,205,196,.3)}

.wf-component-icon{
    width:32px;height:32px;
    border-radius:8px;
    background:rgba(78,205,196,.1);
    color:var(--teal);
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
}

.wf-component h4{font-size:.82rem;font-weight:700;color:var(--teal);margin-bottom:3px}
.wf-component p{font-size:.75rem;color:var(--text-m);line-height:1.5}

/* Flow diagram */
.wf-flow-section{
    border-top:1px solid rgba(241,220,167,.12);
    padding-top:22px;
}

.wf-flow-heading{
    font-size:.8rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:var(--cream-d);
    margin-bottom:16px;
}

.wf-flow{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.wf-flow-step{
    flex:1;min-width:140px;
    background:rgba(255,255,255,.04);
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    padding:16px 14px;
    text-align:center;
    transition:background var(--trans),border-color var(--trans);
}
.wf-flow-step:hover{background:rgba(255,255,255,.07);border-color:var(--border-h)}
.wf-flow-step--highlight{border-color:rgba(241,220,167,.3);background:rgba(241,220,167,.05)}

.wf-flow-num{
    width:24px;height:24px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    color:var(--text-m);
    font-size:.72rem;font-weight:700;
    display:flex;align-items:center;justify-content:center;
    margin:0 auto 8px;
}
.wf-flow-num--cream{background:rgba(241,220,167,.15);color:var(--cream)}

.wf-flow-step strong{display:block;font-size:.82rem;font-weight:700;color:var(--white);margin-bottom:4px}
.wf-flow-step p{font-size:.73rem;color:var(--text-m)}

.wf-flow-arrow{
    color:var(--cream-d);
    font-size:1.3rem;
    flex-shrink:0;
    opacity:.5;
}

/* ── WHY SECTION ─────────────────────────────────────────────────────────── */
.wf-why-section{
    margin-top:64px;
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:var(--radius-xl);
    padding:48px 36px;
    animation:fadeUp .7s .48s ease both;
}

.wf-why-header{text-align:center;margin-bottom:36px}
.wf-why-title{font-size:1.75rem;font-weight:800;color:var(--cream);margin-bottom:10px}
.wf-why-sub{font-size:.9rem;color:var(--text-m)}

.wf-why-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
}

.wf-why-card{
    background:rgba(255,255,255,.03);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    padding:24px 20px;
    text-align:center;
    transition:transform var(--trans-s),background var(--trans-s),border-color var(--trans-s);
}
.wf-why-card:hover{
    transform:translateY(-5px);
    background:rgba(255,255,255,.06);
    border-color:var(--border-h);
}

.wf-why-icon{
    width:48px;height:48px;
    border-radius:var(--radius-md);
    background:rgba(241,220,167,.08);
    color:var(--cream-d);
    display:flex;align-items:center;justify-content:center;
    margin:0 auto 14px;
}

.wf-why-card h3{font-size:.95rem;font-weight:700;color:var(--white);margin-bottom:8px}
.wf-why-card p{font-size:.82rem;color:var(--text-m);line-height:1.65}

/* ── CTA ROW ─────────────────────────────────────────────────────────────── */
.wf-cta-row{
    text-align:center;
    margin-top:52px;
}

.wf-cta-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:var(--cream);
    color:var(--primary);
    padding:14px 32px;
    border-radius:999px;
    font-weight:700;
    font-size:.9rem;
    text-decoration:none;
    font-family:inherit;
    transition:transform var(--trans),box-shadow var(--trans);
}
.wf-cta-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 32px rgba(201,168,92,.4);
}

/* ── ANIMATIONS ───────────────────────────────────────────────────────────── */
@keyframes fadeDown{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media(max-width:900px){
    .wf-roles-grid{grid-template-columns:repeat(2,1fr)}
    .wf-deal-room-header{flex-direction:column}
    .wf-flow-arrow{display:none}
    .wf-flow-step{min-width:100px}
}

@media(max-width:600px){
    .wf-header{padding:48px 16px 36px}
    .wf-header-title{font-size:1.75rem}
    .wf-main{padding:0 16px 56px}
    .wf-stage{margin-top:44px}
    .wf-stage-head{flex-direction:column;gap:12px}
    .wf-roles-grid{grid-template-columns:1fr 1fr}
    .wf-cards-grid{grid-template-columns:1fr}
    .wf-components-grid{grid-template-columns:1fr}
    .wf-why-section{padding:32px 20px}
    .wf-why-grid{grid-template-columns:1fr 1fr}
    .wf-nav{padding:0 16px}
    .wf-deal-room{padding:22px 16px}
}
