/*! © 2026 VertexStudio, Inc. — All rights reserved. Proprietary and confidential. */
/* ============================================================
   VertexStudio — Home (flagship visual branding)
   Hero light beam, live runtime console, logo-cloud caption,
   and home-only flourishes. Loaded only on index.html.
   ============================================================ */

/* ── HERO — bold editorial, left-aligned, two-column ── */
#hero {
  min-height: 100vh; display: flex; align-items: center; text-align: left;
  padding: calc(var(--nav-h) + 64px) var(--gutter) 96px;
}
.hero-grid {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
/* let columns shrink below content min-width so the console can't force overflow */
.hero-grid > * { min-width: 0; }
h1.hero-title { overflow-wrap: break-word; }
.hero-copy { text-align: left; }
.hero-copy .eyebrow { margin-bottom: 22px; }
h1.hero-title {
  text-align: left; margin: 0;
  font-size: clamp(2.7rem, 1.5rem + 4vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em;
  max-width: 15ch;
}
.hero-sub { text-align: left; margin-top: 26px; max-width: 50ch; }
.hero-copy .hero-actions { justify-content: flex-start; }
.hero-trust {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); letter-spacing: .02em;
}
.hero-trust .ht-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.hero-visual { position: relative; }
.hero-visual .hero-console { margin: 0; max-width: none; }

@media (max-width: 940px) {
  #hero { min-height: auto; padding-top: calc(var(--nav-h) + 48px); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  h1.hero-title { max-width: 18ch; }
  .hero-sub { max-width: 60ch; }
}
#hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    /* soft white lift behind the headline (no warm tint) */
    radial-gradient(60% 60% at 30% 48%, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .3) 46%, transparent 72%);
}
[data-theme="dark"] #hero::before {
  background:
    radial-gradient(60% 60% at 30% 48%, rgba(6, 6, 13, .5) 0%, rgba(6, 6, 13, .2) 46%, transparent 72%),
    radial-gradient(70% 50% at 20% 24%, rgba(120, 120, 130, .12), transparent 70%),
    radial-gradient(95% 55% at 80% 116%, rgba(28, 28, 32, .10), transparent 72%);
}

/* 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: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--glass-hi);
  text-align: left;
}
[data-theme="dark"] .hero-console { background: linear-gradient(180deg, rgba(14, 14, 28, .75), rgba(8, 8, 16, .85)); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06); }
.hero-console::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(28, 28, 32, .8), rgba(120, 120, 130, .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(138, 109, 176, .14); color: #6f5494; }
.hc-tag.gpu { background: rgba(79, 157, 150, .14); color: #3c7d77; }
.hc-tag.cloud { background: rgba(192, 105, 127, .14); color: #a44e64; }
.hc-tag.agent { background: rgba(120, 140, 93, .16); color: #5d6f44; }
[data-theme="dark"] .hc-tag.edge { background: rgba(139, 92, 246, .16); color: #c4b5fd; }
[data-theme="dark"] .hc-tag.gpu { background: rgba(34, 211, 238, .14); color: #67e8f9; }
[data-theme="dark"] .hc-tag.cloud { background: rgba(232, 121, 249, .14); color: #f0abfc; }
[data-theme="dark"] .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(28, 28, 32, .07), transparent 55%), rgba(255, 255, 255, .8); }
[data-theme="dark"] .bento .card.feature { background: linear-gradient(180deg, rgba(28, 28, 32, .1), 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(--glass-edge); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-lg), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(28, 28, 32, .10), transparent 60%),
    var(--glass-strong);
}
[data-theme="dark"] .fabric-frame {
  border-color: rgba(255, 255, 255, .1);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(120, 120, 130, .16), transparent 60%),
    linear-gradient(180deg, #131119, #0c0b12);
}
#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: var(--glass); border: 1px solid var(--glass-edge); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
[data-theme="dark"] .fl-item { background: rgba(8, 8, 16, .55); border-color: rgba(255, 255, 255, .12); color: #d8d4ca; }
.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(--brand); }
[data-theme="dark"] .fabric-tag { color: #e0a458; }
.fabric-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; 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; }
}

/* ── Left-aligned editorial section headers (align to the same left edge as the hero) ── */
.section-head { text-align: left; }
.section-head .section-eyebrow { justify-content: flex-start; }
.section-head .section-h { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); line-height: 1.06; max-width: 20ch; }
.section-head .section-p { margin-top: 16px; margin-left: 0; margin-right: 0; max-width: 62ch; }

/* ── STORY chapter: the gap + Model→Outcome steps ── */
#story .statement { text-align: left; }
.statement-h { max-width: 18ch; }
.statement-h {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.04;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.7rem); margin-top: 6px;
}
.statement-p {
  margin-top: 22px; max-width: 62ch; font-size: var(--fs-lead);
  color: var(--text-2); line-height: 1.7; font-weight: 300;
}
.story-steps {
  margin-top: 56px; display: grid; align-items: stretch; gap: 14px;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
}
.story-step {
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); border-radius: var(--r-lg); padding: 24px 22px;
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
}
.story-step .ss-num { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; color: var(--brand); }
.story-step h4 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; margin: 12px 0 8px; }
.story-step p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; font-weight: 300; }
.story-step.is-out {
  border-color: rgba(28, 28, 32, .38);
  background: linear-gradient(180deg, rgba(28, 28, 32, .09), rgba(255, 255, 255, .55) 70%);
}
[data-theme="dark"] .story-step.is-out { background: linear-gradient(180deg, rgba(28, 28, 32, .16), rgba(255, 255, 255, .04) 70%); }
.story-arrow { display: flex; align-items: center; justify-content: center; color: var(--faint); }
.story-arrow .vx-ic { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .story-steps { grid-template-columns: 1fr 1fr; }
  .story-arrow { display: none; }
}
@media (max-width: 520px) {
  .story-steps { grid-template-columns: 1fr; }
}
