/* ============================================================
   STAKEHOLDER — Software & Platform Engineering
   Light, precise, enterprise. Navy ink + electric-blue accent.
   Bricolage Grotesque display / Hanken Grotesk body.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700&family=Hanken+Grotesk:wght@400;500;600&display=swap');

:root {
  --bg:       #f7f8fb;   /* page */
  --bg-2:     #ffffff;   /* card */
  --ink:      #0c1b2a;   /* headings */
  --ink-2:    #33465a;   /* body */
  --muted:    #6b7c8f;   /* secondary */
  --line:     #e4e9f0;
  --line-2:   #eef1f6;

  --navy:     #0c1b2a;
  --blue:     #1a56ff;   /* primary accent */
  --blue-2:   #4f7cff;
  --cyan:     #12b5c9;   /* secondary accent */
  --blue-tint:#eef2ff;

  --radius:   18px;
  --radius-sm:12px;
  --maxw:     1180px;
  --ease:     cubic-bezier(.22,1,.36,1);
  --shadow:   0 24px 50px -28px rgba(12,27,42,.28);
  --shadow-sm:0 10px 30px -18px rgba(12,27,42,.30);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  background: var(--bg); color: var(--ink-2);
  font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

/* atmosphere */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 82% -6%, rgba(26,86,255,.08), transparent 62%),
    radial-gradient(700px 500px at -6% 4%, rgba(18,181,201,.07), transparent 55%);
}

.wrap { width: min(var(--maxw), 92%); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--blue); }

h1,h2,h3,h4 { font-family: 'Bricolage Grotesque', serif; color: var(--ink); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 100; background: rgba(247,248,251,.82); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background .3s var(--ease); }
.site-head.scrolled { border-bottom-color: var(--line); background: rgba(247,248,251,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: 'Bricolage Grotesque', serif; font-weight: 600; font-size: 1.28rem; color: var(--ink); letter-spacing: -.01em; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-2); transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--blue); }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .72rem 1.3rem; border-radius: 100px; font-weight: 600; font-size: .95rem; background: var(--blue); color: #fff; border: 1px solid var(--blue); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(26,86,255,.6); background: #0f47e6; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); box-shadow: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); width: 40px; height: 40px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(4rem,9vw,7rem) 0 clamp(3rem,5vw,4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.2rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem,5.6vw,4.4rem); margin: 1.3rem 0 1.4rem; }
.hero h1 .grad { background: linear-gradient(100deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 40ch; }
.hero-cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-badges { margin-top: 2.4rem; display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .86rem; }
.hero-badges .bdg { display: inline-flex; align-items: center; gap: .5rem; }
.hero-badges .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(18,181,201,.15); }

/* hero visual — layered platform panel */
.hero-visual { position: relative; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-top { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-2); }
.panel-top i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: inline-block; }
.panel-top i:nth-child(1){ background:#ff6058; } .panel-top i:nth-child(2){ background:#ffbe2e; } .panel-top i:nth-child(3){ background:#28c93f; }
.panel-top span { margin-left: auto; font-size: .78rem; color: var(--muted); font-family: 'Hanken Grotesk'; }
.panel-body { padding: 1.3rem; display: grid; gap: .8rem; }
.codeline { display: flex; gap: .7rem; align-items: center; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .82rem; color: var(--ink-2); }
.codeline .k { color: var(--blue); } .codeline .s { color: var(--cyan); } .codeline .c { color: var(--muted); }
.codeline .bar { height: 7px; border-radius: 4px; background: var(--line-2); flex: 1; }
.codeline .bar.b { background: linear-gradient(90deg, var(--blue), var(--blue-2)); max-width: 60%; }
.metric-row { position: absolute; right: -18px; bottom: -20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); padding: 1rem 1.2rem; display: flex; gap: 1.4rem; }
.metric-row .m b { font-family: 'Bricolage Grotesque'; font-size: 1.5rem; color: var(--ink); display: block; line-height: 1; }
.metric-row .m span { font-size: .74rem; color: var(--muted); }

/* ---------- Logos strip ---------- */
.logos { border-block: 1px solid var(--line); padding: 1.8rem 0; }
.logos p { text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.logos-row { display: flex; justify-content: center; align-items: center; gap: clamp(1.5rem,5vw,3.5rem); flex-wrap: wrap; opacity: .75; }
.logos-row span { font-family: 'Bricolage Grotesque'; font-weight: 600; font-size: 1.15rem; color: var(--muted); letter-spacing: -.01em; }

/* ---------- Section ---------- */
.sec { padding: clamp(4rem,8vw,6.5rem) 0; }
.sec-head { max-width: 640px; margin-bottom: 3rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(2rem,4.2vw,3.1rem); margin: 1rem 0 .9rem; }
.sec-head p { color: var(--ink-2); font-size: 1.08rem; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.svc { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.9rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d5deee; }
.svc .ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); margin-bottom: 1.2rem; }
.svc:nth-child(3n+2) .ico { background: rgba(18,181,201,.12); color: var(--cyan); }
.svc h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.svc p { color: var(--ink-2); font-size: .97rem; }
.svc .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.svc .tags b { font-size: .74rem; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 100px; padding: .25rem .65rem; }

/* ---------- Stats band ---------- */
.band { background: var(--navy); color: #fff; border-radius: 26px; padding: clamp(2.5rem,5vw,3.5rem) clamp(1.5rem,4vw,3rem); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: -50% 30% auto; height: 380px; filter: blur(90px); background: radial-gradient(circle, rgba(26,86,255,.4), transparent 60%); }
.band-grid { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.band .st b { font-family: 'Bricolage Grotesque'; font-size: clamp(2.2rem,4vw,3.1rem); color: #fff; display: block; letter-spacing: -.02em; }
.band .st b em { font-style: normal; color: var(--blue-2); }
.band .st span { color: #9fb2c8; font-size: .92rem; }

/* ---------- Platform / tech ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center; }
.check-list { list-style: none; display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.check-list li { display: flex; gap: .85rem; }
.check-list li svg { flex: none; margin-top: .2rem; }
.check-list li b { color: var(--ink); font-weight: 600; display: block; }
.check-list li span { color: var(--ink-2); font-size: .96rem; }
.stack-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.stack-group { margin-bottom: 1.4rem; }
.stack-group:last-child { margin-bottom: 0; }
.stack-group h5 { font-family: 'Hanken Grotesk'; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips b { font-size: .84rem; font-weight: 500; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: .4rem .75rem; }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.ind { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.6rem 1.6rem; display: flex; align-items: center; gap: 1rem; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.ind:hover { border-color: var(--blue); transform: translateY(-3px); }
.ind .ico { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.ind h4 { font-size: 1.08rem; }
.ind p { font-size: .86rem; color: var(--muted); }

/* ---------- Process ---------- */
.proc { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; counter-reset: p; }
.proc .step { padding: 1.7rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); position: relative; }
.proc .step::before { counter-increment: p; content: "0" counter(p); font-family: 'Bricolage Grotesque'; font-size: 1.5rem; color: var(--blue); display: block; margin-bottom: .7rem; }
.proc .step h4 { font-size: 1.15rem; margin-bottom: .4rem; }
.proc .step p { font-size: .92rem; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta-inner { text-align: center; background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(3rem,6vw,5rem) 2rem; position: relative; overflow: hidden; }
.cta-inner::before { content: ""; position: absolute; inset: -40% 25% auto; height: 320px; filter: blur(90px); background: radial-gradient(circle, rgba(26,86,255,.45), transparent 60%); }
.cta-inner h2 { position: relative; color: #fff; font-size: clamp(2rem,4.5vw,3.2rem); margin-bottom: 1rem; }
.cta-inner p { position: relative; color: #a9bad0; max-width: 46ch; margin: 0 auto 1.9rem; font-size: 1.08rem; }
.cta-inner .hero-cta { position: relative; justify-content: center; }
.cta-inner .btn.ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.cta-inner .btn.ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 4rem 0 2.5rem; margin-top: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.foot .brand { margin-bottom: 1rem; }
.foot-col p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.foot-col h5 { font-family: 'Hanken Grotesk'; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.foot-col ul { list-style: none; display: grid; gap: .65rem; }
.foot-col a { color: var(--ink-2); font-size: .95rem; transition: color .2s var(--ease); }
.foot-col a:hover { color: var(--blue); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s; } .reveal[data-d="2"]{ transition-delay:.16s; } .reveal[data-d="3"]{ transition-delay:.24s; }

/* ---------- Legal ---------- */
.legal { padding: clamp(2.5rem,6vw,5rem) 0 5rem; }
.legal-head { max-width: 760px; margin-bottom: 2.6rem; }
.legal-head h1 { font-size: clamp(2.2rem,5vw,3.4rem); margin: 1rem 0 .7rem; }
.legal-body { display: grid; grid-template-columns: 220px 1fr; gap: 3.4rem; align-items: start; }
.legal-toc { position: sticky; top: 100px; }
.legal-toc ol { list-style: none; counter-reset: toc; display: grid; gap: .5rem; }
.legal-toc a { counter-increment: toc; color: var(--ink-2); font-size: .9rem; display: flex; gap: .55rem; transition: color .2s var(--ease); }
.legal-toc a::before { content: counter(toc,decimal-leading-zero); color: var(--blue); font-family: 'Bricolage Grotesque'; }
.legal-toc a:hover { color: var(--blue); }
.legal-article h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; scroll-margin-top: 100px; }
.legal-article h2:first-child { margin-top: 0; }
.legal-article p { color: var(--ink-2); margin-bottom: 1rem; }
.legal-article ul { color: var(--ink-2); margin: 0 0 1.2rem 1.2rem; display: grid; gap: .45rem; }
.legal-article li b { color: var(--ink); }
.legal-article a.inline { color: var(--blue); }
.legal-article .num { color: var(--blue); font-family: 'Bricolage Grotesque'; margin-right: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .svc-grid, .ind-grid, .proc, .band-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .metric-row { position: static; margin-top: 1rem; display: inline-flex; }
}
@media (max-width: 640px) {
  .nav-links, .nav .btn.desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: .5rem 4%; }
  .nav-links.open li { padding: .6rem 0; border-bottom: 1px solid var(--line-2); }
  .svc-grid, .ind-grid, .proc, .band-grid, .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
