@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg:#F1F0EE;
  --bg-alt:#FFFFFF;
  --ink:#131217;
  --muted:#6B6A72;
  --accent:#403BFE;
  --accent-ink:#FFFFFF;
  --line: rgba(19,18,23,0.09);
  --line-strong: rgba(19,18,23,0.18);
  --radius: 6px;
  --maxw: 1220px;
  --header-h: 88px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }

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

body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4,.display{
  font-family:'Montserrat', sans-serif;
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.05;
  color:var(--ink);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ list-style:none; }
button{ font-family:inherit; border:none; background:none; cursor:pointer; }

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

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 48px; }
@media (max-width:760px){ .wrap{ padding:0 24px; } }

/* -------------------------------------------------- */
/* custom cursor                                       */
/* -------------------------------------------------- */
@media (pointer:fine){
  body{ cursor:none; }
  .cursor-dot, .cursor-ring{
    position:fixed; top:0; left:0; pointer-events:none; z-index:9999;
    border-radius:50%; transform:translate(-50%,-50%);
  }
  .cursor-dot{ width:7px; height:7px; background:var(--accent); }
  .cursor-ring{
    width:38px; height:38px; border:1.5px solid var(--accent);
    transition:width .2s ease, height .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
  }
  .cursor-ring.big{ width:76px; height:76px; background:rgba(64,59,254,0.08); }
  .cursor-ring.hide{ opacity:0; }
}

/* -------------------------------------------------- */
/* header — sticky glassmorphism                       */
/* -------------------------------------------------- */
header{
  position:fixed; top:0; left:0; right:0; z-index:200;
  height:var(--header-h);
  display:flex; align-items:center;
  background:rgba(241,240,238,0.55);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  border-bottom:1px solid rgba(19,18,23,0.06);
  transition:background .3s ease, border-color .3s ease;
}
header.scrolled{
  background:rgba(241,240,238,0.82);
  border-color:var(--line);
}

nav.wrap{ display:flex; align-items:center; justify-content:space-between; width:100%; }

.brand{ display:flex; align-items:center; gap:11px; font-family:'Montserrat',sans-serif; font-weight:800; font-size:1.15rem; }
.brand .mark{
  width:38px; height:38px; border-radius:50%;
  background:var(--accent); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:0.9rem; font-weight:800;
}

.navlinks{ display:flex; gap:38px; }
.navlinks a{
  font-family:'Inter', sans-serif; font-weight:500; font-size:0.92rem; color:var(--muted);
  position:relative; padding:6px 2px; transition:color .25s ease;
}
.navlinks a::after{
  content:''; position:absolute; left:0; bottom:0; height:2px; width:0%;
  background:var(--accent); transition:width .3s ease;
}
.navlinks a:hover, .navlinks a.active{ color:var(--ink); }
.navlinks a:hover::after, .navlinks a.active::after{ width:100%; }

.nav-cta{
  background:var(--accent); color:#fff; padding:11px 22px; border-radius:var(--radius);
  font-size:0.85rem; font-weight:600; transition:transform .25s ease, box-shadow .25s ease;
}
.nav-cta:hover{ transform:translateY(-2px); box-shadow:0 10px 24px -8px rgba(64,59,254,0.55); }

.menu-toggle{ display:none; width:26px; height:20px; position:relative; }
.menu-toggle span{ position:absolute; left:0; right:0; height:2px; background:var(--ink); transition:all .25s ease; }
.menu-toggle span:nth-child(1){ top:0; }
.menu-toggle span:nth-child(2){ top:9px; }
.menu-toggle span:nth-child(3){ top:18px; }

@media (max-width:900px){
  .navlinks{
    position:fixed; top:var(--header-h); left:0; right:0; bottom:0;
    background:var(--bg-alt); flex-direction:column; padding:40px 32px; gap:8px;
    transform:translateX(100%); transition:transform .35s ease;
  }
  .navlinks.open{ transform:translateX(0); }
  .navlinks a{ font-size:1.4rem; padding:14px 0; border-bottom:1px solid var(--line); color:var(--ink); }
  .nav-cta{ display:none; }
  .menu-toggle{ display:block; }
}

/* -------------------------------------------------- */
/* generic page scaffolding                            */
/* -------------------------------------------------- */
main{ padding-top:var(--header-h); overflow-x:hidden; }

section{ padding:120px 0; position:relative; }
section.tight{ padding:80px 0; }
section + section{ border-top:1px solid var(--line); }

@media (max-width:900px){
  section{ padding:80px 0; }
  section.tight{ padding:56px 0; }
}
@media (max-width:600px){
  section{ padding:56px 0; }
  section.tight{ padding:40px 0; }
}

/* -------------------------------------------------- */
/* responsive grid / layout utilities                  */
/* replace fragile inline grid styles so breakpoints    */
/* below can actually take effect                       */
/* -------------------------------------------------- */
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:32px; }

.hero-split{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:64px; align-items:center; }
.about-split{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:64px; align-items:start; }
.contact-split{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:end; }

.cta-block{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:24px; border-radius:16px; padding:64px 56px;
}

@media (max-width:900px){
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .hero-split{ grid-template-columns:1fr; gap:40px; }
  .about-split{ grid-template-columns:1fr; gap:40px; }
  .about-split .sticky-col{ position:static !important; max-width:280px; }
  .contact-split{ grid-template-columns:1fr; gap:28px; align-items:start; text-align:left !important; }
  .contact-split .contact-photo{ text-align:left !important; }
  .cta-block{ padding:44px 32px; text-align:left; }
}

@media (max-width:640px){
  .grid-2{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
  .grid-4{ grid-template-columns:repeat(2,1fr); gap:20px; }
  .cta-block{ flex-direction:column; align-items:flex-start; padding:36px 26px; }
  .cta-block > a, .cta-block > div:last-child{ width:100%; }
  .cta-block .btn{ width:100%; justify-content:center; }
}

@media (max-width:420px){
  .grid-4{ grid-template-columns:1fr 1fr; gap:16px; }
}

.cta-solid{ background:var(--accent); border-radius:16px; padding:64px 56px; text-align:center; }
@media (max-width:640px){
  .cta-solid{ padding:40px 26px; }
  .cta-solid .btn{ width:100%; justify-content:center; }
}

.kicker{
  display:inline-flex; align-items:center; gap:10px;
  color:var(--accent); font-weight:600; font-size:0.85rem; margin-bottom:18px;
}
.kicker .bar{ width:26px; height:2px; background:var(--accent); }

.section-head{ max-width:680px; margin-bottom:64px; }
.section-head h2{ font-size:clamp(2rem, 4.4vw, 3rem); }
.section-head p{ color:var(--muted); margin-top:18px; font-size:1.05rem; max-width:560px; }

.reveal{ opacity:0; transform:translateY(30px); 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-delay-1{ transition-delay:.1s; }
.reveal-delay-2{ transition-delay:.2s; }
.reveal-delay-3{ transition-delay:.3s; }

/* -------------------------------------------------- */
/* buttons                                             */
/* -------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 28px; border-radius:var(--radius); font-weight:600; font-size:0.92rem;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary{ background:var(--accent); color:#fff; }
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 14px 28px -10px rgba(64,59,254,0.5); }
.btn-outline{ border:1.5px solid var(--line-strong); color:var(--ink); }
.btn-outline:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-3px); }
.btn-sm{ padding:10px 18px; font-size:0.82rem; }

/* -------------------------------------------------- */
/* footer                                              */
/* -------------------------------------------------- */
footer{ background:var(--ink); color:#EDEDF2; padding:70px 0 34px; }
.footer-top{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:40px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,0.1); }
.footer-brand .brand{ color:#fff; }
.footer-brand p{ color:#9C9BA6; margin-top:14px; max-width:320px; font-size:0.92rem; }
.footer-cols{ display:flex; gap:64px; flex-wrap:wrap; }
.footer-col h4{ font-size:0.82rem; color:#9C9BA6; font-family:'Inter',sans-serif; font-weight:600; text-transform:none; margin-bottom:16px; }
.footer-col a{ display:block; color:#D7D6E0; font-size:0.92rem; padding:6px 0; transition:color .2s ease; }
.footer-col a:hover{ color:var(--accent); }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:28px; color:#77768200; }
.footer-bottom span{ color:#7C7B87; font-size:0.82rem; }

/* -------------------------------------------------- */
/* misc shared components                              */
/* -------------------------------------------------- */
.tag{
  border:1px solid var(--line-strong); padding:9px 16px; border-radius:24px;
  font-size:0.82rem; display:inline-flex; align-items:center; gap:8px; color:var(--ink);
  transition:border-color .25s ease, background .25s ease;
  background:var(--bg-alt);
}
.tag:hover{ border-color:var(--accent); background:#403BFE0D; }
.tag img{ width:15px; height:15px; }

.stat{ }
.stat .num{ font-family:'Montserrat',sans-serif; font-weight:800; font-size:2.4rem; color:var(--accent); }
.stat .label{ color:var(--muted); font-size:0.88rem; margin-top:6px; }

.marquee-wrap{
  width:100%; overflow:hidden;
  mask-image:linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image:linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee{ display:flex; gap:70px; width:max-content; animation:scrollx 30s linear infinite; align-items:center; }
.marquee-wrap:hover .marquee{ animation-play-state:paused; }
@keyframes scrollx{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
.logo-chip{ display:flex; align-items:center; gap:12px; white-space:nowrap; color:var(--muted); font-weight:600; font-size:0.98rem; }
.logo-chip img{ width:28px; height:28px; }

#progress{ position:fixed; top:0; left:0; height:3px; width:0%; background:var(--accent); z-index:999; }

#toTop{
  position:fixed; right:28px; bottom:28px; width:50px; height:50px; border-radius:50%;
  background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .3s ease, transform .25s ease; z-index:150;
}
#toTop.show{ opacity:1; pointer-events:auto; }
#toTop:hover{ transform:translateY(-4px); background:var(--accent); }

/* toast */
#toast{
  position:fixed; left:50%; bottom:36px; transform:translate(-50%, 20px);
  background:var(--ink); color:#fff; padding:14px 22px; border-radius:var(--radius);
  font-size:0.88rem; opacity:0; pointer-events:none; transition:opacity .3s ease, transform .3s ease;
  z-index:500; display:flex; align-items:center; gap:10px;
}
#toast.show{ opacity:1; transform:translate(-50%, 0); }
#toast .dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); }
