/* ===========================================================
   ServiceGeni — shared chrome for the standalone content pages
   (why-servicegeni.html, about.html, privacy.html, terms.html)
   Mirrors the tokens already used inline on index.html.
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #000; color: #f1f5f9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #8b5cf6; }
a { color: inherit; text-decoration: none; }

/* ---- glass (same recipe as the hero nav) ---- */
.liquid-glass {
  background: rgba(0,0,0,.4); background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: none; box-shadow: inset 0 1px 1px rgba(255,255,255,.1);
  position: relative; overflow: hidden;
}
.liquid-glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,.1) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,.1) 80%, rgba(255,255,255,.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* ---- nav ---- */
.nav {
  position: fixed; top: 24px; left: clamp(18px,4vw,56px); right: clamp(18px,4vw,56px); z-index: 1000;
  border-radius: 12px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { font-size: 24px; font-weight: 600; letter-spacing: -.02em; position: relative; z-index: 1; }
.nav__brand.brand-logo { display: inline-flex; align-items: center; gap: clamp(5px,.7vw,8px); }
.nav__brand .brand-icon {
  font-size: clamp(17px,2vw,22px); width: 1.1em; height: 1.1em; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  background: linear-gradient(135deg,#9b7cff 0%,#7c3aed 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: brandRotate 10s linear infinite;
}
.nav__brand .brand-text {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: 'Orbitron', sans-serif; font-size: clamp(18px,2.2vw,24px); font-weight: 700;
  letter-spacing: -.02em; white-space: nowrap;
  background: linear-gradient(90deg,#fff 0%,#fff 70%,#9b7cff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav__brand .text-glow {
  color: #9b7cff; -webkit-text-fill-color: #9b7cff; background: none;
  -webkit-background-clip: unset; background-clip: unset;
  text-shadow: 0 0 20px rgba(155,124,255,.55); animation: brandGlow 2s ease-in-out infinite alternate;
}
@keyframes brandRotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes brandGlow {
  from { text-shadow: 0 0 10px rgba(155,124,255,.5), 0 0 20px rgba(155,124,255,.35); color: #9b7cff; }
  to   { text-shadow: 0 0 20px rgba(155,124,255,.82), 0 0 30px rgba(124,92,255,.55); color: #c4a8ff; }
}
.nav__links { display: flex; gap: 22px; font-size: 14px; position: relative; z-index: 1; }
.nav__links a { transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: #c4a8ff; }
.nav__cta {
  background: #fff; color: #000; padding: 8px 24px; border-radius: 8px; font-size: 14px; font-weight: 500;
  border: none; cursor: pointer; position: relative; z-index: 1; transition: background .2s; font-family: inherit;
}
.nav__cta:hover { background: #f3f4f6; }
@media (max-width: 860px) {
  .nav { top: 16px; left: 16px; right: 16px; padding: 8px 12px; }
  .nav__links { display: none; }
  .nav__cta { padding: 7px 16px; }
}

/* ---- page header ---- */
.pg-head {
  position: relative; overflow: hidden;
  padding: clamp(140px,15vw,190px) clamp(18px,4vw,56px) clamp(48px,6vw,80px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.pg-head::before {
  content: ''; position: absolute; left: 50%; top: -30%; transform: translateX(-50%);
  width: 900px; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124,58,237,.30), rgba(124,58,237,.06), transparent);
  filter: blur(30px);
}
.pg-head__inner { position: relative; max-width: 1340px; margin: 0 auto; }

/* ---- shared type ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 11.5px/1 'Space Grotesk'; letter-spacing: .16em; text-transform: uppercase;
  color: #a78bfa; margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #8b5cf6; box-shadow: 0 0 12px #8b5cf6;
}
h1.pg-title, h2.sec-title {
  font-family: 'Space Grotesk'; font-weight: 700; color: #fff;
  line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px;
}
h1.pg-title { font-size: clamp(32px,5.2vw,60px); }
h2.sec-title { font-size: clamp(27px,3.6vw,44px); font-weight: 600; }
.grad {
  background: linear-gradient(90deg,#a78bfa,#7c3aed);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lede { font-size: clamp(15px,1.2vw,18px); line-height: 1.7; color: #9aa6b8; max-width: 620px; margin: 0; }
.sec { max-width: 1340px; margin: 0 auto; padding: clamp(72px,9vw,120px) clamp(18px,4vw,56px); }
.sec--bordered { border-top: 1px solid rgba(255,255,255,.07); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 11px;
  font-family: 'Space Grotesk'; font-weight: 600; font-size: 15px; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .3s, background .2s;
}
.btn--solid {
  background: linear-gradient(135deg,#8b5cf6,#7c3aed); color: #fff;
  box-shadow: 0 10px 40px -12px rgba(139,92,246,.7);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 16px 52px -10px rgba(139,92,246,.95); }
.btn--ghost { background: #15161d; color: #ece8f5; border: 1px solid rgba(255,255,255,.12); }
.btn--ghost:hover { background: #1c1e28; }

/* ---- reveal ---- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.16,.84,.44,1);
}
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* ---- prose (privacy / terms) ---- */
.prose { max-width: 820px; }
.prose h2 {
  font-family: 'Space Grotesk'; font-weight: 600; font-size: 22px; color: #fff;
  margin: 48px 0 14px; letter-spacing: -.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: 'Space Grotesk'; font-weight: 600; font-size: 16px; color: #e7e9ef; margin: 26px 0 10px; }
.prose p, .prose li { font-size: 15px; line-height: 1.75; color: #9aa6b8; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 18px; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.prose li::marker { color: #a78bfa; }
.prose a { color: #a78bfa; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #e7e9ef; font-weight: 600; }
.prose__meta {
  font: 600 12px/1 'Space Grotesk'; letter-spacing: .1em; text-transform: uppercase;
  color: #6b7488; margin-bottom: 36px;
}

/* ---- footer ---- */
.ft { border-top: 1px solid rgba(255,255,255,.1); background: #05060c; }
.ft__grid {
  max-width: 1340px; margin: 0 auto;
  padding: clamp(48px,6vw,72px) clamp(18px,4vw,56px) 36px;
  display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3,minmax(0,1fr)); gap: 40px 24px;
}
@media (max-width: 860px) { .ft__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ft__grid { grid-template-columns: 1fr; } }
.ft__head {
  font: 600 12px/1 'Space Grotesk'; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
}
.ft__col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.ft__col a { color: #9aa6b8; transition: color .2s; }
.ft__col a:hover { color: #c4a8ff; }
/* desktop: spread the middle link columns to fill height; the last (Industries)
   stays grouped at top so its two links sit together, not split top-and-bottom */
@media (min-width: 861px) {
  .ft__grid > div:not(:first-child):not(:last-child) { display: flex; flex-direction: column; }
  .ft__grid > div:not(:first-child):not(:last-child) .ft__col { flex: 1; justify-content: space-between; }
}
.ft__social {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #c7cedb; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
}
/* phone + social on one row in the brand column */
.ft__contactrow { display: flex; align-items: center; gap: 26px; margin: 0; }
.ft__phone {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-size: 15px; color: #c7cedb; text-decoration: none; transition: color .2s;
}
.ft__phone:hover { color: #fff; }
.ft__phone i { color: #9b7cff; font-size: 14px; }
.ft__bar { border-top: 1px solid rgba(255,255,255,.08); }
.ft__bar > div {
  max-width: 1340px; margin: 0 auto; padding: 22px clamp(18px,4vw,56px);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-size: 13px; color: #6b7488;
}
.ft__bar a { color: #6b7488; }
.ft__bar a:hover { color: #9aa6b8; }

/* ---- mobile hamburger (about / privacy / terms / why-servicegeni) ---- */
.nav__burger{ display:none; background:none; border:none; color:#fff; font-size:19px; cursor:pointer;
  padding:6px 8px; line-height:1; position:relative; z-index:2; }
@media (max-width:860px){
  .nav{ flex-wrap:wrap; }
  .nav__burger{ display:inline-flex; align-items:center; order:3; }
  .nav__cta{ order:2; }
  .nav__links{ order:4; flex-basis:100%; }
  .nav__links.is-open{ display:flex !important; flex-direction:column; gap:2px; width:100%;
    margin-top:10px; padding-top:10px; border-top:1px solid rgba(255,255,255,.12); }
  .nav__links.is-open a{ padding:11px 6px; border-radius:8px; font-size:15px; }
  .nav__links.is-open a:hover{ background:rgba(139,92,246,.16); }
}
