/* ==========================================================================
   Live Growth Tracking — shared design system
   Used by: index.html, audit.html, services.html, demos.html
   Page-unique visuals (funnel, timeline, analytics, scanner, demos) live in
   each page's inline <style> block.
   ========================================================================== */

*,
*::before,
*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;color-scheme:dark;overflow-x:hidden}

:root{
  --bg:#080808;
  --bg-soft:#0d0d0f;
  --surface:#141417;
  --surface-2:#1a1b1f;
  --surface-3:#111214;
  --white:#f4efe7;
  --muted:rgba(244,239,231,0.72);
  --muted-2:rgba(244,239,231,0.48);
  --gold:#c8872a;
  --gold-hot:#e5a13a;
  --gold-soft:rgba(200,135,42,0.12);
  --gold-border:rgba(200,135,42,0.28);
  --line:rgba(244,239,231,0.1);
  --line-2:rgba(244,239,231,0.16);
  --red:#c1554b;
  --orange:#d29235;
  --green:#4aa26f;
  --blue:#3f5f95;
  --shadow-sm:0 8px 24px rgba(0,0,0,0.2);
  --shadow-md:0 18px 48px rgba(0,0,0,0.32);
  --shadow-lg:0 28px 70px rgba(0,0,0,0.42);
  --display:'Oswald',sans-serif;
  --body:'Manrope',sans-serif;
  --serif:'Source Serif 4',serif;
  --mono:'Space Mono',monospace;
}

body{
  background:var(--bg);
  color:var(--white);
  font-family:var(--body);
  line-height:1.6;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body.menu-open{overflow:hidden}
a{color:inherit}

.bg-mesh{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(circle at 12% 10%,rgba(200,135,42,0.12) 0%,transparent 28%),
    radial-gradient(circle at 82% 82%,rgba(200,135,42,0.08) 0%,transparent 24%),
    linear-gradient(180deg,#090909 0%,#0b0b0d 100%);
}
.page-wrap{position:relative;z-index:1}
.container{width:min(1180px,calc(100% - 32px));margin:0 auto}

/* ---- scroll reveal ---- */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
.reveal.vis{opacity:1;transform:none}

/* ---- shared bits ---- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  font-family:var(--mono);
  font-size:.68rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--gold);
}
.pulse{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 0 rgba(200,135,42,0.4);
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%{transform:scale(.95);box-shadow:0 0 0 0 rgba(200,135,42,0.4)}
  70%{transform:scale(1);box-shadow:0 0 0 12px rgba(200,135,42,0)}
  100%{transform:scale(.95);box-shadow:0 0 0 0 rgba(200,135,42,0)}
}

.section{padding:5rem 0;scroll-margin-top:88px}
.section-tight{padding-top:4rem;padding-bottom:4rem}
.section-head{text-align:center;max-width:760px;margin:0 auto 2.5rem}
.section-head h2{
  font-family:var(--display);
  font-size:clamp(1.8rem,4vw,3rem);
  font-weight:500;
  line-height:1.04;
  text-transform:uppercase;
  margin:.8rem 0;
}
.section-head h2 em{
  font-family:var(--serif);
  font-style:italic;
  color:var(--gold);
  font-weight:500;
  text-transform:none;
}
.section-head p{color:var(--muted);font-size:1rem;max-width:640px;margin:0 auto}
.text-center{text-align:center}
.mt-2{margin-top:2rem}

/* ---- buttons ---- */
.btn-primary,
.btn-secondary,
.btn-inline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease,opacity .18s ease,background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
}
.btn-primary{
  padding:0 1.4rem;
  background:linear-gradient(135deg,var(--gold-hot),var(--gold));
  color:#fff;
  border:none;
  box-shadow:0 8px 24px rgba(200,135,42,0.34);
}
.btn-primary:hover,
.btn-secondary:hover,
.btn-inline:hover{transform:translateY(-1px)}
.btn-primary:hover{box-shadow:0 12px 32px rgba(200,135,42,0.46)}
.btn-secondary{
  padding:0 1.2rem;
  border:1px solid var(--gold-border);
  color:var(--white);
  background:rgba(255,255,255,0.02);
}
.btn-secondary:hover{border-color:var(--gold);color:var(--gold)}
.btn-inline{gap:.5rem;min-height:auto;padding:0;color:var(--gold);font-size:.92rem}

/* ---- nav ---- */
nav{
  position:fixed;
  inset:0 0 auto;
  z-index:500;
  background:rgba(8,8,8,0.78);
  backdrop-filter:blur(24px) saturate(160%);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.logo{
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  text-decoration:none;
  font-family:var(--display);
  letter-spacing:.03em;
  text-transform:uppercase;
}
.logo-diamond{
  width:10px;
  height:10px;
  border-radius:2px;
  background:linear-gradient(135deg,var(--gold-hot),var(--gold));
  transform:rotate(45deg);
  box-shadow:0 0 18px rgba(200,135,42,0.5);
}
.nav-links{display:flex;align-items:center;gap:1.4rem}
.nav-links a{text-decoration:none;color:var(--muted);font-size:.84rem;font-weight:700}
.nav-links a:hover,
.nav-links a.active{color:var(--gold)}
.nav-actions{display:flex;align-items:center;gap:.9rem}
.nav-phone{font-family:var(--mono);font-size:.8rem;text-decoration:none;color:var(--white);opacity:.86}
.nav-toggle{
  display:none;
  width:44px;height:44px;
  border:1px solid var(--line-2);
  border-radius:12px;
  background:rgba(255,255,255,0.02);
  color:var(--white);
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.nav-toggle svg{width:20px;height:20px}
/* mobile drawer */
.mobile-menu-backdrop{
  display:none;
  position:fixed;
  inset:0;
  z-index:510;
  background:rgba(0,0,0,0.58);
  opacity:0;
  transition:opacity .22s ease;
}
.mobile-menu{
  position:fixed;
  inset:0 auto 0 0;
  z-index:520;
  width:min(88vw,360px);
  transform:translateX(-104%);
  transition:transform .24s ease;
  pointer-events:none;
}
.mobile-menu-panel{
  position:relative;
  height:100%;
  display:flex;
  flex-direction:column;
  gap:1rem;
  padding:1.15rem 1.05rem 1.35rem;
  border-right:1px solid var(--gold-border);
  background:linear-gradient(180deg,rgba(13,13,15,0.98),rgba(8,8,8,0.98));
  box-shadow:36px 0 80px rgba(0,0,0,0.46);
  overflow-y:auto;
}
.mobile-menu.open{transform:translateX(0);pointer-events:auto}
.mobile-menu-backdrop.open{display:block;opacity:1}
.mobile-menu-close{
  align-self:flex-end;
  width:46px;height:46px;
  border:1px solid var(--line-2);
  border-radius:12px;
  background:rgba(255,255,255,0.03);
  color:var(--white);
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.mobile-menu-close svg{width:20px;height:20px}
.mobile-menu-phone{
  display:block;
  margin-top:.15rem;
  font-family:var(--display);
  font-size:1.65rem;
  line-height:1;
  letter-spacing:.02em;
  color:var(--white);
  text-decoration:none;
}
.mobile-menu-note{
  color:var(--muted);
  font-size:.92rem;
  line-height:1.5;
  padding-bottom:1rem;
  border-bottom:1px solid var(--line);
}
.mobile-menu-links{display:grid;gap:.1rem}
.mobile-menu-links a{
  display:flex;
  align-items:center;
  min-height:52px;
  text-decoration:none;
  color:var(--white);
  font-weight:700;
  border-bottom:1px solid var(--line);
}
.mobile-menu-links a:last-child{border-bottom:none}
.mobile-menu-links a.active{color:var(--gold)}
.mobile-menu-cta{width:100%;margin-top:.35rem}
.mobile-menu-fine{
  margin-top:auto;
  color:var(--muted-2);
  font-family:var(--mono);
  font-size:.7rem;
  letter-spacing:.04em;
}

/* ---- trust strip ---- */
.trust-strip{padding-top:1.2rem}
.trust-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1rem;
  flex-wrap:wrap;
  padding:1.15rem 0;
  border-top:1px solid rgba(200,135,42,0.16);
  border-bottom:1px solid rgba(200,135,42,0.16);
}
.trust-item{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  font-family:var(--mono);
  font-size:.72rem;
  color:var(--white);
  text-transform:uppercase;
}
.trust-note{margin-top:1rem;text-align:center;color:var(--muted);font-size:.78rem}

/* ---- guarantee / promise strip (index + services) ---- */
.guarantee-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  max-width:980px;
  margin:0 auto;
}
.guarantee-item{
  display:flex;
  align-items:flex-start;
  gap:.8rem;
  padding:1.1rem 1.2rem;
  border-radius:18px;
  border:1px solid var(--line-2);
  background:linear-gradient(180deg,rgba(26,27,31,0.96),rgba(18,19,22,0.96));
}
.guarantee-ico{
  flex-shrink:0;
  width:38px;height:38px;
  border-radius:11px;
  display:flex;align-items:center;justify-content:center;
  background:var(--gold-soft);
  border:1px solid var(--gold-border);
  color:var(--gold);
  font-size:1.05rem;
}
.guarantee-item strong{display:block;font-size:.92rem;margin-bottom:.15rem}
.guarantee-item p{color:var(--muted);font-size:.82rem;line-height:1.45}
.promise-badge{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.5rem .9rem;
  border-radius:999px;
  background:rgba(74,162,111,0.13);
  border:1px solid rgba(74,162,111,0.32);
  color:#7fd3a3;
  font-family:var(--mono);
  font-size:.72rem;
  letter-spacing:.04em;
}
.promise-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:#4aa26f}
@media (max-width:760px){
  .guarantee-strip{grid-template-columns:1fr}
}

/* ---- generic cards ---- */
.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem}
.card{
  padding:1.4rem;
  border-radius:20px;
  background:linear-gradient(180deg,rgba(26,27,31,0.96),rgba(18,19,22,0.96));
  border:1px solid var(--line-2);
  box-shadow:var(--shadow-sm);
  transition:border-color .25s ease,transform .25s ease,box-shadow .25s ease;
}
.card:hover{border-color:var(--gold-border);transform:translateY(-3px);box-shadow:0 20px 48px rgba(0,0,0,0.4),0 0 0 1px var(--gold-border)}
.card-icon{
  width:42px;height:42px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:1rem;
  background:var(--gold-soft);
  border:1px solid var(--gold-border);
  font-size:1.15rem;
}
.card h3{font-size:1rem;line-height:1.25;margin-bottom:.45rem}
.card p{color:var(--muted);font-size:.88rem}

/* ---- final CTA ---- */
.final-cta{padding-top:1rem}
.final-card{
  padding:2.6rem 1.5rem;
  border-radius:28px;
  border:1px solid var(--gold-border);
  background:linear-gradient(180deg,rgba(200,135,42,0.1),rgba(255,255,255,0.02));
  box-shadow:var(--shadow-md);
  text-align:center;
}
.final-card h2{
  margin:.8rem 0;
  font-family:var(--display);
  font-size:clamp(2rem,4vw,3.2rem);
  font-weight:500;
  line-height:1;
  text-transform:uppercase;
}
.final-card h2 em{font-family:var(--serif);font-style:italic;color:var(--gold);font-weight:500;text-transform:none}
.final-card p{color:var(--muted);max-width:540px;margin:0 auto 1.3rem}
.final-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:.8rem}
.final-fine{margin-top:1rem;color:var(--muted-2);font-family:var(--mono);font-size:.72rem}

/* ---- footer ---- */
footer{padding:4rem 0 1.4rem;border-top:1px solid rgba(200,135,42,0.16)}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:1.4rem}
.footer-brand p{max-width:360px;color:var(--muted);font-size:.88rem;margin:.8rem 0}
.footer-mono{font-family:var(--mono);font-size:.72rem;color:var(--muted-2)}
.footer-title{
  color:var(--gold);
  font-family:var(--mono);
  font-size:.66rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:.7rem;
}
.footer-col ul{list-style:none;display:grid;gap:.45rem}
.footer-col a{text-decoration:none;color:var(--muted);font-size:.84rem}
.footer-col a:hover{color:var(--gold)}
.footer-rule{margin:2rem 0 1rem;height:1px;background:rgba(200,135,42,0.16)}
.footer-bottom{
  display:flex;align-items:center;justify-content:space-between;
  gap:1rem;flex-wrap:wrap;
  color:var(--muted-2);
  font-family:var(--mono);
  font-size:.7rem;
}
.footer-bottom a{text-decoration:none;color:var(--muted-2)}
.footer-bottom a:hover{color:var(--gold)}

/* ---- sticky mobile CTA ---- */
.sticky-bar{
  display:none;
  position:fixed;
  inset:auto 0 0;
  z-index:320;
  padding:.7rem .85rem;
  gap:.6rem;
  background:rgba(8,8,8,0.96);
  backdrop-filter:blur(20px);
  border-top:1px solid var(--gold-border);
  transition:transform .2s ease;
}
.sticky-bar a{flex:1;min-height:48px}
body.menu-open .sticky-bar{transform:translateY(110%)}

/* ---- page hero (shared shell for audit/services/demos) ---- */
.page-hero{padding:9rem 0 3.5rem;text-align:center}
.page-hero h1{
  font-family:var(--display);
  font-weight:500;
  font-size:clamp(2.1rem,5.5vw,4rem);
  line-height:1;
  text-transform:uppercase;
  margin:1rem auto;
  max-width:14ch;
}
.page-hero h1 em{font-family:var(--serif);font-style:italic;color:var(--gold);font-weight:500;text-transform:none}
.page-hero p{color:var(--muted);font-size:1.05rem;max-width:620px;margin:0 auto 1.6rem}
.page-hero .final-actions{margin-top:.5rem}

/* ---- chrome dots (browser mockups) ---- */
.chrome-dot{width:10px;height:10px;border-radius:50%}
.chrome-dot:nth-child(1){background:#df6262}
.chrome-dot:nth-child(2){background:#d3a03c}
.chrome-dot:nth-child(3){background:#47a96e}

/* ---- responsive ---- */
@media (max-width:980px){
  .card-grid,
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-brand{grid-column:1 / -1}
}
@media (max-width:900px){
  body{padding-bottom:82px}
  .sticky-bar{display:flex}
  .nav-links{display:none}
  .nav-phone{display:none}
  .nav-actions > .btn-primary{display:none}
  .nav-toggle{display:flex}
  .nav-inner{min-height:72px}
}
@media (max-width:760px){
  .section{padding:3.8rem 0}
  .section-head h2{font-size:clamp(1.7rem,10vw,2.45rem)}
  .page-hero{padding-top:6.5rem}
  .final-actions{flex-direction:column;align-items:stretch}
  .card-grid,
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;text-align:center}
}

/* ---- motion preference ---- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .reveal{opacity:1;transform:none}
}
