/* ============================================================
   Cleanium — design tokens
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400..900;1,14..32,400..700&display=swap');

:root{
  --bg:        #F3F6FC;
  --paper:     #FFFFFF;
  --tint:      #E9EFFC;
  --tint-2:    #DCE7FE;
  --ink:       #0E1A30;
  --ink-soft:  #57627B;
  --ink-faint: #8993AA;
  --blue:      #1857D6;
  --blue-2:    #3B7BFF;
  --blue-deep: #0E3A8F;
  --teal:      #0FB8A6;
  --teal-soft: #D8F6F1;
  --line:      rgba(14,26,48,0.10);
  --line-soft: rgba(14,26,48,0.06);
  --shadow-1:  0 1px 2px rgba(14,26,48,0.06);
  --shadow-2:  0 12px 32px -12px rgba(20,40,90,0.22);
  --shadow-3:  0 24px 60px -20px rgba(20,40,90,0.28);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:'Inter', system-ui, -apple-system, sans-serif;
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  font-feature-settings:"ss01" 1, "cv05" 1;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
p{ margin:0; }

::selection{ background:var(--blue); color:#fff; }

:focus-visible{
  outline:2.5px solid var(--blue);
  outline-offset:3px;
  border-radius:6px;
}

.wrap{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

/* ---------------- Typography scale ---------------- */

h1,h2,h3,h4{
  margin:0;
  font-weight:800;
  letter-spacing:-0.03em;
  line-height:1.04;
  color:var(--ink);
}

.eyebrow{
  font-weight:600;
  font-size:14px;
  color:var(--blue);
  letter-spacing:-0.01em;
}

.lede{
  font-size:19px;
  line-height:1.55;
  color:var(--ink-soft);
  font-weight:400;
  max-width:46ch;
}

.body-text{
  font-size:16px;
  line-height:1.65;
  color:var(--ink-soft);
  max-width:62ch;
}

/* ---------------- Buttons / chips ---------------- */

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:100px;
  padding:9px 16px;
  font-size:14px;
  font-weight:600;
  color:var(--ink);
  box-shadow:var(--shadow-1);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 26px;
  border-radius:100px;
  font-weight:650;
  font-size:15.5px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary{
  background:linear-gradient(180deg, var(--blue-2), var(--blue));
  color:#fff;
  box-shadow:0 10px 24px -10px rgba(24,87,214,0.55);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 30px -10px rgba(24,87,214,0.6); }
.btn-ghost{
  background:transparent;
  border-color:var(--line);
  color:var(--ink);
}
.btn-ghost:hover{ border-color:var(--blue); color:var(--blue); }

/* ---------------- Nav ---------------- */

.site-nav{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(243,246,252,0.78);
  backdrop-filter:blur(14px) saturate(160%);
  -webkit-backdrop-filter:blur(14px) saturate(160%);
  border-bottom:1px solid var(--line-soft);
}
.site-nav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:76px;
}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  font-weight:800;
  font-size:18px;
  letter-spacing:-0.02em;
  color:var(--ink);
}
.brand img{
  width:34px; height:34px;
  border-radius:9px;
  box-shadow:0 3px 10px -3px rgba(24,87,214,0.5);
}
.nav-links{
  display:flex;
  align-items:center;
  gap:36px;
  font-size:14.5px;
  font-weight:550;
  color:var(--ink-soft);
}
.nav-links a{ position:relative; padding:6px 0; transition:color .2s ease; }
.nav-links a:hover{ color:var(--ink); }
.nav-links a.active{ color:var(--blue); }
.nav-links a.active::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:-3px;
  height:2px;
  background:var(--blue);
  border-radius:2px;
}
.nav-toggle{ display:none; }

@media (max-width:760px){
  .nav-links{
    position:fixed;
    inset:76px 0 0 0;
    background:var(--bg);
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
    padding:18px 28px 28px;
    transform:translateY(-12px);
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease, transform .25s ease;
  }
  .nav-links a{ width:100%; padding:14px 0; border-bottom:1px solid var(--line-soft); font-size:17px; }
  .nav-links.open{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .nav-toggle{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:38px; height:38px;
    background:none;
    border:none;
    cursor:pointer;
  }
  .nav-toggle span{
    display:block;
    height:2px;
    background:var(--ink);
    border-radius:2px;
    transition:transform .25s ease, opacity .25s ease;
  }
  .nav-toggle span:nth-child(1){ width:22px; }
  .nav-toggle span:nth-child(2){ width:16px; align-self:flex-end;}
  .nav-toggle span:nth-child(3){ width:22px; }
  .nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); width:22px; }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); width:22px; }
}

/* ---------------- Footer ---------------- */

.site-footer{
  background:var(--ink);
  color:#C9D2E8;
  padding:64px 0 28px;
  margin-top:0;
}
.footer-top{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:40px;
  padding-bottom:44px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:11px;
  font-weight:800;
  font-size:18px;
  color:#fff;
  margin-bottom:14px;
}
.footer-brand img{ width:32px; height:32px; border-radius:8px; }
.footer-tagline{
  font-size:14.5px;
  line-height:1.6;
  color:#9AA6C2;
  max-width:32ch;
}
.footer-heading{
  font-size:13px;
  font-weight:650;
  color:#7C89AB;
  margin-bottom:16px;
}
.footer-list a, .footer-list span{
  display:block;
  font-size:14.5px;
  color:#C9D2E8;
  padding:6px 0;
}
.footer-list a:hover{ color:#fff; }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  padding-top:26px;
  font-size:13px;
  color:#7C89AB;
}

@media (max-width:760px){
  .footer-top{ grid-template-columns:1fr; gap:30px; }
}

/* ---------------- Reveal-on-scroll ---------------- */

.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal-scale{
  opacity:0;
  transform:scale(.94);
  transition:opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal-scale.in{ opacity:1; transform:scale(1); }

/* ---------------- Legal page shared layout ---------------- */

.legal-hero{
  padding:64px 0 48px;
  border-bottom:1px solid var(--line-soft);
}
.legal-hero h1{ font-size:clamp(34px,5vw,52px); margin-bottom:14px; }
.legal-updated{ font-size:14px; color:var(--ink-faint); font-weight:550; }

.legal-body{
  padding:56px 0 100px;
  display:grid;
  grid-template-columns:260px 1fr;
  gap:56px;
  align-items:start;
}
.legal-toc{
  position:sticky;
  top:100px;
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:22px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
}
.legal-toc-label{ font-size:12.5px; font-weight:700; color:var(--ink-faint); margin-bottom:10px; }
.legal-toc a{
  font-size:14px;
  color:var(--ink-soft);
  padding:8px 10px;
  border-radius:9px;
  transition:background .2s ease, color .2s ease;
}
.legal-toc a:hover{ background:var(--tint); color:var(--blue); }

.legal-content section{ margin-bottom:40px; scroll-margin-top:100px; }
.legal-content h2{
  font-size:22px;
  margin-bottom:14px;
  letter-spacing:-0.02em;
}
.legal-content p, .legal-content li{
  font-size:15.5px;
  line-height:1.75;
  color:var(--ink-soft);
  margin-bottom:12px;
}
.legal-content ul{ padding-left:2px; margin-bottom:14px; }
.legal-content li{
  padding-left:22px;
  position:relative;
}
.legal-content li::before{
  content:'';
  position:absolute;
  left:0; top:10px;
  width:6px; height:6px;
  border-radius:50%;
  background:var(--blue-2);
}
.legal-content strong{ color:var(--ink); font-weight:650; }
.legal-content a.inline-link{ color:var(--blue); font-weight:600; border-bottom:1px solid rgba(24,87,214,0.3); }

@media (max-width:860px){
  .legal-body{ grid-template-columns:1fr; }
  .legal-toc{ position:static; }
}
