/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1,h2,h3,h4,p { margin: 0; }

/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --ink: #0b0d12;
  --ink-2: #2a2f3a;
  --muted: #6b7280;
  --line: #e8eaef;
  --brand: #0f172a;
  --accent: #4f46e5;
  --accent-2: #06b6d4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --shadow-lg: 0 10px 40px rgba(16,24,40,.10);
  --maxw: 1180px;
  --space: clamp(1rem, 2vw, 1.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Manrope", var(--font-sans);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

/* ---------- Disclaimer bar ---------- */
.disclaimer {
  background: var(--ink);
  color: #e6e8ef;
  font-size: .82rem;
  letter-spacing: .005em;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.disclaimer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .55rem 0;
  text-align: center;
}
.disclaimer p { margin: 0; line-height: 1.4; }
.disclaimer strong { color: #fff; font-weight: 600; }
.disclaimer__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(6,182,212,.18);
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .disclaimer__inner { padding: .55rem 0; text-align: left; justify-content: flex-start; }
  .disclaimer { font-size: .78rem; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.75);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255,255,255,0.9);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__logo { height: 48px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: .95rem;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  border: 1px solid transparent;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover { background: #000; box-shadow: var(--shadow-lg); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(79,70,229,.08), transparent 60%),
    radial-gradient(50% 50% at 0% 20%, rgba(6,182,212,.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fafbff 100%);
}
.hero__inner { max-width: 820px; }
.hero__eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .4rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 640px;
}
.hero__cta {
  margin-top: 2.5rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-soft); }

.section__label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  display: inline-block;
  margin-bottom: .9rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section__sub {
  margin-top: 1rem;
  color: var(--ink-2);
  max-width: 56ch;
  font-size: 1.05rem;
}
.section__head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__body .lead {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 55ch;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
@media (min-width: 820px) {
  .two-col {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }
  .two-col .section__body { padding-top: .25rem; }
}

/* ---------- Values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.value {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d8dbe3;
}
.value__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: .9rem;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.value h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .5rem;
  letter-spacing: -0.01em;
}
.value p { color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* ---------- Team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
/* Desktop: force 4 + 3 layout with the second row centered */
@media (min-width: 980px) {
  .team {
    grid-template-columns: repeat(8, 1fr);
  }
  .team > .member {
    grid-column: span 2;
  }
  .team > .member:nth-child(5) {
    grid-column: 2 / span 2;
  }
}
.member {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.member__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.member__photo img {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  transition: transform .5s ease;
}
.member:hover .member__photo img { transform: scale(1.04); }
.member figcaption { padding: 1.1rem 1.25rem 1.3rem; }
.member h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.member p {
  color: var(--muted);
  font-size: .88rem;
  margin-top: .15rem;
}

/* ---------- CTA ---------- */
.cta__inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  background: linear-gradient(140deg, #0b0d12 0%, #1a1f2e 100%);
  color: #fff;
  border-radius: calc(var(--radius) * 1.5);
}
.cta__inner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -.02em;
}
.cta__inner p { margin: .9rem 0 1.75rem; color: #c9cdd6; }
.cta__inner .btn--primary {
  background: #fff;
  color: var(--ink);
}
.cta__inner .btn--primary:hover { background: #f1f1f1; }

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--muted);
  font-size: .9rem;
}
.footer__brand img { height: 28px; width: auto; }
.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__links a {
  color: var(--ink-2);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s ease;
}
.footer__links a:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}
.legal__inner { max-width: 760px; margin-inline: auto; }
.legal h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.legal p { color: var(--ink-2); margin-top: .75rem; }
.legal ul {
  margin: .75rem 0 0;
  padding-left: 1.25rem;
  color: var(--ink-2);
}
.legal li { margin: .25rem 0; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal__meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .9rem;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.legal__back:hover { color: var(--ink); }

/* ---------- Mobile nav ---------- */
@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    inset: 88px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: .5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .25s ease;
  }
  .nav__links a {
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__links a:last-child { border-bottom: none; margin-top: .5rem; }
  .nav.is-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
