/* ══════════════════════════════
   HOW IT WORKS
══════════════════════════════ */
.hiw{
  background:var(--cream);
  position:relative;
  overflow:hidden;
}

/* subtle honeycomb dot grid bg */
.hiw::before{
  content:'';
  position:absolute;inset:0;
  background-image:radial-gradient(circle, rgba(171,75,5,0.07) 1px, transparent 1px);
  background-size:28px 28px;
  pointer-events:none;
  z-index:0;
}

.hiw-inner{
  position:relative;z-index:1;
  max-width:1400px;
  margin:0 auto;
  padding:110px 32px 120px;
}

/* Header */
.hiw-header{
  text-align:center;
  margin-bottom:72px;
}

.hiw-h2{
  font-family:var(--font-h);
  font-size:clamp(36px,4.5vw,58px);
  line-height:1.1;
  color:var(--ink);
  letter-spacing:.3px;
  margin-bottom:18px;
}
.hiw-h2 .accent{color:var(--rust);}

.hiw-sub{
  font-size:17px;
  color:var(--ink-2);
  line-height:1.75;
  max-width:580px;
  margin:0 auto;
}

/* ── FLOW DIAGRAM (Hive → Beekeeper) ── */
.hiw-flow{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  margin-bottom:72px;
  flex-wrap:nowrap;
  overflow-x:auto;
  padding:4px 0 8px;
}

.flow-node{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}

.flow-icon-wrap{
  width:52px;height:52px;
  border-radius:14px;
  background:rgba(255,243,211,0.9);
  border:1.5px solid var(--rust-border);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 16px rgba(171,75,5,0.08);
  transition:transform .25s, box-shadow .35s, border-color .35s, background .35s;
  position:relative;
}

.flow-node.flow-active .flow-icon-wrap{
  border-color:var(--rust);
  background:rgba(171,75,5,0.12);
  box-shadow:0 0 0 3px rgba(171,75,5,0.12), 0 6px 24px rgba(171,75,5,0.22);
}
.flow-node.flow-active .flow-icon-wrap svg{
  color:var(--rust);
  stroke:var(--rust);
}
.flow-node.flow-active .flow-label{color:var(--rust);}

.flow-icon-wrap svg{
  width:24px;height:24px;
}

.flow-label{
  font-family:var(--font-brand);
  font-size:9px;font-weight:700;
  letter-spacing:1.5px;text-transform:uppercase;
  color:var(--ink-3);
  text-align:center;
  white-space:nowrap;
}
.flow-node.flow-active .flow-label{color:var(--rust);}

/* Arrow connector */
.flow-arrow{
  flex:1 1 0;
  min-width:48px;
  max-width:120px;
  height:2px;
  background:rgba(171,75,5,0.12);
  position:relative;
  margin:0;
  margin-bottom:28px;
  overflow:hidden;
  border-radius:2px;
}
.flow-arrow::after{ content:none; }

/* light beam element */
.flow-beam{
  position:absolute;
  left:0;top:0;
  width:60%;height:100%;
  background:linear-gradient(
    to right,
    transparent 0%,
    rgba(171,75,5,0.3) 20%,
    #ff8c2a 45%,
    rgba(255,220,120,1) 50%,
    #ff8c2a 55%,
    rgba(171,75,5,0.3) 80%,
    transparent 100%
  );
  border-radius:2px;
  box-shadow:0 0 8px 3px rgba(255,140,42,0.7), 0 0 20px 5px rgba(171,75,5,0.35);
  opacity:0;
  pointer-events:none;
  will-change:transform;
}

/* ── STEPS GRID ── */
.hiw-steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-bottom:80px;
}

.step-card{
  background:rgba(255,243,211,0.6);
  border:1px solid var(--rust-border);
  border-radius:20px;
  padding:32px 26px 28px;
  display:flex;flex-direction:column;
  gap:0;
  position:relative;
  overflow:hidden;
  transition:background .25s, border-color .25s, transform .25s, box-shadow .25s;
}

.step-card::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:3px;
  background:linear-gradient(to right, var(--rust), rgba(171,75,5,0.25));
  opacity:0;
  transition:opacity .25s;
}

.step-card:hover{
  background:rgba(255,243,211,0.92);
  border-color:rgba(171,75,5,0.22);
  transform:translateY(-4px);
  box-shadow:0 16px 48px rgba(171,75,5,0.1);
}
.step-card:hover::before{opacity:1;}

/* step number badge */
.step-num{
  font-family:var(--font-h);
  font-size:11px;
  color:var(--rust);
  opacity:.55;
  letter-spacing:2px;
  margin-bottom:20px;
}

/* icon */
.step-icon{
  width:52px;height:52px;
  border-radius:14px;
  background:rgba(171,75,5,0.07);
  border:1px solid var(--rust-border);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:20px;
  flex-shrink:0;
}
.step-icon svg{
  width:26px;height:26px;
  color:var(--rust);
  stroke:var(--rust);
}

.step-title{
  font-family:var(--font-h);
  font-size:clamp(18px,1.6vw,22px);
  line-height:1.2;
  color:var(--ink);
  margin-bottom:12px;
  letter-spacing:.2px;
}

.step-desc{
  font-size:13.5px;
  color:var(--ink-2);
  line-height:1.65;
  flex:1;
}

/* connector line between cards */
.step-connector{
  display:none; /* handled by flow diagram */
}

/* ── CLOSING STRIP ── */
.hiw-closing{
  border-top:1px solid var(--rust-border);
  padding-top:56px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
}

.hiw-closing-left{}
.hiw-closing-h3{
  font-family:var(--font-h);
  font-size:clamp(28px,3.2vw,42px);
  line-height:1.15;
  color:var(--ink);
  margin-bottom:14px;
  letter-spacing:.2px;
}
.hiw-closing-h3 .accent{color:var(--rust);}

.hiw-closing-p{
  font-size:15px;
  color:var(--ink-2);
  line-height:1.75;
  max-width:460px;
}

.hiw-closing-right{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

/* mini stat trio */
.hiw-stats{
  display:flex;
  gap:32px;
  align-items:flex-start;
}
.hiw-stat{}
.hiw-stat-num{
  font-family:var(--font-h);
  font-size:clamp(32px,3vw,44px);
  color:var(--rust);
  line-height:1;
  margin-bottom:6px;
}
.hiw-stat-num span{color:var(--rust);}
.hiw-stat-label{
  font-size:12px;
  color:var(--ink-2);
  line-height:1.4;
  max-width:90px;
}

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  .hiw-steps{grid-template-columns:repeat(2,1fr);}
  .hiw-flow{gap:0;}
  .flow-arrow{width:28px;}
}
@media(max-width:768px){
  .hiw-inner{padding:80px 24px 90px;}
  .hiw-header{margin-bottom:52px;}
  .hiw-steps{grid-template-columns:1fr 1fr;gap:14px;}
  .step-card{padding:24px 20px;}
  .hiw-closing{grid-template-columns:1fr;gap:32px;}
  .hiw-closing-right{justify-content:flex-start;}
}
@media(max-width:600px){
  .hiw-steps{grid-template-columns:1fr;}
  .hiw-flow{gap:0;justify-content:flex-start;}
  .flow-arrow{width:18px;}
  .flow-icon-wrap{width:42px;height:42px;border-radius:11px;}
  .flow-icon-wrap svg{width:20px;height:20px;}
  .hiw-stats{gap:20px;}
}
