/* ─────────────────────────────────────────
   Supply Lens — home.css
   Home page only: network diagram, how-it-works, FAQ
───────────────────────────────────────── */

/* ═══════════════════════════════════════════
   NETWORK DIAGRAM HERO — complete rewrite
═══════════════════════════════════════════ */
.hero-right{position:relative;z-index:2;padding-left:16px;display:flex;align-items:center;justify-content:center}

/* Outer card */
.net-diagram{
  position:relative;
  width:100%;max-width:560px;
  height:430px;
  border-radius:20px;
  background:linear-gradient(160deg,rgba(18,20,28,0.98) 0%,rgba(10,12,20,1) 100%);
  border:1px solid rgba(99,102,241,0.18);
  overflow:hidden;
  box-shadow:0 0 0 1px rgba(255,255,255,0.03),0 32px 80px rgba(0,0,0,0.7),0 0 100px rgba(99,102,241,0.08);
}
/* Subtle grid pattern */
.net-diagram::before{
  content:'';position:absolute;inset:0;
  background-image:linear-gradient(rgba(99,102,241,0.04) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(99,102,241,0.04) 1px,transparent 1px);
  background-size:32px 32px;
  pointer-events:none;z-index:0;
}
/* Centre glow */
.net-diagram::after{
  content:'';position:absolute;
  top:50%;left:50%;transform:translate(-50%,-50%);
  width:180px;height:180px;
  background:radial-gradient(circle,rgba(99,102,241,0.12) 0%,transparent 70%);
  pointer-events:none;z-index:0;
}

/* Canvas layer for SVG lines */
#ndCanvas{
  position:absolute;inset:0;
  width:100%;height:100%;
  pointer-events:none;z-index:1;
  overflow:visible;
}

/* Node columns layout */
.nd-layout{
  position:absolute;inset:0;
  display:flex;align-items:center;
  padding:0 18px;
  z-index:2;
  gap:0;
}
.nd-col-src{
  display:flex;flex-direction:column;gap:7px;
  flex:1;align-items:flex-start;
}
.nd-col-hub{
  display:flex;align-items:center;justify-content:center;
  width:90px;flex-shrink:0;
  position:relative;
}
.nd-col-dst{
  display:flex;flex-direction:column;gap:7px;
  flex:1;align-items:flex-end;
}

/* Individual nodes */
.nd-node{
  display:flex;align-items:center;gap:5px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:10px;
  padding:7px 9px;
  width:180px;
  cursor:pointer;
  position:relative;
  transition:border-color .3s,background .3s,box-shadow .3s,transform .2s;
  user-select:none;
}
.nd-node:hover{
  background:rgba(99,102,241,0.1);
  border-color:rgba(99,102,241,0.4);
  box-shadow:0 0 16px rgba(99,102,241,0.15);
}
.nd-src:hover{transform:translateX(2px)}
.nd-dst:hover{transform:translateX(-2px)}
.nd-node.nd-pulse{
  border-color:rgba(99,102,241,0.55) !important;
  background:rgba(99,102,241,0.12) !important;
  box-shadow:0 0 24px rgba(99,102,241,0.2) !important;
}
.nd-icon{
  width:26px;height:26px;border-radius:7px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;position:relative;overflow:hidden;
}
.nd-icon::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,0.15) 0%,transparent 60%);
  border-radius:7px;
}
.nd-text{flex:1;min-width:0}
.nd-name{
  font-family:'Geist',monospace;
  font-size:11px;font-weight:600;
  color:rgba(255,255,255,0.85);
  display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.nd-sub{
  font-size:9.5px;font-weight:500;
  color:rgba(255,255,255,0.35);
  display:block;margin-top:1px;
}
.nd-pill{
  font-size:8.5px;font-weight:700;
  padding:2px 6px;border-radius:100px;
  white-space:nowrap;flex-shrink:0;letter-spacing:0.02em;
}
.nd-g{background:rgba(34,211,165,0.12);color:#22d3a5}
.nd-a{background:rgba(245,166,35,0.12);color:#f5a623}
.nd-b{background:rgba(99,102,241,0.15);color:#818cf8}
.nd-v{background:rgba(139,92,246,0.15);color:#a78bfa}

/* Node border tinted to match pill colour */
.nd-node:has(.nd-g){border-color:rgba(34,211,165,0.22)}
.nd-node:has(.nd-a){border-color:rgba(245,166,35,0.22)}
.nd-node:has(.nd-b){border-color:rgba(99,102,241,0.22)}
.nd-node:has(.nd-v){border-color:rgba(139,92,246,0.22)}

/* ── HUB ── */
.nd-hub{
  position:relative;
  width:72px;height:72px;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  /* rings overflow intentionally into the SVG layer — no clipping here */
}
.nd-hub-rings{
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:0;height:0;
  pointer-events:none;
}
.nd-ring{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(99,102,241,0.2);
  animation:ndRingPulse 3.5s ease-out infinite;
  transform:translate(-50%,-50%);
  top:0;left:0;
}
.nd-ring-1{width:72px;height:72px;animation-delay:0s;margin-left:-36px;margin-top:-36px}
.nd-ring-2{width:98px;height:98px;animation-delay:.9s;border-color:rgba(99,102,241,0.12);margin-left:-49px;margin-top:-49px}
.nd-ring-3{width:128px;height:128px;animation-delay:1.8s;border-color:rgba(99,102,241,0.06);margin-left:-64px;margin-top:-64px}
@keyframes ndRingPulse{
  0%{transform:scale(.8);opacity:0}
  25%{opacity:1}
  100%{transform:scale(1.25);opacity:0}
}
.nd-hub-core svg {
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.55));
}
.nd-hub-core{
  position:relative;z-index:2;
  width:56px;height:56px;
  background:linear-gradient(145deg,#4f52e0 0%,#6366f1 50%,#7c7ff5 100%);
  border-radius:14px;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:1px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 6px 24px rgba(99,102,241,0.55),
    0 0 60px rgba(99,102,241,0.2),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transition:transform .3s,box-shadow .3s;
}
.nd-hub:hover .nd-hub-core,
.nd-hub-core.nd-hub-flash{
  transform:scale(1.1);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.2),
    0 8px 36px rgba(99,102,241,0.8),
    0 0 90px rgba(99,102,241,0.35),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.nd-hub-lbl{
  font-family:'Bricolage Grotesque',sans-serif;
  font-size:8.5px;font-weight:800;
  color:rgba(255,255,255,0.92);
  text-align:center;line-height:1.15;
  letter-spacing:0.01em;
  text-transform:uppercase;
}

/* ── COUNTER ── */
.nd-counter{
  position:absolute;
  top:calc(50% + 44px);
  left:50%;transform:translateX(-50%);
  display:flex;align-items:center;gap:5px;
  background:rgba(0,0,0,0.55);
  border:1px solid rgba(99,102,241,0.25);
  border-radius:100px;padding:3px 10px;
  white-space:nowrap;
  backdrop-filter:blur(8px);
  z-index:5;
  pointer-events:none;
}
/* Counter is positioned relative to nd-col-hub */
.nd-counter-num{
  font-family:'Bricolage Grotesque',sans-serif;
  font-size:14px;font-weight:800;color:#818cf8;
  transition:color .2s;
}
.nd-counter-lbl{font-size:9px;font-weight:600;color:rgba(255,255,255,0.35);letter-spacing:0.06em;text-transform:uppercase}

/* ── HEADER BAR ── */
.nd-header {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(99,102,241,0.12);
  background: rgba(10,12,20,0.7);
  backdrop-filter: blur(10px);
}
.nd-header-left { display: flex; align-items: center; gap: 7px; }
.nd-header-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22d3a5; flex-shrink: 0;
  box-shadow: 0 0 7px rgba(34,211,165,0.9);
  animation: feedPulse 2s ease-in-out infinite;
}
.nd-header-title {
  font-family: 'Geist', monospace;
  font-size: 10.5px; font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.nd-header-stat {
  font-family: 'Geist', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.03em;
}

/* ── LIVE FEED ── */
.nd-feed{
  position:absolute;bottom:14px;left:14px;right:14px;
  display:flex;align-items:center;gap:8px;
  background:rgba(0,0,0,0.45);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:100px;padding:7px 14px;
  z-index:5;backdrop-filter:blur(10px);
}
.nd-feed-dot{
  width:6px;height:6px;border-radius:50%;
  background:#22d3a5;flex-shrink:0;
  box-shadow:0 0 7px rgba(34,211,165,0.9);
  animation:feedPulse 2s ease-in-out infinite;
}
@keyframes feedPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.7)}}
.nd-feed-txt{
  font-family:'Geist',monospace;
  font-size:10.5px;color:rgba(255,255,255,0.5);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;
  transition:color .3s,opacity .3s;
}
.nd-feed-txt.lit{color:rgba(255,255,255,0.85)}
.nd-feed-type{
  font-size:9px;font-weight:700;
  color:#818cf8;letter-spacing:0.04em;
  flex-shrink:0;
}


/* ═══════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════ */
.hiw-section{padding:120px 40px}

.hiw-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2px;
  background:var(--border);
  border:1px solid var(--border);
  border-radius:var(--r-xl);
  overflow:hidden;
}

.hiw-card{
  position:relative;
  background:var(--bg1);
  padding:48px 40px 52px;
  overflow:hidden;
  transition:background .25s;
}
.hiw-card::before{
  content:'';position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.07),transparent);
}
.hiw-card:hover{background:var(--bg2)}

/* Glowing top accent on hover */
.hiw-card::after{
  content:'';position:absolute;top:0;left:10%;width:80%;height:2px;
  background:linear-gradient(90deg,transparent,var(--p),transparent);
  opacity:0;transition:opacity .3s;
}
.hiw-card:hover::after{opacity:1}

.hiw-num{
  font-family:'Bricolage Grotesque',sans-serif;
  font-size:11px;font-weight:800;
  letter-spacing:0.14em;text-transform:uppercase;
  color:var(--p-light);
  margin-bottom:28px;
  opacity:0.6;
}

.hiw-icon-wrap{
  position:relative;
  width:56px;height:56px;
  margin-bottom:28px;
}
.hiw-icon-ring{
  position:absolute;inset:-8px;
  border-radius:50%;
  border:1px solid rgba(99,102,241,0.15);
  animation:hiwRing 3s ease-in-out infinite;
}
@keyframes hiwRing{
  0%,100%{transform:scale(1);opacity:0.5}
  50%{transform:scale(1.1);opacity:1}
}
.hiw-card:nth-child(2) .hiw-icon-ring{animation-delay:.8s}
.hiw-card:nth-child(3) .hiw-icon-ring{animation-delay:1.6s}

.hiw-icon{
  width:56px;height:56px;
  background:var(--p-dim);
  border:1px solid rgba(99,102,241,0.25);
  border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  color:var(--p-light);
  transition:background .2s,box-shadow .2s;
}
.hiw-card:hover .hiw-icon{
  background:rgba(99,102,241,0.18);
  box-shadow:0 0 24px rgba(99,102,241,0.2);
}

.hiw-card h3{
  font-size:20px;margin-bottom:14px;
  color:var(--text0);
}
.hiw-card p{
  font-size:14px;color:var(--text1);line-height:1.75;
  margin-bottom:24px;
}

/* pills row */
.hiw-pills{display:flex;flex-wrap:wrap;gap:6px}
.hiw-pill{
  font-size:11.5px;font-weight:600;
  color:var(--text2);
  background:var(--bg3);
  border:1px solid var(--border2);
  padding:3px 11px;border-radius:100px;
  transition:color .15s,border-color .15s;
}
.hiw-card:hover .hiw-pill{color:var(--text1);border-color:var(--border3)}
.hiw-pill-more{
  color:var(--p-light);
  background:var(--p-dim);
  border-color:rgba(99,102,241,0.2);
}

/* mini flow demo */
.hiw-flow-demo{
  display:flex;flex-direction:column;gap:0;
  border:1px solid var(--border);
  border-radius:var(--r-md);
  overflow:hidden;
}
.hiw-flow-row{
  display:flex;align-items:center;gap:10px;
  padding:10px 14px;
  border-bottom:1px solid var(--border);
  transition:background .15s;
}
.hiw-flow-row:last-child{border-bottom:none}
.hiw-flow-row.hiw-flow-active{background:rgba(99,102,241,0.05)}
.hiw-flow-dot{
  width:6px;height:6px;border-radius:50%;flex-shrink:0;
}
.hiw-flow-dot-green{background:var(--green);box-shadow:0 0 6px rgba(34,211,165,0.6);animation:hpulse 2.4s ease-in-out infinite}
.hiw-flow-dot-blue{background:var(--p-light);box-shadow:0 0 6px rgba(129,140,248,0.5);animation:hpulse 2.4s ease-in-out infinite .6s}
.hiw-flow-label{font-size:12px;color:var(--text1);flex:1;font-family:'Geist',monospace}
.hiw-flow-chip{font-size:10px;font-weight:700;padding:2px 8px;border-radius:100px;flex-shrink:0}
.hiw-chip-green{background:rgba(34,211,165,0.12);color:var(--green)}
.hiw-chip-blue{background:rgba(99,102,241,0.12);color:var(--p-light)}

/* scale stats */
.hiw-scale-stat{
  display:flex;align-items:center;gap:0;
  border:1px solid var(--border);
  border-radius:var(--r-md);
  overflow:hidden;
}
.hiw-scale-item{
  flex:1;padding:14px 16px;text-align:center;
}
.hiw-scale-num{
  font-family:'Bricolage Grotesque',sans-serif;
  font-size:22px;font-weight:800;
  letter-spacing:-0.03em;
  background:linear-gradient(135deg,var(--text0),var(--p-light));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;
  display:block;line-height:1;margin-bottom:4px;
}
.hiw-scale-lbl{font-size:10.5px;color:var(--text2);font-weight:500;letter-spacing:0.04em;text-transform:uppercase}
.hiw-scale-divider{width:1px;height:40px;background:var(--border);flex-shrink:0}

/* connector arrows between cards */
.hiw-connector{
  position:absolute;
  top:50%;right:-18px;
  transform:translateY(-50%);
  z-index:10;
  pointer-events:none;
}
.hiw-conn-line{
  width:36px;height:1px;
  background:linear-gradient(90deg,rgba(99,102,241,0.3),rgba(99,102,241,0));
}
.hiw-conn-dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--p);
  box-shadow:0 0 10px rgba(99,102,241,0.6);
  position:absolute;right:0;top:-3.5px;
  animation:hiwDot 2s ease-in-out infinite;
}
@keyframes hiwDot{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:0.4;transform:scale(0.6)}
}
.hiw-connector-2 .hiw-conn-dot{animation-delay:0.5s}

@media(max-width:900px){
  .hiw-grid{grid-template-columns:1fr}
  .hiw-connector{display:none}
}

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
.faq-section{padding:0 40px 120px}
.faq-inner{
  display:grid;
  grid-template-columns:360px 1fr;
  gap:80px;
  align-items:start;
}
.faq-left .tag{margin-bottom:20px}
.faq-left h2{font-size:clamp(28px,3.5vw,46px)}

.faq-list{
  display:flex;flex-direction:column;
  border:1px solid var(--border);
  border-radius:var(--r-xl);
  overflow:hidden;
}

.faq-item{
  border-bottom:1px solid var(--border);
}
.faq-item:last-child{border-bottom:none}

.faq-q{
  width:100%;display:flex;align-items:center;justify-content:space-between;
  gap:16px;
  padding:22px 28px;
  background:transparent;border:none;cursor:pointer;
  text-align:left;
  transition:background .15s;
}
.faq-q:hover{background:var(--bg2)}
.faq-q[aria-expanded="true"]{background:var(--bg2)}
.faq-q span{
  font-family:'Bricolage Grotesque',sans-serif;
  font-size:16px;font-weight:600;
  color:var(--text0);
  line-height:1.3;
}
.faq-chevron{
  flex-shrink:0;
  color:var(--text2);
  transition:transform .25s cubic-bezier(0.16,1,0.3,1), color .15s;
}
.faq-q[aria-expanded="true"] .faq-chevron{
  transform:rotate(180deg);
  color:var(--p-light);
}

.faq-a{
  overflow:hidden;
  max-height:0;
  transition:max-height .35s cubic-bezier(0.16,1,0.3,1);
}
.faq-a.open{max-height:400px}
.faq-a-inner{
  padding:14px 28px 22px;
  font-size:14.5px;color:var(--text1);line-height:1.78;
}

@media(max-width:900px){
  .faq-inner{grid-template-columns:1fr;gap:48px}
}

/* ═══════════════════════════════════════════
   WHO WE WORK WITH — card quote blocks
═══════════════════════════════════════════ */
.card-quote {
  margin: 20px -30px -30px;
  padding: 20px 30px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.card-quote-text {
  font-size: 13px;
  font-style: italic;
  line-height: 1.65;
  color: var(--text1);
  margin: 0 0 14px;
}
.card-quote-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.t-logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-quote-attr {
  font-size: 11px;
  color: var(--text2);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 3px;
}
.card-quote-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--p-light);
  text-decoration: none;
  transition: opacity .2s;
  display: block;
}
.card-quote-link:hover { opacity: 0.75; }

/* Placeholder state */
.card-quote--placeholder { opacity: 0.45; }
.card-quote--placeholder .card-quote-text { font-style: normal; color: var(--text2); }
.card-quote-logo-placeholder { background: var(--bg2); border: 1px dashed var(--border); }
