*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{
  --navy:#0a1628;
  --deep:#0f2140;
  --blue:#3e69a5;
  --mid:#5a9ed6;
  --bright:#6ac2e3;
  --cyan:#80d0e8;
  --white:#f0f4f8;
  --ghost:#c8dae8;
  --serif:'Instrument Serif',Georgia,serif;
  --sans:'DM Sans',system-ui,sans-serif;
}
html{scroll-behavior:smooth;overflow-x:hidden}
body{font-family:var(--sans);background:var(--navy);color:var(--white);overflow-x:hidden;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
::selection{background:var(--bright);color:var(--navy)}

/* ─── GRAIN OVERLAY ─── */
body::before{
  content:'';position:fixed;inset:0;z-index:9999;pointer-events:none;
  opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:128px 128px;
}

/* ─── NAV ─── */
nav{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  padding:1.25rem 3rem;
  display:flex;align-items:center;justify-content:space-between;
  backdrop-filter:blur(20px);
  background:rgba(10,22,40,.7);
  border-bottom:1px solid rgba(106,194,227,.06);
  transition:all .4s;
}
nav.scrolled{padding:.8rem 3rem;background:rgba(10,22,40,.92)}
.nav-logo{display:flex;align-items:center;gap:.75rem}
.nav-logo-img{height:36px;width:auto;display:block}
.nav-links{display:flex;align-items:center;gap:2.5rem}
.nav-links a{font-size:.875rem;font-weight:400;color:var(--ghost);letter-spacing:.03em;transition:color .3s}
.nav-links a:hover{color:var(--bright)}
.nav-cta{
  padding:.6rem 1.5rem;border-radius:100px;
  background:linear-gradient(135deg,var(--blue),var(--bright));
  font-size:.85rem;font-weight:500;color:var(--navy);
  transition:all .3s;letter-spacing:.02em;
}
.nav-cta:hover{transform:translateY(-1px);box-shadow:0 8px 30px rgba(106,194,227,.25)}

/* ─── HERO ─── */
.hero{
  min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:8rem 2rem 6rem;position:relative;
}
.hero::before{
  content:'';position:absolute;top:-20%;left:50%;transform:translateX(-50%);
  width:900px;height:900px;border-radius:50%;
  background:radial-gradient(circle,rgba(106,194,227,.08) 0%,rgba(62,105,165,.04) 40%,transparent 70%);
  pointer-events:none;
}
.hero::after{
  content:'';position:absolute;top:0;left:0;right:0;bottom:0;
  background:linear-gradient(180deg,transparent 60%,var(--navy) 100%);
  pointer-events:none;
}

/* animated grid */
.grid-bg{
  position:absolute;inset:0;overflow:hidden;opacity:.12;pointer-events:none;
}
.grid-bg::before{
  content:'';position:absolute;inset:-50%;
  background-image:
    linear-gradient(rgba(106,194,227,.3) 1px,transparent 1px),
    linear-gradient(90deg,rgba(106,194,227,.3) 1px,transparent 1px);
  background-size:80px 80px;
  animation:gridDrift 30s linear infinite;
}
@keyframes gridDrift{0%{transform:translate(0,0)}100%{transform:translate(80px,80px)}}

.hero-badge{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.45rem 1.1rem;border-radius:100px;
  background:rgba(106,194,227,.08);border:1px solid rgba(106,194,227,.15);
  font-size:.8rem;color:var(--bright);letter-spacing:.06em;
  text-transform:uppercase;margin-bottom:2rem;
  position:relative;z-index:2;
  animation:fadeUp .8s ease both;
}
.hero-badge .dot{width:6px;height:6px;border-radius:50%;background:var(--bright);animation:pulse 2s ease infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}

.hero h1{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(3rem,7.5vw,6.5rem);
  line-height:1.05;letter-spacing:-.03em;
  max-width:900px;position:relative;z-index:2;
  animation:fadeUp .8s ease .1s both;
}
.hero h1 em{font-style:italic;color:var(--bright)}
.hero-sub{
  font-size:clamp(1rem,1.5vw,1.2rem);line-height:1.7;
  color:var(--ghost);max-width:560px;margin-top:1.75rem;
  font-weight:300;position:relative;z-index:2;
  animation:fadeUp .8s ease .2s both;
}
.hero-actions{
  display:flex;gap:1rem;margin-top:2.5rem;position:relative;z-index:2;
  animation:fadeUp .8s ease .3s both;
}
.btn-primary{
  padding:.85rem 2.2rem;border-radius:100px;
  background:linear-gradient(135deg,var(--mid),var(--bright));
  font-size:.95rem;font-weight:500;color:var(--navy);
  transition:all .35s;letter-spacing:.01em;
  border:none;cursor:pointer;
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 40px rgba(106,194,227,.3)}
.btn-ghost{
  padding:.85rem 2.2rem;border-radius:100px;
  border:1px solid rgba(200,218,232,.2);
  font-size:.95rem;font-weight:400;color:var(--ghost);
  transition:all .35s;cursor:pointer;background:transparent;
}
.btn-ghost:hover{border-color:var(--bright);color:var(--bright)}

@keyframes fadeUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}

/* ─── FLOATING ORBS ─── */
.orb{position:absolute;border-radius:50%;pointer-events:none;filter:blur(80px)}
.orb-1{width:400px;height:400px;top:10%;left:-8%;background:rgba(62,105,165,.15);animation:float 12s ease-in-out infinite}
.orb-2{width:300px;height:300px;bottom:20%;right:-5%;background:rgba(106,194,227,.1);animation:float 15s ease-in-out 3s infinite}
.orb-3{width:200px;height:200px;top:40%;right:15%;background:rgba(90,158,214,.08);animation:float 10s ease-in-out 6s infinite}
@keyframes float{0%,100%{transform:translate(0,0)}50%{transform:translate(30px,-30px)}}

/* ─── SECTIONS ─── */
section{padding:7rem 2rem;position:relative}
.container{max-width:1200px;margin:0 auto}
.section-label{
  font-size:.75rem;text-transform:uppercase;letter-spacing:.15em;
  color:var(--bright);margin-bottom:1rem;font-weight:500;
}
.section-title{
  font-family:var(--serif);font-size:clamp(2.2rem,4.5vw,3.8rem);
  line-height:1.1;letter-spacing:-.02em;max-width:700px;
}
.section-title em{font-style:italic;color:var(--bright)}

/* ─── SERVICES ─── */
.services-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;
  margin-top:3.5rem;
}
.service-card{
  display:block;
  padding:2.5rem 2rem;border-radius:16px;
  background:linear-gradient(160deg,rgba(15,33,64,.6),rgba(10,22,40,.8));
  border:1px solid rgba(106,194,227,.07);
  transition:all .4s;position:relative;overflow:hidden;
}
.service-card::before{
  content:'';position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(106,194,227,.3),transparent);
  opacity:0;transition:opacity .4s;
}
.service-card:hover{
  border-color:rgba(106,194,227,.15);
  transform:translateY(-4px);
  box-shadow:0 20px 60px rgba(0,0,0,.3);
}
.service-card:hover::before{opacity:1}
.service-icon{
  width:48px;height:48px;border-radius:12px;
  background:linear-gradient(135deg,rgba(62,105,165,.3),rgba(106,194,227,.15));
  display:flex;align-items:center;justify-content:center;
  margin-bottom:1.5rem;
  font-size:1.3rem;
}
.service-card h3{font-family:var(--serif);font-size:1.4rem;margin-bottom:.75rem;font-weight:400}
.service-card p{font-size:.9rem;line-height:1.7;color:var(--ghost);font-weight:300}
.service-card-arrow{
  display:inline-flex;align-items:center;gap:.4rem;
  font-size:.8rem;color:rgba(106,194,227,.45);margin-top:1.25rem;
  transition:all .3s;
}
.service-card:hover .service-card-arrow{color:var(--bright);gap:.65rem}

/* ─── APPROACH ─── */
.approach{background:linear-gradient(180deg,var(--navy),var(--deep),var(--navy))}
.approach-content{display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:center;margin-top:3rem}
.approach-text{display:flex;flex-direction:column;gap:2rem}
.approach-item{display:flex;gap:1.25rem}
.approach-num{
  font-family:var(--serif);font-size:2.5rem;color:rgba(106,194,227,.2);
  line-height:1;min-width:50px;
}
.approach-item h4{font-size:1.05rem;font-weight:500;margin-bottom:.35rem}
.approach-item p{font-size:.875rem;color:var(--ghost);line-height:1.65;font-weight:300}

.approach-visual{
  position:relative;height:420px;
  display:flex;align-items:center;justify-content:center;
}
.agentic-diagram{
  width:320px;height:320px;position:relative;
}
.diagram-ring{
  position:absolute;border-radius:50%;
  border:1px solid rgba(106,194,227,.12);
  animation:spinSlow 25s linear infinite;
}
.ring-1{inset:0}
.ring-2{inset:40px;animation-direction:reverse;animation-duration:20s;border-color:rgba(90,158,214,.1)}
.ring-3{inset:80px;animation-duration:15s;border-color:rgba(62,105,165,.15)}
.diagram-center{
  position:absolute;inset:110px;border-radius:50%;
  background:linear-gradient(135deg,rgba(62,105,165,.2),rgba(106,194,227,.1));
  display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-size:.95rem;color:var(--bright);
  text-align:center;line-height:1.3;
  backdrop-filter:blur(10px);
}
.diagram-node{
  position:absolute;width:10px;height:10px;border-radius:50%;
  background:var(--bright);
  box-shadow:0 0 20px rgba(106,194,227,.4);
}
.node-1{top:0;left:50%;transform:translate(-50%,-50%)}
.node-2{top:50%;right:0;transform:translate(50%,-50%)}
.node-3{bottom:0;left:50%;transform:translate(-50%,50%)}
.node-4{top:50%;left:0;transform:translate(-50%,-50%)}
@keyframes spinSlow{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}

/* ─── WHY SECTION ─── */
.why{position:relative}
.why-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  margin-top:3.5rem;border-radius:16px;overflow:hidden;
  background:rgba(106,194,227,.06);
}
.why-item{
  background:var(--navy);padding:2.5rem 2rem;
  transition:all .4s;
}
.why-item:hover{background:rgba(15,33,64,.8)}
.why-num{
  font-family:var(--serif);font-size:3rem;
  background:linear-gradient(135deg,var(--blue),var(--bright));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;line-height:1;margin-bottom:1rem;
}
.why-item h4{font-size:1rem;font-weight:500;margin-bottom:.5rem}
.why-item p{font-size:.85rem;color:var(--ghost);line-height:1.65;font-weight:300}

/* ─── TECH STACK / PARTNERS ─── */
.tech-marquee{
  padding:4rem 0;border-top:1px solid rgba(106,194,227,.06);
  border-bottom:1px solid rgba(106,194,227,.06);
  overflow:hidden;position:relative;
}
.tech-marquee::before,.tech-marquee::after{
  content:'';position:absolute;top:0;bottom:0;width:120px;z-index:2;
}
.tech-marquee::before{left:0;background:linear-gradient(90deg,var(--navy),transparent)}
.tech-marquee::after{right:0;background:linear-gradient(-90deg,var(--navy),transparent)}
.marquee-track{
  display:flex;gap:4rem;align-items:center;
  animation:scroll 25s linear infinite;
  width:max-content;
}
.marquee-track span{
  font-size:1rem;color:rgba(200,218,232,.25);white-space:nowrap;
  font-weight:400;letter-spacing:.05em;
}
.marquee-track .sep{color:rgba(106,194,227,.15);font-size:.6rem}
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ─── CTA ─── */
.cta-section{text-align:center;padding:8rem 2rem}
.cta-section .section-title{margin:0 auto;max-width:600px}
.cta-section p{color:var(--ghost);max-width:480px;margin:1.5rem auto 0;font-weight:300;line-height:1.7;font-size:1.05rem}
.cta-section .btn-primary{margin-top:2.5rem;display:inline-block;padding:1rem 3rem;font-size:1rem}

/* ─── FOOTER ─── */
footer{
  padding:3rem;border-top:1px solid rgba(106,194,227,.06);
}
.footer-top{
  display:flex;align-items:flex-start;justify-content:space-between;gap:3rem;
  margin-bottom:2rem;padding-bottom:2rem;
  border-bottom:1px solid rgba(106,194,227,.04);
  flex-wrap:wrap;
}
.foot-logo{height:36px;width:auto;display:block}
.foot-offices{
  display:flex;gap:3rem;flex:1;flex-wrap:wrap;
  justify-content:center;
}
.foot-office{font-size:.78rem;color:rgba(200,218,232,.5);line-height:1.65;max-width:170px}
.foot-office strong{display:block;color:var(--ghost);font-weight:500;margin-bottom:.25rem}
.foot-links{display:flex;flex-direction:column;gap:.75rem;align-items:flex-end}
.foot-links a{font-size:.875rem;color:var(--ghost);transition:color .3s;white-space:nowrap}
.foot-links a:hover{color:var(--bright)}
.foot-copy{font-size:.78rem;color:rgba(200,218,232,.3);text-align:center;display:block}

/* ─── SERVICE PAGE HERO ─── */
.page-hero{
  min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:10rem 2rem 5rem;position:relative;overflow:hidden;
}
.page-hero::before{
  content:'';position:absolute;top:-10%;left:50%;transform:translateX(-50%);
  width:700px;height:700px;border-radius:50%;
  background:radial-gradient(circle,rgba(106,194,227,.07) 0%,transparent 70%);
  pointer-events:none;
}
.back-link{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.85rem;color:rgba(200,218,232,.45);margin-bottom:2rem;
  transition:color .3s;position:relative;z-index:2;
  animation:fadeUp .8s ease both;
}
.back-link:hover{color:var(--bright)}
.page-hero h1{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(2.5rem,6vw,5rem);
  line-height:1.08;letter-spacing:-.03em;
  max-width:800px;position:relative;z-index:2;
  animation:fadeUp .8s ease .1s both;
}
.page-hero h1 em{font-style:italic;color:var(--bright)}
.page-hero-sub{
  font-size:clamp(.95rem,1.4vw,1.15rem);line-height:1.7;
  color:var(--ghost);max-width:540px;margin-top:1.5rem;
  font-weight:300;position:relative;z-index:2;
  animation:fadeUp .8s ease .2s both;
}
.page-hero .hero-actions{margin-top:2rem;animation-delay:.3s}

/* ─── SERVICE FEATURE CARDS ─── */
.service-features{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;
  margin-top:3rem;
}
.feature-card{
  padding:2.25rem 2rem;border-radius:16px;
  background:linear-gradient(160deg,rgba(15,33,64,.6),rgba(10,22,40,.8));
  border:1px solid rgba(106,194,227,.07);
  transition:border-color .4s;
}
.feature-card:hover{border-color:rgba(106,194,227,.15)}
.feature-num{
  font-family:var(--serif);font-size:2rem;
  color:rgba(106,194,227,.2);margin-bottom:1rem;line-height:1;
}
.feature-card h3{font-family:var(--serif);font-size:1.25rem;margin-bottom:.5rem;font-weight:400}
.feature-card p{font-size:.875rem;color:var(--ghost);line-height:1.7;font-weight:300}

/* ─── SCROLL ANIMATIONS ─── */
.reveal{opacity:0;transform:translateY(30px);transition:all .7s cubic-bezier(.16,1,.3,1)}
.reveal.visible{opacity:1;transform:translateY(0)}

/* ─── RESPONSIVE ─── */
@media(max-width:1024px){
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .why-grid{grid-template-columns:repeat(2,1fr)}
  .approach-content{grid-template-columns:1fr;gap:3rem}
  .service-features{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  nav{padding:1rem 1.5rem}
  .nav-links{display:none}
  .services-grid{grid-template-columns:1fr}
  .why-grid{grid-template-columns:1fr}
  .hero{padding:7rem 1.5rem 4rem}
  .hero-actions{flex-direction:column;align-items:center}
  .footer-top{flex-direction:column;gap:2rem}
  .foot-offices{justify-content:flex-start;gap:1.5rem}
  .foot-links{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:1rem}
  .service-features{grid-template-columns:1fr}
}

/* ─── MOBILE NAV ─── */
.mobile-toggle{display:none;background:none;border:none;cursor:pointer;padding:.5rem}
.mobile-toggle span{display:block;width:22px;height:2px;background:var(--ghost);margin:5px 0;transition:.3s}
@media(max-width:768px){
  .mobile-toggle{display:block}
}
