/* ============================================================
   NEON HOST — home page bespoke components
   ============================================================ */

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: 120px; padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 4vw, 64px); align-items: center; }
.hero-eyebrow { margin-bottom: 26px; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { max-width: min(100%, 980px); }
.hero .wrap { text-align: center; }
.hero-grid > div:first-child { display: flex; flex-direction: column; align-items: center; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.hero-note-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.hero-note-item svg { width: 16px; height: 16px; color: var(--cyan-2); }

/* hero stat strip under text */
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin-top: 44px; }
.hero-stats .s-v { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.035em; color: var(--text); font-variant-numeric: tabular-nums; }
.hero-stats .s-v .u { color: var(--brand-text); }
.hero-stats .s-l { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.hero-cta,
.hero-note { justify-content: center; }

/* ---------- HERO STAGE (datacenter composition) ---------- */
.stage { position: relative; aspect-ratio: 1 / 1.02; width: 100%; }
.stage-glow { position: absolute; inset: -8%; z-index: 0;
  background: radial-gradient(45% 45% at 50% 42%, var(--aurora-1), transparent 70%),
              radial-gradient(40% 40% at 70% 70%, var(--aurora-2), transparent 70%); filter: blur(8px); }
.stage svg.netlines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.netlines .flow { stroke-dasharray: 5 9; animation: dash 1.1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }

/* central rack */
.rack {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 56%; padding: 14px; border-radius: 20px;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--surface) 97%, var(--purple) 3%), color-mix(in oklab, var(--surface) 88%, var(--bg-2)));
  border: 1px solid color-mix(in oklab, var(--border) 94%, transparent);
  box-shadow: 0 28px 68px -38px rgba(20,18,60,.3);
  overflow: hidden;
}
.rack::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: color-mix(in oklab, var(--border) 88%, transparent);
  pointer-events: none;
}
.rack::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--border) 72%, transparent);
  pointer-events: none;
}
[data-theme="dark"] .rack {
  background:
    linear-gradient(180deg, rgba(14,18,34,.98), rgba(10,13,24,.96));
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 34px 86px -44px rgba(0,0,0,.72);
}
.rack-top {
  display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 12px;
  position: relative; z-index: 1; border-bottom: 1px solid color-mix(in oklab, var(--border) 78%, transparent);
  margin-bottom: 10px;
}
.rack-top .dot3 { display: flex; gap: 5px; }
.rack-top .dot3 i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); display: block; }
.rack-top .dot3 i:first-child { background: #FF5F57; } .rack-top .dot3 i:nth-child(2){ background:#FEBC2E; } .rack-top .dot3 i:nth-child(3){ background:#28C840; }
.rack-top span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.ru {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: color-mix(in oklab, var(--surface) 78%, var(--bg-2));
  border: 1px solid color-mix(in oklab, var(--border) 88%, transparent);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.ru:last-child { margin-bottom: 0; }
.ru-led {
  width: 7px; height: 7px; border-radius: 50%;
  background: color-mix(in oklab, var(--cyan-2) 90%, white 10%);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--cyan) 12%, transparent);
  flex-shrink: 0;
}
.ru-name {
  font-size: 13px; color: var(--text);
  letter-spacing: -0.01em;
}
.ru-tag {
  font-family: var(--mono); font-size: 10px; color: var(--text-3);
  min-width: 58px; text-align: right; letter-spacing: .08em; text-transform: uppercase;
}
.rack-foot {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 8px 12px 0;
  border-top: 1px solid color-mix(in oklab, var(--border) 78%, transparent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* floating cards */
.fcard {
  position: absolute; z-index: 4; padding: 13px 15px; border-radius: 14px;
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-brd); box-shadow: var(--shadow-md);
  animation: floaty 6s ease-in-out infinite;
}
.fcard .fc-v { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.fcard .fc-l { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.fcard .fc-ico { color: var(--brand-text); }
.fcard.f1 { top: 4%; left: -4%; animation-delay: 0s; }
.fcard.f2 { top: 30%; right: -7%; animation-delay: 1.2s; }
.fcard.f3 { bottom: 16%; left: -7%; animation-delay: 2.1s; }
.fcard.f4 { bottom: -2%; right: 2%; animation-delay: .6s; }
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }
.fcard-row { display: flex; align-items: center; gap: 10px; }
.fcard .mini-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in oklab,var(--purple) 14%, transparent); color: var(--brand-text); }
.fcard .mini-ico svg { width: 16px; height: 16px; }

/* shield node */
.shield-node { position: absolute; z-index: 4; top: 6%; right: 8%; width: 60px; height: 68px; display: grid; place-items: center;
  color: #fff; animation: floaty 7s ease-in-out infinite .3s; }
.shield-node svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 18px rgba(124,58,237,.5)); }

/* network nodes (dots on the lines) */
.nnode { position: absolute; z-index: 3; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--purple); box-shadow: 0 0 0 4px color-mix(in oklab,var(--purple) 18%, transparent); }
.nnode::after { content: attr(data-l); position: absolute; top: 16px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; color: var(--text-3); }

/* ---------- LOGO MARQUEE ---------- */
.logos { padding-block: clamp(34px,4vw,52px); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos-lead { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 26px; }
.logos .marquee-logo { filter: grayscale(1) saturate(0) brightness(1.15) contrast(1) !important; opacity: .55 !important; }
.logo-item { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-3); opacity: .75; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo-item svg { width: 20px; height: 20px; }

/* ---------- COUNTERS ---------- */
.counters-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.counter-cell { background: var(--surface); padding: 30px 24px; }
@media (max-width: 900px){ .counters-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .counters-grid { grid-template-columns: 1fr; } }

/* ---------- NETWORK MAP (infra teaser) ---------- */
.netmap { position: relative; border-radius: var(--r-xl); border: 1px solid var(--border); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in oklab,var(--purple) 6%, var(--surface)), var(--surface)); padding: clamp(28px,4vw,56px); }

/* clean left-to-right packet flow */
.iflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: clamp(4px,1vw,16px); }
.iflow-node { padding: 20px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border-2); text-align: center; box-shadow: var(--shadow-md); }
.iflow-node.hot { border-color: color-mix(in oklab,var(--cyan) 55%, transparent); background: linear-gradient(160deg, color-mix(in oklab,var(--cyan) 12%, var(--surface)), var(--surface)); }
.iflow-node.dest { border-color: color-mix(in oklab,var(--purple) 50%, transparent); background: linear-gradient(160deg, color-mix(in oklab,var(--purple) 12%, var(--surface)), var(--surface)); }
.iflow-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin: 0 auto 12px; background: var(--bg-2); border: 1px solid var(--border); color: var(--brand-text); }
.iflow-node.hot .iflow-ico { background: linear-gradient(135deg,var(--purple),var(--cyan-2)); color: #fff; border: 0; }
.iflow-node.dest .iflow-ico { background: linear-gradient(135deg,var(--purple),var(--purple-2)); color: #fff; border: 0; }
.iflow-ico svg { width: 23px; height: 23px; }
.iflow-node h4 { font-size: 14px; letter-spacing: -0.02em; }
.iflow-node p { font-size: 11px; color: var(--text-3); margin-top: 3px; font-family: var(--mono); }
.iflow-arrow { display: flex; align-items: center; justify-content: center; min-width: 18px; }
.iflow-arrow i { display: block; width: 100%; min-width: 16px; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--cyan-2) 0 5px, transparent 5px 11px); }
@media (max-width: 820px){
  .iflow { grid-template-columns: 1fr; gap: 0; }
  .iflow-arrow { padding: 8px 0; }
  .iflow-arrow i { width: 2px; min-width: 2px; height: 26px; background: repeating-linear-gradient(180deg, var(--cyan-2) 0 5px, transparent 5px 11px); margin: 0 auto; }
}

/* ---------- PRODUCTS ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 980px){ .prod-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .prod-grid { grid-template-columns: 1fr; } }
.prod {
  position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.prod::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(70% 60% at 80% 0%, color-mix(in oklab,var(--purple) 16%, transparent), transparent 70%); }
.prod:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow-lg); }
.prod:hover::before { opacity: 1; }
.prod-ico { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; font-size: 28px; position: relative; color: var(--brand-text);
  background: linear-gradient(160deg, color-mix(in oklab,var(--purple) 18%, var(--surface)), var(--surface)); border: 1px solid var(--border-2);
  box-shadow: 0 10px 26px -12px rgba(124,58,237,.5), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .4s var(--ease); }
.prod-ico svg { width: 27px; height: 27px; }
.prod:hover .prod-ico { transform: translateY(-3px) rotate(-4deg); }
.prod-name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 18px 0 4px; display: flex; align-items: center; gap: 9px; }
.prod-desc { font-size: 13.5px; color: var(--text-2); min-height: 38px; }
.prod-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.prod-cta { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); transition: all .3s var(--ease); }
.prod:hover .prod-cta { background: var(--purple); color: #fff; border-color: var(--purple); }
.prod-cta svg { width: 16px; height: 16px; }

/* ---------- NEONSHIELD ---------- */
.shield-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,4vw,60px); align-items: center; }
.shield-stage { position: relative; aspect-ratio: 1/1; max-width: 460px; margin-inline: auto; width: 100%; display: grid; place-items: center; }
.shield-rings { position: absolute; inset: 0; }
.shield-rings span { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid color-mix(in oklab,var(--purple) 30%, transparent); }
.shield-rings span:nth-child(1){ width: 100%; height: 100%; animation: ringpulse 3s ease-out infinite; }
.shield-rings span:nth-child(2){ width: 70%; height: 70%; animation: ringpulse 3s ease-out infinite .7s; }
.shield-rings span:nth-child(3){ width: 42%; height: 42%; animation: ringpulse 3s ease-out infinite 1.4s; }
@keyframes ringpulse { 0%{ transform: scale(.85); opacity: 0 } 30%{ opacity: .8 } 100%{ transform: scale(1.05); opacity: 0 } }
.shield-core { position: relative; z-index: 2; width: 40%; aspect-ratio: 1; display: grid; place-items: center; color: #fff;
  border-radius: 28px; background: linear-gradient(150deg, var(--purple), var(--cyan-2)); box-shadow: 0 30px 70px -20px rgba(124,58,237,.7), inset 0 2px 0 rgba(255,255,255,.4); }
.shield-core svg { width: 48%; height: 48%; }
.attack { position: absolute; z-index: 1; left: 0; top: 50%; height: 2px; width: 46%; transform-origin: left center;
  background: linear-gradient(90deg, transparent, #FB7185); border-radius: 2px; }
.attack i { position: absolute; right: 0; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #FB7185; transform: translateY(-50%); box-shadow: 0 0 8px #FB7185; }
.attack.a1 { transform: rotate(18deg); animation: shoot 2.2s linear infinite; }
.attack.a2 { transform: rotate(-22deg); animation: shoot 2.2s linear infinite .7s; }
.attack.a3 { transform: rotate(160deg); animation: shoot 2.2s linear infinite 1.1s; }
.attack.a4 { transform: rotate(205deg); animation: shoot 2.2s linear infinite 1.6s; }
@keyframes shoot { 0%{ width: 0; opacity: 0 } 20%{ opacity: 1 } 70%{ width: 40%; opacity: 1 } 80%{ width: 40%; opacity: 0 } 100%{ opacity: 0 } }
.layer-list { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.layer { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.layer-no { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #fff; width: 54px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(135deg,var(--purple),var(--cyan-2)); }
.layer-t { font-size: 15px; font-weight: 560; }
.layer-d { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* ---------- BENTO ---------- */
.bento { display: grid; grid-template-columns: repeat(6,1fr); grid-auto-rows: minmax(150px,auto); gap: 16px; }
.bento-cell { position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: border-color .3s, transform .3s; }
.bento-cell:hover { border-color: var(--border-2); transform: translateY(-3px); }
.bento-cell h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 8px; }
.bento-cell p { font-size: 13.5px; color: var(--text-2); }
.b-wide { grid-column: span 3; } .b-tall { grid-row: span 2; grid-column: span 3; } .b-sm { grid-column: span 2; }
.bento .gico { margin-bottom: 16px; }
@media (max-width: 900px){ .bento { grid-template-columns: repeat(2,1fr); } .b-wide,.b-tall,.b-sm { grid-column: span 1; grid-row: auto; } }

/* big number motif in bento */
.b-bignum { font-size: clamp(40px,6vw,72px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(120deg,var(--purple-2),var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- TESTIMONIALS ---------- */
.testi-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.testi-track::-webkit-scrollbar { display: none; }
.testi-card { scroll-snap-align: start; flex: 0 0 clamp(300px, 33%, 400px); padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; }
.testi-stars { display: flex; gap: 3px; color: #F5A623; }
.testi-stars svg { width: 16px; height: 16px; }
.testi-quote { font-size: 15.5px; line-height: 1.6; color: var(--text); letter-spacing: -0.01em; flex: 1; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.testi-name { font-size: 14px; font-weight: 560; }
.testi-role { font-size: 12.5px; color: var(--text-3); }
.testi-ctrl { display: flex; gap: 8px; }
.testi-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); display: grid; place-items: center; color: var(--text-2); transition: all .2s; }
.testi-btn:hover { color: var(--text); border-color: var(--purple); }
.testi-btn svg { width: 18px; height: 18px; }

/* ---------- DASHBOARD ---------- */
.dash { border-radius: var(--r-xl); border: 1px solid var(--border-2); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg); }
.dash-bar { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.dash-bar .dot3 { display: flex; gap: 6px; } .dash-bar .dot3 i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dash-bar .dot3 i:nth-child(1){background:#FF5F57}.dash-bar .dot3 i:nth-child(2){background:#FEBC2E}.dash-bar .dot3 i:nth-child(3){background:#28C840}
.dash-url { font-family: var(--mono); font-size: 12px; color: var(--text-3); background: var(--surface); border: 1px solid var(--border); padding: 5px 14px; border-radius: 7px; }
.dash-body { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.dash-side { border-right: 1px solid var(--border); padding: 16px; background: var(--bg-2); }
.dash-side .ds-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; font-size: 13.5px; color: var(--text-2); margin-bottom: 2px; }
.dash-side .ds-item svg { width: 16px; height: 16px; }
.dash-side .ds-item.on { background: color-mix(in oklab,var(--purple) 12%, transparent); color: var(--brand-text); font-weight: 540; }
.dash-main { padding: 22px; }
.dash-server { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-server .dh { display: flex; align-items: center; gap: 12px; }
.dash-server .dh-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--bg-2); border: 1px solid var(--border); }
.dash-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.dash-metric { padding: 16px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); }
.dash-metric .dm-l { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.dash-metric .dm-v { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.dash-metric .dm-bar { height: 5px; border-radius: 3px; background: var(--bg-3); margin-top: 12px; overflow: hidden; }
.dash-metric .dm-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg,var(--purple),var(--cyan-2)); }
.dash-chart { padding: 18px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); }
.dash-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.spark { width: 100%; height: 90px; }
.dash-console { font-family: var(--mono); font-size: 12px; line-height: 1.7; padding: 16px; border-radius: var(--r-sm); background: var(--code-bg); color: #9FB0C9; margin-top: 16px; }
.dash-console .ln-ok { color: #34D399; } .dash-console .ln-warn { color: #FBBF24; } .dash-console .ln-tag { color: var(--cyan); }
@media (max-width: 760px){ .dash-body { grid-template-columns: 1fr; } .dash-side { display: none; } .dash-cards { grid-template-columns: 1fr; } }

/* responsive hero */
@media (max-width: 940px){
  .hero-grid { grid-template-columns: 1fr; }
  .stage { max-width: 460px; margin-inline: auto; margin-top: 20px; }
  .hero .lead { max-width: none; }
  .shield-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 22px; }
  .fcard .fc-v { font-size: 17px; }
}
