/* ============================================================
   PEOPLEWALKING — Design System
   Clean / light / corporate with an AI-futuristic soul
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Color — ink & neutrals */
  --ink:        #0B1020;
  --ink-2:      #1B2336;
  --muted:      #5A6378;
  --muted-2:    #8A93A6;
  --line:       #E7E9F0;
  --line-2:     #EEF0F6;
  --bg:         #FFFFFF;
  --bg-soft:    #F7F8FC;
  --bg-soft-2:  #F2F3FA;

  /* Color — violet accent (AI) */
  --violet:     #7C3AED;
  --violet-600: #6D28D9;
  --violet-400: #A855F7;
  --violet-300: #C084FC;
  --indigo:     #5B6CF0;
  --cyan:       #22D3EE;
  --violet-tint:#F4EEFE;
  --violet-tint-2:#EFE8FD;

  /* Gradients */
  --grad-ai:    linear-gradient(120deg, #7C3AED 0%, #6366F1 50%, #22D3EE 100%);
  --grad-ai-2:  linear-gradient(135deg, #A855F7 0%, #6D28D9 100%);
  --grad-soft:  radial-gradient(120% 120% at 80% 0%, #F4EEFE 0%, rgba(244,238,254,0) 60%);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* Spacing rhythm */
  --pad-x: clamp(20px, 5vw, 88px);
  --maxw: 1240px;

  /* Radii & shadow */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --shadow-sm: 0 1px 2px rgba(11,16,32,.04), 0 4px 14px rgba(11,16,32,.05);
  --shadow-md: 0 8px 30px rgba(11,16,32,.07), 0 2px 8px rgba(11,16,32,.04);
  --shadow-lg: 0 30px 70px -20px rgba(60,30,120,.22), 0 10px 30px rgba(11,16,32,.06);
  --shadow-violet: 0 18px 45px -12px rgba(124,58,237,.45);
}

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

/* ---- Layout helpers ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(48px, 6vw, 90px); }
.soft { background: var(--bg-soft); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); color: var(--muted); line-height: 1.6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet-600);
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-ai);
}
.eyebrow--center { justify-content: center; }

.grad-text {
  background: var(--grad-ai); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(11,16,32,.5); }
.btn--violet { background: var(--violet); color: #fff; box-shadow: var(--shadow-violet); }
.btn--violet:hover { transform: translateY(-2px); background: var(--violet-600); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---- Header ---- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line); box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.nav__logo img { height: 38px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-weight: 600; font-size: .96rem; color: var(--ink-2);
  padding: 9px 14px; border-radius: 10px; transition: color .2s, background .2s; position: relative;
}
.nav__links a:hover { color: var(--violet-600); background: var(--violet-tint); }
.nav__links a.active { color: var(--violet-600); }
.nav__right { display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; background: #fff;
}
.lang button {
  font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .03em;
  border: 0; background: transparent; color: var(--muted-2); cursor: pointer;
  padding: 6px 12px; border-radius: 999px; transition: all .2s;
}
.lang button.active { background: var(--ink); color: #fff; }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav__burger span + span { margin-top: 6px; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(255,255,255,.98); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--pad-x);
  transform: translateY(-100%); transition: transform .45s cubic-bezier(.7,0,.2,1); visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line-2); letter-spacing: -.02em; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #C7CDDC; padding-block: clamp(56px, 7vw, 88px) 36px; position: relative; overflow: hidden; }
.site-footer::before {
  content: ''; position: absolute; inset: -40% 40% auto -10%; height: 80%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(124,58,237,.35), transparent 70%); filter: blur(40px); pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; position: relative; }
.site-footer .f-logo img { height: 32px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a:hover { color: #fff; }
.f-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; font-size: .96rem; }
.f-office { font-size: .92rem; line-height: 1.5; color: #9AA3B8; margin-bottom: 16px; }
.f-office b { color: #fff; font-weight: 700; display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #7A839A; position: relative; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; display: grid; place-items: center; transition: .25s; }
.footer-social a:hover { background: var(--violet); border-color: var(--violet); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

/* ---- Cards & shared components ---- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px; transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; background: var(--violet-tint); color: var(--violet-600);
}

.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--violet-tint); color: var(--violet-600); margin-bottom: 22px;
}
.icon-badge svg { width: 27px; height: 27px; }
.icon-badge--grad { background: var(--grad-ai); color: #fff; }

/* ---- Reveal animation ----
   Visible by default (safe for screenshots / print / no-JS).
   Hidden state only applies once JS adds .reveal-on to <html>. */
.reveal-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal-on .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; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- Section heading block ---- */
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-top: 16px; }
.sec-head p { margin-top: 18px; }

/* ---- Generic grids ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Stat ---- */
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.stat__label { color: var(--muted); font-size: .98rem; margin-top: 8px; }

/* ---- Page hero (internal) ---- */
.page-hero { padding-top: 150px; padding-bottom: clamp(40px, 5vw, 70px); position: relative; }
.page-hero__inner { max-width: 820px; }

/* i18n: hide english by default handled in JS */
[data-lang-hidden] { display: none !important; }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav__links, .nav__right .lang { display: none; }
  .nav__burger { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
