/* ══════════════════════════════════════════
   /how-it-works
   Prefix: hiw-
══════════════════════════════════════════ */

:root {
    --hiw-primary: #22C55E;
    --hiw-dark:    #16A34A;
    --hiw-light:   #4ADE80;
    --hiw-rgb:     34,197,94;
}

/* ─── HERO ─── */
.hiw-hero {
    background: #020810;
    padding: 130px 24px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hiw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 1100px 560px at 50% -5%, rgba(var(--hiw-rgb),0.10) 0%, transparent 65%),
        radial-gradient(ellipse 500px 350px at 20% 90%, rgba(var(--hiw-rgb),0.04) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 85% 80%, rgba(var(--hiw-rgb),0.03) 0%, transparent 70%);
    pointer-events: none;
}
.hiw-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hiw-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--hiw-rgb),0.08);
    border: 1px solid rgba(var(--hiw-rgb),0.22);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--hiw-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
}
.hiw-h1 {
    font-size: clamp(32px, 5.5vw, 62px);
    font-weight: 900;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin: 0 0 22px;
}
.hiw-h1 em { font-style: normal; color: var(--hiw-primary); }
.hiw-hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.46);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 40px;
}
.hiw-trust-row {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}
.hiw-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
}
.hiw-trust-chip i { color: var(--hiw-primary); font-size: 14px; }
.hiw-hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hiw-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--hiw-primary);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    padding: 15px 34px;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 8px 32px rgba(var(--hiw-rgb),0.30);
}
.hiw-btn-main:hover { opacity: .88; transform: translateY(-2px); color: #fff; text-decoration: none; }
.hiw-btn-out {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.65);
    font-weight: 600;
    font-size: 15px;
    padding: 15px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.hiw-btn-out:hover { border-color: rgba(var(--hiw-rgb),0.4); color: var(--hiw-primary); text-decoration: none; }

/* ─── SHARED SECTION HELPERS ─── */
.hiw-section { padding: 90px 24px; }
.hiw-inner   { max-width: 1140px; margin: 0 auto; }
.hiw-head    { text-align: center; margin-bottom: 60px; }
.hiw-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(var(--hiw-rgb),0.06);
    border: 1px solid rgba(var(--hiw-rgb),0.18);
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--hiw-primary);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.hiw-h2 {
    font-size: clamp(26px, 3.4vw, 42px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.hiw-h2 em { font-style: normal; color: var(--hiw-primary); }
.hiw-p {
    font-size: 15px;
    color: rgba(255,255,255,0.4);
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto;
}

/* ─── INTRO SECTION ─── */
.hiw-intro-bg { background: #040C14; }
.hiw-intro-box {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 48px 52px;
}
@media (max-width: 600px) { .hiw-intro-box { padding: 32px 24px; } }
.hiw-intro-text {
    font-size: 16px;
    color: rgba(255,255,255,0.52);
    line-height: 1.85;
    margin-bottom: 24px;
}
.hiw-intro-text strong { color: rgba(255,255,255,0.78); }
.hiw-intro-text:last-child { margin-bottom: 0; }

/* ─── STEPS — VERTICAL TIMELINE ─── */
.hiw-steps-bg { background: #020810; }
.hiw-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.hiw-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(var(--hiw-rgb),0.25) 8%,
        rgba(var(--hiw-rgb),0.25) 92%,
        transparent 100%
    );
    transform: translateX(-50%);
}
@media (max-width: 700px) {
    .hiw-timeline::before { left: 28px; transform: none; }
}

.hiw-step-row {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: start;
    gap: 0;
    padding: 32px 0;
}
@media (max-width: 700px) {
    .hiw-step-row {
        grid-template-columns: 56px 1fr;
        gap: 0;
        padding: 24px 0;
    }
}

/* Center node */
.hiw-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 2;
}
.hiw-step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(var(--hiw-rgb),0.10);
    border: 2px solid rgba(var(--hiw-rgb),0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: var(--hiw-primary);
    flex-shrink: 0;
}
@media (max-width: 700px) {
    .hiw-step-num { width: 42px; height: 42px; font-size: 15px; }
}

/* Card */
.hiw-step-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 26px 28px;
    transition: border-color .25s, transform .2s;
}
.hiw-step-card:hover { border-color: rgba(var(--hiw-rgb),0.30); transform: translateY(-3px); }

/* Odd rows: card on LEFT, empty on right */
.hiw-step-row.left .hiw-step-card-slot  { grid-column: 1; }
.hiw-step-row.left .hiw-step-node-slot  { grid-column: 2; }
.hiw-step-row.left .hiw-step-empty-slot { grid-column: 3; }

/* Even rows: empty on left, card on right */
.hiw-step-row.right .hiw-step-empty-slot { grid-column: 1; }
.hiw-step-row.right .hiw-step-node-slot  { grid-column: 2; }
.hiw-step-row.right .hiw-step-card-slot  { grid-column: 3; }

@media (max-width: 700px) {
    .hiw-step-row.left  .hiw-step-card-slot,
    .hiw-step-row.right .hiw-step-card-slot  { grid-column: 2; grid-row: 1; }
    .hiw-step-row.left  .hiw-step-node-slot,
    .hiw-step-row.right .hiw-step-node-slot  { grid-column: 1; grid-row: 1; }
    .hiw-step-row.left  .hiw-step-empty-slot,
    .hiw-step-row.right .hiw-step-empty-slot { display: none; }
}

.hiw-step-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.hiw-step-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.42);
    line-height: 1.75;
    margin-bottom: 14px;
}
.hiw-step-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}
.hiw-step-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.37);
}
.hiw-step-list-item i { color: var(--hiw-primary); font-size: 12px; flex-shrink: 0; }
.hiw-step-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.hiw-highlight {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--hiw-primary);
    background: rgba(var(--hiw-rgb),0.07);
    border: 1px solid rgba(var(--hiw-rgb),0.18);
    border-radius: 50px;
    padding: 4px 12px;
}
.hiw-highlight i { font-size: 11px; }

/* Step node padding */
.hiw-step-node-slot {
    display: flex;
    justify-content: center;
    padding-top: 14px;
}

/* ─── WHO IS IT FOR ─── */
.hiw-for-bg { background: #040C14; }
.hiw-for-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 900px) { .hiw-for-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .hiw-for-grid { grid-template-columns: 1fr; } }
.hiw-for-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: border-color .25s, transform .2s;
}
.hiw-for-card:hover { border-color: rgba(var(--hiw-rgb),0.28); transform: translateY(-3px); }
.hiw-for-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.hiw-for-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.hiw-for-desc  { font-size: 12px; color: rgba(255,255,255,0.37); line-height: 1.65; }

.hiw-for-note {
    max-width: 700px;
    margin: 40px auto 0;
    text-align: center;
    padding: 22px 28px;
    background: rgba(var(--hiw-rgb),0.05);
    border: 1px solid rgba(var(--hiw-rgb),0.18);
    border-radius: 14px;
    font-size: 14px;
    color: rgba(255,255,255,0.52);
    line-height: 1.75;
}
.hiw-for-note strong { color: var(--hiw-primary); }

/* ─── WHY DIFFERENT — 5 BLOCKS ─── */
.hiw-why-bg { background: #020810; }
.hiw-why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
@media (max-width: 1050px) { .hiw-why-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .hiw-why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px)  { .hiw-why-grid { grid-template-columns: 1fr; } }
.hiw-why-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: border-color .25s, transform .2s;
}
.hiw-why-card:hover { border-color: rgba(var(--hiw-rgb),0.28); transform: translateY(-3px); }
.hiw-why-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(var(--hiw-rgb),0.09);
    border: 1px solid rgba(var(--hiw-rgb),0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--hiw-primary);
    margin: 0 auto 16px;
}
.hiw-why-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.3; }
.hiw-why-desc  { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.65; }

/* ─── FAQ ─── */
.hiw-faq-bg { background: #040C14; }
.hiw-faq-wrap {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hiw-faq-item {
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s;
}
.hiw-faq-item.open { border-color: rgba(var(--hiw-rgb),0.30); }
.hiw-faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.78);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color .2s;
}
.hiw-faq-q:hover { color: #fff; }
.hiw-faq-item.open .hiw-faq-q { color: var(--hiw-primary); }
.hiw-faq-q i { flex-shrink: 0; transition: transform .25s; font-size: 14px; }
.hiw-faq-item.open .hiw-faq-q i { transform: rotate(45deg); }
.hiw-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    line-height: 1.75;
    padding: 0 24px;
}
.hiw-faq-item.open .hiw-faq-a { max-height: 300px; padding: 0 24px 22px; }

/* ─── FINAL CTA ─── */
.hiw-cta {
    background: #020810;
    padding: 110px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hiw-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 900px 500px at 50% 110%, rgba(var(--hiw-rgb),0.10) 0%, transparent 60%);
    pointer-events: none;
}
.hiw-cta-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.hiw-cta-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--hiw-rgb),0.08);
    border: 1px solid rgba(var(--hiw-rgb),0.22);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--hiw-primary);
    margin-bottom: 26px;
}
.hiw-cta-h {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -0.8px;
    margin: 0 0 18px;
}
.hiw-cta-p {
    font-size: 16px;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    margin: 0 0 38px;
}
.hiw-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hiw-cta-note { margin-top: 20px; font-size: 12px; color: rgba(255,255,255,0.2); }
.hiw-cta-note span { margin: 0 8px; }
