/* ============================================================
   VertexStudio — Components
   Nav, buttons, cards (incl. bento), icon tiles, pills,
   marquee, code window, forms, footer, scroll progress.
   ============================================================ */

/* ─── SCROLL PROGRESS ─── */
#scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 300;
  transform: scaleX(0); transform-origin: left;
  background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(139, 92, 246, .7); will-change: transform;
}

/* ─── NAVBAR ─── */
nav#navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--nav-h);
  padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
nav#navbar.scrolled {
  background: rgba(8, 8, 16, .72); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

/* logo */
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); }
.logo-mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 2px 10px rgba(139, 92, 246, .45)); transition: transform .25s var(--ease), filter .25s; }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.06); filter: drop-shadow(0 3px 16px rgba(34, 211, 238, .6)); }
.logo-word { font-size: 1.34rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
/* footer signature reads a touch larger */
footer .logo-mark { width: 44px; height: 44px; }
footer .logo-word { font-size: 1.5rem; }
.logo-word b { font-weight: 600; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo-word span { color: var(--muted); font-weight: 500; }

/* links with sliding indicator */
.nav-links { position: relative; display: flex; gap: 4px; list-style: none; }
.nav-links a {
  position: relative; z-index: 1; display: block; padding: 8px 16px; border-radius: var(--r-pill);
  color: var(--muted); font-size: var(--fs-sm); font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-indicator {
  position: absolute; z-index: 0; top: 0; height: 100%; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform .35s var(--spring), width .35s var(--spring), opacity .3s;
  opacity: 0; pointer-events: none;
}
.nav-right { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); width: 40px; height: 40px; border-radius: var(--r-sm); }
.nav-toggle:hover { background: var(--surface-2); }

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 199;
  background: rgba(8, 8, 16, .97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: none; flex-direction: column; padding: 14px var(--gutter) 26px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-2); font-size: 1rem; font-weight: 500; padding: 15px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a.active { color: var(--text); }
.mobile-menu .btn-lg { margin-top: 18px; justify-content: center; }

/* ─── BUTTONS ─── */
.btn-nav, .btn-lg {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .2s;
}
.btn-nav { padding: 9px 18px; border-radius: var(--r-pill); font-size: var(--fs-sm); }
.btn-lg { padding: 14px 26px; border-radius: var(--r-pill); font-size: .98rem; }
.btn-nav:active, .btn-lg:active { transform: translateY(0) scale(.97); }

.btn-nav-ghost, .btn-ghost-lg { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-nav-ghost:hover, .btn-ghost-lg:hover { border-color: var(--line-strong); background: var(--surface-3); }
.btn-ghost-lg:hover { transform: translateY(-2px); }

.btn-nav-solid, .btn-primary-lg {
  position: relative; color: var(--on-brand); border: none; background: var(--grad-brand);
  box-shadow: 0 6px 20px -6px rgba(124, 92, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-nav-solid:hover { box-shadow: 0 10px 28px -6px rgba(124, 92, 255, .8); transform: translateY(-1px); }
.btn-primary-lg:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(124, 92, 255, .85); }
/* sheen */
.btn-primary-lg::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .7s var(--ease);
}
.btn-primary-lg:hover::after { transform: translateX(130%); }
.btn-lg .vx-ic { font-size: 1.05em; }

/* ─── PILL / CHIP ─── */
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 8px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 500; color: var(--text-2); letter-spacing: .01em;
}
.pill-dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--grad-brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; color: var(--on-brand);
}
.chip {
  padding: 4px 11px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 500;
  font-family: var(--font-mono); border: 1px solid var(--line); color: var(--text-2); background: var(--surface);
}

/* ─── ICON TILE (replaces emoji blobs) ─── */
.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 1.5rem; border: 1px solid var(--line);
  background: var(--surface-2); position: relative; overflow: hidden;
}
.icon-tile .vx-ic { width: 24px; height: 24px; position: relative; z-index: 1; }
.icon-tile::before { content: ''; position: absolute; inset: 0; opacity: .5; background: radial-gradient(circle at 50% 0%, var(--tile-c, var(--brand)), transparent 70%); }
.tile-violet  { --tile-c: rgba(139, 92, 246, .4); color: #c4b5fd; }
.tile-cyan    { --tile-c: rgba(34, 211, 238, .35); color: #67e8f9; }
.tile-indigo  { --tile-c: rgba(99, 102, 241, .4); color: #a5b4fc; }
.tile-emerald { --tile-c: rgba(52, 211, 153, .32); color: #6ee7b7; }
.tile-amber   { --tile-c: rgba(251, 191, 36, .3);  color: #fcd34d; }
.tile-rose    { --tile-c: rgba(251, 113, 133, .3); color: #fda4af; }
.tile-pink    { --tile-c: rgba(232, 121, 249, .3); color: #f0abfc; }

/* ─── CARD (base) ─── */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s, background .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg); background: var(--surface-2); }
/* spotlight glow follows cursor (set by effects.js) */
.card.spotlight::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .12), transparent 60%);
}
.card.spotlight:hover::before { opacity: 1; }
.card-top-line { position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.card:hover .card-top-line { transform: scaleX(1); }

/* ─── BENTO GRID ─── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 56px; }
.bento .card { padding: 28px; display: flex; flex-direction: column; }
.bento .card h3 { font-size: var(--fs-h3); font-weight: 600; margin: 18px 0 8px; }
.bento .card p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.65; font-weight: 300; }
.bento .chip-row { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; }
.row-2 { grid-row: span 2; }

/* ─── SOLUTION CARD (grid of features) ─── */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.sol-card { padding: 32px 30px; display: flex; flex-direction: column; }
.sol-card h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; margin: 20px 0 10px; }
.sol-card p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.65; font-weight: 300; }
.sol-chips { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }

/* ─── MARQUEE ─── */
.marquee-section { padding: 28px 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 9px; white-space: nowrap; color: var(--muted); font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 500; }
.marquee-item .vx-ic { width: 16px; height: 16px; color: var(--brand-2); }

/* ─── CODE WINDOW ─── */
.code-window { background: rgba(4, 4, 10, .8); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; font-family: var(--font-mono); font-size: .78rem; line-height: 1.75; box-shadow: var(--shadow-lg); }
.cw-header { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.cw-dot { width: 11px; height: 11px; border-radius: 50%; }
.cw-file { margin-left: 8px; color: var(--muted); font-size: var(--fs-xs); }
.cw-body { padding: 22px; overflow-x: auto; }
.cw-body pre { white-space: pre; }
.ck { color: #c4b5fd; } .cv { color: #6ee7b7; } .cs { color: #f0abfc; }
.cm { color: #565670; } .ci { color: #7dd3fc; } .co { color: #fcd34d; }

/* ─── EXPERT CARDS ─── */
.experts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.exp-card { padding: 30px 26px; }
.exp-role { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.exp-title { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; color: var(--brand-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.exp-bio { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.65; font-weight: 300; }
.exp-skills { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.sk-tag { font-size: var(--fs-xs); font-family: var(--font-mono); padding: 3px 10px; border-radius: var(--r-pill); background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .22); color: #c4b5fd; }

/* ─── FORMS ─── */
.form-card { padding: 40px; }
.tf-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: 6px; }
.tf-sub { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 26px; }
.fg { margin-bottom: 15px; }
.fg label { display: block; font-size: var(--fs-xs); color: var(--text-2); font-weight: 500; margin-bottom: 7px; }
.fg input, .fg select, .fg textarea {
  width: 100%; background: rgba(4, 4, 10, .5); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 12px 15px; color: var(--text); font-size: var(--fs-sm); font-family: var(--font-sans);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.fg textarea { resize: vertical; min-height: 110px; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
.fg select option { background: #0f0f1c; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-submit {
  width: 100%; padding: 14px; border-radius: var(--r-sm); background: var(--grad-brand); color: var(--on-brand);
  border: none; font-size: 1rem; font-weight: 700; font-family: var(--font-sans); margin-top: 6px;
  transition: transform .18s var(--ease), box-shadow .25s; box-shadow: 0 8px 24px -8px rgba(124, 92, 255, .7);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(124, 92, 255, .85); }
.btn-submit:active { transform: scale(.98); }
.form-note { margin-top: 15px; font-size: var(--fs-xs); color: var(--muted); text-align: center; }

/* honeypot (hidden from humans, catches bots) */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* submit status */
.form-status { margin-top: 16px; font-size: var(--fs-sm); line-height: 1.5; display: none; }
.form-status.ok, .form-status.err { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm); }
.form-status.ok { display: flex; color: #6ee7b7; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .25); font-weight: 500; }
.form-status.err { display: flex; color: #fda4af; background: rgba(251, 113, 133, .08); border: 1px solid rgba(251, 113, 133, .25); }
.form-status .fs-ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; min-width: 22px; border-radius: 50%; background: var(--emerald); color: #04130c; font-weight: 700; font-size: .8rem; }

/* ─── FOOTER ─── */
footer { background: linear-gradient(180deg, transparent, rgba(10, 10, 20, .6)); border-top: 1px solid var(--line); padding: 72px var(--gutter) 36px; }
.ft-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }
.ft-brand p { color: var(--muted); font-size: var(--fs-sm); margin-top: 16px; line-height: 1.7; max-width: 260px; font-weight: 300; }
.ft-col h5 { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 18px; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.ft-col ul a { color: var(--text-2); font-size: var(--fs-sm); transition: color .2s; }
.ft-col ul a:hover { color: var(--text); }
.ft-bottom { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.ft-bottom p { color: var(--muted); font-size: var(--fs-xs); }
.ft-legal { display: flex; gap: 22px; }
.ft-legal a { color: var(--muted); font-size: var(--fs-xs); }
.ft-legal a:hover { color: var(--text); }
.socials { display: flex; gap: 9px; }
.social-btn { width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: var(--fs-sm); transition: all .2s; }
.social-btn:hover { border-color: var(--line-strong); color: var(--text); transform: translateY(-2px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .sol-grid, .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card { grid-column: span 1 !important; grid-row: auto !important; }
  .experts-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-right .btn-nav-ghost { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .sol-grid, .bento { grid-template-columns: 1fr; }
  .experts-grid { grid-template-columns: 1fr; }
  .fg-row { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
}
