/* ============================================================
   GigFrame — Marketing site styles
   Built on tokens.css. Dark-first, editorial. Violet = fill only.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stage-bg);
  color: var(--on-background);
  font-family: var(--font-mono);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent-violet); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* subtle engineering grid, fixed behind everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 0;
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.wrap-narrow { max-width: 860px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

section { position: relative; z-index: 1; }

/* eyebrow label — mono caps with index */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent-violet-bright);
  margin: 0 0 22px;
}
.eyebrow .idx {
  font-size: 11px; color: var(--primary);
  border: 1px solid var(--accent-violet-dim); border-radius: var(--r-full);
  padding: 3px 9px; letter-spacing: 1.5px;
}
.eyebrow .line { width: 40px; height: 1px; background: var(--accent-violet-dim); }

/* headings */
h1, h2, h3, h4 { font-family: var(--font-display); color: #fff; margin: 0; line-height: 1.04; letter-spacing: -.02em; font-weight: 700; }
.h-display { font-size: clamp(44px, 7vw, 92px); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.h-section { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.025em; line-height: 1.02; }
.h-sub     { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.015em; }

.lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: var(--on-surface-variant); }
.lead-tight { max-width: 56ch; }
p.body { color: var(--on-surface-variant); font-size: 15px; line-height: 1.75; }
.mono-note { font-family: var(--font-mono); font-size: 12px; letter-spacing: .4px; color: var(--outline); }
.accent { color: var(--primary); }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 11px; }
.wordmark .mark { width: 32px; height: 32px; flex: none; display: block; }
.wordmark .wm-text { font-family: var(--font-display); font-size: 21px; letter-spacing: -.018em; color: #fff; line-height: 1; }
.wordmark .wm-text .gig { font-weight: 800; letter-spacing: -.035em; }
.wordmark .wm-text .frame { font-weight: 500; letter-spacing: .012em; }
.wordmark.lg .mark { width: 44px; height: 44px; }
.wordmark.lg .wm-text { font-size: 30px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: .3px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r-full); border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  transition: background .16s var(--ease-out), box-shadow .16s, border-color .16s, color .16s, transform .08s;
  user-select: none; background: none; color: inherit; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent-violet); color: #fff; }
.btn-primary:hover { background: #8B49F5; box-shadow: 0 0 0 4px rgba(124,58,237,.22), 0 8px 30px rgba(124,58,237,.34); }
.btn-primary:active { background: var(--accent-violet-dim); }
.btn-secondary { background: transparent; border-color: var(--outline); color: var(--primary); }
.btn-secondary:hover { background: rgba(212,187,255,.08); border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); padding: 0 14px; }
.btn-ghost:hover { background: rgba(212,187,255,.08); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,13,19,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .3px; color: var(--on-surface-variant);
  padding: 8px 14px; border-radius: var(--r-sm); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--on-surface); background: rgba(255,255,255,.04); }
.nav-links a.active { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: var(--r-sm); border: 1px solid var(--obs-border);
    background: var(--sc-low); color: var(--on-surface); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
}
/* mobile drawer */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }
.mobile-menu {
  border-bottom: 1px solid rgba(255,255,255,.06); background: var(--sc-lowest);
  position: sticky; top: 72px; z-index: 49;
}
.mobile-menu a {
  display: block; padding: 16px 32px; font-family: var(--font-mono); font-size: 15px;
  color: var(--on-surface-variant); border-top: 1px solid rgba(255,255,255,.04);
}
.mobile-menu a:first-child { border-top: 0; }
.mobile-menu .btn { margin: 16px 32px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,13,19,.55) 0%, rgba(15,13,19,.35) 35%, rgba(15,13,19,.82) 80%, var(--stage-bg) 100%),
    linear-gradient(90deg, rgba(15,13,19,.92) 0%, rgba(15,13,19,.5) 50%, rgba(15,13,19,.2) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: clamp(64px, 12vh, 150px) 0 clamp(72px, 12vh, 130px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero-copy { max-width: 660px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 48ch; margin-bottom: 36px; }
.hero .btn-row { margin-bottom: 24px; }
.hero-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; color: var(--outline); letter-spacing: .3px; }
.hero-foot .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--outline-variant); }

/* ---------- Phone frame ---------- */
.phone {
  position: relative; width: 280px; aspect-ratio: 9 / 19.5; flex: none;
  border-radius: 38px; padding: 11px;
  background: linear-gradient(150deg, #2a2733, #131019);
  box-shadow: var(--elev-3), 0 0 0 1px rgba(255,255,255,.06), 0 40px 80px rgba(0,0,0,.6);
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; border-radius: var(--r-full); background: #0a0810; z-index: 3;
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
  background: var(--stage-bg); position: relative;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone.float { animation: phonefloat 6s ease-in-out infinite; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes phonefloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(-1deg); } }
}
.hero-phone-wrap { display: flex; justify-content: center; }
@media (max-width: 980px) { .hero-copy { text-align: left; } .phone { width: 248px; } .hero .lead { max-width: none; } }

/* ---------- Section scaffolding ---------- */
.band { padding: clamp(72px, 11vh, 128px) 0; }
.band.alt { background: var(--stage-surface); border-top: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.04); }
.band.tight { padding: clamp(48px, 7vh, 84px) 0; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head .lead { margin-top: 22px; }

/* ---------- Feature split rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(72px, 10vh, 128px); }
.feature-row.flip .feature-media { order: 2; }
@media (max-width: 900px) { .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 36px; } .feature-row.flip .feature-media { order: 0; } }
.feature-copy h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 18px; letter-spacing: -.02em; }
.feature-copy .lead { margin-bottom: 24px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 14px; color: var(--on-surface-variant); line-height: 1.6; }
.feature-list li svg { width: 19px; height: 19px; flex: none; margin-top: 1px; stroke: var(--accent-violet-bright); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-media { position: relative; }
.media-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--obs-border); box-shadow: var(--elev-3);
  background: var(--stage-surface);
}
.media-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.media-frame.tall img { aspect-ratio: 4 / 3; }
.media-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--obs-text); background: rgba(15,13,19,.72); backdrop-filter: blur(6px);
  border: 1px solid var(--obs-border); border-radius: var(--r-full); padding: 6px 12px;
}

/* ---------- Benefit card grid ---------- */
.card-grid { display: grid; gap: 20px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .card-grid.cols-3 { grid-template-columns: 1fr; } .card-grid.cols-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--sc-low); border: 1px solid var(--obs-border); border-radius: var(--r-lg);
  padding: 30px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .18s, transform .18s, background .18s;
}
.card:hover { border-color: var(--accent-violet-dim); transform: translateY(-3px); }
.card .ic {
  width: 46px; height: 46px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center; background: rgba(124,58,237,.14); border: 1px solid var(--accent-violet-dim);
}
.card .ic svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h4 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 13.5px; color: var(--on-surface-variant); line-height: 1.65; }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--obs-border); border: 1px solid var(--obs-border); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--stage-surface); padding: 32px 26px; display: flex; flex-direction: column; gap: 8px; }
.stat .num { font-family: var(--font-mono); font-weight: 500; font-size: clamp(30px, 4vw, 44px); letter-spacing: -2px; color: var(--primary); line-height: 1; }
.stat .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--outline); }

/* ---------- Quote / social proof ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote {
  background: var(--sc-low); border: 1px solid var(--obs-border); border-radius: var(--r-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.quote p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--on-surface); font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-violet), var(--brand-violet-deep)); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: #fff; flex: none; }
.quote .who .nm { font-family: var(--font-mono); font-size: 13px; color: var(--on-surface); }
.quote .who .role { font-family: var(--font-mono); font-size: 11px; color: var(--outline); letter-spacing: .3px; }

/* ---------- Placeholder note ---------- */
.placeholder-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px; color: var(--outline);
  border: 1px dashed var(--obs-border); border-radius: var(--r-full); padding: 6px 13px;
}
.placeholder-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sync-pending); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(48px, 7vw, 80px); background: linear-gradient(135deg, var(--accent-violet-dim) 0%, var(--brand-violet-deep) 60%, #2a0f52 100%); }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 20%, rgba(168,85,247,.45), transparent 55%); }
.cta-band-inner { position: relative; z-index: 1; max-width: 640px; }
.cta-band h2 { color: #fff; margin-bottom: 18px; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 16px; margin: 0 0 32px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-violet-deep); }
.cta-band .btn-primary:hover { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.cta-band .btn-secondary { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(255,255,255,.06); background: var(--sc-lowest); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--on-surface-variant); font-size: 13px; max-width: 30ch; margin: 18px 0 0; line-height: 1.6; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--outline); margin: 0 0 16px; }
.footer-col a { display: block; font-family: var(--font-mono); font-size: 13.5px; color: var(--on-surface-variant); padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--primary); }
.footer-bot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-bot .meta { font-family: var(--font-mono); font-size: 12px; color: var(--outline); letter-spacing: .3px; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
}

/* beat pulse on mark */
@media (prefers-reduced-motion: no-preference) {
  .beat-pulse { animation: beatpulse var(--beat-bpm) var(--ease-out) infinite; transform-origin: center; }
  @keyframes beatpulse { 0%,100% { transform: scale(1); } 45% { transform: scale(1.04); } }
}
