﻿/* CyberX — Vendors page styles (ported from Vendors.html, builds on cyberx.css) */
  /* ============================================================
     VENDORS PAGE â€” page-specific styles (builds on styles.css)
     ============================================================ */

  /* ---------- HERO + ORBIT ECOSYSTEM ---------- */
  .vx-hero {
    position: relative; overflow: hidden;
    padding: 124px 0 60px;
    background:
      radial-gradient(115% 75% at 80% 4%, rgba(255,75,38,.18), transparent 55%),
      radial-gradient(80% 70% at 6% 96%, rgba(120,22,10,.30), transparent 60%),
      linear-gradient(180deg, #0b0608 0%, var(--bg) 78%);
  }
  #hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; z-index: 0; }
  .vx-hero .wrap { position: relative; z-index: 3; }
  .vx-hero-head { max-width: 880px; margin: 0 auto; text-align: center; }
  .vx-hero-head .eyebrow { justify-content: center; }
  .vx-hero h1 {
    font-size: clamp(2.05rem, 4.3vw, 3.6rem); font-weight: 800; letter-spacing: -.03em;
    margin: 24px 0 0; text-wrap: balance;
  }
  .vx-hero h1 .hl {
    background: linear-gradient(110deg, var(--brand-2), var(--brand));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .vx-hero .sub {
    font-size: clamp(1.04rem, 1.5vw, 1.24rem); color: var(--muted);
    max-width: 640px; margin: 26px auto 0; line-height: 1.7;
  }

  /* orbit stage */
  .orbit {
    position: relative; z-index: 2;
    width: min(660px, 92vw); margin: 28px auto 0;
    /* height set by JS = width (square) */
  }
  #orbitLines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
  .orbit-line { stroke: rgba(255,255,255,.10); stroke-width: 1; transition: stroke .3s; }
  .orbit.spot .orbit-line { stroke: rgba(255,255,255,.05); }

  /* concentric decorative rings */
  .orbit-rings { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; pointer-events: none; }
  .orbit-rings span {
    position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.06);
  }
  .orbit-rings .o1 { width: 47%; height: 47%; }
  .orbit-rings .o2 { width: 69%; height: 69%; border-style: dashed; border-color: rgba(255,75,38,.12); animation: spin 60s linear infinite; }
  .orbit-rings .o3 { width: 87%; height: 87%; }

  /* center core */
  .orbit-core {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    z-index: 4; width: 124px; height: 124px; display: grid; place-items: center; text-align: center;
  }
  .orbit-core .glow {
    position: absolute; inset: -40px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,75,38,.30), transparent 68%);
    animation: corePulse 3.4s var(--ease) infinite;
  }
  @keyframes corePulse { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
  .orbit-core .shield {
    position: relative; z-index: 2; width: 76px; height: 84px;
    filter: drop-shadow(0 0 22px rgba(255,75,38,.6));
  }
  .orbit-core .co-label {
    position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%);
    font-family: var(--mono); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase;
    color: var(--brand-2); white-space: nowrap;
  }

  /* vendor plates */
  .vplate {
    position: absolute; left: 0; top: 0;
    display: grid; place-items: center;
    background: #fff; border: 1px solid var(--line-2); border-radius: 13px;
    box-shadow: 0 10px 30px -12px rgba(0,0,0,.7);
    overflow: hidden; z-index: 3;
    transition: box-shadow .3s var(--ease), opacity .35s var(--ease), filter .35s var(--ease);
  }
  .vplate.orbit {
    width: clamp(86px, 17%, 122px); aspect-ratio: 2.6 / 1;
    will-change: transform;
  }
  .vplate img { width: 100%; height: 100%; object-fit: contain; }
  .vplate.is-text { border-color: rgba(255,255,255,.16); }
  .vplate .vp-word { font-size: .9rem; font-weight: 700; letter-spacing: -.01em; }
  .vplate.orbit .vp-word { font-size: clamp(.62rem, 1.7vw, .82rem); }
  .vplate.orbit:hover {
    z-index: 6; box-shadow: 0 18px 44px -10px rgba(0,0,0,.85), 0 0 0 2px rgba(255,75,38,.45);
  }
  .orbit.spot .vplate.dim { opacity: .26; filter: saturate(.5); }

  .vx-foot {
    position: relative; z-index: 3; text-align: center;
    margin-top: 30px; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--dim);
  }
  .vx-foot b { color: var(--brand-2); }

  /* ============================================================
     DIRECTORY â€” index rail + stacked vendor blocks
     ============================================================ */
  .vd-body { position: relative; background: linear-gradient(180deg, var(--bg), var(--bg-2)); padding: 96px 0 40px; }
  .vd-body::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
      linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent 80%);
  }
  .vd-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 244px 1fr; gap: 60px; align-items: start; }

  /* sticky index rail */
  .vd-idx { position: sticky; top: 104px; align-self: start; }
  .vd-idx-head {
    font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
    padding-bottom: 16px; border-bottom: 1px solid var(--line);
  }
  .vd-idx-head b { color: var(--brand-2); font-family: var(--font); font-size: 1rem; font-weight: 700; }
  .vd-idx-list { position: relative; padding-left: 22px; }
  .vd-idx-list::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
  .vd-idx-prog { position: absolute; left: 4px; top: 6px; width: 1px; height: 0; background: linear-gradient(var(--brand-2), var(--brand)); transition: height .4s var(--ease); box-shadow: 0 0 8px rgba(255,75,38,.6); }
  .vd-idx-row { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 0; color: var(--dim); cursor: pointer; transition: color .25s var(--ease); }
  .vd-idx-row .ix { font-family: var(--mono); font-size: .74rem; width: 22px; flex-shrink: 0; }
  .vd-idx-row .nm { font-size: .88rem; font-weight: 500; line-height: 1.3; transition: color .25s, transform .25s var(--ease); }
  .vd-idx-row::before { content: ""; position: absolute; left: -22px; top: 50%; transform: translateY(-50%) scale(.5); width: 7px; height: 7px; border-radius: 50%; background: var(--dim); opacity: .5; transition: all .25s var(--ease); }
  .vd-idx-row:hover { color: var(--muted); }
  .vd-idx-row:hover .nm { transform: translateX(2px); }
  .vd-idx-row.active { color: var(--text); }
  .vd-idx-row.active .ix { color: var(--brand-2); }
  .vd-idx-row.active::before { background: var(--brand); opacity: 1; transform: translateY(-50%) scale(1); box-shadow: 0 0 10px var(--brand); }

  /* blocks */
  .vd-blocks { min-width: 0; }
  .vd-block { position: relative; padding: 58px 0 62px; border-top: 1px solid var(--line); --ac: #FF7A3C; --rgb: 255,75,38; }
  .vd-block:first-child { border-top: none; padding-top: 6px; }
  .vd-wm {
    position: absolute; top: 22px; right: 0; z-index: 0;
    font-family: var(--mono); font-weight: 600; font-size: clamp(6rem, 12vw, 11rem); line-height: .8;
    color: transparent; -webkit-text-stroke: 1px rgba(var(--rgb), .13);
    pointer-events: none; user-select: none; letter-spacing: -.04em; will-change: transform;
  }
  .vd-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 48px; align-items: start; }
  .vd-content { max-width: 660px; }

  .vd-tagline { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ac); display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; }
  .vd-tagline .num { color: var(--dim); }
  .vd-content h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.06; margin: 16px 0 14px; }
  .vd-lead { font-size: 1.1rem; color: var(--text); line-height: 1.64; opacity: .94; margin-bottom: 14px; }
  .vd-desc { font-size: 1rem; color: var(--muted); line-height: 1.7; }

  .vd-block-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; margin-top: 30px; padding-top: 26px; border-top: 1px dashed var(--line-2); }
  .vd-sol h4, .vd-ind h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
  .vd-sol ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
  .vd-sol li { display: flex; align-items: center; gap: 11px; font-size: .96rem; font-weight: 500; color: var(--text); }
  .vd-sol .sc { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: rgba(var(--rgb), .14); color: var(--ac); }
  .vd-sol .sc svg { width: 13px; height: 13px; }
  .vd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
  .vd-tag {
    font-size: .84rem; color: var(--muted); padding: 7px 13px; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(255,255,255,.025);
    transition: color .25s, border-color .25s, background .25s;
  }
  .vd-block.in .vd-tag:hover { color: var(--text); border-color: rgba(var(--rgb), .45); background: rgba(var(--rgb), .08); }
  .vd-ind-text { color: var(--muted); font-size: .98rem; line-height: 1.64; text-wrap: pretty; }
  .vd-ind { position: relative; }
  .vd-ind-tags { flex-direction: column; align-items: flex-start; gap: 10px; }
  .vd-ind-tags .vd-tag { font-size: .92rem; padding: 10px 18px; font-weight: 500; }

  .vd-cta {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
    font-weight: 600; font-size: .96rem; padding: 13px 24px; border-radius: 999px;
    color: var(--text); background: rgba(var(--rgb), .08); border: 1px solid rgba(var(--rgb), .3);
    transition: background .25s var(--ease), border-color .25s, transform .25s, box-shadow .25s, color .25s;
  }
  .vd-cta svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
  .vd-cta:hover { background: var(--ac); color: #0b0507; border-color: var(--ac); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(var(--rgb), .6); }
  .vd-cta:hover svg { transform: translateX(4px); }

  /* side: logo plate + viz */
  .vd-side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 16px; }
  .vd-plate {
    position: relative; width: 100%; aspect-ratio: 2.6 / 1; border-radius: 16px; overflow: hidden;
    background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center;
    box-shadow: 0 16px 40px -16px rgba(0,0,0,.7);
  }
  .vd-plate img { width: 100%; height: 100%; object-fit: contain; }
  .vd-plate.is-text { border-color: rgba(255,255,255,.16); }
  .vd-plate .vp-word { font-size: 1.9rem; font-weight: 700; letter-spacing: -.01em; }

  .vd-viz { position: relative; height: 168px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
    background: radial-gradient(120% 100% at 70% 20%, rgba(var(--rgb), .12), transparent 60%), linear-gradient(180deg, rgba(18,20,25,.6), rgba(12,14,18,.6)); }
  .vd-viz::before { content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(var(--rgb),.06) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--rgb),.06) 1px, transparent 1px);
    background-size: 24px 24px; mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent); }
  .vd-radar { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 168px; height: 168px; }
  .vd-radar .ring { fill: none; stroke: rgba(var(--rgb), .25); stroke-width: 1; }
  .vd-radar .ring.dash { stroke-dasharray: 4 6; }
  .vd-block.in .vd-radar .rot { transform-origin: 100px 100px; animation: spin 16s linear infinite; }
  .vd-radar .sweep { transform-origin: 100px 100px; }
  .vd-block.in .vd-radar .sweep { animation: sweep 4.5s linear infinite; }
  @keyframes sweep { to { transform: rotate(360deg); } }
  .vd-radar .core { fill: var(--ac); filter: drop-shadow(0 0 8px rgba(var(--rgb),.9)); }
  .vd-radar .blip { fill: var(--ac); opacity: 0; }
  .vd-block.in .vd-radar .blip { animation: blip 4.5s linear infinite; }
  .vd-radar .blip.b2 { animation-delay: 1.4s; }
  .vd-radar .blip.b3 { animation-delay: 2.7s; }
  @keyframes blip { 0%,12% { opacity: 0; } 18% { opacity: 1; } 55% { opacity: 0; } 100% { opacity: 0; } }
  .vd-scan { position: absolute; left: 0; right: 0; height: 50px; background: linear-gradient(180deg, transparent, rgba(var(--rgb), .14), transparent); }
  .vd-block.in .vd-scan { animation: scanY 3.4s var(--ease) infinite; }
  @keyframes scanY { 0% { top: -50px; } 100% { top: 168px; } }

  /* reveal */
  .vd-r { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .vd-block.in .vd-r { opacity: 1; transform: none; }
  .vd-block.in .vd-r[data-d="1"] { transition-delay: .07s; }
  .vd-block.in .vd-r[data-d="2"] { transition-delay: .15s; }
  .vd-block.in .vd-r[data-d="3"] { transition-delay: .23s; }

  /* ============================================================
     WHY â€” closing rationale (teal zone)
     ============================================================ */
  .vx-why {
    position: relative; overflow: hidden;
    background:
      radial-gradient(85% 75% at 88% 8%, rgba(54,210,230,.12), transparent 55%),
      radial-gradient(70% 80% at 4% 96%, rgba(45,127,249,.10), transparent 60%),
      linear-gradient(180deg, var(--bg-2), #07090A);
  }
  .vx-why::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(54,210,230,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(54,210,230,.05) 1px, transparent 1px);
    background-size: 60px 60px; mask-image: radial-gradient(70% 70% at 72% 26%, #000, transparent);
  }
  .vx-why .wrap { position: relative; z-index: 2; }
  .vx-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .vx-why-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 18px 0 0; text-wrap: balance; }
  .vx-why-head .lead { color: var(--text); font-size: 1.12rem; line-height: 1.7; margin-top: 22px; opacity: .94; }
  .vx-why-list { display: flex; flex-direction: column; gap: 14px; }
  .vx-why-card {
    position: relative; padding: 28px 30px 30px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(20,24,26,.86), rgba(14,18,19,.86)); border: 1px solid var(--line);
    transition: transform .3s var(--ease), border-color .3s;
  }
  .vx-why-card:hover { transform: translateY(-3px); border-color: rgba(54,210,230,.35); }
  .vx-why-card .n { font-family: var(--mono); font-size: .78rem; letter-spacing: .15em; color: var(--teal); }
  .vx-why-card p { color: var(--muted); font-size: 1.02rem; line-height: 1.66; margin-top: 12px; }
  .vx-why-card b { color: var(--text); font-weight: 600; }

  @media (prefers-reduced-motion: reduce) {
    .vd-r { opacity: 1 !important; transform: none !important; }
    .orbit-rings .o2, .orbit-core .glow, .vd-radar .rot, .vd-radar .sweep, .vd-radar .blip, .vd-scan { animation: none !important; }
  }

  /* ---------- responsive ---------- */
  @media (max-width: 1080px) {
    .vd-grid { grid-template-columns: 1fr; gap: 30px; }
    .vd-side { position: static; flex-direction: column; max-width: 420px; }
    .vd-plate { max-width: 360px; }
    .vd-viz { height: 150px; }
    .vx-why-grid { grid-template-columns: 1fr; gap: 32px; }
  }
  @media (max-width: 920px) {
    .vd-layout { grid-template-columns: 1fr; gap: 0; }
    .vd-idx { display: none; }
  }
  @media (max-width: 760px) {
    .vx-hero { padding: 132px 0 50px; }
    .vd-body { padding: 64px 0 30px; }
    .vd-block { padding: 44px 0 48px; }
    .vd-block-cols { grid-template-columns: 1fr; gap: 24px; }
    .vd-side { flex-direction: column; }
    .vd-plate { max-width: 280px; }
    .vd-wm { font-size: 5.5rem; top: 10px; }
  }
