/* ============================================================
   VertexStudio — Page sections & motion
   Hero, metrics, platform tabs, architecture, pipeline,
   industries, values, CTA, contact, scroll reveal, keyframes.
   ============================================================ */

/* ─── HERO ─── */
#hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: .9; }
#hero {
  min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-h) + 70px) var(--gutter) 90px; position: relative; overflow: hidden;
}
#hero > * { position: relative; z-index: 1; }
/* cursor spotlight (driven by --spot-x/--spot-y) */
#hero::after, .page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(440px circle at var(--spot-x, 50%) var(--spot-y, 35%), rgba(139, 92, 246, .12), transparent 65%);
}

h1.hero-title {
  font-family: var(--font-display); font-size: var(--fs-display); font-weight: 600; line-height: 1;
  letter-spacing: -.04em; max-width: 16ch; margin-top: 26px;
}
.typewriter-wrap { display: inline-block; position: relative; }
#typewriter { color: var(--brand-2); -webkit-text-fill-color: var(--brand-2); }
.cursor-blink { display: inline-block; width: 3px; height: .82em; background: var(--brand-2); margin-left: 4px; vertical-align: -.08em; border-radius: 2px; animation: cblink 1.05s steps(1) infinite; }
.hero-sub { margin-top: 26px; font-size: var(--fs-lead); color: var(--text-2); max-width: 60ch; line-height: 1.7; font-weight: 300; }
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-metrics {
  margin-top: 72px; display: flex; flex-wrap: wrap; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  backdrop-filter: blur(12px); background: var(--surface);
}
.hm-item { padding: 26px 40px; text-align: center; position: relative; }
.hm-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.hm-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hm-label { font-size: var(--fs-xs); color: var(--muted); margin-top: 7px; text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-mono); }

/* float badges */
.float-badge { position: absolute; z-index: 2; background: rgba(8, 8, 16, .8); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 16px; backdrop-filter: blur(14px); font-size: var(--fs-xs); font-weight: 500; color: var(--text-2); pointer-events: none; animation: float 6s ease-in-out infinite; }
.float-badge strong { color: var(--text); }
.fb1 { bottom: 16%; left: 6%; animation-delay: 0s; } .fb2 { bottom: 20%; right: 6%; animation-delay: 2s; } .fb3 { top: 26%; left: 3%; animation-delay: 1s; }
.fb-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; box-shadow: 0 0 8px currentColor; }
.fb-green { background: var(--emerald); color: var(--emerald); } .fb-blue { background: var(--cyan); color: var(--cyan); } .fb-purple { background: var(--violet); color: var(--violet); }

/* page hero (interior) */
.page-hero { text-align: center; padding: calc(var(--nav-h) + 86px) var(--gutter) 44px; position: relative; overflow: hidden; }
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 600; letter-spacing: -.03em; line-height: 1.04; max-width: 18ch; margin: 18px auto 0; }
.page-hero .section-p { margin: 20px auto 0; }

/* ─── PLATFORM TABS ─── */
.platform-layout { display: grid; grid-template-columns: 1fr 1.45fr; gap: 56px; align-items: start; margin-top: 56px; }
.tab-list { display: flex; flex-direction: column; gap: 6px; }
.tab-btn { position: relative; background: transparent; border: 1px solid transparent; color: var(--muted); text-align: left; padding: 18px 22px; border-radius: var(--r); transition: all .25s var(--ease); overflow: hidden; }
.tab-btn::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 3px; background: var(--grad-brand); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); }
.tab-btn:hover { color: var(--text-2); background: var(--surface); }
.tab-btn.active { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.tab-btn.active::before { transform: scaleY(1); }
.tab-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.tab-title .vx-ic { width: 18px; height: 18px; color: var(--brand-2); }
.tab-sub { font-size: var(--fs-sm); line-height: 1.55; margin-top: 6px; color: var(--muted); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s var(--ease), opacity .3s, margin .3s; }
.tab-btn.active .tab-sub { max-height: 120px; opacity: 1; margin-top: 8px; }
.tab-panel { display: none; } .tab-panel.active { display: block; animation: fadeUp .4s var(--ease); }

/* ─── ARCHITECTURE ─── */
.arch-svg-wrap { margin-top: 56px; display: flex; justify-content: center; }
.arch-svg { width: 100%; max-width: 900px; }

/* ─── METRICS ─── */
#metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1000px; margin: 56px auto 0; }
.met-card { text-align: center; }
.met-num { font-family: var(--font-display); font-size: 2.9rem; font-weight: 600; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.met-suffix { font-size: 1.7rem; }
.met-label { color: var(--muted); font-size: var(--fs-sm); margin-top: 10px; line-height: 1.4; }
.met-bar { height: 3px; background: var(--line); border-radius: 4px; margin-top: 16px; overflow: hidden; }
.met-bar-fill { height: 100%; border-radius: 4px; background: var(--grad-brand); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.met-bar-fill.animated { transform: scaleX(1); }

/* ─── PIPELINE ─── */
#pipeline { overflow: hidden; }
.pipe-visual { margin-top: 56px; }
.pipe-steps { display: flex; position: relative; }
.pipe-steps::before { content: ''; position: absolute; top: 34px; left: 60px; right: 60px; height: 1px; background: var(--grad-brand); opacity: .5; }
.pipe-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; padding: 0 16px; }
.pipe-node { width: 68px; height: 68px; border-radius: 20px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; background: var(--bg-2); margin-bottom: 22px; transition: all .4s var(--ease); color: var(--brand-2); }
.pipe-node .vx-ic { width: 26px; height: 26px; }
.pipe-step:hover .pipe-node { transform: translateY(-4px) scale(1.06); border-color: var(--brand); box-shadow: 0 0 30px -4px rgba(139, 92, 246, .5); }
.pipe-step-title { font-family: var(--font-display); font-size: .95rem; font-weight: 600; margin-bottom: 7px; }
.pipe-step-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; font-weight: 300; }

/* ─── TALENT ─── */
.talent-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.talent-perks { display: flex; flex-direction: column; gap: 22px; margin-top: 38px; }
.tp { display: flex; gap: 16px; align-items: flex-start; }
.tp-ic { width: 44px; height: 44px; min-width: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface-2); color: var(--brand-2); }
.tp-ic .vx-ic { width: 20px; height: 20px; }
.tp-h { font-family: var(--font-display); font-weight: 600; font-size: .98rem; margin-bottom: 4px; }
.tp-d { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; font-weight: 300; }

/* ─── INDUSTRIES ─── */
#industries { text-align: center; }
.ind-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 56px; }
.ind-card { padding: 28px 16px; text-align: center; }
.ind-card .icon-tile { margin: 0 auto 14px; }
.ind-label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.ind-card:hover .ind-label { color: var(--text); }

/* ─── VALUES ─── */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.value-card { padding: 32px 28px; }
.value-card .icon-tile { margin-bottom: 18px; }
.value-card h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; margin-bottom: 10px; }
.value-card p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.7; font-weight: 300; }

/* ─── CTA ─── */
#cta { text-align: center; position: relative; overflow: hidden; }
.cta-box { position: relative; max-width: 960px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(120% 140% at 50% 0%, rgba(139, 92, 246, .14), transparent 60%), var(--surface); }
#cta h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.03em; max-width: 18ch; margin: 0 auto 18px; position: relative; z-index: 1; }
#cta p { color: var(--text-2); font-size: var(--fs-lead); max-width: 52ch; margin: 0 auto 36px; position: relative; z-index: 1; font-weight: 300; }
#cta .hero-actions { position: relative; z-index: 1; }

/* ─── CONTACT ─── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.ci-row { display: flex; gap: 15px; align-items: flex-start; }
.ci-ic { width: 44px; height: 44px; min-width: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--brand-2); }
.ci-ic .vx-ic { width: 20px; height: 20px; }
.ci-h { font-family: var(--font-display); font-weight: 600; font-size: .96rem; margin-bottom: 4px; }
.ci-d { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; font-weight: 300; }
.ci-d a { color: var(--brand-2); }

/* ─── SCROLL REVEAL ─── */
.sr { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.sr-left { opacity: 0; transform: translateX(-28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.sr-right { opacity: 0; transform: translateX(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.sr.visible, .sr-left.visible, .sr-right.visible { opacity: 1; transform: none; }
.sr-delay-1 { transition-delay: .08s; } .sr-delay-2 { transition-delay: .16s; }
.sr-delay-3 { transition-delay: .24s; } .sr-delay-4 { transition-delay: .32s; } .sr-delay-5 { transition-delay: .4s; }

/* ─── KEYFRAMES ─── */
@keyframes cblink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .platform-layout { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .talent-layout, .contact-layout { grid-template-columns: 1fr; gap: 44px; }
  .hero-metrics { flex-direction: column; }
  .hm-item::after { display: none; }
  .pipe-steps { flex-direction: column; align-items: center; gap: 28px; }
  .pipe-steps::before { display: none; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
}
