/* ============================================================
   VertexStudio — Home (flagship visual branding)
   Hero light beam, live runtime console, logo-cloud caption,
   and home-only flourishes. Loaded only on index.html.
   ============================================================ */

/* ── Hero light beam + tighter composition ── */
#hero { min-height: 100vh; padding-bottom: 110px; }
#hero::before {
  content: ''; position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; max-width: 120vw; height: 560px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(139, 92, 246, .22), transparent 70%),
    conic-gradient(from 180deg at 50% 0%, transparent 40%, rgba(34, 211, 238, .12) 50%, transparent 60%);
  filter: blur(8px); opacity: .9;
}
h1.hero-title { max-width: 17ch; letter-spacing: -.045em; }
.hero-sub { max-width: 56ch; }

/* announcement pill (clickable) */
.announce {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface-2);
  font-size: var(--fs-xs); color: var(--text-2); text-decoration: none; transition: all .25s var(--ease);
  margin-bottom: 4px;
}
.announce:hover { border-color: var(--brand); transform: translateY(-1px); }
.announce .tag {
  font-family: var(--font-mono); font-weight: 600; letter-spacing: .04em; color: #fff;
  background: var(--grad-brand); padding: 3px 9px; border-radius: var(--r-pill); font-size: .66rem;
}
.announce .vx-ic { width: 14px; height: 14px; color: var(--brand-2); transition: transform .25s var(--ease); }
.announce:hover .vx-ic { transform: translateX(3px); }

/* ── LIVE RUNTIME CONSOLE (hero anchor visual) ── */
.hero-console {
  position: relative; z-index: 1; width: 100%; max-width: 760px; margin: 64px auto 0;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 14, 28, .75), rgba(8, 8, 16, .85));
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
  text-align: left;
}
.hero-console::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .8), rgba(34, 211, 238, .6), transparent);
}
.hc-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.hc-bar .cw-dot { width: 11px; height: 11px; border-radius: 50%; }
.hc-title { margin-left: 8px; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.hc-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--emerald); }
.hc-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); animation: pulseDot 1.6s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

.hc-log { position: relative; height: 168px; overflow: hidden; font-family: var(--font-mono); font-size: .76rem; -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); }
.hc-track { display: flex; flex-direction: column; animation: hcScroll 18s linear infinite; }
.hc-log:hover .hc-track { animation-play-state: paused; }
@keyframes hcScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hc-line { display: flex; align-items: center; gap: 10px; padding: 7px 18px; white-space: nowrap; color: var(--text-2); border-bottom: 1px solid rgba(255, 255, 255, .03); }
.hc-t { color: var(--faint); }
.hc-tag { font-size: .64rem; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 5px; }
.hc-tag.edge { background: rgba(139, 92, 246, .16); color: #c4b5fd; }
.hc-tag.gpu { background: rgba(34, 211, 238, .14); color: #67e8f9; }
.hc-tag.cloud { background: rgba(232, 121, 249, .14); color: #f0abfc; }
.hc-tag.agent { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.hc-msg { color: var(--text-2); }
.hc-ms { margin-left: auto; color: var(--emerald); font-weight: 600; }
.hc-arrow { color: var(--faint); }

.hc-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hc-stat { padding: 16px 18px; }
.hc-stat:not(:last-child) { border-right: 1px solid var(--line); }
.hc-stat .lbl { font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.hc-stat .val { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin-top: 4px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hc-spark { height: 3px; margin-top: 10px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hc-spark i { display: block; height: 100%; border-radius: 3px; background: var(--grad-brand); animation: hcSpark 3.2s var(--ease) infinite alternate; }
@keyframes hcSpark { from { width: 35%; } to { width: 92%; } }

/* ── logo-cloud caption above the marquee ── */
.cloud-cap { text-align: center; font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .18em; color: var(--muted); padding: 8px var(--gutter) 0; }

/* ── bento flourish: index numbers + gradient hover border ── */
.bento .card { transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, background .35s; }
.bento .card.feature { background: linear-gradient(180deg, rgba(139, 92, 246, .07), transparent 60%), var(--surface); }
.feature-foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--brand-2); font-weight: 600; font-size: var(--fs-sm); }
.feature-foot .vx-ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card:hover .feature-foot .vx-ic { transform: translateX(4px); }

/* ── DISTRIBUTED INFERENCE FABRIC ── */
#fabric { position: relative; }
.fabric-frame {
  position: relative; margin-top: 48px; border: 1px solid var(--line-2); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 246, .10), transparent 60%),
    linear-gradient(180deg, rgba(14, 14, 28, .5), rgba(8, 8, 16, .7));
}
[data-theme="light"] .fabric-frame { background: radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 246, .12), transparent 60%), var(--bg-2); }
#infra-canvas { display: block; width: 100%; height: 540px; }
.fabric-legend { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 16px; }
.fl-item { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(8, 8, 16, .6); border: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-2); backdrop-filter: blur(8px); }
[data-theme="light"] .fl-item { background: rgba(255, 255, 255, .7); }
.fl-item .d { width: 9px; height: 9px; border-radius: 50%; }
.fabric-tag { position: absolute; top: 16px; left: 18px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--emerald); }
.fabric-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); animation: pulseDot 1.6s ease-in-out infinite; }

@media (max-width: 720px) {
  #infra-canvas { height: 420px; }
}
@media (max-width: 600px) {
  .hc-stats { grid-template-columns: 1fr; }
  .hc-stat:not(:last-child) { border-right: none; border-bottom: 1px solid var(--line); }
  .hc-ms { display: none; }
}
