
/* AgentTrace responsive stylesheet (mobile-first) */

/* Base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
:root{
  --bg:#0b0f14;
  --fg:#e6edf3;
  --muted:#9aa4ae;
  --panel:rgba(255,255,255,.04);
  --panel-border:rgba(255,255,255,.08);
  --radius:14px;
  --gap:clamp(14px,3.5vw,24px);
  --container:min(1120px,92vw);
  --fs-h1:clamp(28px,7vw,48px);
  --fs-h2:clamp(22px,5vw,32px);
  --fs-body:clamp(14px,3.6vw,16px);
}
body{margin:0;background:var(--bg);color:var(--fg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;line-height:1.55;font-size:var(--fs-body);-webkit-font-smoothing:antialiased}

/* Containers */
.container{width:var(--container);margin-inline:auto}

/* Header */
.header{position:sticky;top:0;z-index:50;background:linear-gradient(180deg,rgba(0,0,0,.6),rgba(0,0,0,.0));backdrop-filter:saturate(120%) blur(4px)}
.header .inner{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 16px}
.header .brand{display:flex;gap:10px;align-items:center}
.header .brand img{width:44px;height:44px;border-radius:10px}
.header .brand strong{font-size:18px}

/* Nav: stack on small, row on desktop */
.nav{display:flex;flex-wrap:wrap;gap:12px;margin-left:auto}
.nav a{color:#9ee4e6;text-decoration:none;padding:8px 10px;border-radius:10px}
.nav a:hover{background:rgba(158,228,230,.08)}

/* CTA */
.cta{margin-left:12px;white-space:nowrap;color:#0b1220;background:linear-gradient(90deg,#9ee4e6,#9c86f2);padding:10px 14px;border-radius:12px;text-decoration:none;font-weight:700}

/* Small screens: stack header elements */
@media (max-width:640px){
  .header .inner{flex-direction:column;align-items:flex-start;gap:8px}
  .nav{order:3}
  .cta{order:2;margin-left:0}
}

/* Hero */
.hero{position:relative;overflow:clip;padding:clamp(48px,12vw,120px) 0}
.hero .wrap{position:relative;z-index:1;padding-inline:16px}
.hero h1{font-size:var(--fs-h1);line-height:1.1;margin:0 0 10px}
.hero .lead{color:var(--muted);max-width:65ch}
#neuro{position:absolute;inset:0;opacity:.35;pointer-events:none}

/* Sections */
.section{padding:clamp(36px,8vw,72px) 0}
.section .container{padding-inline:16px}
h2{font-size:var(--fs-h2);margin:0 0 10px}

/* Cards grid */
.grid{display:grid;gap:var(--gap)}
.cols-3{grid-template-columns:1fr}
@media (min-width:740px){ .cols-3{grid-template-columns:repeat(2,1fr)} }
@media (min-width:1040px){ .cols-3{grid-template-columns:repeat(3,1fr)} }

.card{background:var(--panel);border:1px solid var(--panel-border);border-radius:var(--radius);padding:16px}

/* Bridge watermark band between sections (no extra vertical space) */
.bridge{position:relative;height:0}
.bridge::before{
  content:"";position:absolute;left:0;right:0;top:-40px;height:240px;
  background:url('logo.png') right -8% center/ clamp(360px,60vw,920px) no-repeat;
  opacity:.08;pointer-events:none;filter:none
}

/* Footer */
.footer{padding:28px 0 48px;color:var(--muted);border-top:1px solid rgba(255,255,255,.06)}
.footer .container{padding-inline:16px}

/* Safe areas */
@supports(padding:max(0px)){
  .header .inner,.hero .wrap,.section .container,.footer .container{
    padding-left:max(16px,env(safe-area-inset-left));
    padding-right:max(16px,env(safe-area-inset-right));
  }
}

/* Small-screen tweaks */
@media (max-width:480px){
  #neuro{opacity:.3}
  .header .brand img{width:40px;height:40px}
  .cta{width:100%;text-align:center}
}
